Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriver.cpp109 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, copiedModel.error().message); in prepareModel()
123 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in prepareModelFromCache()
167 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in allocate()
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()
204 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in allocate()
239 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalMemory.error().message); in copyTo()
244 return toAStatus(aidl_hal::ErrorStatus::GENERAL_FAILURE, in copyTo()
250 return toAStatus(validationStatus); in copyTo()
[all …]
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()
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()
DSampleDriverUtils.h41 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus);
42 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage);
DSampleDriverFull.cpp51 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, canonicalModel.error().message); in getSupportedOperations()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp255 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyFrom()
259 return toAStatus(aidl_hal::ErrorStatus::INVALID_ARGUMENT, in copyFrom()
265 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyFrom()
276 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Incompatible sizes"); in copyFrom()
279 return toAStatus(ErrorStatus::GENERAL_FAILURE); in copyFrom()
290 return toAStatus(ErrorStatus::INVALID_ARGUMENT); in copyTo()
301 return toAStatus(ErrorStatus::INVALID_ARGUMENT, "Incompatible sizes"); in copyTo()
303 return toAStatus(ErrorStatus::GENERAL_FAILURE); in copyTo()
325 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate()
338 return toAStatus(ErrorStatus::INVALID_ARGUMENT, in allocate()
[all …]
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()
DShimUtils.cpp30 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/
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); \