Lines Matching refs:ErrorStatus
74 TestPreparedModelLatest(sp<V1_0::IPreparedModel> preparedModel, ErrorStatus errorStatus) in TestPreparedModelLatest()
80 Return<V1_0::ErrorStatus> execute(const V1_0::Request& request, in execute()
85 if (mErrorStatus == ErrorStatus::NONE) { in execute()
92 return V1_0::ErrorStatus::NONE; in execute()
95 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request& request, MeasureTiming measure, in execute_1_2()
100 if (mErrorStatus == ErrorStatus::NONE) { in execute_1_2()
103 } else if (mErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in execute_1_2()
110 return V1_0::ErrorStatus::NONE; in execute_1_2()
113 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request& request, MeasureTiming measure, in execute_1_3()
120 if (mErrorStatus == ErrorStatus::NONE) { in execute_1_3()
124 } else if (mErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in execute_1_3()
131 return V1_3::ErrorStatus::NONE; in execute_1_3()
138 if (mErrorStatus == ErrorStatus::NONE) { in executeSynchronously()
140 } else if (mErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in executeSynchronously()
156 if (mErrorStatus == ErrorStatus::NONE) { in executeSynchronously_1_3()
159 } else if (mErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in executeSynchronously_1_3()
175 if (mErrorStatus == ErrorStatus::NONE) { in configureExecutionBurst()
195 CHECK(mErrorStatus != ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) in executeFenced()
198 if (mErrorStatus == ErrorStatus::NONE) { in executeFenced()
230 ErrorStatus mErrorStatus;
250 TestPreparedModel12(sp<V1_0::IPreparedModel> preparedModel, ErrorStatus errorStatus) in TestPreparedModel12()
253 Return<V1_0::ErrorStatus> execute(const V1_0::Request& request, in execute()
258 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request& request, MeasureTiming measure, in execute_1_2()
284 TestPreparedModel10(sp<V1_0::IPreparedModel> preparedModel, ErrorStatus errorStatus) in TestPreparedModel10()
287 Return<V1_0::ErrorStatus> execute(const V1_0::Request& request, in execute()
305 TestDriver13(const std::string& name, ErrorStatus errorStatus) in TestDriver13()
318 _hidl_cb(V1_3::ErrorStatus::NONE, capabilities); in getCapabilities_1_3()
326 cb(V1_3::ErrorStatus::NONE, supported); in getSupportedOperations_1_3()
328 cb(V1_3::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations_1_3()
333 Return<V1_3::ErrorStatus> prepareModel_1_3( in prepareModel_1_3()
339 Return<V1_3::ErrorStatus> prepareModelReturn = SampleDriver::prepareModel_1_3( in prepareModel_1_3()
344 if (prepareModelReturn != ErrorStatus::NONE) { in prepareModel_1_3()
351 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_3()
357 V1_3::ErrorStatus::NONE, in prepareModel_1_3()
363 Return<V1_0::ErrorStatus> prepareModel_1_2( in prepareModel_1_2()
369 Return<V1_0::ErrorStatus> prepareModelReturn = SampleDriver::prepareModel_1_2( in prepareModel_1_2()
374 if (prepareModelReturn != V1_0::ErrorStatus::NONE) { in prepareModel_1_2()
381 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_2()
387 V1_0::ErrorStatus::NONE, in prepareModel_1_2()
393 Return<V1_0::ErrorStatus> prepareModel_1_1( in prepareModel_1_1()
397 Return<V1_0::ErrorStatus> prepareModelReturn = in prepareModel_1_1()
402 if (prepareModelReturn != V1_0::ErrorStatus::NONE) { in prepareModel_1_1()
408 if (localCallback->getStatus() != ErrorStatus::NONE) { in prepareModel_1_1()
413 V1_0::ErrorStatus::NONE, in prepareModel_1_1()
419 Return<V1_0::ErrorStatus> prepareModel( in prepareModel()
427 ErrorStatus mErrorStatus;
433 TestDriver12(const std::string& name, ErrorStatus errorStatus) in TestDriver12()
456 Return<V1_0::ErrorStatus> prepareModel_1_2( in prepareModel_1_2()
464 Return<V1_0::ErrorStatus> prepareModel_1_1( in prepareModel_1_1()
469 Return<V1_0::ErrorStatus> prepareModel( in prepareModel()
485 Return<V1_0::ErrorStatus> prepareModelFromCache( in prepareModelFromCache()
498 TestDriver11(const std::string& name, ErrorStatus errorStatus) in TestDriver11()
507 Return<V1_0::ErrorStatus> prepareModel_1_1( in prepareModel_1_1()
520 Return<V1_0::ErrorStatus> prepareModel( in prepareModel()
533 TestDriver10(const std::string& name, ErrorStatus errorStatus) in TestDriver10()
542 Return<V1_0::ErrorStatus> prepareModel( in prepareModel()
565 ErrorStatus errorStatus) { in TestCompilation()
618 : public ::testing::TestWithParam<std::tuple<ErrorStatus, Result, bool>> {
653 const ErrorStatus kForceErrorStatus;
823 std::make_tuple(ErrorStatus::NONE, Result::NO_ERROR, /* kUseIntrospectionAPI */ false),
824 std::make_tuple(ErrorStatus::DEVICE_UNAVAILABLE, Result::UNAVAILABLE_DEVICE,
826 std::make_tuple(ErrorStatus::GENERAL_FAILURE, Result::OP_FAILED,
828 std::make_tuple(ErrorStatus::OUTPUT_INSUFFICIENT_SIZE, Result::OUTPUT_INSUFFICIENT_SIZE,
830 std::make_tuple(ErrorStatus::INVALID_ARGUMENT, Result::BAD_DATA,
847 if (kForceErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) return; in TEST_P()
854 if (kForceErrorStatus == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) return; in TEST_P()
860 std::make_tuple(ErrorStatus::NONE, Result::NO_ERROR, /* kUseIntrospectionAPI */ true),
861 std::make_tuple(ErrorStatus::DEVICE_UNAVAILABLE, Result::UNAVAILABLE_DEVICE,
863 std::make_tuple(ErrorStatus::GENERAL_FAILURE, Result::OP_FAILED,
865 std::make_tuple(ErrorStatus::OUTPUT_INSUFFICIENT_SIZE, Result::OUTPUT_INSUFFICIENT_SIZE,
867 std::make_tuple(ErrorStatus::INVALID_ARGUMENT, Result::BAD_DATA,