/frameworks/ml/nn/runtime/ |
D | Callbacks.cpp | 35 Return<void> PreparedModelCallback::notifyInternal(bool deadObject, ErrorStatus errorStatus, in notifyInternal() 56 Return<void> PreparedModelCallback::notify(V1_0::ErrorStatus errorStatus, in notify() 58 return notifyInternal(false, static_cast<ErrorStatus>(errorStatus), preparedModel); in notify() 61 Return<void> PreparedModelCallback::notify_1_2(V1_0::ErrorStatus errorStatus, in notify_1_2() 63 return notifyInternal(false, static_cast<ErrorStatus>(errorStatus), preparedModel); in notify_1_2() 66 Return<void> PreparedModelCallback::notify_1_3(ErrorStatus errorStatus, in notify_1_3() 72 notifyInternal(true, ErrorStatus::GENERAL_FAILURE, nullptr); in notifyAsDeadObject() 80 ErrorStatus PreparedModelCallback::getStatus() const { in getStatus() 97 Return<void> ExecutionCallback::notify(V1_0::ErrorStatus errorStatus) { in notify() 98 return notifyInternal(false, static_cast<ErrorStatus>(errorStatus), {}, kNoTiming); in notify() [all …]
|
D | Callbacks.h | 88 hal::Return<void> notify(hal::V1_0::ErrorStatus status, 114 hal::Return<void> notify_1_2(hal::V1_0::ErrorStatus status, 142 hal::Return<void> notify_1_3(hal::V1_3::ErrorStatus status, 172 hal::V1_3::ErrorStatus getStatus() const; 194 hal::Return<void> notifyInternal(bool deadObject, hal::ErrorStatus errorStatus, 201 hal::ErrorStatus mErrorStatus = hal::ErrorStatus::GENERAL_FAILURE; 221 std::function<hal::ErrorStatus(hal::ErrorStatus, const std::vector<hal::OutputShape>&)>; 247 hal::Return<void> notify(hal::V1_0::ErrorStatus status) override; 282 hal::Return<void> notify_1_2(hal::V1_0::ErrorStatus status, 321 hal::Return<void> notify_1_3(hal::V1_3::ErrorStatus status, [all …]
|
D | VersionedInterfaces.cpp | 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() [all …]
|
D | Event.h | 31 virtual hal::ErrorStatus getStatus() const = 0; 43 hal::ErrorStatus getStatus() const override { return kExecutionCallback->getStatus(); } in getStatus() 72 hal::ErrorStatus getStatus() const override { in getStatus() 73 auto error = hal::ErrorStatus::NONE; in getStatus() 75 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus() 79 [&error](hal::ErrorStatus status, hal::Timing, hal::Timing) { in getStatus() 83 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus()
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 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() [all …]
|
D | SampleDriverUtils.h | 28 void notify(const sp<hal::V1_0::IPreparedModelCallback>& callback, const hal::ErrorStatus& status, 31 void notify(const sp<hal::V1_2::IPreparedModelCallback>& callback, const hal::ErrorStatus& status, 34 void notify(const sp<hal::V1_3::IPreparedModelCallback>& callback, const hal::ErrorStatus& status, 37 void notify(const sp<hal::V1_0::IExecutionCallback>& callback, const hal::ErrorStatus& status, 40 void notify(const sp<hal::V1_2::IExecutionCallback>& callback, const hal::ErrorStatus& status, 43 void notify(const sp<hal::V1_3::IExecutionCallback>& callback, const hal::ErrorStatus& status, 47 hal::ErrorStatus prepareModelBase(const T_Model& model, const SampleDriver* driver, 55 return hal::ErrorStatus::INVALID_ARGUMENT; 63 notify(callback, hal::ErrorStatus::INVALID_ARGUMENT, nullptr); 64 return hal::ErrorStatus::INVALID_ARGUMENT; [all …]
|
D | SampleDriverUtils.cpp | 28 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() 36 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() 45 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const ErrorStatus& status, in notify() 54 void notify(const sp<V1_0::IExecutionCallback>& callback, const ErrorStatus& status, in notify() 62 void notify(const sp<V1_2::IExecutionCallback>& callback, const ErrorStatus& status, in notify() 70 void notify(const sp<V1_3::IExecutionCallback>& callback, const ErrorStatus& status, in notify()
|
D | SampleDriver.h | 46 hal::Return<hal::ErrorStatus> copyTo(const hal::hidl_memory& dst) override; 47 hal::Return<hal::ErrorStatus> copyFrom(const hal::hidl_memory& src, 82 hal::Return<hal::V1_0::ErrorStatus> prepareModel( 85 hal::Return<hal::V1_0::ErrorStatus> prepareModel_1_1( 88 hal::Return<hal::V1_0::ErrorStatus> prepareModel_1_2( 93 hal::Return<hal::V1_3::ErrorStatus> prepareModel_1_3( 99 hal::Return<hal::V1_0::ErrorStatus> prepareModelFromCache( 103 hal::Return<hal::V1_3::ErrorStatus> prepareModelFromCache_1_3( 141 hal::Return<hal::V1_0::ErrorStatus> execute( 144 hal::Return<hal::V1_0::ErrorStatus> execute_1_2( [all …]
|
D | SampleDriverPartial.cpp | 43 cb(ErrorStatus::NONE, supported); in getSupportedOperations_1_3() 46 cb(ErrorStatus::INVALID_ARGUMENT, supported); in getSupportedOperations_1_3() 51 Return<ErrorStatus> SampleDriverPartial::prepareModel_1_3( in prepareModel_1_3()
|
/frameworks/ml/nn/runtime/test/ |
D | TestCompilationCaching.cpp | 43 ::std::ostream& operator<<(::std::ostream& os, ErrorStatus errorStatus) { in operator <<() 69 bool canDeviceBeRegistered(ErrorStatus error, uint32_t numModelCache, uint32_t numDataCache) { in canDeviceBeRegistered() 72 return error == ErrorStatus::NONE && numModelCache <= maxNumCacheFiles && in canDeviceBeRegistered() 101 Return<V1_0::ErrorStatus> execute(const V1_0::Request&, in execute() 103 return V1_0::ErrorStatus::DEVICE_UNAVAILABLE; in execute() 105 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request&, MeasureTiming, in execute_1_2() 107 return V1_0::ErrorStatus::DEVICE_UNAVAILABLE; in execute_1_2() 109 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request&, MeasureTiming, in execute_1_3() 113 return V1_3::ErrorStatus::DEVICE_UNAVAILABLE; in execute_1_3() 117 cb(V1_0::ErrorStatus::DEVICE_UNAVAILABLE, {}, kBadTiming); in executeSynchronously() [all …]
|
D | TestExecution.cpp | 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() [all …]
|
D | TestVersionedInterfaces.cpp | 68 makeCallbackReturn(V1_0::ErrorStatus::NONE, V1_0::Capabilities{}); in create() 70 makeCallbackReturn(V1_0::ErrorStatus::NONE, V1_1::Capabilities{}); in create() 72 makeCallbackReturn(V1_0::ErrorStatus::NONE, "Google-MockV1"); in create() 73 const auto getType_ret = makeCallbackReturn(V1_0::ErrorStatus::NONE, DeviceType::OTHER); in create() 75 makeCallbackReturn(V1_0::ErrorStatus::NONE, V1_2::Capabilities{}); in create() 77 makeCallbackReturn(V1_0::ErrorStatus::NONE, hidl_vec<Extension>{}); in create() 79 V1_0::ErrorStatus::NONE, kMaxNumberOfCacheFiles, kMaxNumberOfCacheFiles); in create() 81 makeCallbackReturn(V1_3::ErrorStatus::NONE, V1_3::Capabilities{}); in create() 122 MOCK_METHOD(Return<V1_0::ErrorStatus>, prepareModel, 131 MOCK_METHOD(Return<V1_0::ErrorStatus>, prepareModel_1_1, [all …]
|
D | TestIntrospectionControl.cpp | 79 cb(V1_3::ErrorStatus::NONE, mCapabilities); in getCapabilities_1_3() 86 cb(V1_3::ErrorStatus::INVALID_ARGUMENT, std::vector<bool>()); in getSupportedOperations_1_3() 94 cb(V1_3::ErrorStatus::NONE, supported); in getSupportedOperations_1_3() 423 Return<V1_0::ErrorStatus> execute(const V1_0::Request&, in execute() 429 callback->notify(V1_0::ErrorStatus::NONE); in execute() 431 return V1_0::ErrorStatus::NONE; in execute() 434 callback->notify(V1_0::ErrorStatus::GENERAL_FAILURE); in execute() 435 return V1_0::ErrorStatus::GENERAL_FAILURE; in execute() 439 callback->notify(V1_0::ErrorStatus::GENERAL_FAILURE); in execute() 441 return V1_0::ErrorStatus::NONE; in execute() [all …]
|
/frameworks/ml/nn/common/ |
D | BufferTracker.cpp | 61 ErrorStatus ManagedBuffer::validateRequest(uint32_t poolIndex, const Request& request, in validateRequest() 75 return ErrorStatus::INVALID_ARGUMENT; in validateRequest() 80 return ErrorStatus::GENERAL_FAILURE; in validateRequest() 87 return ErrorStatus::INVALID_ARGUMENT; in validateRequest() 97 return ErrorStatus::INVALID_ARGUMENT; in validateRequest() 102 return ErrorStatus::INVALID_ARGUMENT; in validateRequest() 109 return ErrorStatus::INVALID_ARGUMENT; in validateRequest() 113 return ErrorStatus::NONE; in validateRequest() 116 ErrorStatus ManagedBuffer::validateCopyFrom(const std::vector<uint32_t>& dimensions, in validateCopyFrom() 121 return ErrorStatus::INVALID_ARGUMENT; in validateCopyFrom() [all …]
|
/frameworks/native/services/vr/bufferhubd/ |
D | producer_queue_channel.cpp | 7 using android::pdx::ErrorStatus; 47 return ErrorStatus(EINVAL); in Create() 54 return ErrorStatus(-error); in Create() 117 return ErrorStatus(ENOMEM); in OnCreateConsumerQueue() 136 return ErrorStatus(ENOMEM); in OnCreateConsumerQueue() 165 return ErrorStatus(EINVAL); in OnProducerQueueAllocateBuffers() 174 return ErrorStatus(EINVAL); in OnProducerQueueAllocateBuffers() 189 return ErrorStatus(status.error()); in OnProducerQueueAllocateBuffers() 208 return ErrorStatus(E2BIG); in AllocateBuffer() 220 return ErrorStatus(status.error()); in AllocateBuffer() [all …]
|
D | consumer_channel.cpp | 11 using android::pdx::ErrorStatus; 105 return ErrorStatus(EPIPE); in OnGetBuffer() 113 return ErrorStatus(EPIPE); in OnConsumerAcquire() 120 return ErrorStatus(EBUSY); in OnConsumerAcquire() 136 return ErrorStatus(EPIPE); in OnConsumerRelease() 143 return ErrorStatus(EBUSY); in OnConsumerRelease()
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | status.h | 12 struct ErrorStatus { struct 15 ErrorStatus(int error) : error_{error} {} in ErrorStatus() function 42 Status(const ErrorStatus& error_status) : error_{error_status.error()} {} in Status() 118 inline ErrorStatus error_status() const { return ErrorStatus{error()}; } in error_status() 127 message = ErrorStatus::ErrorToString(error_); in GetErrorMessage() 142 Status(const ErrorStatus& error_status) : error_{error_status.error()} {} in Status() 159 inline ErrorStatus error_status() const { return ErrorStatus{error()}; } in error_status() 163 message = ErrorStatus::ErrorToString(error_); in GetErrorMessage()
|
/frameworks/native/libs/vr/libpdx/ |
D | service.cpp | 82 return ErrorStatus{ESHUTDOWN}; in ReadVector() 98 return ErrorStatus{EIO}; in ReadVectorAll() 101 return ErrorStatus{ESHUTDOWN}; in ReadVectorAll() 111 return ErrorStatus{ESHUTDOWN}; in Read() 121 return ErrorStatus{ESHUTDOWN}; in WriteVector() 137 return ErrorStatus{EIO}; in WriteVectorAll() 140 return ErrorStatus{ESHUTDOWN}; in WriteVectorAll() 150 return ErrorStatus{ESHUTDOWN}; in Write() 159 return ErrorStatus{ESHUTDOWN}; in PushFileHandle() 168 return ErrorStatus{ESHUTDOWN}; in PushFileHandle() [all …]
|
D | status_tests.cpp | 7 using android::pdx::ErrorStatus; 39 Status<int> status_int = ErrorStatus(12); in TEST() 45 Status<std::string> status_str = ErrorStatus(EIO); in TEST() 52 Status<int> status = ErrorStatus(EIO); in TEST() 55 status = ErrorStatus(EINVAL); in TEST() 64 status2 = ErrorStatus(13); in TEST()
|
/frameworks/native/libs/vr/libbufferhubqueue/ |
D | buffer_hub_queue_client.cpp | 24 using android::pdx::ErrorStatus; 82 return ErrorStatus(status.error()); in ImportQueue() 120 return ErrorStatus(status.error()); in CreateConsumerQueueHandle() 140 return ErrorStatus(EINVAL); in CreateConsumerQueueParcelable() 215 return ErrorStatus(ENOENT); in HandleBufferEvent() 284 return ErrorStatus(E2BIG); in AddBuffer() 304 return ErrorStatus(-ret); in AddBuffer() 323 return ErrorStatus(-ret); in RemoveBuffer() 358 return ErrorStatus(E2BIG); in Enqueue() 370 return ErrorStatus(ETIMEDOUT); in Dequeue() [all …]
|
/frameworks/native/services/vr/performanced/ |
D | performance_service.cpp | 24 using android::pdx::ErrorStatus; 254 return ErrorStatus(EINVAL); in OnSetSchedulerPolicy() 264 return ErrorStatus(EPERM); in OnSetSchedulerPolicy() 320 return ErrorStatus(EINVAL); in OnSetSchedulerPolicy() 328 return ErrorStatus(EINVAL); in OnSetCpuPartition() 330 return ErrorStatus(EPERM); in OnSetCpuPartition() 336 return ErrorStatus(EPERM); in OnSetCpuPartition() 341 return ErrorStatus(ENOENT); in OnSetCpuPartition() 354 return ErrorStatus(EINVAL); in OnSetSchedulerClass() 363 return ErrorStatus(EPERM); in OnSetSchedulerClass() [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | client_channel_factory.cpp | 71 return ErrorStatus(errno); in Connect() 85 return ErrorStatus(ETIMEDOUT); in Connect() 94 return ErrorStatus(status.error()); in Connect() 120 return ErrorStatus(errno); in Connect() 133 return ErrorStatus(EIO); in Connect() 152 return ErrorStatus(EIO); in Connect() 163 return ErrorStatus(EIO); in Connect()
|
D | ipc_helper.cpp | 188 return ErrorStatus{EINVAL}; in Send() 268 return ErrorStatus{EOPNOTSUPP}; in PushChannelHandle() 272 return ErrorStatus{EOPNOTSUPP}; in PushChannelHandle() 276 return ErrorStatus{EOPNOTSUPP}; in PushChannelHandle() 416 return ErrorStatus(EINVAL); in WaitForEndpoint() 421 return ErrorStatus(errno); in WaitForEndpoint() 450 return ErrorStatus(errno); in WaitForEndpoint() 462 return ErrorStatus(errno); in WaitForEndpoint() 474 return ErrorStatus(errno); in WaitForEndpoint() 481 return ErrorStatus(ret == 0 ? ETIMEDOUT : errno); in WaitForEndpoint() [all …]
|
/frameworks/native/libs/vr/libvrflinger/ |
D | display_service.cpp | 23 using android::pdx::ErrorStatus; 208 return ErrorStatus(EINVAL); in OnGetConfigurationData() 212 return ErrorStatus(ENOENT); in OnGetConfigurationData() 217 return ErrorStatus(errno); in OnGetConfigurationData() 229 return ErrorStatus(EINVAL); in OnCreateSurface() 248 return ErrorStatus(surface_status.error()); in OnCreateSurface() 284 return ErrorStatus(EPERM); in OnSetupGlobalBuffer() 299 return ErrorStatus(EPERM); in OnDeleteGlobalBuffer() 311 return pdx::ErrorStatus(EINVAL); in OnGetGlobalBuffer() 324 return ErrorStatus(EINVAL); in HandleSurfaceMessage() [all …]
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_display_manager-test.cpp | 23 using android::pdx::ErrorStatus; 127 return ErrorStatus(-ret); in CreateApplicationSurface() 141 return ErrorStatus(-ret); in CreateSurfaceQueue() 151 return ErrorStatus(-error); in GetConfigData() 155 return ErrorStatus(EINVAL); in GetConfigData() 180 return ErrorStatus(-ret); in GetReadBufferQueue() 189 return ErrorStatus(-ret); in UpdateSurfaceState() 198 return ErrorStatus(-display_manager_event_fd_); in WaitForUpdate() 203 return ErrorStatus(errno); in WaitForUpdate() 205 return ErrorStatus(ETIMEDOUT); in WaitForUpdate() [all …]
|