Searched refs:toAStatus (Results 1 – 9 of 9) sorted by relevance
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.cpp | 114 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, copiedModel.error().message); in prepareModel() 126 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, copiedModel.error().message); in prepareModelWithConfig() 140 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in prepareModelFromCache() 184 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in allocate() 190 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate() 204 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate() 214 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate() 221 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate() 245 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalMemory.error().message); in copyTo() 250 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in copyTo() [all …]
|
D | SampleDriverAidlUtils.cpp | 68 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus) { in toAStatus() function 75 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() function 91 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase() 98 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase() 110 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, log_message); in prepareModelBase() 117 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, log_message); in prepareModelBase() 128 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in prepareModelBase()
|
D | SampleDriverAidlPartial.cpp | 43 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()
|
D | SampleDriverAidlUtils.h | 47 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus); 48 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage);
|
D | SampleDriverAidlFull.cpp | 51 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalModel.error().message); in getSupportedOperations()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 257 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyFrom() 261 return toAStatus(ErrorStatus::INVALID_ARGUMENT, unsignedDimensions.error().message); in copyFrom() 266 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyFrom() 277 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Incompatible sizes"); in copyFrom() 280 return toAStatus(ErrorStatus::GENERAL_FAILURE); in copyFrom() 291 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyTo() 302 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Incompatible sizes"); in copyTo() 304 return toAStatus(ErrorStatus::GENERAL_FAILURE); in copyTo() 326 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate() 339 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate() [all …]
|
D | ShimPreparedModel.cpp | 321 return toAStatus(errorStatus); in executeFencedCommon() 395 return toAStatus(errorStatus); in executeSynchronouslyInternal() 418 return toAStatus(errorStatus); in executeSynchronouslyCommon() 488 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in executeSynchronously() 493 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Invalid memoryIdentifierTokens"); in executeSynchronously() 499 return toAStatus(ErrorStatus::GENERAL_FAILURE, in executeSynchronously() 512 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in executeSynchronouslyWithConfig() 517 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Invalid memoryIdentifierTokens"); in executeSynchronouslyWithConfig() 523 return toAStatus(ErrorStatus::GENERAL_FAILURE, in executeSynchronouslyWithConfig() 534 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Invalid memoryIdentifierToken"); in releaseMemoryResource() [all …]
|
D | ShimUtils.cpp | 30 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() function 38 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus) { in toAStatus() function
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | ShimUtils.h | 33 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage); 34 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus); 42 return toAStatus(nnReturnIfErrorErrorCodeConverted); \ 53 return toAStatus(nnReturnIfErrorErrorCodeConverted); \
|