/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | Utils.cpp | 26 uint32_t sizeOfData(V1_3::OperandType type) { in sizeOfData() 28 case V1_3::OperandType::FLOAT32: in sizeOfData() 29 case V1_3::OperandType::INT32: in sizeOfData() 30 case V1_3::OperandType::UINT32: in sizeOfData() 31 case V1_3::OperandType::TENSOR_FLOAT32: in sizeOfData() 32 case V1_3::OperandType::TENSOR_INT32: in sizeOfData() 34 case V1_3::OperandType::TENSOR_QUANT16_SYMM: in sizeOfData() 35 case V1_3::OperandType::TENSOR_FLOAT16: in sizeOfData() 36 case V1_3::OperandType::FLOAT16: in sizeOfData() 37 case V1_3::OperandType::TENSOR_QUANT16_ASYMM: in sizeOfData() [all …]
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/include/nnapi/hal/ |
D | PreparedModel.h | 40 class PreparedModel final : public V1_3::IPreparedModel { 48 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request& request, V1_2::MeasureTiming measure, 49 const V1_3::OptionalTimePoint& deadline, 50 const V1_3::OptionalTimeoutDuration& loopTimeoutDuration, 51 const sp<V1_3::IExecutionCallback>& callback) override; 54 Return<void> executeSynchronously_1_3(const V1_3::Request& request, V1_2::MeasureTiming measure, 55 const V1_3::OptionalTimePoint& deadline, 56 const V1_3::OptionalTimeoutDuration& loopTimeoutDuration, 63 Return<void> executeFenced(const V1_3::Request& request, const hidl_vec<hidl_handle>& waitFor, 64 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline, [all …]
|
D | Device.h | 42 class Device final : public V1_3::IDevice { 59 Return<void> getSupportedOperations_1_3(const V1_3::Model& model, 71 Return<V1_3::ErrorStatus> prepareModel_1_3( 72 const V1_3::Model& model, V1_1::ExecutionPreference preference, V1_3::Priority priority, 73 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, 75 const sp<V1_3::IPreparedModelCallback>& callback) override; 79 Return<V1_3::ErrorStatus> prepareModelFromCache_1_3( 80 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, 82 const sp<V1_3::IPreparedModelCallback>& callback) override; 84 Return<void> allocate(const V1_3::BufferDesc& desc, [all …]
|
D | Buffer.h | 32 class Buffer final : public V1_3::IBuffer { 36 Return<V1_3::ErrorStatus> copyTo(const hidl_memory& dst) override; 37 Return<V1_3::ErrorStatus> copyFrom(const hidl_memory& src,
|
D | Adapter.h | 53 sp<V1_3::IDevice> adapt(nn::SharedDevice device, Executor executor); 63 sp<V1_3::IDevice> adapt(nn::SharedDevice device);
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | Conversions.h | 28 GeneralResult<OperandType> unvalidatedConvert(const hal::V1_3::OperandType& operandType); 29 GeneralResult<OperationType> unvalidatedConvert(const hal::V1_3::OperationType& operationType); 30 GeneralResult<Priority> unvalidatedConvert(const hal::V1_3::Priority& priority); 31 GeneralResult<Capabilities> unvalidatedConvert(const hal::V1_3::Capabilities& capabilities); 33 const hal::V1_3::Capabilities::OperandPerformance& operandPerformance); 34 GeneralResult<Operation> unvalidatedConvert(const hal::V1_3::Operation& operation); 36 const hal::V1_3::OperandLifeTime& operandLifeTime); 37 GeneralResult<Operand> unvalidatedConvert(const hal::V1_3::Operand& operand); 38 GeneralResult<Model> unvalidatedConvert(const hal::V1_3::Model& model); 39 GeneralResult<Model::Subgraph> unvalidatedConvert(const hal::V1_3::Subgraph& subgraph); [all …]
|
D | Buffer.h | 30 namespace android::hardware::neuralnetworks::V1_3::utils { 38 sp<V1_3::IBuffer> buffer, nn::Request::MemoryDomainToken token); 40 Buffer(PrivateConstructorTag tag, sp<V1_3::IBuffer> buffer, 50 const sp<V1_3::IBuffer> kBuffer;
|
D | Device.h | 38 namespace android::hardware::neuralnetworks::V1_3::utils { 46 sp<V1_3::IDevice> device); 51 sp<V1_3::IDevice> device, hal::utils::DeathHandler deathHandler); 90 const sp<V1_3::IDevice> kDevice;
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | MockPreparedModel.h | 26 namespace android::hardware::neuralnetworks::V1_3::utils { 60 MOCK_METHOD(Return<V1_3::ErrorStatus>, execute_1_3, 61 (const V1_3::Request& request, V1_2::MeasureTiming measure, 62 const V1_3::OptionalTimePoint& deadline, 63 const V1_3::OptionalTimeoutDuration& loopTimeoutDuration, 64 const sp<V1_3::IExecutionCallback>& callback), 67 (const V1_3::Request& request, V1_2::MeasureTiming measure, 68 const V1_3::OptionalTimePoint& deadline, 69 const V1_3::OptionalTimeoutDuration& loopTimeoutDuration, 73 (const V1_3::Request& request, const hidl_vec<hidl_handle>& waitFor, [all …]
|
D | MockDevice.h | 25 namespace android::hardware::neuralnetworks::V1_3::utils { 79 (const V1_3::Model& model, getSupportedOperations_1_3_cb cb), (override)); 80 MOCK_METHOD(Return<V1_3::ErrorStatus>, prepareModel_1_3, 81 (const V1_3::Model& model, V1_1::ExecutionPreference preference, 82 V1_3::Priority priority, const V1_3::OptionalTimePoint& deadline, 84 const CacheToken& token, const sp<V1_3::IPreparedModelCallback>& callback), 86 MOCK_METHOD(Return<V1_3::ErrorStatus>, prepareModelFromCache_1_3, 87 (const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, 89 const sp<V1_3::IPreparedModelCallback>& callback), 92 (const V1_3::BufferDesc& desc, [all …]
|
D | PreparedModelTest.cpp | 34 namespace android::hardware::neuralnetworks::V1_3::utils { namespace 41 const sp<V1_3::IPreparedModel> kInvalidPreparedModel; 56 auto makeExecuteSynchronously(V1_3::ErrorStatus status, in makeExecuteSynchronously() 60 const V1_3::Request& /*request*/, V1_2::MeasureTiming /*measureTiming*/, in makeExecuteSynchronously() 61 const V1_3::OptionalTimePoint& /*deadline*/, in makeExecuteSynchronously() 62 const V1_3::OptionalTimeoutDuration& /*loopTimeoutDuration*/, in makeExecuteSynchronously() 63 const V1_3::IPreparedModel::executeSynchronously_1_3_cb& cb) { in makeExecuteSynchronously() 68 auto makeExecuteAsynchronously(V1_3::ErrorStatus launchStatus, V1_3::ErrorStatus returnStatus, in makeExecuteAsynchronously() 72 const V1_3::Request& /*request*/, V1_2::MeasureTiming /*measureTiming*/, in makeExecuteAsynchronously() 73 const V1_3::OptionalTimePoint& /*deadline*/, in makeExecuteAsynchronously() [all …]
|
D | DeviceTest.cpp | 33 namespace android::hardware::neuralnetworks::V1_3::utils { namespace 53 const sp<V1_3::IDevice> kInvalidDevice; 77 V1_3::ErrorStatus::NONE, in createMockDevice() 78 V1_3::Capabilities{ in createMockDevice() 117 auto makePreparedModelReturn(V1_3::ErrorStatus launchStatus, V1_3::ErrorStatus returnStatus, in makePreparedModelReturn() 120 const V1_3::Model& /*model*/, V1_1::ExecutionPreference /*preference*/, in makePreparedModelReturn() 121 V1_3::Priority /*priority*/, const V1_3::OptionalTimePoint& /*deadline*/, in makePreparedModelReturn() 124 const CacheToken& /*token*/, const sp<V1_3::IPreparedModelCallback>& cb) in makePreparedModelReturn() 125 -> hardware::Return<V1_3::ErrorStatus> { in makePreparedModelReturn() 130 auto makePreparedModelFromCacheReturn(V1_3::ErrorStatus launchStatus, in makePreparedModelFromCacheReturn() [all …]
|
D | MockBuffer.h | 25 namespace android::hardware::neuralnetworks::V1_3::utils { 32 MOCK_METHOD(Return<V1_3::ErrorStatus>, copyTo, (const hidl_memory& dst), (override)); 33 MOCK_METHOD(Return<V1_3::ErrorStatus>, copyFrom,
|
D | BufferTest.cpp | 31 namespace android::hardware::neuralnetworks::V1_3::utils { namespace 40 const sp<V1_3::IBuffer> kInvalidBuffer; 44 std::function<hardware::Return<V1_3::ErrorStatus>()> makeFunctionReturn(V1_3::ErrorStatus status) { in makeFunctionReturn() 45 return [status]() -> hardware::Return<V1_3::ErrorStatus> { return status; }; in makeFunctionReturn() 52 const auto makeSuccessful = makeFunctionReturn(V1_3::ErrorStatus::NONE); 53 const auto makeGeneralError = makeFunctionReturn(V1_3::ErrorStatus::GENERAL_FAILURE);
|
/hardware/interfaces/neuralnetworks/utils/adapter/hidl/src/ |
D | PreparedModel.cpp | 58 class FencedExecutionCallback final : public V1_3::IFencedExecutionCallback { 70 V1_3::utils::convert(code).value_or(V1_3::ErrorStatus::GENERAL_FAILURE); in getExecutionInfo() 76 const auto hidlTimingLaunched = V1_3::utils::convert(timingLaunched).value(); in getExecutionInfo() 77 const auto hidlTimingFenced = V1_3::utils::convert(timingFenced).value(); in getExecutionInfo() 78 cb(V1_3::ErrorStatus::NONE, hidlTimingLaunched, hidlTimingFenced); in getExecutionInfo() 112 void notify(V1_3::IExecutionCallback* callback, nn::ErrorStatus status, in notify() 115 const auto hidlStatus = V1_3::utils::convert(status).value(); in notify() 116 const auto hidlOutputShapes = V1_3::utils::convert(outputShapes).value(); in notify() 117 const auto hidlTiming = V1_3::utils::convert(timing).value(); in notify() 179 const V1_3::Request& request, V1_2::MeasureTiming measure, in execute_1_3() [all …]
|
D | Device.cpp | 95 void notify(V1_3::IPreparedModelCallback* callback, nn::ErrorStatus status, in notify() 98 const auto hidlStatus = V1_3::utils::convert(status).value(); in notify() 197 const nn::SharedDevice& device, const Executor& executor, const V1_3::Model& model, in prepareModel_1_3() 198 V1_1::ExecutionPreference preference, V1_3::Priority priority, in prepareModel_1_3() 199 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModel_1_3() 201 const sp<V1_3::IPreparedModelCallback>& callback) { in prepareModel_1_3() 252 const V1_3::OptionalTimePoint& deadline, const hidl_vec<hidl_handle>& modelCache, in prepareModelFromCache_1_3() 254 const sp<V1_3::IPreparedModelCallback>& callback) { in prepareModelFromCache_1_3() 274 nn::GeneralResult<nn::SharedPreparedModel> downcast(const sp<V1_3::IPreparedModel>& preparedModel) { in downcast() 289 const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels) { in downcastAll() [all …]
|
D | Buffer.cpp | 62 Return<V1_3::ErrorStatus> Buffer::copyTo(const hidl_memory& dst) { in copyTo() 67 return V1_3::utils::convert(code).value(); in copyTo() 69 return V1_3::ErrorStatus::NONE; in copyTo() 72 Return<V1_3::ErrorStatus> Buffer::copyFrom(const hidl_memory& src, in copyFrom() 78 return V1_3::utils::convert(code).value(); in copyFrom() 80 return V1_3::ErrorStatus::NONE; in copyFrom()
|
/hardware/interfaces/wifi/supplicant/1.3/vts/functional/ |
D | supplicant_hidl_test_utils_1_3.h | 24 android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicantStaIface> 26 const android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant>& 28 android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicantStaNetwork> 30 const android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant>& 32 android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant> 35 android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicantStaIface> 47 android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant>
|
D | supplicant_hidl_test_utils_1_3.cpp | 25 using ::android::hardware::wifi::supplicant::V1_3::ISupplicant; 26 using ::android::hardware::wifi::supplicant::V1_3::ISupplicantStaIface; 27 using ::android::hardware::wifi::supplicant::V1_3::ISupplicantStaNetwork; 30 const android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant>& in getSupplicantStaIface_1_3() 36 const android::sp<android::hardware::wifi::supplicant::V1_3::ISupplicant>& in createSupplicantStaNetwork_1_3()
|
D | supplicant_sta_iface_hidl_test.cpp | 49 using ::android::hardware::wifi::supplicant::V1_3::ConnectionCapabilities; 50 using ::android::hardware::wifi::supplicant::V1_3::DppSuccessCode; 51 using ::android::hardware::wifi::supplicant::V1_3::ISupplicant; 52 using ::android::hardware::wifi::supplicant::V1_3::ISupplicantStaIface; 53 using ::android::hardware::wifi::supplicant::V1_3::ISupplicantStaIfaceCallback; 54 using ::android::hardware::wifi::supplicant::V1_3::ISupplicantStaNetwork; 55 using ::android::hardware::wifi::supplicant::V1_3::WpaDriverCapabilitiesMask; 235 ::android::hardware::wifi::supplicant::V1_3::DppProgressCode /* code */) in onDppProgress_1_3() 240 ::android::hardware::wifi::supplicant::V1_3::DppFailureCode /* code */, in onDppFailure_1_3() 287 ::android::hardware::wifi::supplicant::V1_3::DppProgressCode code) in onDppProgress_1_3() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/include/1.3/ |
D | Utils.h | 25 inline constexpr V1_3::Priority kDefaultPriority = V1_3::Priority::MEDIUM; 30 uint32_t sizeOfData(V1_3::OperandType type); 37 uint32_t sizeOfData(const V1_3::Operand& operand); 41 namespace android::hardware::neuralnetworks::V1_3 {
|
D | Callbacks.h | 49 namespace android::hardware::neuralnetworks::V1_3::implementation { 142 Return<void> notify_1_3(V1_3::ErrorStatus status, 143 const sp<V1_3::IPreparedModel>& preparedModel) override; 300 Return<void> notify_1_3(V1_3::ErrorStatus status, 330 V1_3::ErrorStatus getStatus() const; 377 Return<void> notifyInternal(V1_3::ErrorStatus errorStatus, 384 V1_3::ErrorStatus mErrorStatus = V1_3::ErrorStatus::GENERAL_FAILURE;
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Conversions.cpp | 91 NN_TRY(hal::V1_3::utils::compliantVersion(canonical)); in validatedConvert() 108 GeneralResult<OperandType> unvalidatedConvert(const hal::V1_3::OperandType& operandType) { in unvalidatedConvert() 112 GeneralResult<OperationType> unvalidatedConvert(const hal::V1_3::OperationType& operationType) { in unvalidatedConvert() 116 GeneralResult<Priority> unvalidatedConvert(const hal::V1_3::Priority& priority) { in unvalidatedConvert() 120 GeneralResult<Capabilities> unvalidatedConvert(const hal::V1_3::Capabilities& capabilities) { in unvalidatedConvert() 123 [](const hal::V1_3::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert() 152 const hal::V1_3::Capabilities::OperandPerformance& operandPerformance) { in unvalidatedConvert() 161 GeneralResult<Operation> unvalidatedConvert(const hal::V1_3::Operation& operation) { in unvalidatedConvert() 171 const hal::V1_3::OperandLifeTime& operandLifeTime) { in unvalidatedConvert() 175 GeneralResult<Operand> unvalidatedConvert(const hal::V1_3::Operand& operand) { in unvalidatedConvert() [all …]
|
D | Buffer.cpp | 39 namespace android::hardware::neuralnetworks::V1_3::utils { namespace 42 sp<V1_3::IBuffer> buffer, nn::Request::MemoryDomainToken token) { in create() 53 Buffer::Buffer(PrivateConstructorTag /*tag*/, sp<V1_3::IBuffer> buffer, in Buffer()
|
/hardware/interfaces/vibrator/1.3/example/ |
D | service.cpp | 25 using android::hardware::vibrator::V1_3::IVibrator; 26 using android::hardware::vibrator::V1_3::implementation::Vibrator;
|