Home
last modified time | relevance | path

Searched refs:Capabilities (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/NeuralNetworks/common/include/
DLegacyHalUtils.h66 using OperandPerformance = V1_2::Capabilities::OperandPerformance;
72 using OperandPerformance = V1_3::Capabilities::OperandPerformance;
97 void update(hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>* operandPerformance,
99 void update(hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>* operandPerformance,
106 const hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>& operandPerformance,
109 const hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>& operandPerformance,
196 bool compliantWithV1_0(const V1_0::Capabilities& capabilities);
197 bool compliantWithV1_0(const V1_1::Capabilities& capabilities);
198 bool compliantWithV1_0(const V1_2::Capabilities& capabilities);
199 bool compliantWithV1_0(const V1_3::Capabilities& capabilities);
[all …]
/packages/modules/NeuralNetworks/common/
DLegacyHalUtils.cpp256 template hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
258 template hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>
274 void update(hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>* operandPerformance, in update()
278 void update(hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>* operandPerformance, in update()
302 const hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>& operandPerformance, in lookup()
307 const hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>& operandPerformance, in lookup()
327 static bool isQuantized8PerformanceConsistentWithP(const V1_2::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP()
339 static bool isQuantized8PerformanceConsistentWithP(const V1_3::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP()
350 static hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
352 hardware::hidl_vec<V1_2::Capabilities::OperandPerformance> ret( in makeQuantized8PerformanceConsistentWithP()
[all …]
DTypes.cpp73 Capabilities::OperandPerformanceTable::OperandPerformanceTable( in OperandPerformanceTable()
77 Result<Capabilities::OperandPerformanceTable> Capabilities::OperandPerformanceTable::create( in create()
87 return Capabilities::OperandPerformanceTable(std::move(operandPerformances)); in create()
90 Capabilities::PerformanceInfo Capabilities::OperandPerformanceTable::lookup( in lookup()
102 return Capabilities::PerformanceInfo{}; in lookup()
105 const std::vector<Capabilities::OperandPerformance>&
106 Capabilities::OperandPerformanceTable::asVector() const { in asVector()
DTypeUtils.cpp639 std::ostream& operator<<(std::ostream& os, const Capabilities::PerformanceInfo& performanceInfo) { in operator <<()
645 const Capabilities::OperandPerformance& operandPerformance) { in operator <<()
651 const Capabilities::OperandPerformanceTable& operandPerformances) { in operator <<()
655 std::ostream& operator<<(std::ostream& os, const Capabilities& capabilities) { in operator <<()
922 bool operator==(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b) { in operator ==()
925 bool operator!=(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b) { in operator !=()
929 bool operator==(const Capabilities::OperandPerformance& a, in operator ==()
930 const Capabilities::OperandPerformance& b) { in operator ==()
933 bool operator!=(const Capabilities::OperandPerformance& a, in operator !=()
934 const Capabilities::OperandPerformance& b) { in operator !=()
[all …]
/packages/modules/NeuralNetworks/common/include/nnapi/
DTypeUtils.h102 std::ostream& operator<<(std::ostream& os, const Capabilities::PerformanceInfo& performanceInfo);
104 const Capabilities::OperandPerformance& operandPerformance);
106 const Capabilities::OperandPerformanceTable& operandPerformances);
107 std::ostream& operator<<(std::ostream& os, const Capabilities& capabilities);
141 bool operator==(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b);
142 bool operator!=(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b);
143 bool operator==(const Capabilities::OperandPerformance& a,
144 const Capabilities::OperandPerformance& b);
145 bool operator!=(const Capabilities::OperandPerformance& a,
146 const Capabilities::OperandPerformance& b);
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalDevice.cpp46 Capabilities makeCapabilities() { in makeCapabilities()
48 const Capabilities::PerformanceInfo kPerfInfo = {.execTime = kPerf, .powerUsage = kPerf}; in makeCapabilities()
68 std::vector<Capabilities::OperandPerformance> operandPerformance; in makeCapabilities()
72 return Capabilities::OperandPerformance{.type = op, .info = kPerfInfo}; in makeCapabilities()
75 Capabilities::OperandPerformanceTable::create(std::move(operandPerformance)).value(); in makeCapabilities()
125 const Capabilities& Device::getCapabilities() const { in getCapabilities()
126 static const Capabilities kCapabilities = makeCapabilities(); in getCapabilities()
DLimitedSupportDevice.h46 LimitedSupportDevice(SharedDevice device, Capabilities capabilities,
54 const Capabilities& getCapabilities() const override;
79 const Capabilities kCapabilities;
DLimitedSupportDevice.cpp42 LimitedSupportDevice::LimitedSupportDevice(SharedDevice device, Capabilities capabilities, in LimitedSupportDevice()
73 const Capabilities& LimitedSupportDevice::getCapabilities() const { in getCapabilities()
/packages/modules/NeuralNetworks/runtime/
DManager.h140 virtual const Capabilities& getCapabilities() const = 0;
141 virtual Capabilities::PerformanceInfo getPerformance(OperandType type) const = 0;
142 virtual Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceScalar() const = 0;
143 virtual Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceTensor() const = 0;
144 virtual Capabilities::PerformanceInfo getIfPerformance() const = 0;
145 virtual Capabilities::PerformanceInfo getWhilePerformance() const = 0;
DManager.cpp80 const Capabilities& getCapabilities() const override { return kInterface->getCapabilities(); } in getCapabilities()
81 Capabilities::PerformanceInfo getPerformance(OperandType type) const override { in getPerformance()
84 Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceScalar() const override { in getRelaxedFloat32toFloat16PerformanceScalar()
87 Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceTensor() const override { in getRelaxedFloat32toFloat16PerformanceTensor()
90 Capabilities::PerformanceInfo getIfPerformance() const override { in getIfPerformance()
93 Capabilities::PerformanceInfo getWhilePerformance() const override { in getWhilePerformance()
787 static Capabilities createCpuCapabilities() { in createCpuCapabilities()
788 constexpr Capabilities::PerformanceInfo kPerf = {.execTime = 1.0f, .powerUsage = 1.0f}; in createCpuCapabilities()
807 std::vector<Capabilities::OperandPerformance> operandPerformance; in createCpuCapabilities()
811 return Capabilities::OperandPerformance{.type = type, .info = kPerf}; in createCpuCapabilities()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DLocationTimeZoneDetectionPreferenceControllerTest.java19 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE;
20 import static android.app.time.Capabilities.CAPABILITY_NOT_SUPPORTED;
21 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
30 import android.app.time.Capabilities;
173 @Capabilities.CapabilityState int geoDetectionCapability) { in createTimeZoneCapabilities()
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttNative.java115 private volatile Capabilities mRttCapabilities;
201 public @Nullable Capabilities getRttCapabilities() { in getRttCapabilities()
233 mRttCapabilities = new Capabilities(capabilities14); in updateRttCapabilities()
248 mRttCapabilities = new Capabilities(capabilities); in updateRttCapabilities()
385 boolean isCalledFromPrivilegedContext, Capabilities cap) { in convertRangingRequestToRttConfigs()
466 RangingRequest request, boolean isCalledFromPrivilegedContext, Capabilities cap) { in convertRangingRequestToRttConfigs14()
625 Capabilities cap) { in halRttChannelBandwidthCapabilityLimiter()
647 private static int halRttPreambleCapabilityLimiter(int halRttPreamble, Capabilities cap) { in halRttPreambleCapabilityLimiter()
855 public class Capabilities { class in RttNative
873 public Capabilities(RttCapabilities rttHalCapabilities) { in Capabilities() method in RttNative.Capabilities
[all …]
/packages/apps/Settings/src/com/android/settings/datetime/
DLocationTimeZoneDetectionPreferenceController.java18 import static android.app.time.Capabilities.CAPABILITY_NOT_ALLOWED;
19 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE;
20 import static android.app.time.Capabilities.CAPABILITY_NOT_SUPPORTED;
21 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java300 InformationElementUtil.Capabilities capabilities = in verifyCapabilityStringFromIes()
301 new InformationElementUtil.Capabilities(); in verifyCapabilityStringFromIes()
950 InformationElementUtil.Capabilities capabilities = in buildCapabilities_IbssCapabilitySet()
951 new InformationElementUtil.Capabilities(); in buildCapabilities_IbssCapabilitySet()
967 InformationElementUtil.Capabilities capabilities = in buildCapabilities_DmgIbssCapabilitySet()
968 new InformationElementUtil.Capabilities(); in buildCapabilities_DmgIbssCapabilitySet()
984 InformationElementUtil.Capabilities capabilities = in buildCapabilities_DmgEssCapabilitySet()
985 new InformationElementUtil.Capabilities(); in buildCapabilities_DmgEssCapabilitySet()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverMinimal.cpp36 ndk::ScopedAStatus getCapabilities(aidl_hal::Capabilities* capabilities) override;
42 ndk::ScopedAStatus SampleDriverMinimal::getCapabilities(aidl_hal::Capabilities* capabilities) { in getCapabilities()
DSampleDriverFloatSlow.cpp37 ndk::ScopedAStatus getCapabilities(aidl_hal::Capabilities* capabilities) override;
43 ndk::ScopedAStatus SampleDriverFloatSlow::getCapabilities(aidl_hal::Capabilities* capabilities) { in getCapabilities()
DSampleDriverFloatFast.cpp38 ndk::ScopedAStatus getCapabilities(aidl_hal::Capabilities* capabilities) override;
44 ndk::ScopedAStatus SampleDriverFloatFast::getCapabilities(aidl_hal::Capabilities* capabilities) { in getCapabilities()
DSampleDriverQuant.cpp36 ndk::ScopedAStatus getCapabilities(aidl_hal::Capabilities* capabilities) override;
42 ndk::ScopedAStatus SampleDriverQuant::getCapabilities(aidl_hal::Capabilities* capabilities) { in getCapabilities()
DSampleDriverFull.h32 ndk::ScopedAStatus getCapabilities(aidl_hal::Capabilities* capabilities) override;
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeCallback.java180 Capabilities frameworkCapabilities = toFrameworkCapability10(capabilities); in notifyCapabilitiesResponse()
203 Capabilities frameworkCapabilities = toFrameworkCapability10(capabilities.V1_0); in notifyCapabilitiesResponse_1_5()
215 private Capabilities toFrameworkCapability10( in toFrameworkCapability10()
217 Capabilities frameworkCapabilities = new Capabilities(); in toFrameworkCapability10()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DTestUtils.java106 boolean isOutOfBand, byte[] appInfo, Capabilities capabilities) { in initiateDataPath()
113 boolean isOutOfBand, Capabilities capabilities) { in respondToDataPathRequest()
DWifiAwareServiceImplTest.java657 Capabilities cap = new Capabilities(); in testCapabilityTranslation()
749 Capabilities cap = new Capabilities(); in getCharacteristics()
DWifiAwareNativeApiTest.java670 Capabilities cap = new Capabilities(); in validateInitiateDataPath()
734 Capabilities cap = new Capabilities(); in validateRespondToDataPathRequest()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h47 ::ndk::ScopedAStatus getCapabilities(Capabilities* capabilities) override;
72 Capabilities mCapabilities;
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp101 Capabilities getCapabilities(const NnApiSupportLibrary* nnapi, ANeuralNetworksDevice* device) { in getCapabilities()
102 Capabilities capabilities; in getCapabilities()
461 ndk::ScopedAStatus ShimDevice::getCapabilities(Capabilities* capabilities) { in getCapabilities()

123