Home
last modified time | relevance | path

Searched refs:aidl_hal (Results 1 – 22 of 22) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DHalUtils.cpp35 std::vector<aidl_hal::OperandPerformance> nonExtensionOperandPerformance( in nonExtensionOperandPerformance()
36 aidl_hal::PerformanceInfo perf) { in nonExtensionOperandPerformance()
37 static constexpr ndk::enum_range<aidl_hal::OperandType> kOperandTypeRange; in nonExtensionOperandPerformance()
38 std::vector<aidl_hal::OperandPerformance> ret; in nonExtensionOperandPerformance()
40 for (aidl_hal::OperandType type : kOperandTypeRange) { in nonExtensionOperandPerformance()
41 if (type != aidl_hal::OperandType::SUBGRAPH) { in nonExtensionOperandPerformance()
42 ret.push_back(aidl_hal::OperandPerformance{type, perf}); in nonExtensionOperandPerformance()
46 [](const aidl_hal::OperandPerformance& a, const aidl_hal::OperandPerformance& b) { in nonExtensionOperandPerformance()
53 void update(std::vector<aidl_hal::OperandPerformance>* operandPerformance, in update()
54 aidl_hal::OperandType type, aidl_hal::PerformanceInfo perf) { in update()
[all …]
DConversions.cpp95 NN_TRY(aidl_hal::utils::compliantVersion(canonical)); in validatedConvert()
138 GeneralResult<OperandType> unvalidatedConvert(const aidl_hal::OperandType& operandType) { in unvalidatedConvert()
147 GeneralResult<OperationType> unvalidatedConvert(const aidl_hal::OperationType& operationType) { in unvalidatedConvert()
157 GeneralResult<DeviceType> unvalidatedConvert(const aidl_hal::DeviceType& deviceType) { in unvalidatedConvert()
161 GeneralResult<Priority> unvalidatedConvert(const aidl_hal::Priority& priority) { in unvalidatedConvert()
165 GeneralResult<Capabilities> unvalidatedConvert(const aidl_hal::Capabilities& capabilities) { in unvalidatedConvert()
168 [](const aidl_hal::OperandPerformance& operandPerformance) { in unvalidatedConvert()
196 const aidl_hal::OperandPerformance& operandPerformance) { in unvalidatedConvert()
206 const aidl_hal::PerformanceInfo& performanceInfo) { in unvalidatedConvert()
213 GeneralResult<DataLocation> unvalidatedConvert(const aidl_hal::DataLocation& location) { in unvalidatedConvert()
[all …]
DValidateHal.cpp37 const aidl_hal::BufferDesc& desc, in validateMemoryDesc()
38 const std::vector<std::shared_ptr<aidl_hal::IPreparedModel>>& preparedModels, in validateMemoryDesc()
39 const std::vector<aidl_hal::BufferRole>& inputRoles, in validateMemoryDesc()
40 const std::vector<aidl_hal::BufferRole>& outputRoles, in validateMemoryDesc()
41 std::function<const aidl_hal::Model*(const std::shared_ptr<aidl_hal::IPreparedModel>&)> in validateMemoryDesc()
44 aidl_hal::Operand* combinedOperand) { in validateMemoryDesc()
49 std::vector<aidl_hal::Operand> operands; in validateMemoryDesc()
130 combinedOperand->dimensions = aidl_hal::utils::toSigned(dimensions).value(); in validateMemoryDesc()
DBuffer.cpp35 std::shared_ptr<aidl_hal::IBuffer> buffer, nn::Request::MemoryDomainToken token) { in create()
46 Buffer::Buffer(PrivateConstructorTag /*tag*/, std::shared_ptr<aidl_hal::IBuffer> buffer, in Buffer()
DDevice.cpp57 std::any_cast<std::shared_ptr<aidl_hal::IPreparedModel>>(&underlyingResource)) { in convert()
75 nn::GeneralResult<std::string> getVersionStringFrom(aidl_hal::IDevice* device) { in getVersionStringFrom()
83 nn::GeneralResult<nn::DeviceType> getDeviceTypeFrom(aidl_hal::IDevice* device) { in getDeviceTypeFrom()
92 aidl_hal::IDevice* device) { in getSupportedExtensionsFrom()
101 aidl_hal::IDevice* device) { in getNumberOfCacheFilesNeededFrom()
128 std::string name, std::shared_ptr<aidl_hal::IDevice> device, nn::Version featureLevel) { in create()
155 std::shared_ptr<aidl_hal::IDevice> device, DeathHandler deathHandler) in Device()
DExecution.cpp82 std::shared_ptr<aidl_hal::IExecution> execution, hal::utils::RequestRelocation relocation) { in create()
91 Execution::Execution(PrivateConstructorTag /*tag*/, std::shared_ptr<aidl_hal::IExecution> execution, in Execution()
DPreparedModel.cpp51 ErrorStatus status, const aidl_hal::Timing& timingLaunched, in convertFencedExecutionResults()
52 const aidl_hal::Timing& timingFenced) { in convertFencedExecutionResults()
114 std::shared_ptr<aidl_hal::IPreparedModel> preparedModel, nn::Version featureLevel) { in create()
125 std::shared_ptr<aidl_hal::IPreparedModel> preparedModel, in PreparedModel()
276 std::shared_ptr<aidl_hal::IPreparedModel> resource = kPreparedModel; in getUnderlyingResource()
DBurst.cpp84 Burst::MemoryCache::MemoryCache(std::shared_ptr<aidl_hal::IBurst> burst) in MemoryCache()
158 std::shared_ptr<aidl_hal::IBurst> burst, nn::Version featureLevel) { in create()
167 Burst::Burst(PrivateConstructorTag /*tag*/, std::shared_ptr<aidl_hal::IBurst> burst, in Burst()
DBufferTracker.cpp60 const aidl_hal::IPreparedModel* preparedModel) const { in validateRequest()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DConversions.h63 GeneralResult<OperandType> unvalidatedConvert(const aidl_hal::OperandType& operandType);
64 GeneralResult<OperationType> unvalidatedConvert(const aidl_hal::OperationType& operationType);
65 GeneralResult<DeviceType> unvalidatedConvert(const aidl_hal::DeviceType& deviceType);
66 GeneralResult<Priority> unvalidatedConvert(const aidl_hal::Priority& priority);
67 GeneralResult<Capabilities> unvalidatedConvert(const aidl_hal::Capabilities& capabilities);
69 const aidl_hal::OperandPerformance& operandPerformance);
71 const aidl_hal::PerformanceInfo& performanceInfo);
72 GeneralResult<DataLocation> unvalidatedConvert(const aidl_hal::DataLocation& location);
73 GeneralResult<Operand> unvalidatedConvert(const aidl_hal::Operand& operand);
75 const std::optional<aidl_hal::OperandExtraParams>& optionalExtraParams);
[all …]
DValidateHal.h33 using AidlHalPreparedModelRole = std::tuple<const aidl_hal::IPreparedModel*, IOType, uint32_t>;
36 const aidl_hal::BufferDesc& desc,
37 const std::vector<std::shared_ptr<aidl_hal::IPreparedModel>>& preparedModels,
38 const std::vector<aidl_hal::BufferRole>& inputRoles,
39 const std::vector<aidl_hal::BufferRole>& outputRoles,
40 std::function<const aidl_hal::Model*(const std::shared_ptr<aidl_hal::IPreparedModel>&)>
42 std::set<AidlHalPreparedModelRole>* preparedModelRoles, aidl_hal::Operand* combinedOperand);
DHalUtils.h34 std::vector<aidl_hal::OperandPerformance> nonExtensionOperandPerformance(
35 aidl_hal::PerformanceInfo perf);
40 void update(std::vector<aidl_hal::OperandPerformance>* operandPerformance,
41 aidl_hal::OperandType type, aidl_hal::PerformanceInfo perf);
44 bool isExtensionOperandType(aidl_hal::OperandType type);
47 bool isNonExtensionScalar(aidl_hal::OperandType type);
DHalInterfaces.h73 namespace aidl_hal = ::aidl::android::hardware::neuralnetworks; variable
75 inline constexpr aidl_hal::Priority kDefaultPriorityAidl = aidl_hal::Priority::MEDIUM;
DBurst.h56 explicit MemoryCache(std::shared_ptr<aidl_hal::IBurst> burst);
82 const std::shared_ptr<aidl_hal::IBurst> kBurst;
91 std::shared_ptr<aidl_hal::IBurst> burst, nn::Version featureLevel);
93 Burst(PrivateConstructorTag tag, std::shared_ptr<aidl_hal::IBurst> burst,
114 const aidl_hal::Request& request, const std::vector<int64_t>& memoryIdentifierTokens,
122 const std::shared_ptr<aidl_hal::IBurst> kBurst;
DBuffer.h38 std::shared_ptr<aidl_hal::IBuffer> buffer, nn::Request::MemoryDomainToken token);
40 Buffer(PrivateConstructorTag tag, std::shared_ptr<aidl_hal::IBuffer> buffer,
50 const std::shared_ptr<aidl_hal::IBuffer> kBuffer;
DExecution.h76 std::shared_ptr<aidl_hal::IExecution> execution,
79 Execution(PrivateConstructorTag tag, std::shared_ptr<aidl_hal::IExecution> execution,
90 const std::shared_ptr<aidl_hal::IExecution> kExecution;
DPreparedModel.h45 std::shared_ptr<aidl_hal::IPreparedModel> preparedModel, nn::Version featureLevel);
48 std::shared_ptr<aidl_hal::IPreparedModel> preparedModel,
91 const std::shared_ptr<aidl_hal::IPreparedModel> kPreparedModel;
DDevice.h47 std::string name, std::shared_ptr<aidl_hal::IDevice> device, nn::Version featureLevel);
53 std::shared_ptr<aidl_hal::IDevice> device, DeathHandler deathHandler);
95 const std::shared_ptr<aidl_hal::IDevice> kDevice;
DBufferTracker.h52 const aidl_hal::IPreparedModel* preparedModel) const;
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DCommonUtils.h34 namespace aidl_hal = ::aidl::android::hardware::neuralnetworks; variable
42 namespace aidl_hal = ::aidl::android::hardware::neuralnetworks; variable
/hardware/interfaces/neuralnetworks/utils/service/src/
DService.cpp50 namespace aidl_hal = ::aidl::android::hardware::neuralnetworks;
89 AServiceManager_forEachDeclaredInstance(aidl_hal::IDevice::descriptor, in getAidlDevices()
95 auto maybeDevice = aidl_hal::utils::getDevice(name, maxFeatureLevelAllowed); in getAidlDevices()
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp223 ndk::ScopedAStatus createReusableExecution(const aidl_hal::Request&, const ExecutionConfig&, in createReusableExecution()
224 std::shared_ptr<aidl_hal::IExecution>*) override { in createReusableExecution()