/packages/modules/NeuralNetworks/runtime/test/ |
D | PreparedModelCallback.cpp | 22 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()
|
D | TestExecution.cpp | 81 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 …]
|
D | PreparedModelCallback.h | 196 hardware::Return<void> notifyInternal(bool deadObject, ErrorStatus errorStatus,
|
D | TestCompilationCaching.cpp | 46 ::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/ |
D | ShimConverter.cpp | 52 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 …]
|
D | ShimUtils.cpp | 30 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()
|
D | ShimPreparedModel.cpp | 205 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/ |
D | ExecutionCallback.cpp | 114 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()
|
D | ExecutionCallback.h | 208 void notifyInternal(ErrorStatus errorStatus, std::vector<OutputShape> outputShapes,
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidlUtils.cpp | 68 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()
|
D | SampleDriverAidlUtils.h | 47 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus); 48 ndk::ScopedAStatus toAStatus(aidl_hal::ErrorStatus errorStatus, const std::string& errorMessage);
|
D | SampleDriverAidl.cpp | 65 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()
|
D | SampleDriverAidl.h | 157 aidl_hal::ErrorStatus* errorStatus) override { in getExecutionInfo() argument 160 *errorStatus = kErrorStatus; in getExecutionInfo()
|
/packages/modules/NeuralNetworks/common/ |
D | ExecutionBurstServer.cpp | 114 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()
|
D | ExecutionBurstController.cpp | 170 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/ |
D | ShimUtils.h | 33 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus, const std::string& errorMessage); 34 ndk::ScopedAStatus toAStatus(ErrorStatus errorStatus);
|
D | ShimConverter.h | 54 ErrorStatus* errorStatus);
|
/packages/modules/NeuralNetworks/common/include/ |
D | ExecutionBurstServer.h | 55 hardware::neuralnetworks::V1_0::ErrorStatus errorStatus, 163 bool send(hardware::neuralnetworks::V1_0::ErrorStatus errorStatus,
|
/packages/modules/NeuralNetworks/common/types/include/nnapi/ |
D | Validation.h | 52 Result<Version> validate(const ErrorStatus& errorStatus);
|
D | TypeUtils.h | 98 std::ostream& operator<<(std::ostream& os, const ErrorStatus& errorStatus);
|
/packages/modules/NeuralNetworks/common/types/src/ |
D | TypeUtils.cpp | 463 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 <<()
|
D | Validation.cpp | 206 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()
|