Home
last modified time | relevance | path

Searched refs:errorStatus (Results 1 – 22 of 22) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DPreparedModelCallback.cpp22 bool deadObject, ErrorStatus errorStatus, const sp<V1_0::IPreparedModel>& preparedModel) { in notifyInternal() argument
33 mErrorStatus = errorStatus; in notifyInternal()
43 V1_0::ErrorStatus errorStatus, const sp<V1_0::IPreparedModel>& preparedModel) { in notify() argument
44 return notifyInternal(false, uncheckedConvert(errorStatus), preparedModel); in notify()
48 V1_0::ErrorStatus errorStatus, const sp<V1_2::IPreparedModel>& preparedModel) { in notify_1_2() argument
49 return notifyInternal(false, uncheckedConvert(errorStatus), preparedModel); in notify_1_2()
53 V1_3::ErrorStatus errorStatus, const sp<V1_3::IPreparedModel>& preparedModel) { in notify_1_3() argument
54 return notifyInternal(false, uncheckedConvert(errorStatus), preparedModel); in notify_1_3()
DTestExecution.cpp81 TestPreparedModelLatest(sp<V1_0::IPreparedModel> preparedModel, V1_3::ErrorStatus errorStatus) in TestPreparedModelLatest() argument
85 mErrorStatus(errorStatus) {} in TestPreparedModelLatest()
277 TestPreparedModel12(sp<V1_0::IPreparedModel> preparedModel, V1_3::ErrorStatus errorStatus) in TestPreparedModel12() argument
278 : mLatestPreparedModel(new TestPreparedModelLatest(preparedModel, errorStatus)) {} in TestPreparedModel12()
313 TestPreparedModel10(sp<V1_0::IPreparedModel> preparedModel, V1_3::ErrorStatus errorStatus) in TestPreparedModel10() argument
314 : mLatestPreparedModel(new TestPreparedModelLatest(preparedModel, errorStatus)) {} in TestPreparedModel10()
334 TestDriver13(const std::string& name, V1_3::ErrorStatus errorStatus) in TestDriver13() argument
335 : SampleDriver(name.c_str()), mErrorStatus(errorStatus) {} in TestDriver13()
465 TestDriver12(const std::string& name, V1_3::ErrorStatus errorStatus) in TestDriver12() argument
466 : mLatestDriver(new TestDriver13(name, errorStatus)) {} in TestDriver12()
[all …]
DPreparedModelCallback.h196 hardware::Return<void> notifyInternal(bool deadObject, ErrorStatus errorStatus,
DTestCompilationCaching.cpp46 ::std::ostream& operator<<(::std::ostream& os, V1_3::ErrorStatus errorStatus) { in operator <<() argument
47 return os << toString(errorStatus); in operator <<()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp52 ErrorStatus* errorStatus) { in convertSubgraphFromHAL() argument
53 *errorStatus = ErrorStatus::NONE; in convertSubgraphFromHAL()
55 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
101 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
108 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
116 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
128 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
137 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
158 *errorStatus = ErrorStatus::INVALID_ARGUMENT; in convertSubgraphFromHAL()
175 *errorStatus = otherErrorStatus; in convertSubgraphFromHAL()
[all …]
DShimUtils.cpp30 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() argument
31 if (errorStatus == ErrorStatus::NONE) { in toAStatus()
35 static_cast<int32_t>(errorStatus), errorMessage.c_str()); in toAStatus()
38 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus) { in toAStatus() argument
39 if (errorStatus == ErrorStatus::NONE) { in toAStatus()
42 return ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(errorStatus)); in toAStatus()
DShimPreparedModel.cpp205 ErrorStatus* errorStatus) override { in getExecutionInfo() argument
207 *errorStatus = convertResultToErrorStatus(status); in getExecutionInfo()
317 auto errorStatus = in executeFencedCommon() local
320 if (errorStatus != ErrorStatus::NONE) { in executeFencedCommon()
321 return toAStatus(errorStatus); in executeFencedCommon()
344 auto errorStatus = convertResultToErrorStatus(result); in executeSynchronouslyInternal() local
361 if (errorStatus == ErrorStatus::NONE) { in executeSynchronouslyInternal()
362 errorStatus = ErrorStatus::GENERAL_FAILURE; in executeSynchronouslyInternal()
370 if (measureTiming && errorStatus == ErrorStatus::NONE) { in executeSynchronouslyInternal()
392 if (errorStatus == ErrorStatus::NONE || errorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in executeSynchronouslyInternal()
[all …]
/packages/modules/NeuralNetworks/runtime/
DExecutionCallback.cpp114 void ExecutionCallback::notifyInternal(ErrorStatus errorStatus, in notifyInternal() argument
118 if (errorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in notifyInternal()
123 errorStatus = ErrorStatus::GENERAL_FAILURE; in notifyInternal()
127 } else if (errorStatus != ErrorStatus::NONE) { in notifyInternal()
133 errorStatus = ErrorStatus::GENERAL_FAILURE; in notifyInternal()
149 mErrorStatus = errorStatus; in notifyInternal()
DExecutionCallback.h208 void notifyInternal(ErrorStatus errorStatus, std::vector<OutputShape> outputShapes,
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidlUtils.cpp68 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus) { in toAStatus() argument
69 if (errorStatus == aidl_hal::ErrorStatus::NONE) { in toAStatus()
72 return ndk::ScopedAStatus::fromServiceSpecificError(static_cast<int32_t>(errorStatus)); in toAStatus()
75 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage) { in toAStatus() argument
76 if (errorStatus == aidl_hal::ErrorStatus::NONE) { in toAStatus()
80 static_cast<int32_t>(errorStatus), errorMessage.c_str()); in toAStatus()
DSampleDriverAidlUtils.h47 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus);
48 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage);
DSampleDriverAidl.cpp65 const auto errorStatus = aidl_hal::utils::convert(convertResultCodeToErrorStatus(resultCode)); in convertResultCodeToAidlErrorStatus() local
66 CHECK(errorStatus.has_value()) << "Unhandled error (" << errorStatus.error().code in convertResultCodeToAidlErrorStatus()
67 << "): " << errorStatus.error().message; in convertResultCodeToAidlErrorStatus()
68 return errorStatus.value(); in convertResultCodeToAidlErrorStatus()
DSampleDriverAidl.h157 aidl_hal::ErrorStatus* errorStatus) override { in getExecutionInfo() argument
160 *errorStatus = kErrorStatus; in getExecutionInfo()
/packages/modules/NeuralNetworks/common/
DExecutionBurstServer.cpp114 std::vector<FmqResultDatum> serialize(V1_0::ErrorStatus errorStatus, in serialize() argument
131 /*.errorStatus=*/errorStatus, in serialize()
476 bool ResultChannelSender::send(V1_0::ErrorStatus errorStatus, in send() argument
479 const std::vector<FmqResultDatum> serialized = serialize(errorStatus, outputShapes, timing); in send()
594 V1_0::ErrorStatus errorStatus = V1_0::ErrorStatus::GENERAL_FAILURE; in ensureCacheEntriesArePresentLocked() local
596 auto cb = [&errorStatus, &returnedMemories]( in ensureCacheEntriesArePresentLocked()
599 errorStatus = status; in ensureCacheEntriesArePresentLocked()
605 if (!ret.isOk() || errorStatus != V1_0::ErrorStatus::NONE || in ensureCacheEntriesArePresentLocked()
649 const auto [errorStatus, outputShapes, returnedTiming] = in task()
653 mResultChannelSender->send(errorStatus, outputShapes, returnedTiming); in task()
DExecutionBurstController.cpp170 const V1_0::ErrorStatus errorStatus = packetInfo.errorStatus; in deserialize() local
235 return std::make_tuple(errorStatus, std::move(outputShapes), timing); in deserialize()
515 V1_0::ErrorStatus errorStatus; in create() local
519 [&errorStatus, &burstContext](V1_0::ErrorStatus status, in create()
521 errorStatus = status; in create()
531 if (errorStatus != V1_0::ErrorStatus::NONE) { in create()
533 << toString(errorStatus); in create()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimUtils.h33 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage);
34 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus);
DShimConverter.h54 ErrorStatus* errorStatus);
/packages/modules/NeuralNetworks/common/include/
DExecutionBurstServer.h55 hardware::neuralnetworks::V1_0::ErrorStatus errorStatus,
163 bool send(hardware::neuralnetworks::V1_0::ErrorStatus errorStatus,
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DValidation.h52 Result<Version> validate(const ErrorStatus& errorStatus);
DTypeUtils.h98 std::ostream& operator<<(std::ostream& os, const ErrorStatus& errorStatus);
/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp463 std::ostream& operator<<(std::ostream& os, const ErrorStatus& errorStatus) { in operator <<() argument
464 switch (errorStatus) { in operator <<()
486 return os << "ErrorStatus{" << underlyingType(errorStatus) << "}"; in operator <<()
DValidation.cpp206 Result<Version> validateErrorStatus(const ErrorStatus& errorStatus) { in validateErrorStatus() argument
209 switch (errorStatus) { in validateErrorStatus()
222 NN_RET_CHECK_FAIL() << "Invalid ErrorStatus " << errorStatus; in validateErrorStatus()
1850 Result<Version> validate(const ErrorStatus& errorStatus) { in validate() argument
1851 return validateErrorStatus(errorStatus); in validate()