/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.h | 39 class SampleBuffer : public hal::IBuffer { 46 hal::Return<hal::ErrorStatus> copyTo(const hal::hidl_memory& dst) override; 47 hal::Return<hal::ErrorStatus> copyFrom(const hal::hidl_memory& src, 48 const hal::hidl_vec<uint32_t>& dimensions) override; 60 class SampleDriver : public hal::IDevice { 69 hal::Return<void> getCapabilities(getCapabilities_cb cb) override; 70 hal::Return<void> getCapabilities_1_1(getCapabilities_1_1_cb cb) override; 71 hal::Return<void> getCapabilities_1_2(getCapabilities_1_2_cb cb) override; 72 hal::Return<void> getVersionString(getVersionString_cb cb) override; 73 hal::Return<void> getType(getType_cb cb) override; [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, 38 const hal::hidl_vec<hal::OutputShape>&, hal::Timing); 40 void notify(const sp<hal::V1_2::IExecutionCallback>& callback, const hal::ErrorStatus& status, 41 const hal::hidl_vec<hal::OutputShape>& outputShapes, hal::Timing timing); 43 void notify(const sp<hal::V1_3::IExecutionCallback>& callback, const hal::ErrorStatus& status, 44 const hal::hidl_vec<hal::OutputShape>& outputShapes, hal::Timing timing); 47 hal::ErrorStatus prepareModelBase(const T_Model& model, const SampleDriver* driver, [all …]
|
D | SampleDriverPartial.h | 41 hal::Return<void> getSupportedOperations_1_3(const hal::V1_3::Model& model, 43 hal::Return<hal::ErrorStatus> prepareModel_1_3( 44 const hal::V1_3::Model& model, hal::ExecutionPreference preference, 45 hal::Priority priority, const hal::OptionalTimePoint& deadline, 46 const hal::hidl_vec<hal::hidl_handle>& modelCache, 47 const hal::hidl_vec<hal::hidl_handle>& dataCache, const hal::CacheToken& token, 48 const sp<hal::V1_3::IPreparedModelCallback>& callback) override; 53 virtual std::vector<bool> getSupportedOperationsImpl(const hal::V1_3::Model& model) const = 0;
|
D | SampleDriverFull.h | 29 SampleDriverFull(const char* name, hal::PerformanceInfo perf) in SampleDriverFull() 31 hal::Return<void> getCapabilities_1_3(getCapabilities_1_3_cb cb) override; 32 hal::Return<void> getSupportedOperations_1_3(const hal::V1_3::Model& model, 36 hal::PerformanceInfo mPerf;
|
/frameworks/ml/nn/common/include/ |
D | Utils.h | 155 std::optional<Deadline> makeDeadline(const hal::OptionalTimePoint& timePoint); 163 hal::OptionalTimePoint makeTimePoint(const std::optional<Deadline>& deadline); 196 using OperandPerformance = hal::V1_2::Capabilities::OperandPerformance; 197 using OperandType = hal::V1_2::OperandType; 202 using OperandPerformance = hal::V1_3::Capabilities::OperandPerformance; 203 using OperandType = hal::V1_3::OperandType; 221 hal::hidl_vec<VersionedOperandPerformance<version>> nonExtensionOperandPerformance( 222 hal::PerformanceInfo perf); 227 void update(hal::hidl_vec<hal::V1_2::Capabilities::OperandPerformance>* operandPerformance, 228 hal::V1_2::OperandType type, hal::PerformanceInfo perf); [all …]
|
D | ValidateHal.h | 38 using PreparedModelRole = std::tuple<const hal::IPreparedModel*, IOType, uint32_t>; 65 bool validateExecutionPreference(hal::ExecutionPreference preference); 68 bool validatePriority(hal::Priority priority); 70 bool validOperationType(hal::V1_0::OperationType operation); 71 bool validOperationType(hal::V1_1::OperationType operation); 72 bool validOperationType(hal::V1_2::OperationType operation); 74 bool validOperandType(hal::V1_0::OperandType operand); 75 bool validOperandType(hal::V1_2::OperandType operand); 76 bool validOperandType(hal::V1_3::OperandType operand); 79 bool validatePool(const hal::hidl_memory& pool, HalVersion ver = HalVersion::LATEST); [all …]
|
D | CpuExecutor.h | 40 hal::OperandType type; 67 hal::OperandLifeTime lifetime; 74 hal::OperandExtraParams extraParams; 108 static std::optional<RunTimePoolInfo> createFromHidlMemory(const hal::hidl_memory& hidlMemory); 113 const hal::hidl_memory& getHidlMemory() const; 124 const hal::hidl_vec<hal::hidl_memory>& pools); 127 const hal::hidl_vec<hal::Request::MemoryPool>& pools); 149 int run(const hal::Model& model, const hal::Request& request, 153 const std::vector<hal::OutputShape>& getOutputShapes() const { in getOutputShapes() 163 std::vector<RunTimeOperandInfo> initializeRunTimeInfo(const hal::Subgraph& subgraph); [all …]
|
D | MetaModel.h | 70 MetaModel(hal::Model model, bool strictSlicing) in MetaModel() 73 const hal::Model& getModel() const { return mHidlModel; } in getModel() 75 ReturnedSlice<hal::V1_0::Model> getSliceV1_0() const { return getSlice(&mSliceV1_0); } in getSliceV1_0() 76 ReturnedSlice<hal::V1_1::Model> getSliceV1_1() const { return getSlice(&mSliceV1_1); } in getSliceV1_1() 77 ReturnedSlice<hal::V1_2::Model> getSliceV1_2() const { return getSlice(&mSliceV1_2); } in getSliceV1_2() 95 hal::Model mHidlModel; 117 mutable Slice<hal::V1_0::Model> mSliceV1_0; 118 mutable Slice<hal::V1_1::Model> mSliceV1_1; 119 mutable Slice<hal::V1_2::Model> mSliceV1_2;
|
D | BufferTracker.h | 40 const hal::Operand& operand); 44 std::set<PreparedModelRole> roles, const hal::Operand& operand); 51 hal::ErrorStatus validateRequest(uint32_t poolIndex, const hal::Request& request, 52 const hal::IPreparedModel* preparedModel) const; 55 hal::ErrorStatus validateCopyFrom(const std::vector<uint32_t>& dimensions, uint32_t size) const; 56 hal::ErrorStatus validateCopyTo(uint32_t size) const; 66 const hal::OperandType kOperandType;
|
/frameworks/ml/nn/runtime/ |
D | Callbacks.h | 63 class PreparedModelCallback : public hal::IPreparedModelCallback { 88 hal::Return<void> notify(hal::V1_0::ErrorStatus status, 89 const sp<hal::V1_0::IPreparedModel>& preparedModel) override; 114 hal::Return<void> notify_1_2(hal::V1_0::ErrorStatus status, 115 const sp<hal::V1_2::IPreparedModel>& preparedModel) override; 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; 184 sp<hal::V1_0::IPreparedModel> getPreparedModel() const; 194 hal::Return<void> notifyInternal(bool deadObject, hal::ErrorStatus errorStatus, [all …]
|
D | VersionedInterfaces.h | 80 const hal::DeviceFactory& makeDevice); 101 VersionedIDevice(hal::Capabilities capabilities, 102 std::vector<hal::Extension> supportedExtensions, int32_t type, 105 std::string serviceName, const hal::DeviceFactory& makeDevice, Core core); 112 const hal::Capabilities& getCapabilities() const; 125 const std::vector<hal::Extension>& getSupportedExtensions() const; 155 std::pair<hal::ErrorStatus, hal::hidl_vec<bool>> getSupportedOperations( 223 const hal::ModelFactory& makeModel, hal::ExecutionPreference preference, hal::Priority, 225 const std::optional<hal::CacheToken>& maybeToken) const; 369 std::tuple<hal::ErrorStatus, sp<hal::IBuffer>, uint32_t> allocate( [all …]
|
D | Manager.h | 57 virtual std::tuple<int, std::vector<hal::OutputShape>, hal::Timing> execute( 62 hal::MeasureTiming measure, const std::optional<Deadline>& deadline, 63 const hal::OptionalTimeoutDuration& loopTimeoutDuration) const = 0; 68 virtual std::tuple<int, int, sp<hal::IFencedExecutionCallback>, hal::Timing> executeFenced( 72 hal::MeasureTiming measure, const std::optional<Deadline>& deadline, 73 const hal::OptionalTimeoutDuration& loopTimeoutDuration, 74 const hal::OptionalTimeoutDuration& timeoutDurationAfterFence) const = 0; 93 virtual const std::vector<hal::Extension>& getSupportedExtensions() const = 0; 98 virtual hal::PerformanceInfo getPerformance(hal::OperandType type) const = 0; 99 virtual hal::PerformanceInfo getRelaxedFloat32toFloat16PerformanceScalar() const = 0; [all …]
|
D | Event.h | 31 virtual hal::ErrorStatus getStatus() const = 0; 43 hal::ErrorStatus getStatus() const override { return kExecutionCallback->getStatus(); } in getStatus() 54 SyncFenceEvent(int sync_fence_fd, const sp<hal::IFencedExecutionCallback>& callback) in SyncFenceEvent() 72 hal::ErrorStatus getStatus() const override { in getStatus() 73 auto error = hal::ErrorStatus::NONE; in getStatus() 75 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus() 78 const hal::Return<void> ret = kFencedExecutionCallback->getExecutionInfo( in getStatus() 79 [&error](hal::ErrorStatus status, hal::Timing, hal::Timing) { in getStatus() 83 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus() 105 const sp<hal::IFencedExecutionCallback> kFencedExecutionCallback;
|
D | Memory.h | 101 std::vector<hal::BufferRole> inputRoles, outputRoles; 147 std::optional<hal::Operand> operand; 161 int copyIBufferToHidlMemory(const sp<hal::IBuffer>& src, const hal::hidl_memory& dst); 163 int copyHidlMemoryToIBuffer(const hal::hidl_memory& src, const sp<hal::IBuffer>& dst, 176 hal::Request::MemoryPool getMemoryPool() const; 177 const hal::hidl_memory& getHidlMemory() const { return kHidlMemory; } in getHidlMemory() 178 const sp<hal::IBuffer>& getIBuffer() const { return kBuffer; } in getIBuffer() 202 Memory(hal::hidl_memory memory); 203 Memory(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator); 204 Memory(sp<hal::IBuffer> buffer, uint32_t token); [all …]
|
D | TypeManager.h | 51 bool getExtensionInfo(uint16_t prefix, const hal::Extension** extension) const; 56 bool getExtensionOperandTypeInfo(hal::OperandType type, 57 const hal::Extension::OperandTypeInformation** info) const; 62 bool isTensorType(hal::OperandType type) const; 70 uint32_t getSizeOfData(const hal::Operand& operand) const { in getSizeOfData() 79 uint32_t getSizeOfData(hal::OperandType type, const std::vector<uint32_t>& dimensions) const; 85 bool sizeOfDataOverflowsUInt32(hal::OperandType type, 96 bool forTest_registerExtension(const hal::Extension& extension) { in forTest_registerExtension() 138 bool registerExtension(hal::Extension extension, const std::string& deviceName); 148 std::map<std::string, hal::Extension> mExtensionNameToExtension; [all …]
|
D | ExecutionBuilder.h | 87 std::vector<hal::OutputShape> getInitialOutputShapes() const; 94 void reportTimingWithoutFencedExecutionCallback(hal::Timing timing) { in reportTimingWithoutFencedExecutionCallback() 101 const hal::Operand& getSourceOperand( in getSourceOperand() 106 hal::ErrorStatus finishWithoutSyncFence(hal::ErrorStatus error, 107 const std::vector<hal::OutputShape>& outputShapes); 110 const sp<hal::IFencedExecutionCallback>& getFencedExecutionCallback() { in getFencedExecutionCallback() 137 bool updateOutputShapes(const std::vector<hal::OutputShape>& outputShapes); 169 hal::Timing mTimingWithoutFencedExecutionCallback = {}; 207 sp<hal::IFencedExecutionCallback> mFencedExecutionCallback; 239 bool updateOutputShapes(const std::vector<hal::OutputShape>& from, [all …]
|
D | ModelArgumentInfo.h | 41 const hal::Operand& operand, const ANeuralNetworksOperandType* type, 44 const hal::Operand& operand, const ANeuralNetworksOperandType* type, uint32_t poolIndex, 81 const hal::DataLocation& locationAndLength() const { in locationAndLength() 85 hal::DataLocation& locationAndLength() { in locationAndLength() 91 int updateDimensionInfo(const hal::Operand& operand, const ANeuralNetworksOperandType* newType); 104 hal::DataLocation mLocationAndLength; // can be updated after creation 111 hal::hidl_vec<hal::RequestArgument> createRequestArguments( 113 const std::vector<hal::DataLocation>& ptrArgsLocations);
|
/frameworks/ml/nn/common/operations/ |
D | Rank.cpp | 37 hal::OperandType inputType = context->getInputType(kInputTensor); in validate() 38 NN_RET_CHECK(inputType == hal::OperandType::TENSOR_FLOAT16 || in validate() 39 inputType == hal::OperandType::TENSOR_FLOAT32 || in validate() 40 inputType == hal::OperandType::TENSOR_INT32 || in validate() 41 inputType == hal::OperandType::TENSOR_QUANT8_ASYMM || in validate() 42 inputType == hal::OperandType::TENSOR_QUANT16_SYMM || in validate() 43 inputType == hal::OperandType::TENSOR_BOOL8 || in validate() 44 inputType == hal::OperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL || in validate() 45 inputType == hal::OperandType::TENSOR_QUANT16_ASYMM || in validate() 46 inputType == hal::OperandType::TENSOR_QUANT8_SYMM || in validate() [all …]
|
/frameworks/av/media/audioserver/ |
D | audioserver.rc | 9 onrestart restart vendor.audio-hal 10 onrestart restart vendor.audio-hal-4-0-msd 12 onrestart restart vendor.audio-hal-2-0 13 onrestart restart audio-hal-2-0 21 stop vendor.audio-hal 22 stop vendor.audio-hal-4-0-msd 24 stop vendor.audio-hal-2-0 25 stop audio-hal-2-0 28 start vendor.audio-hal 29 start vendor.audio-hal-4-0-msd [all …]
|
/frameworks/ml/nn/common/ |
D | MetaModel.cpp | 34 using namespace hal; 66 struct ModelVersion<hal::V1_0::Model> { 70 struct ModelVersion<hal::V1_1::Model> { 74 struct ModelVersion<hal::V1_2::Model> { 78 struct ModelVersion<hal::V1_3::Model> { 87 hal::V1_0::OperationType uncheckedConvertTo<hal::V1_0::OperationType>(OperationType type) { in uncheckedConvertTo() 91 hal::V1_1::OperationType uncheckedConvertTo<hal::V1_1::OperationType>(OperationType type) { in uncheckedConvertTo() 95 hal::V1_2::OperationType uncheckedConvertTo<hal::V1_2::OperationType>(OperationType type) { in uncheckedConvertTo() 104 hal::V1_0::Operand convertTo<hal::V1_0::Operand>(Operand operand) { in convertTo() 108 hal::V1_2::Operand convertTo<hal::V1_2::Operand>(Operand operand) { in convertTo() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_VibratorService.cpp | 166 auto hal = getService<I>(); in Create() local 167 return hal ? std::unique_ptr<HalWrapper>(new HalWrapper(std::move(hal))) : nullptr; in Create() 195 HalWrapper(sp<I> &&hal) : mHal(std::move(hal)) {} in HalWrapper() argument 209 auto hal = getHal<I>(); in halCall() local 210 return hal ? hal->call(fn, std::forward<Args1>(args1)...) : NullptrStatus<R>(); in halCall() 225 if (auto hal = getHal<aidl::IVibrator>()) { in vibratorInit() local 229 hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorInit() 239 if (auto hal = getHal<aidl::IVibrator>()) { in vibratorExists() local 243 ok = hal->call(&aidl::IVibrator::getCapabilities, &cap).isOk(); in vibratorExists() 252 if (auto hal = getHal<aidl::IVibrator>()) { in vibratorOn() local [all …]
|
/frameworks/hardware/interfaces/sensorservice/1.0/ |
D | Android.bp | 7 "types.hal", 8 "IDirectReportChannel.hal", 9 "IEventQueue.hal", 10 "IEventQueueCallback.hal", 11 "ISensorManager.hal",
|
/frameworks/native/cmds/idlcli/ |
D | vibrator.h | 67 auto hal = getService<I>(); in Create() local 68 return hal ? std::unique_ptr<HalWrapper>(new HalWrapper(std::move(hal))) : nullptr; in Create() 77 HalWrapper(shared_ptr<I>&& hal) : mHal(std::move(hal)) {} in HalWrapper() argument 91 auto hal = getHal<I>(); in halCall() local 92 return hal ? hal->call(fn, std::forward<Args1>(args1)...) : NullptrStatus<R>(); in halCall()
|
/frameworks/native/cmds/idlcli/vibrator/ |
D | CommandPerform.cpp | 97 if (auto hal = getHal<aidl::IVibrator>()) { in doMain() local 100 hal->call(&aidl::IVibrator::perform, static_cast<aidl::Effect>(mEffect), in doMain() 113 if (auto hal = getHal<V1_3::IVibrator>()) { in doMain() local 114 hidlRet = hal->call(&V1_3::IVibrator::perform_1_3, in doMain() 116 } else if (auto hal = getHal<V1_2::IVibrator>()) { in doMain() local 117 hidlRet = hal->call(&V1_2::IVibrator::perform_1_2, in doMain() 119 } else if (auto hal = getHal<V1_1::IVibrator>()) { in doMain() local 120 hidlRet = hal->call(&V1_1::IVibrator::perform_1_1, in doMain() 122 } else if (auto hal = getHal<V1_0::IVibrator>()) { in doMain() local 123 hidlRet = hal->call(&V1_0::IVibrator::perform, static_cast<V1_0::Effect>(mEffect), in doMain()
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciDriver.h | 37 const OperationRegistration* findOperation(hal::OperationType operationType) const override; 48 hal::Return<void> getSupportedExtensions(getSupportedExtensions_cb cb) override; 49 hal::Return<void> getCapabilities_1_3(getCapabilities_1_3_cb cb) override; 50 hal::Return<void> getSupportedOperations_1_3(const hal::V1_3::Model& model,
|