Lines Matching refs:ErrorStatus
69 return getCapabilities_1_3([&](ErrorStatus error, const V1_3::Capabilities& capabilities) { in getCapabilities()
78 return getCapabilities_1_3([&](ErrorStatus error, const V1_3::Capabilities& capabilities) { in getCapabilities_1_1()
87 return getCapabilities_1_3([&](ErrorStatus error, const V1_3::Capabilities& capabilities) { in getCapabilities_1_2()
96 cb(V1_0::ErrorStatus::NONE, "JUST_AN_EXAMPLE"); in getVersionString()
102 cb(V1_0::ErrorStatus::NONE, V1_2::DeviceType::CPU); in getType()
109 cb(V1_0::ErrorStatus::NONE, {/* No extensions. */}); in getSupportedExtensions()
119 cb(V1_0::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations()
123 [&](ErrorStatus status, const hidl_vec<bool>& supported) { in getSupportedOperations()
134 cb(V1_0::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations_1_1()
138 [&](ErrorStatus status, const hidl_vec<bool>& supported) { in getSupportedOperations_1_1()
149 cb(V1_0::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations_1_2()
153 [&](ErrorStatus status, const hidl_vec<bool>& supported) { in getSupportedOperations_1_2()
162 cb(V1_0::ErrorStatus::NONE, /*numModelCache=*/0, /*numDataCache=*/0); in getNumberOfCacheFilesNeeded()
166 Return<V1_0::ErrorStatus> SampleDriver::prepareModel( in prepareModel()
169 const ErrorStatus status = prepareModelBase( in prepareModel()
174 Return<V1_0::ErrorStatus> SampleDriver::prepareModel_1_1( in prepareModel_1_1()
178 const ErrorStatus status = in prepareModel_1_1()
183 Return<V1_0::ErrorStatus> SampleDriver::prepareModel_1_2( in prepareModel_1_2()
188 const ErrorStatus status = in prepareModel_1_2()
193 Return<V1_3::ErrorStatus> SampleDriver::prepareModel_1_3( in prepareModel_1_3()
202 Return<V1_0::ErrorStatus> SampleDriver::prepareModelFromCache( in prepareModelFromCache()
207 notify(callback, ErrorStatus::GENERAL_FAILURE, nullptr); in prepareModelFromCache()
208 return V1_0::ErrorStatus::GENERAL_FAILURE; in prepareModelFromCache()
211 Return<ErrorStatus> SampleDriver::prepareModelFromCache_1_3( in prepareModelFromCache_1_3()
217 notify(callback, ErrorStatus::GENERAL_FAILURE, nullptr); in prepareModelFromCache_1_3()
218 return ErrorStatus::GENERAL_FAILURE; in prepareModelFromCache_1_3()
261 cb(ErrorStatus::INVALID_ARGUMENT, nullptr, kInvalidBufferToken); in allocate()
267 cb(ErrorStatus::GENERAL_FAILURE, nullptr, kInvalidBufferToken); in allocate()
277 cb(ErrorStatus::GENERAL_FAILURE, nullptr, kInvalidBufferToken); in allocate()
284 cb(ErrorStatus::GENERAL_FAILURE, nullptr, kInvalidBufferToken); in allocate()
291 cb(ErrorStatus::GENERAL_FAILURE, nullptr, kInvalidBufferToken); in allocate()
298 cb(ErrorStatus::NONE, std::move(sampleBuffer), tokenValue); in allocate()
321 Return<ErrorStatus> SampleBuffer::copyTo(const hidl_memory& dst) { in copyTo()
325 return ErrorStatus::GENERAL_FAILURE; in copyTo()
327 const ErrorStatus validationStatus = kBuffer->validateCopyTo(dstPool->getSize()); in copyTo()
328 if (validationStatus != ErrorStatus::NONE) { in copyTo()
333 return ErrorStatus::NONE; in copyTo()
336 static ErrorStatus copyFromInternal(const hidl_memory& src, const hidl_vec<uint32_t>& dimensions, in copyFromInternal()
342 return ErrorStatus::GENERAL_FAILURE; in copyFromInternal()
344 const ErrorStatus validationStatus = in copyFromInternal()
346 if (validationStatus != ErrorStatus::NONE) { in copyFromInternal()
351 return ErrorStatus::NONE; in copyFromInternal()
354 Return<ErrorStatus> SampleBuffer::copyFrom(const hidl_memory& src, in copyFrom()
357 if (status == ErrorStatus::NONE) { in copyFrom()
370 static std::tuple<ErrorStatus, std::vector<RunTimePoolInfo>,
385 return {ErrorStatus::GENERAL_FAILURE, {}, {}}; in createRunTimePoolInfos()
393 return {ErrorStatus::INVALID_ARGUMENT, {}, {}}; in createRunTimePoolInfos()
397 if (validationStatus != ErrorStatus::NONE) { in createRunTimePoolInfos()
405 return {ErrorStatus::NONE, std::move(requestPoolInfos), std::move(bufferWrappers)}; in createRunTimePoolInfos()
408 static ErrorStatus updateDeviceMemories( in updateDeviceMemories()
409 ErrorStatus status, const Request& request, in updateDeviceMemories()
412 if (status == ErrorStatus::NONE) { in updateDeviceMemories()
418 return ErrorStatus::GENERAL_FAILURE; in updateDeviceMemories()
429 } else if (status == ErrorStatus::OUTPUT_INSUFFICIENT_SIZE) { in updateDeviceMemories()
440 return ErrorStatus::GENERAL_FAILURE; in updateDeviceMemories()
445 return ErrorStatus::NONE; in updateDeviceMemories()
461 if (poolStatus != ErrorStatus::NONE) { in asyncExecute()
481 ErrorStatus executionStatus = convertResultCodeToErrorStatus(n); in asyncExecute()
485 const ErrorStatus updateStatus = in asyncExecute()
487 if (updateStatus != ErrorStatus::NONE) { in asyncExecute()
492 if (measure == MeasureTiming::YES && executionStatus == ErrorStatus::NONE) { in asyncExecute()
504 ErrorStatus executeBase(const Request& request, MeasureTiming measure, const Model& model, in executeBase()
518 return ErrorStatus::INVALID_ARGUMENT; in executeBase()
521 notify(callback, ErrorStatus::INVALID_ARGUMENT, {}, kNoTiming); in executeBase()
522 return ErrorStatus::INVALID_ARGUMENT; in executeBase()
526 notify(callback, ErrorStatus::MISSED_DEADLINE_PERSISTENT, {}, kNoTiming); in executeBase()
527 return ErrorStatus::NONE; in executeBase()
538 return ErrorStatus::NONE; in executeBase()
541 Return<V1_0::ErrorStatus> SamplePreparedModel::execute( in execute()
543 const ErrorStatus status = executeBase(convertToV1_3(request), MeasureTiming::NO, mModel, in execute()
548 Return<V1_0::ErrorStatus> SamplePreparedModel::execute_1_2( in execute_1_2()
551 const ErrorStatus status = executeBase(convertToV1_3(request), measure, mModel, *mDriver, this, in execute_1_2()
556 Return<V1_3::ErrorStatus> SamplePreparedModel::execute_1_3( in execute_1_3()
564 static std::tuple<ErrorStatus, hidl_vec<OutputShape>, Timing> executeSynchronouslyBase( in executeSynchronouslyBase()
577 return {ErrorStatus::INVALID_ARGUMENT, {}, kNoTiming}; in executeSynchronouslyBase()
581 return {ErrorStatus::MISSED_DEADLINE_PERSISTENT, {}, kNoTiming}; in executeSynchronouslyBase()
588 if (poolStatus != ErrorStatus::NONE) { in executeSynchronouslyBase()
606 ErrorStatus executionStatus = convertResultCodeToErrorStatus(n); in executeSynchronouslyBase()
610 const ErrorStatus updateStatus = in executeSynchronouslyBase()
612 if (updateStatus != ErrorStatus::NONE) { in executeSynchronouslyBase()
616 if (measure == MeasureTiming::YES && executionStatus == ErrorStatus::NONE) { in executeSynchronouslyBase()
657 cb(ErrorStatus::INVALID_ARGUMENT, hidl_handle(nullptr), nullptr); in executeFenced()
662 cb(ErrorStatus::MISSED_DEADLINE_PERSISTENT, hidl_handle(nullptr), nullptr); in executeFenced()
669 cb(ErrorStatus::INVALID_ARGUMENT, hidl_handle(nullptr), nullptr); in executeFenced()
675 cb(ErrorStatus::GENERAL_FAILURE, hidl_handle(nullptr), nullptr); in executeFenced()
696 if (poolStatus != ErrorStatus::NONE) { in executeFenced()
715 ErrorStatus executionStatus = convertResultCodeToErrorStatus(n); in executeFenced()
716 if (executionStatus != ErrorStatus::NONE) { in executeFenced()
722 if (executionStatus == ErrorStatus::NONE) { in executeFenced()
773 std::tuple<V1_0::ErrorStatus, hidl_vec<OutputShape>, Timing> execute( in execute()
785 return {V1_0::ErrorStatus::INVALID_ARGUMENT, {}, kNoTiming}; in execute()
800 return {V1_0::ErrorStatus::INVALID_ARGUMENT, {}, kNoTiming}; in execute()
818 V1_0::ErrorStatus executionStatus = convertToV1_0(convertResultCodeToErrorStatus(n)); in execute()
820 if (measure == MeasureTiming::YES && executionStatus == V1_0::ErrorStatus::NONE) { in execute()
881 cb(V1_0::ErrorStatus::GENERAL_FAILURE, {}); in configureExecutionBurst()
883 cb(V1_0::ErrorStatus::NONE, burst); in configureExecutionBurst()