Lines Matching refs:ErrorStatus
113 cb->notify_1_3(ErrorStatus::GENERAL_FAILURE, nullptr); in sendFailureMessage()
211 const auto failWithStatus = [](ErrorStatus status) { in executeAsynchronously()
227 Return<ErrorStatus> ret = mPreparedModelV1_3->execute_1_3(request, measure, otp, in executeAsynchronously()
235 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
237 if (ret != ErrorStatus::NONE) { in executeAsynchronously()
238 LOG(ERROR) << "execute_1_3 returned " << toString(static_cast<ErrorStatus>(ret)); in executeAsynchronously()
250 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
253 Return<V1_0::ErrorStatus> ret = in executeAsynchronously()
261 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
263 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in executeAsynchronously()
264 if (status != V1_0::ErrorStatus::NONE) { in executeAsynchronously()
277 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
280 Return<V1_0::ErrorStatus> ret = mPreparedModelV1_0->execute(request10, callback); in executeAsynchronously()
287 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
289 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in executeAsynchronously()
290 if (status != V1_0::ErrorStatus::NONE) { in executeAsynchronously()
300 return failWithStatus(ErrorStatus::GENERAL_FAILURE); in executeAsynchronously()
308 const auto kFailure = getExecutionResult(ErrorStatus::GENERAL_FAILURE, {}, kNoTiming); in executeSynchronously()
316 [&result](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, in executeSynchronously()
343 [&result](V1_0::ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, in executeSynchronously()
400 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_3::IDevice* device) { in getCapabilitiesFunction()
403 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction()
404 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction()
406 [&result](ErrorStatus error, const Capabilities& capabilities) { in getCapabilitiesFunction()
427 ErrorStatus errorStatus; in executeFenced()
432 ErrorStatus error, const hidl_handle& handle, in executeFenced()
443 if (errorStatus != ErrorStatus::NONE) { in executeFenced()
445 << toString(static_cast<ErrorStatus>(errorStatus)); in executeFenced()
478 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_2::IDevice* device) { in getCapabilitiesFunction()
481 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction()
482 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction()
484 [&result](V1_0::ErrorStatus error, const V1_2::Capabilities& capabilities) { in getCapabilitiesFunction()
494 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_1::IDevice* device) { in getCapabilitiesFunction()
497 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction()
498 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction()
500 [&result](V1_0::ErrorStatus error, const V1_1::Capabilities& capabilities) { in getCapabilitiesFunction()
511 static std::pair<ErrorStatus, Capabilities> getCapabilitiesFunction(V1_0::IDevice* device) { in getCapabilitiesFunction()
514 const std::pair<ErrorStatus, Capabilities> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getCapabilitiesFunction()
515 std::pair<ErrorStatus, Capabilities> result = kFailure; in getCapabilitiesFunction()
517 [&result](V1_0::ErrorStatus error, const V1_0::Capabilities& capabilities) { in getCapabilitiesFunction()
528 static std::pair<ErrorStatus, hidl_vec<Extension>> getSupportedExtensionsFunction( in getSupportedExtensionsFunction()
532 const std::pair<ErrorStatus, hidl_vec<Extension>> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getSupportedExtensionsFunction()
533 std::pair<ErrorStatus, hidl_vec<Extension>> result = kFailure; in getSupportedExtensionsFunction()
535 [&result](V1_0::ErrorStatus error, const hidl_vec<Extension>& extensions) { in getSupportedExtensionsFunction()
545 static std::pair<ErrorStatus, hidl_vec<Extension>> getSupportedExtensionsFunction( in getSupportedExtensionsFunction()
548 return {ErrorStatus::NONE, {/* No extensions. */}}; in getSupportedExtensionsFunction()
556 device->getType([&result](V1_0::ErrorStatus error, DeviceType deviceType) { in getTypeFunction()
557 if (error == V1_0::ErrorStatus::NONE) { in getTypeFunction()
573 static std::pair<ErrorStatus, hidl_string> getVersionStringFunction(V1_2::IDevice* device) { in getVersionStringFunction()
575 const std::pair<ErrorStatus, hidl_string> kFailure = {ErrorStatus::GENERAL_FAILURE, ""}; in getVersionStringFunction()
576 std::pair<ErrorStatus, hidl_string> result = kFailure; in getVersionStringFunction()
578 [&result](V1_0::ErrorStatus error, const hidl_string& version) { in getVersionStringFunction()
588 static std::pair<ErrorStatus, hidl_string> getVersionStringFunction(V1_0::IDevice* device) { in getVersionStringFunction()
590 return {ErrorStatus::NONE, "UNKNOWN"}; in getVersionStringFunction()
593 static std::tuple<ErrorStatus, uint32_t, uint32_t> getNumberOfCacheFilesNeededFunction( in getNumberOfCacheFilesNeededFunction()
596 constexpr std::tuple<ErrorStatus, uint32_t, uint32_t> kFailure = {ErrorStatus::GENERAL_FAILURE, in getNumberOfCacheFilesNeededFunction()
598 std::tuple<ErrorStatus, uint32_t, uint32_t> result = kFailure; in getNumberOfCacheFilesNeededFunction()
600 [&result](V1_0::ErrorStatus error, uint32_t numModelCache, uint32_t numDataCache) { in getNumberOfCacheFilesNeededFunction()
610 static std::tuple<ErrorStatus, uint32_t, uint32_t> getNumberOfCacheFilesNeededFunction( in getNumberOfCacheFilesNeededFunction()
613 return {ErrorStatus::NONE, 0, 0}; in getNumberOfCacheFilesNeededFunction()
629 if (capabilitiesStatus != ErrorStatus::NONE) { in initializeFunction()
637 if (versionStatus != ErrorStatus::NONE) { in initializeFunction()
649 if (extensionsStatus != ErrorStatus::NONE) { in initializeFunction()
657 if (cacheFilesStatus != ErrorStatus::NONE) { in initializeFunction()
960 std::pair<ErrorStatus, hidl_vec<bool>> VersionedIDevice::getSupportedOperations( in getSupportedOperations()
962 const std::pair<ErrorStatus, hidl_vec<bool>> kFailure = {ErrorStatus::GENERAL_FAILURE, {}}; in getSupportedOperations()
963 std::pair<ErrorStatus, hidl_vec<bool>> result; in getSupportedOperations()
970 return std::make_pair(ErrorStatus::NONE, std::move(supported)); in getSupportedOperations()
973 auto remappedResult = [&model](const std::pair<ErrorStatus, hidl_vec<bool>>& result, in getSupportedOperations()
976 const ErrorStatus status = result.first; in getSupportedOperations()
994 model, [&result](ErrorStatus error, const hidl_vec<bool>& supported) { in getSupportedOperations()
1024 [&result](V1_0::ErrorStatus error, const hidl_vec<bool>& supported) { in getSupportedOperations()
1057 [&result](V1_0::ErrorStatus error, const hidl_vec<bool>& supported) { in getSupportedOperations()
1090 [&result](V1_0::ErrorStatus error, const hidl_vec<bool>& supported) { in getSupportedOperations()
1177 ErrorStatus status = ErrorStatus::GENERAL_FAILURE) { in prepareModelFailure()
1190 const ErrorStatus status = callback.getStatus(); in prepareModelResult()
1193 if (status != ErrorStatus::NONE) { in prepareModelResult()
1233 const Return<ErrorStatus> ret = recoverable<ErrorStatus, V1_3::IDevice>( in prepareModelInternal()
1249 if (ret != ErrorStatus::NONE) { in prepareModelInternal()
1250 LOG(ERROR) << "prepareModel_1_3 returned " << toString(static_cast<ErrorStatus>(ret)); in prepareModelInternal()
1272 const Return<V1_0::ErrorStatus> ret = recoverable<V1_0::ErrorStatus, V1_2::IDevice>( in prepareModelInternal()
1288 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in prepareModelInternal()
1289 if (status != V1_0::ErrorStatus::NONE) { in prepareModelInternal()
1316 const Return<V1_0::ErrorStatus> ret = recoverable<V1_0::ErrorStatus, V1_1::IDevice>( in prepareModelInternal()
1330 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in prepareModelInternal()
1331 if (status != V1_0::ErrorStatus::NONE) { in prepareModelInternal()
1358 const Return<V1_0::ErrorStatus> ret = recoverable<V1_0::ErrorStatus, V1_0::IDevice>( in prepareModelInternal()
1372 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in prepareModelInternal()
1373 if (status != V1_0::ErrorStatus::NONE) { in prepareModelInternal()
1410 const Return<ErrorStatus> ret = recoverable<ErrorStatus, V1_3::IDevice>( in prepareModelFromCacheInternal()
1426 if (ret != ErrorStatus::NONE) { in prepareModelFromCacheInternal()
1428 << toString(static_cast<ErrorStatus>(ret)); in prepareModelFromCacheInternal()
1437 const Return<V1_0::ErrorStatus> ret = recoverable<V1_0::ErrorStatus, V1_2::IDevice>( in prepareModelFromCacheInternal()
1451 const V1_0::ErrorStatus status = static_cast<V1_0::ErrorStatus>(ret); in prepareModelFromCacheInternal()
1452 if (status != V1_0::ErrorStatus::NONE) { in prepareModelFromCacheInternal()
1522 std::tuple<ErrorStatus, sp<IBuffer>, uint32_t> VersionedIDevice::allocate( in allocate()
1526 const auto kFailure = std::make_tuple<ErrorStatus, sp<IBuffer>, uint32_t>( in allocate()
1527 ErrorStatus::GENERAL_FAILURE, nullptr, 0); in allocate()
1536 std::tuple<ErrorStatus, sp<IBuffer>, int32_t> result; in allocate()
1540 [&result](ErrorStatus error, const sp<IBuffer>& buffer, in allocate()