Home
last modified time | relevance | path

Searched refs:hal (Results 1 – 25 of 212) sorted by relevance

123456789

/frameworks/ml/nn/driver/sample/
DSampleDriver.h39 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 …]
DSampleDriverUtils.h28 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 …]
DSampleDriverPartial.h41 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;
/frameworks/ml/nn/common/include/
DUtils.h151 std::optional<Deadline> makeDeadline(const hal::OptionalTimePoint& timePoint);
159 hal::OptionalTimePoint makeTimePoint(const std::optional<Deadline>& deadline);
192 using OperandPerformance = hal::V1_2::Capabilities::OperandPerformance;
193 using OperandType = hal::V1_2::OperandType;
198 using OperandPerformance = hal::V1_3::Capabilities::OperandPerformance;
199 using OperandType = hal::V1_3::OperandType;
217 hal::hidl_vec<VersionedOperandPerformance<version>> nonExtensionOperandPerformance(
218 hal::PerformanceInfo perf);
223 void update(hal::hidl_vec<hal::V1_2::Capabilities::OperandPerformance>* operandPerformance,
224 hal::V1_2::OperandType type, hal::PerformanceInfo perf);
[all …]
DValidateHal.h38 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 …]
DCpuExecutor.h40 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 …]
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplay.h29 namespace hal = android::hardware::graphics::composer::hal; variable
38 MOCK_CONST_METHOD0(getId, hal::HWDisplayId());
41 MOCK_CONST_METHOD0(getCapabilities, const std::unordered_set<hal::DisplayCapability>&());
43 MOCK_METHOD0(acceptChanges, hal::Error());
44 MOCK_METHOD1(createLayer, hal::Error(Layer**));
45 MOCK_METHOD1(destroyLayer, hal::Error(Layer*));
46 MOCK_CONST_METHOD1(getActiveConfig, hal::Error(std::shared_ptr<const Config>*));
47 MOCK_CONST_METHOD1(getActiveConfigIndex, hal::Error(int* outIndex));
49 hal::Error(std::unordered_map<Layer*, hal::Composition>*));
50 MOCK_CONST_METHOD1(getColorModes, hal::Error(std::vector<hal::ColorMode>*));
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.h53 namespace hal = android::hardware::graphics::composer::hal; variable
66 virtual void onHotplugReceived(int32_t sequenceId, hal::HWDisplayId display,
67 hal::Connection connection) = 0;
68 virtual void onRefreshReceived(int32_t sequenceId, hal::HWDisplayId display) = 0;
69 virtual void onVsyncReceived(int32_t sequenceId, hal::HWDisplayId display, int64_t timestamp,
70 std::optional<hal::VsyncPeriodNanos> vsyncPeriod) = 0;
72 int32_t sequenceId, hal::HWDisplayId display,
73 const hal::VsyncPeriodChangeTimeline& updatedTimeline) = 0;
74 virtual void onSeamlessPossible(int32_t sequenceId, hal::HWDisplayId display) = 0;
89 Builder(Display& display, hal::HWConfigId id);
[all …]
DHal.h26 namespace hardware::graphics::composer::hal {
75 inline bool hasChangesError(hardware::graphics::composer::hal::Error error) { in hasChangesError()
79 inline std::string to_string(hardware::graphics::composer::hal::Attribute attribute) { in to_string()
81 case hardware::graphics::composer::hal::Attribute::INVALID: in to_string()
83 case hardware::graphics::composer::hal::Attribute::WIDTH: in to_string()
85 case hardware::graphics::composer::hal::Attribute::HEIGHT: in to_string()
87 case hardware::graphics::composer::hal::Attribute::VSYNC_PERIOD: in to_string()
89 case hardware::graphics::composer::hal::Attribute::DPI_X: in to_string()
91 case hardware::graphics::composer::hal::Attribute::DPI_Y: in to_string()
98 inline std::string to_string(hardware::graphics::composer::hal::Composition composition) { in to_string()
[all …]
DHWComposer.h47 namespace hal = hardware::graphics::composer::hal; variable
70 using ChangedTypes = std::unordered_map<HWC2::Layer*, hal::Composition>;
71 using ClientTargetProperty = hal::ClientTargetProperty;
72 using DisplayRequests = hal::DisplayRequest;
73 using LayerRequests = std::unordered_map<HWC2::Layer*, hal::LayerRequest>;
85 virtual bool getDisplayIdentificationData(hal::HWDisplayId hwcDisplayId, uint8_t* outPort,
88 virtual bool hasCapability(hal::Capability capability) const = 0;
90 hal::DisplayCapability capability) const = 0;
96 virtual void allocatePhysicalDisplay(hal::HWDisplayId hwcDisplayId, DisplayId displayId) = 0;
122 virtual status_t setPowerMode(DisplayId displayId, hal::PowerMode mode) = 0;
[all …]
DHWComposer.cpp64 if (error != hal::Error::NONE) { \
73 namespace hal = android::hardware::graphics::composer::hal;
81 class ComposerCallbackBridge : public hal::IComposerCallback {
89 android::hardware::Return<void> onHotplug(hal::HWDisplayId display, in onHotplug()
90 hal::Connection conn) override { in onHotplug()
95 android::hardware::Return<void> onRefresh(hal::HWDisplayId display) override { in onRefresh()
100 android::hardware::Return<void> onVsync(hal::HWDisplayId display, int64_t timestamp) override { in onVsync()
109 android::hardware::Return<void> onVsync_2_4(hal::HWDisplayId display, int64_t timestamp, in onVsync_2_4()
110 hal::VsyncPeriodNanos vsyncPeriodNanos) override { in onVsync_2_4()
121 hal::HWDisplayId display, in onVsyncPeriodTimingChanged()
[all …]
/frameworks/ml/nn/runtime/
DCallbacks.h63 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 …]
DVersionedInterfaces.h80 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 …]
DManager.h57 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 …]
DEvent.h32 virtual hal::ErrorStatus getStatus() const = 0;
44 hal::ErrorStatus getStatus() const override { return kExecutionCallback->getStatus(); } in getStatus()
55 SyncFenceEvent(int sync_fence_fd, const sp<hal::IFencedExecutionCallback>& callback) in SyncFenceEvent()
73 hal::ErrorStatus getStatus() const override { in getStatus()
74 auto error = hal::ErrorStatus::NONE; in getStatus()
76 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus()
79 const hal::Return<void> ret = kFencedExecutionCallback->getExecutionInfo( in getStatus()
80 [&error](hal::ErrorStatus status, hal::Timing, hal::Timing) { in getStatus()
84 error = hal::ErrorStatus::GENERAL_FAILURE; in getStatus()
106 const sp<hal::IFencedExecutionCallback> kFencedExecutionCallback;
DTypeManager.h51 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 …]
DMemory.h101 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 …]
DExecutionBuilder.h87 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 …]
DModelArgumentInfo.h41 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/av/media/audioserver/
Daudioserver.rc10 onrestart setprop sys.audio.restart.hal 1
18 stop vendor.audio-hal
19 stop vendor.audio-hal-4-0-msd
21 stop vendor.audio-hal-2-0
22 stop audio-hal-2-0
26 start vendor.audio-hal
27 start vendor.audio-hal-4-0-msd
29 start vendor.audio-hal-2-0
30 start audio-hal-2-0
33 start vendor.audio-hal
[all …]
/frameworks/ml/nn/common/operations/
DRank.cpp37 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/native/services/surfaceflinger/CompositionEngine/tests/
DMockHWComposer.h34 namespace hal = android::hardware::graphics::composer::hal; variable
43 bool(hal::HWDisplayId, uint8_t*, DisplayIdentificationData*));
44 MOCK_CONST_METHOD1(hasCapability, bool(hal::Capability));
45 MOCK_CONST_METHOD2(hasDisplayCapability, bool(DisplayId, hal::DisplayCapability));
49 MOCK_METHOD2(allocatePhysicalDisplay, void(hal::HWDisplayId, DisplayId));
59 MOCK_METHOD2(setPowerMode, status_t(DisplayId, hal::PowerMode));
81 std::optional<DisplayIdentificationInfo>(hal::HWDisplayId, hal::Connection));
82 MOCK_METHOD2(onVsync, bool(hal::HWDisplayId, int64_t));
83 MOCK_METHOD2(setVsyncEnabled, void(DisplayId, hal::Vsync));
97 status_t(DisplayId, size_t, const hal::VsyncPeriodChangeConstraints&,
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp39 namespace hal = android::hardware::graphics::composer::hal;
52 void(int32_t sequenceId, hal::HWDisplayId display, hal::Connection connection));
53 MOCK_METHOD2(onRefreshReceived, void(int32_t sequenceId, hal::HWDisplayId display));
55 void(int32_t sequenceId, hal::HWDisplayId display, int64_t timestamp,
56 std::optional<hal::VsyncPeriodNanos> vsyncPeriod));
58 void(int32_t sequenceId, hal::HWDisplayId display,
59 const hal::VsyncPeriodChangeTimeline& updatedTimeline));
60 MOCK_METHOD2(onSeamlessPossible, void(int32_t sequenceId, hal::HWDisplayId display));
78 EXPECT_CALL(*mHal, getCapabilities()).WillOnce(Return(std::vector<hal::Capability>{})); in TEST_F()
80 .WillOnce(DoAll(SetArgPointee<0>(std::vector<hal::LayerGenericMetadataKey>{ in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp351 HWC2::Layer* hwcLayer, hal::Composition requestedCompositionType) { in writeOutputDependentGeometryStateToHWC()
355 error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
364 error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
373 if (auto error = hwcLayer->setZOrder(outputDependentState.z); error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
379 const auto bufferTransform = requestedCompositionType != hal::Composition::SOLID_COLOR in writeOutputDependentGeometryStateToHWC()
381 : static_cast<hal::Transform>(0); in writeOutputDependentGeometryStateToHWC()
382 if (auto error = hwcLayer->setTransform(static_cast<hal::Transform>(bufferTransform)); in writeOutputDependentGeometryStateToHWC()
383 error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
393 error != hal::Error::NONE) { in writeOutputIndependentGeometryStateToHWC()
400 error != hal::Error::NONE) { in writeOutputIndependentGeometryStateToHWC()
[all …]
/frameworks/ml/nn/common/
DMetaModel.cpp34 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 …]

123456789