Home
last modified time | relevance | path

Searched refs:toAStatus (Results 1 – 10 of 10) sorted by relevance

/aosp12/packages/modules/NeuralNetworks/driver/sample_aidl/
H A DSampleDriver.cpp123 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in prepareModelFromCache()
173 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate()
187 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate()
197 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate()
250 return toAStatus(validationStatus); in copyTo()
291 return toAStatus(status); in copyFrom()
429 return toAStatus(poolStatus); in executeSynchronously()
448 return toAStatus(executionStatus); in executeSynchronously()
456 return toAStatus(updateStatus); in executeSynchronously()
544 return toAStatus(poolStatus); in executeFenced()
[all …]
H A DSampleDriverUtils.cpp48 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus) { in toAStatus() function
55 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() function
71 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase()
78 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase()
90 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, log_message); in prepareModelBase()
97 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, log_message); in prepareModelBase()
108 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase()
H A DSampleDriverPartial.cpp43 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalModel.error().message); in getSupportedOperations()
58 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalModel.error().message); in prepareModel()
65 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, copiedModel.error().message); in prepareModel()
H A DSampleDriverUtils.h41 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus);
42 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage);
H A DSampleDriverFull.cpp51 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalModel.error().message); in getSupportedOperations()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/
H A DShimDevice.cpp325 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate()
338 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate()
431 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate()
442 return toAStatus(ErrorStatus::GENERAL_FAILURE, in allocate()
449 return toAStatus(ErrorStatus::GENERAL_FAILURE, in allocate()
487 return toAStatus(convertErrorStatus); in getSupportedOperations()
535 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in prepareModel()
541 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in prepareModel()
546 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in prepareModel()
556 return toAStatus(convertErrorStatus); in prepareModel()
[all …]
H A DShimPreparedModel.cpp228 return toAStatus(errorStatus); in executeFenced()
282 return toAStatus(errorStatus); in executeSynchronously()
340 return toAStatus(errorStatus); in executeSynchronously()
377 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in executeSynchronously()
382 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Invalid memoryIdentifierTokens"); in executeSynchronously()
388 return toAStatus(ErrorStatus::GENERAL_FAILURE, in executeSynchronously()
399 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Invalid memoryIdentifierToken"); in releaseMemoryResource()
H A DShimUtils.cpp30 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() function
38 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus) { in toAStatus() function
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DInvalidDevice.cpp86 return toAStatus(ErrorStatus::GENERAL_FAILURE, "InvalidDevice"); in allocate()
108 return toAStatus(ErrorStatus::INVALID_ARGUMENT, result.error()); in getSupportedOperations()
130 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in prepareModel()
135 return toAStatus(ErrorStatus::INVALID_ARGUMENT, result.error()); in prepareModel()
139 return toAStatus(ErrorStatus::INVALID_ARGUMENT, result.error()); in prepareModel()
143 return toAStatus(ErrorStatus::INVALID_ARGUMENT, result.error()); in prepareModel()
147 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in prepareModel()
152 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in prepareModel()
157 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in prepareModel()
162 return toAStatus( in prepareModel()
[all …]
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/include/
H A DShimUtils.h29 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage);
30 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus);
38 return toAStatus(nnReturnIfErrorErrorCodeConverted); \
49 return toAStatus(nnReturnIfErrorErrorCodeConverted); \