Home
last modified time | relevance | path

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

1234

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/pose/
DIPoseSource.java37 enum Capabilities { enum
45 public static final EnumSet<Capabilities> ALL = EnumSet.allOf(Capabilities.class);
46 public static final EnumSet<Capabilities> NONE = EnumSet.noneOf(Capabilities.class);
47 public static final EnumSet<Capabilities> ROTATION = EnumSet.of(
48 Capabilities.YAW,
49 Capabilities.PITCH,
50 Capabilities.ROLL
52 public static final EnumSet<Capabilities> UPRIGHT_ROTATION = EnumSet.of(
53 Capabilities.YAW,
54 Capabilities.PITCH,
[all …]
/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/OnDevicePersonalization/tests/chronicletests/src/com/android/libraries/pcc/chronicle/test/
DChronicleApiPolicyCapabilitiesTest.kt26 import com.android.libraries.pcc.chronicle.api.policy.capabilities.Capabilities
43 assertThat(Capabilities().isEmpty).isTrue() in testCapabilitiesEmpty()
44 assertThat(Capabilities.fromAnnotations(emptyList<Annotation>()).isEmpty).isTrue() in testCapabilitiesEmpty()
45 assertThat(Capabilities(Persistence.ON_DISK).isEmpty).isFalse() in testCapabilitiesEmpty()
46 assertThat(Capabilities(listOf(Persistence.ON_DISK)).isEmpty).isFalse() in testCapabilitiesEmpty()
52 Capabilities(listOf(Ttl.Days(1).toRange(), Ttl.Hours(3))) in testCapabilitiesUnique()
58 val persistent = Capabilities.fromAnnotation(Annotation.createCapability("persistent")) in testCapabilitiesFromAnnotationsPersistent()
68 val ttl30d = Capabilities.fromAnnotation(Annotation.createTtl("30d")) in testCapabilitiesFromAnnotationsTtl()
79 Capabilities.fromAnnotations( in testCapabilitiesFromAnnotationsPersistentAndTtl()
92 Capabilities.fromAnnotations( in testCapabilitiesFromAnnotationsQueryableAndEncrypted()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DLimitedSupportDevice.cpp46 Capabilities makeCapabilitiesFloatFast() { in makeCapabilitiesFloatFast()
47 const Capabilities::PerformanceInfo defaultInfo = {.execTime = 1.0f, .powerUsage = 1.0f}; in makeCapabilitiesFloatFast()
48 const Capabilities::PerformanceInfo float32Info = {.execTime = 0.8f, .powerUsage = 1.2f}; in makeCapabilitiesFloatFast()
49 const Capabilities::PerformanceInfo relaxedInfo = {.execTime = 0.7f, .powerUsage = 1.1f}; in makeCapabilitiesFloatFast()
53 Capabilities makeCapabilitiesFloatSlow() { in makeCapabilitiesFloatSlow()
54 const Capabilities::PerformanceInfo defaultInfo = {.execTime = 1.0f, .powerUsage = 1.0f}; in makeCapabilitiesFloatSlow()
55 const Capabilities::PerformanceInfo float32Info = {.execTime = 1.3f, .powerUsage = 0.7f}; in makeCapabilitiesFloatSlow()
56 const Capabilities::PerformanceInfo relaxedInfo = {.execTime = 1.2f, .powerUsage = 0.6f}; in makeCapabilitiesFloatSlow()
60 Capabilities makeCapabilitiesMinimal() { in makeCapabilitiesMinimal()
61 const Capabilities::PerformanceInfo defaultInfo = {.execTime = 1.0f, .powerUsage = 1.0f}; in makeCapabilitiesMinimal()
[all …]
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;
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypeUtils.h84 Capabilities makeCapabilities(const Capabilities::PerformanceInfo& defaultInfo,
85 const Capabilities::PerformanceInfo& float32Info,
86 const Capabilities::PerformanceInfo& relaxedInfo);
102 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);
140 bool operator==(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b);
141 bool operator!=(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b);
142 bool operator==(const Capabilities::OperandPerformance& a,
[all …]
/packages/modules/NeuralNetworks/common/
DLegacyHalUtils.cpp257 template hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
259 template hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>
275 void update(hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>* operandPerformance, in update()
279 void update(hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>* operandPerformance, in update()
303 const hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>& operandPerformance, in lookup()
308 const hardware::hidl_vec<V1_3::Capabilities::OperandPerformance>& operandPerformance, in lookup()
328 static bool isQuantized8PerformanceConsistentWithP(const V1_2::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP()
340 static bool isQuantized8PerformanceConsistentWithP(const V1_3::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP()
351 static hardware::hidl_vec<V1_2::Capabilities::OperandPerformance>
353 hardware::hidl_vec<V1_2::Capabilities::OperandPerformance> ret( in makeQuantized8PerformanceConsistentWithP()
[all …]
/packages/modules/NeuralNetworks/common/types/src/
DTypes.cpp84 Capabilities::OperandPerformanceTable::OperandPerformanceTable( in OperandPerformanceTable()
88 Result<Capabilities::OperandPerformanceTable> Capabilities::OperandPerformanceTable::create( in create()
98 return Capabilities::OperandPerformanceTable(std::move(operandPerformances)); in create()
101 Capabilities::PerformanceInfo Capabilities::OperandPerformanceTable::lookup( in lookup()
113 return Capabilities::PerformanceInfo{}; in lookup()
116 const std::vector<Capabilities::OperandPerformance>&
117 Capabilities::OperandPerformanceTable::asVector() const { in asVector()
DTypeUtils.cpp67 std::vector<Capabilities::OperandPerformance> makeOperandPerformance( in makeOperandPerformance()
68 const Capabilities::PerformanceInfo& perfInfo) { in makeOperandPerformance()
89 std::vector<Capabilities::OperandPerformance> operandPerformance; in makeOperandPerformance()
93 return Capabilities::OperandPerformance{.type = op, .info = perfInfo}; in makeOperandPerformance()
98 void update(std::vector<Capabilities::OperandPerformance>* operandPerformance, OperandType type, in update()
99 const Capabilities::PerformanceInfo& info) { in update()
102 [](const Capabilities::OperandPerformance& perf, OperandType type) { in update()
291 Capabilities makeCapabilities(const Capabilities::PerformanceInfo& defaultInfo, in makeCapabilities()
292 const Capabilities::PerformanceInfo& float32Info, in makeCapabilities()
293 const Capabilities::PerformanceInfo& relaxedInfo) { in makeCapabilities()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/pose/
DNullPoseSource.java29 private EnumSet<Capabilities> mCapabilities = Capabilities.ALL;
38 public EnumSet<Capabilities> getCapabilities() { in getCapabilities()
64 public void setCapabilities(EnumSet<Capabilities> mCapabilities) { in setCapabilities()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiRttController.java94 public static class Capabilities { class in WifiRttController
120 public Capabilities() { in Capabilities() method in WifiRttController.Capabilities
123 public Capabilities(android.hardware.wifi.V1_0.RttCapabilities rttHalCapabilities) { in Capabilities() method in WifiRttController.Capabilities
134 public Capabilities(android.hardware.wifi.V1_4.RttCapabilities rttHalCapabilities) { in Capabilities() method in WifiRttController.Capabilities
145 public Capabilities(android.hardware.wifi.V1_6.RttCapabilities rttHalCapabilities) { in Capabilities() method in WifiRttController.Capabilities
156 public Capabilities(android.hardware.wifi.RttCapabilities rttHalCapabilities) { in Capabilities() method in WifiRttController.Capabilities
250 public Capabilities getRttCapabilities() { in getRttCapabilities()
DIWifiNanIface.java26 import com.android.server.wifi.aware.Capabilities;
191 boolean isOutOfBand, byte[] appInfo, Capabilities capabilities, in initiateDataPath()
213 boolean isOutOfBand, Capabilities capabilities, in respondToDataPathRequest()
DWifiNanIfaceCallbackHidlImpl.java38 import com.android.server.wifi.aware.Capabilities;
78 Capabilities frameworkCapabilities = toFrameworkCapability10(capabilities); in notifyCapabilitiesResponse()
97 Capabilities frameworkCapabilities = toFrameworkCapability10(capabilities.V1_0); in notifyCapabilitiesResponse_1_5()
118 Capabilities frameworkCapabilities = toFrameworkCapability1_6(capabilities); in notifyCapabilitiesResponse_1_6()
514 private Capabilities toFrameworkCapability10( in toFrameworkCapability10()
516 Capabilities frameworkCapabilities = new Capabilities(); in toFrameworkCapability10()
540 private Capabilities toFrameworkCapability1_6( in toFrameworkCapability1_6()
542 Capabilities frameworkCapabilities = new Capabilities(); in toFrameworkCapability1_6()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/
DCapabilities.kt26 class Capabilities(capabilities: List<Capability> = emptyList()) { in <lambda>() class
67 fun containsAll(other: Capabilities): Boolean { in <lambda>()
71 fun isEquivalent(other: Capabilities): Boolean { in <lambda>()
89 fun fromAnnotations(annotations: List<Annotation>): Capabilities { in <lambda>()
98 return Capabilities(ranges) in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DTimeZonePreferenceControllerTest.java30 import android.app.time.Capabilities;
108 int suggestManualCapability = suggestManualAllowed ? Capabilities.CAPABILITY_POSSESSED in createCapabilitiesAndConfig()
109 : Capabilities.CAPABILITY_NOT_SUPPORTED; in createCapabilitiesAndConfig()
112 .setConfigureAutoDetectionEnabledCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
114 .setConfigureGeoDetectionEnabledCapability(Capabilities.CAPABILITY_NOT_SUPPORTED) in createCapabilitiesAndConfig()
DLocationProviderStatusPreferenceControllerTest.java32 import android.app.time.Capabilities;
33 import android.app.time.Capabilities.CapabilityState;
258 ? Capabilities.CAPABILITY_POSSESSED : Capabilities.CAPABILITY_NOT_SUPPORTED; in createCapabilitiesAndConfig()
260 .setConfigureAutoDetectionEnabledCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
263 .setSetManualTimeZoneCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
DAutoTimePreferenceControllerTest.java27 import android.app.time.Capabilities;
159 autoSupported ? Capabilities.CAPABILITY_POSSESSED in createCapabilitiesAndConfig()
160 : Capabilities.CAPABILITY_NOT_SUPPORTED; in createCapabilitiesAndConfig()
163 .setSetManualTimeCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
DDatePreferenceControllerTest.java28 import android.app.time.Capabilities;
148 int suggestManualCapability = suggestManualAllowed ? Capabilities.CAPABILITY_POSSESSED in createCapabilitiesAndConfig()
149 : Capabilities.CAPABILITY_NOT_SUPPORTED; in createCapabilitiesAndConfig()
151 .setConfigureAutoDetectionEnabledCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
DAutoTimeZonePreferenceControllerTest.java33 import android.app.time.Capabilities;
250 autoSupported ? Capabilities.CAPABILITY_POSSESSED in createCapabilitiesAndConfig()
251 : Capabilities.CAPABILITY_NOT_SUPPORTED; in createCapabilitiesAndConfig()
255 .setConfigureGeoDetectionEnabledCapability(Capabilities.CAPABILITY_NOT_SUPPORTED) in createCapabilitiesAndConfig()
256 .setSetManualTimeZoneCapability(Capabilities.CAPABILITY_POSSESSED) in createCapabilitiesAndConfig()
/packages/apps/Settings/src/com/android/settings/datetime/
DAutoTimePreferenceController.java19 import static android.app.time.Capabilities.CAPABILITY_NOT_ALLOWED;
20 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE;
21 import static android.app.time.Capabilities.CAPABILITY_NOT_SUPPORTED;
22 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
DAutoTimeZonePreferenceController.java19 import static android.app.time.Capabilities.CAPABILITY_NOT_ALLOWED;
20 import static android.app.time.Capabilities.CAPABILITY_NOT_APPLICABLE;
21 import static android.app.time.Capabilities.CAPABILITY_NOT_SUPPORTED;
22 import static android.app.time.Capabilities.CAPABILITY_POSSESSED;
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/NeuralNetworks/runtime/
DManager.h143 virtual const Capabilities& getCapabilities() const = 0;
144 virtual Capabilities::PerformanceInfo getPerformance(OperandType type) const = 0;
145 virtual Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceScalar() const = 0;
146 virtual Capabilities::PerformanceInfo getRelaxedFloat32toFloat16PerformanceTensor() const = 0;
147 virtual Capabilities::PerformanceInfo getIfPerformance() const = 0;
148 virtual Capabilities::PerformanceInfo getWhilePerformance() const = 0;
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DElevationPrimerTest.java27 import com.android.server.uwb.correction.pose.IPoseSource.Capabilities;
39 nps.setCapabilities(EnumSet.of(Capabilities.UPRIGHT)); in hasElevationTest()
70 nps.setCapabilities(EnumSet.of(Capabilities.UPRIGHT)); in noElevationTest()
88 nps.setCapabilities(EnumSet.of(Capabilities.UPRIGHT)); in replaceElevationTest()

1234