Home
last modified time | relevance | path

Searched refs:HalVersion (Results 1 – 17 of 17) sorted by relevance

/packages/modules/NeuralNetworks/common/
DLegacyUtils.cpp45 std::ostream& operator<<(std::ostream& os, const HalVersion& halVersion) { in operator <<()
47 case HalVersion::UNKNOWN: in operator <<()
49 case HalVersion::V1_0: in operator <<()
51 case HalVersion::V1_1: in operator <<()
53 case HalVersion::V1_2: in operator <<()
55 case HalVersion::V1_3: in operator <<()
57 case HalVersion::AIDL_V1: in operator <<()
59 case HalVersion::AIDL_V2: in operator <<()
61 case HalVersion::AIDL_UNSTABLE: in operator <<()
131 static Version convert(HalVersion halVersion) { in convert()
[all …]
DValidateHal.cpp42 static constexpr HalVersion version = HalVersion::V1_0;
46 static constexpr HalVersion version = HalVersion::V1_1;
50 static constexpr HalVersion version = HalVersion::V1_2;
54 static constexpr HalVersion version = HalVersion::V1_3;
434 static HalVersion getHalVersion(const V1_0::Operation&) { in getHalVersion()
435 return HalVersion::V1_0; in getHalVersion()
438 static HalVersion getHalVersion(const V1_1::Operation&) { in getHalVersion()
439 return HalVersion::V1_1; in getHalVersion()
442 static HalVersion getHalVersion(const V1_2::Operation&) { in getHalVersion()
443 return HalVersion::V1_2; in getHalVersion()
[all …]
DLegacyHalUtils.cpp193 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion()
194 HalVersion minSupportedHalVersion) { in validateHalVersion()
207 const std::vector<Operand>& operands, HalVersion halVersion) { in validateOperation()
209 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation()
236 template <HalVersion version>
258 nonExtensionOperandPerformance<HalVersion::V1_2>(V1_0::PerformanceInfo perf);
260 nonExtensionOperandPerformance<HalVersion::V1_3>(V1_0::PerformanceInfo perf);
262 template <HalVersion version>
277 update<HalVersion::V1_2>(operandPerformance, type, perf); in update()
281 update<HalVersion::V1_3>(operandPerformance, type, perf); in update()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp109 using HalVersion = nn::HalVersion; typedef
348 static SharedDevice makeTestDriver(HalVersion version, const char* name,
351 static HalVersion getMinHalVersion(ANeuralNetworksOperationType type);
353 static std::string to_string(HalVersion version);
374 HalVersion mMinHalVersion;
478 {HalVersion::V1_0, ANEURALNETWORKS_ADD, 3, 1, 2, nullptr},
479 {HalVersion::V1_0, ANEURALNETWORKS_LOGISTIC, 1, 1, -1, nullptr},
480 {HalVersion::V1_0, ANEURALNETWORKS_MUL, 3, 1, 2, nullptr},
481 {HalVersion::V1_0, ANEURALNETWORKS_RNN, 6, 2, 5,
483 {HalVersion::V1_0, ANEURALNETWORKS_TANH, 1, 1, -1, nullptr},
[all …]
DTestPartitioning.cpp165 using HalVersion = ::android::nn::HalVersion; typedef
195 HalVersion min(HalVersion a, HalVersion b) { in min()
1020 HalVersion halVersion = HalVersion::LATEST, in DeviceSpecification()
1027 HalVersion halVersion = HalVersion::LATEST, in DeviceSpecification()
1034 HalVersion halVersion = HalVersion::LATEST, in DeviceSpecification()
1041 HalVersion halVersion = HalVersion::LATEST, in DeviceSpecification()
1056 ::android::nn::nonExtensionOperandPerformance<HalVersion::V1_3>(
1061 DeviceSpecification(const std::string& name, float perf, HalVersion halVersion, in DeviceSpecification()
1074 HalVersion mHalVersion = HalVersion::LATEST;
1100 static uint32_t makeOperationMask(HalVersion halVersion, uint32_t operationMaskV1_0, in makeOperationMask()
[all …]
DHalUtils.h38 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(perfInfo), in makeCapabilities()
DTestMemoryDomain.cpp100 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestCompilationCaching.cpp172 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestExecution.cpp344 nn::nonExtensionOperandPerformance<nn::HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
DTestIntrospectionControl.cpp133 nn::nonExtensionOperandPerformance<nn::HalVersion::V1_3>(perfInfo), in DeviceSpecification()
/packages/modules/NeuralNetworks/common/include/
DValidateHal.h76 bool validatePool(const hardware::hidl_memory& pool, HalVersion ver = HalVersion::LATEST);
77 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver = HalVersion::LATEST);
DLegacyUtils.h78 enum class HalVersion : int32_t { enum
92 std::ostream& operator<<(std::ostream& os, const HalVersion& halVersion);
242 HalVersion halVersion, const SubgraphValidationHelper& helper);
DLegacyHalUtils.h61 template <HalVersion version>
65 struct VersionedType<HalVersion::V1_2> {
71 struct VersionedType<HalVersion::V1_3> {
76 template <HalVersion version>
78 template <HalVersion version>
90 template <HalVersion version>
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverFull.cpp36 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(mPerf), in getCapabilities_1_3()
DSampleDriverFloatXNNPACK.cpp1942 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>({1.0f, 1.0f}), in getCapabilities_1_3()
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp181 .operandPerformance = nonExtensionOperandPerformance<HalVersion::V1_3>(kPerf), in getCapabilities_1_3()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java194 import com.android.internal.telephony.HalVersion;
10803 HalVersion hv = phone.getHalVersion(service); in getHalVersion()
10804 if (hv.equals(HalVersion.UNKNOWN)) return -1; in getHalVersion()