/frameworks/ml/nn/common/include/ |
D | HalInterfaces.h | 61 namespace V1_3 = hardware::neuralnetworks::V1_3; variable 76 using V1_3::BufferDesc; 77 using V1_3::BufferRole; 78 using V1_3::Capabilities; 79 using V1_3::ErrorStatus; 80 using V1_3::IBuffer; 81 using V1_3::IDevice; 82 using V1_3::IExecutionCallback; 83 using V1_3::IFencedExecutionCallback; 84 using V1_3::IPreparedModel; [all …]
|
D | Utils.h | 201 struct VersionedType<HalVersion::V1_3> { 202 using OperandPerformance = hal::V1_3::Capabilities::OperandPerformance; 203 using OperandType = hal::V1_3::OperandType; 229 void update(hal::hidl_vec<hal::V1_3::Capabilities::OperandPerformance>* operandPerformance, 230 hal::V1_3::OperandType type, hal::PerformanceInfo perf); 239 const hal::hidl_vec<hal::V1_3::Capabilities::OperandPerformance>& operandPerformance, 240 hal::V1_3::OperandType type); 329 void logModelToInfo(const hal::V1_3::Model& model); 361 case HalVersion::V1_3: 438 bool compliantWithV1_0(const hal::V1_3::Capabilities& capabilities); [all …]
|
D | ValidateHal.h | 33 V1_3, enumerator 34 LATEST = V1_3, 76 bool validOperandType(hal::V1_3::OperandType operand); 80 bool validatePool(const hal::V1_3::Request::MemoryPool& pool, HalVersion ver = HalVersion::LATEST); 88 const hal::V1_3::BufferDesc& desc, 89 const hal::hidl_vec<sp<hal::V1_3::IPreparedModel>>& preparedModels, 90 const hal::hidl_vec<hal::V1_3::BufferRole>& inputRoles, 91 const hal::hidl_vec<hal::V1_3::BufferRole>& outputRoles, 92 std::function<const hal::V1_3::Model*(const sp<hal::V1_3::IPreparedModel>&)> getModel, 93 std::set<PreparedModelRole>* preparedModelRoles, hal::V1_3::Operand* combinedOperand);
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | DriverFuzzTest.cpp | 44 namespace V1_3 = neuralnetworks::V1_3; 47 sp<V1_3::IDevice> getDevice() { in getDevice() 51 static const sp<V1_3::IDevice> device = new nn::sample_driver::SampleDriverFull( in getDevice() 56 V1_3::Subgraph createSubgraph(const TestSubgraph& testSubgraph, uint32_t* constCopySize, in createSubgraph() 65 hidl_vec<V1_3::Operand> operands(testSubgraph.operands.size()); in createSubgraph() 100 operands[i] = {.type = static_cast<V1_3::OperandType>(op.type), in createSubgraph() 105 .lifetime = static_cast<V1_3::OperandLifeTime>(op.lifetime), in createSubgraph() 111 hidl_vec<V1_3::Operation> operations(testSubgraph.operations.size()); in createSubgraph() 113 operations.begin(), [](const TestOperation& op) -> V1_3::Operation { in createSubgraph() 114 return {.type = static_cast<V1_3::OperationType>(op.type), in createSubgraph() [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 677 TEST_SINGLE_OPERATION(ADD, V1_3, kMediumCriteria); 678 TEST_SINGLE_OPERATION(AVERAGE_POOL_2D, V1_3, kRelaxedCriteria); 679 TEST_SINGLE_OPERATION(CONCATENATION, V1_3, kMediumCriteria); 680 TEST_SINGLE_OPERATION(CONV_2D, V1_3, kConvCriteria); 681 TEST_SINGLE_OPERATION(DEPTHWISE_CONV_2D, V1_3, kConvCriteria); 682 TEST_SINGLE_OPERATION(DEPTH_TO_SPACE, V1_3, kStrictCriteria); 683 TEST_SINGLE_OPERATION(DEQUANTIZE, V1_3, kMediumCriteria); 684 TEST_SINGLE_OPERATION(EMBEDDING_LOOKUP, V1_3, kStrictCriteria); 685 TEST_SINGLE_OPERATION(FULLY_CONNECTED, V1_3, kRelaxedCriteria); 686 TEST_SINGLE_OPERATION(L2_NORMALIZATION, V1_3, kRelaxedCriteria); [all …]
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandPerform.cpp | 36 static_assert(static_cast<uint8_t>(V1_3::Effect::CLICK) == 38 static_assert(static_cast<uint8_t>(V1_3::Effect::DOUBLE_CLICK) == 40 static_assert(static_cast<uint8_t>(V1_3::Effect::TICK) == static_cast<uint8_t>(aidl::Effect::TICK)); 41 static_assert(static_cast<uint8_t>(V1_3::Effect::THUD) == static_cast<uint8_t>(aidl::Effect::THUD)); 42 static_assert(static_cast<uint8_t>(V1_3::Effect::POP) == static_cast<uint8_t>(aidl::Effect::POP)); 43 static_assert(static_cast<uint8_t>(V1_3::Effect::HEAVY_CLICK) == 45 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_1) == 47 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_2) == 49 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_15) == 51 static_assert(static_cast<uint8_t>(V1_3::Effect::TEXTURE_TICK) == [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Elementwise.cpp | 78 DEFINE_ELEMENTWISE_SIGNATURE(RELU, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 79 DEFINE_ELEMENTWISE_SIGNATURE(RELU1, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 80 DEFINE_ELEMENTWISE_SIGNATURE(RELU6, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 81 DEFINE_ELEMENTWISE_SIGNATURE(HARD_SWISH, V1_3, TestOperandType::TENSOR_FLOAT32, 103 DEFINE_ELEMENTWISE_SIGNATURE_WITH_RANK5(ABS, V1_3, TestOperandType::TENSOR_INT32); 128 DEFINE_ELEMENTWISE_WITH_QUANT_OUTPUT_SIGNATURE(LOGISTIC, V1_3, /*scale=*/1.f / 256, 131 DEFINE_ELEMENTWISE_WITH_QUANT_OUTPUT_SIGNATURE(TANH, V1_3, /*scale=*/1.f / 128, /*zeroPoint=*/0, 167 DEFINE_QUANTIZATION_OP_SIGNATURE(DEQUANTIZE, V1_3, /*outType=*/TENSOR_FLOAT32, 170 DEFINE_QUANTIZATION_OP_SIGNATURE(DEQUANTIZE, V1_3, /*outType=*/TENSOR_FLOAT16, 176 DEFINE_QUANTIZATION_OP_SIGNATURE(QUANTIZE, V1_3, [all …]
|
D | Broadcast.cpp | 107 DEFINE_BROADCAST_WITH_ACT_SIGNATURE(ADD, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, 109 DEFINE_BROADCAST_WITH_ACT_SIGNATURE(MUL, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, 111 DEFINE_BROADCAST_WITH_ACT_SIGNATURE(SUB, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, 113 DEFINE_BROADCAST_WITH_ACT_SIGNATURE(DIV, V1_3, TestOperandType::TENSOR_INT32); 136 DEFINE_BROADCAST_SIGNATURE(PRELU, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 137 DEFINE_BROADCAST_SIGNATURE(MAXIMUM, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 138 DEFINE_BROADCAST_SIGNATURE(MINIMUM, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 173 DEFINE_COMPARISON_SIGNATURE(EQUAL, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 174 DEFINE_COMPARISON_SIGNATURE(GREATER, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 175 DEFINE_COMPARISON_SIGNATURE(GREATER_EQUAL, V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); [all …]
|
D | Reshape.cpp | 63 DEFINE_SPACE_TO_DEPTH_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 79 DEFINE_SPACE_TO_DEPTH_WITH_LAYOUT_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 119 DEFINE_DEPTH_TO_SPACE_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 135 DEFINE_DEPTH_TO_SPACE_WITH_LAYOUT_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 167 DEFINE_RESHAPE_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 207 DEFINE_BATCH_TO_SPACE_ND_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 225 DEFINE_BATCH_TO_SPACE_ND_WITH_LAYOUT_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 285 DEFINE_SPACE_TO_BATCH_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 304 DEFINE_SPACE_TO_BATCH_WITH_LAYOUT_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); 358 DEFINE_PAD_SIGNATURE(V1_3, TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED); [all …]
|
/frameworks/ml/nn/common/ |
D | Utils.cpp | 474 static void logSubgraphToInfo(std::string label, const V1_3::Subgraph& subgraph) { in logSubgraphToInfo() 481 void logModelToInfo(const V1_3::Model& model) { in logModelToInfo() 853 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 914 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 956 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 997 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 1034 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 1152 minSupportedHalVersion = HalVersion::V1_3; in validateOperation() 1345 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() 1402 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation() [all …]
|
D | ValidateHal.cpp | 53 struct ModelToHalVersion<V1_3::Model> { 54 static constexpr HalVersion version = HalVersion::V1_3; 65 MemoryAccessVerifier(const hidl_vec<V1_3::Request::MemoryPool>& pools) in MemoryAccessVerifier() 100 static bool validateOperandExtraParams(const V1_3::Operand& operand, uint32_t index) { in validateOperandExtraParams() 182 V1_3::Operand operand = convertToV1_3(versionedOperand); in validateOperands() 444 static HalVersion getHalVersion(const V1_3::Operation&) { in getHalVersion() 445 return HalVersion::V1_3; in getHalVersion() 533 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver) { in validatePool() 668 static bool checkNoReferenceCycles(const V1_3::Model& model, const V1_3::Subgraph& subgraph, in checkNoReferenceCycles() 669 std::set<const V1_3::Subgraph*>* path) { in checkNoReferenceCycles() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestVersionedInterfaces.cpp | 81 makeCallbackReturn(V1_3::ErrorStatus::NONE, V1_3::Capabilities{}); in create() 158 (const V1_3::Model& model, getSupportedOperations_1_3_cb cb), (override)); 159 MOCK_METHOD(Return<V1_3::ErrorStatus>, prepareModel_1_3, 160 (const V1_3::Model& model, ExecutionPreference preference, Priority priority, 163 const sp<V1_3::IPreparedModelCallback>& callback), 165 MOCK_METHOD(Return<V1_3::ErrorStatus>, prepareModelFromCache_1_3, 168 const sp<V1_3::IPreparedModelCallback>& callback), 171 (const BufferDesc& desc, const hidl_vec<sp<V1_3::IPreparedModel>>& preparedModels, 240 (const V1_3::Request& request, MeasureTiming measure, 246 (const V1_3::Request& request, MeasureTiming measure, [all …]
|
D | TestCompilationCaching.cpp | 109 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request&, MeasureTiming, in execute_1_3() 112 const sp<V1_3::IExecutionCallback>&) override { in execute_1_3() 113 return V1_3::ErrorStatus::DEVICE_UNAVAILABLE; in execute_1_3() 120 Return<void> executeSynchronously_1_3(const V1_3::Request&, MeasureTiming, in executeSynchronously_1_3() 124 cb(V1_3::ErrorStatus::DEVICE_UNAVAILABLE, {}, kBadTiming); in executeSynchronously_1_3() 165 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3() 168 cb(V1_3::ErrorStatus::NONE, capabilities); in getCapabilities_1_3() 176 cb(V1_3::ErrorStatus::NONE, supported); in getSupportedOperations_1_3() 188 Return<V1_3::ErrorStatus> prepareModel_1_3( in prepareModel_1_3() 192 const sp<V1_3::IPreparedModelCallback>& cb) override { in prepareModel_1_3() [all …]
|
D | TestExecution.cpp | 47 using HidlModel = V1_3::Model; 77 mPreparedModelV1_3(V1_3::IPreparedModel::castFrom(preparedModel).withDefault(nullptr)), in TestPreparedModelLatest() 113 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request& request, MeasureTiming measure, in execute_1_3() 116 const sp<V1_3::IExecutionCallback>& callback) override { in execute_1_3() 131 return V1_3::ErrorStatus::NONE; in execute_1_3() 150 Return<void> executeSynchronously_1_3(const V1_3::Request& request, MeasureTiming measure, in executeSynchronously_1_3() 189 Return<void> executeFenced(const V1_3::Request& request, const hidl_vec<hidl_handle>& waitFor, in executeFenced() 229 const sp<V1_3::IPreparedModel> mPreparedModelV1_3; 315 nn::nonExtensionOperandPerformance<nn::HalVersion::V1_3>(kPerf), in getCapabilities_1_3() 318 _hidl_cb(V1_3::ErrorStatus::NONE, capabilities); in getCapabilities_1_3() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 35 using V1_3::PowerHint; 50 const sp<V1_3::IPower> powerHal = getPowerHal(); in setExpensiveRenderingExpected() 66 sp<V1_3::IPower> PowerAdvisor::getPowerHal() { in getPowerHal() 67 static sp<V1_3::IPower> sPowerHal_1_3 = nullptr; in getPowerHal() 85 sPowerHal_1_3 = V1_3::IPower::castFrom(powerHal_1_0); in getPowerHal()
|
D | PowerAdvisor.h | 44 namespace V1_3 = android::hardware::power::V1_3; variable 56 sp<V1_3::IPower> getPowerHal();
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.h | 93 hal::Return<hal::V1_3::ErrorStatus> prepareModel_1_3( 94 const hal::V1_3::Model& model, hal::ExecutionPreference preference, 98 const sp<hal::V1_3::IPreparedModelCallback>& callback) override; 103 hal::Return<hal::V1_3::ErrorStatus> prepareModelFromCache_1_3( 107 const sp<hal::V1_3::IPreparedModelCallback>& callback) override; 109 hal::Return<void> allocate(const hal::V1_3::BufferDesc& desc, 110 const hal::hidl_vec<sp<hal::V1_3::IPreparedModel>>& preparedModels, 111 const hal::hidl_vec<hal::V1_3::BufferRole>& inputRoles, 112 const hal::hidl_vec<hal::V1_3::BufferRole>& outputRoles, 147 hal::Return<hal::V1_3::ErrorStatus> execute_1_3( [all …]
|
D | SampleDriverPartial.h | 41 hal::Return<void> getSupportedOperations_1_3(const hal::V1_3::Model& model, 44 const hal::V1_3::Model& model, hal::ExecutionPreference preference, 48 const sp<hal::V1_3::IPreparedModelCallback>& callback) override; 53 virtual std::vector<bool> getSupportedOperationsImpl(const hal::V1_3::Model& model) const = 0;
|
D | SampleDriverPartial.cpp | 38 Return<void> SampleDriverPartial::getSupportedOperations_1_3(const V1_3::Model& model, in getSupportedOperations_1_3() 52 const V1_3::Model& model, ExecutionPreference preference, Priority priority, in prepareModel_1_3() 55 const sp<V1_3::IPreparedModelCallback>& callback) { in prepareModel_1_3()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_VibratorService.cpp | 45 namespace V1_3 = android::hardware::vibrator::V1_3; 59 static_assert(static_cast<uint8_t>(V1_3::Effect::CLICK) == 61 static_assert(static_cast<uint8_t>(V1_3::Effect::DOUBLE_CLICK) == 63 static_assert(static_cast<uint8_t>(V1_3::Effect::TICK) == 65 static_assert(static_cast<uint8_t>(V1_3::Effect::THUD) == 67 static_assert(static_cast<uint8_t>(V1_3::Effect::POP) == 69 static_assert(static_cast<uint8_t>(V1_3::Effect::HEAVY_CLICK) == 71 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_1) == 73 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_2) == 75 static_assert(static_cast<uint8_t>(V1_3::Effect::RINGTONE_15) == [all …]
|
/frameworks/ml/nn/runtime/ |
D | Callbacks.h | 142 hal::Return<void> notify_1_3(hal::V1_3::ErrorStatus status, 143 const sp<hal::V1_3::IPreparedModel>& preparedModel) override; 172 hal::V1_3::ErrorStatus getStatus() const; 321 hal::Return<void> notify_1_3(hal::V1_3::ErrorStatus status, 326 hal::Return<void> notify(hal::V1_3::ErrorStatus status, in notify() 365 hal::V1_3::ErrorStatus getStatus() const;
|
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/ |
D | rank.example.cpp | 44 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d() 125 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_all_inputs_as_internal() 172 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_int32() 219 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_float16() 300 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_float16_all_inputs_as_internal() 347 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_quant8() 428 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_quant8_all_inputs_as_internal() 475 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_quant8_signed() 556 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_quant8_signed_all_inputs_as_internal() 603 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_2() [all …]
|
D | fill.example.cpp | 54 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d() 111 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_float16() 168 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_1d_int32() 225 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_3d() 282 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_3d_float16() 339 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_3d_int32() 396 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_5d() 453 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_5d_float16() 510 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_5d_int32()
|
D | hard_swish.example.cpp | 44 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple() 125 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_all_inputs_as_internal() 172 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_float16() 253 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_float16_all_inputs_as_internal() 428 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8() 509 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8_all_inputs_as_internal() 556 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8_signed() 637 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8_signed_all_inputs_as_internal() 684 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8_2() 765 .minSupportedVersion = TestHalVersion::V1_3, in get_test_model_simple_quant8_all_inputs_as_internal_2() [all …]
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciDriver.cpp | 182 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3() 185 cb(V1_3::ErrorStatus::NONE, capabilities); in getCapabilities_1_3() 189 Return<void> FibonacciDriver::getSupportedOperations_1_3(const V1_3::Model& model, in getSupportedOperations_1_3() 193 cb(V1_3::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations_1_3() 202 cb(V1_3::ErrorStatus::INVALID_ARGUMENT, {}); in getSupportedOperations_1_3() 208 cb(V1_3::ErrorStatus::NONE, supported); in getSupportedOperations_1_3()
|