Home
last modified time | relevance | path

Searched refs:capabilities (Results 1 – 25 of 158) sorted by relevance

1234567

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java266 InformationElementUtil.Capabilities capabilities = in buildCapabilities_rsnElement() local
268 capabilities.from(ies, beaconCap, false); in buildCapabilities_rsnElement()
269 String result = capabilities.generateCapabilitiesString(); in buildCapabilities_rsnElement()
292 InformationElementUtil.Capabilities capabilities = in buildCapabilities_malformedRsnElement() local
294 capabilities.from(ies, beaconCap, false); in buildCapabilities_malformedRsnElement()
295 String result = capabilities.generateCapabilitiesString(); in buildCapabilities_malformedRsnElement()
320 InformationElementUtil.Capabilities capabilities = in buildCapabilities_wpa1Element() local
322 capabilities.from(ies, beaconCap, false); in buildCapabilities_wpa1Element()
323 String result = capabilities.generateCapabilitiesString(); in buildCapabilities_wpa1Element()
344 InformationElementUtil.Capabilities capabilities = in buildCapabilities_malformedWpa1Element() local
[all …]
DScanResultUtilTest.java95 scanResult.capabilities = ""; in testNetworkCreationFromScanResult()
100 scanResult.capabilities = "WEP"; in testNetworkCreationFromScanResult()
107 scanResult.capabilities = "PSK"; in testNetworkCreationFromScanResult()
112 scanResult.capabilities = "EAP"; in testNetworkCreationFromScanResult()
219 assertEquals("ScanResult capabilities", input.capabilities, in validateScanDetail()
220 output.getScanResult().capabilities); in validateScanDetail()
/frameworks/base/services/core/java/com/android/server/location/
DGnssMeasurementCorrectionsProvider.java86 boolean onCapabilitiesUpdated(int capabilities) { in onCapabilitiesUpdated() argument
87 if (hasCapability(capabilities, CAPABILITY_LOS_SATS) || hasCapability(capabilities, in onCapabilitiesUpdated()
89 mCapabilities = capabilities; in onCapabilitiesUpdated()
93 + Integer.toHexString(capabilities) + " does not contain the mandatory " in onCapabilitiesUpdated()
110 final int capabilities = getCapabilities(); in toStringCapabilities() local
112 s.append("mCapabilities=0x").append(Integer.toHexString(capabilities)); in toStringCapabilities()
114 if (hasCapability(capabilities, CAPABILITY_LOS_SATS)) { in toStringCapabilities()
117 if (hasCapability(capabilities, CAPABILITY_EXCESS_PATH_LENGTH)) { in toStringCapabilities()
120 if (hasCapability(capabilities, CAPABILITY_REFLECTING_PLANE)) { in toStringCapabilities()
DGnssNetworkConnectivityHandler.java136 private static short getCapabilityFlags(NetworkCapabilities capabilities) { in getCapabilityFlags() argument
138 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING)) { in getCapabilityFlags()
141 if (capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_METERED)) { in getCapabilityFlags()
238 NetworkCapabilities capabilities) { in createNetworkConnectivityCallback() argument
243 mAvailableNetworkCapabilities.get(network), capabilities)) { in createNetworkConnectivityCallback()
246 + capabilities); in createNetworkConnectivityCallback()
251 mAvailableNetworkCapabilities.put(network, capabilities); in createNetworkConnectivityCallback()
260 handleUpdateNetworkState(network, true, capabilities); in createNetworkConnectivityCallback()
323 NetworkCapabilities capabilities) {
330 capabilities);
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java162 final NetworkCapabilities capabilities = mConnManager.getNetworkCapabilities( in isNetworkAvailable() local
164 final boolean satisfied = isSatisfied(job, network, capabilities, mConstants); in isNetworkAvailable()
167 + " and capabilities " + capabilities + ". Satisfied=" + satisfied); in isNetworkAvailable()
323 NetworkCapabilities capabilities, Constants constants) { in isInsane() argument
333 capabilities.getLinkDownstreamBandwidthKbps(), in isInsane()
334 capabilities.getLinkUpstreamBandwidthKbps()); in isInsane()
354 NetworkCapabilities capabilities, Constants constants) { in isCongestionDelayed() argument
357 if (!capabilities.hasCapability(NET_CAPABILITY_NOT_CONGESTED)) { in isCongestionDelayed()
366 NetworkCapabilities capabilities, Constants constants) { in isStrictSatisfied() argument
368 .satisfiedByNetworkCapabilities(capabilities); in isStrictSatisfied()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java54 return scanResult.capabilities.contains("PSK"); in isScanResultForPskNetwork()
62 return scanResult.capabilities.contains("EAP"); in isScanResultForEapNetwork()
70 return scanResult.capabilities.contains("SUITE-B-192"); in isScanResultForEapSuiteBNetwork()
78 return scanResult.capabilities.contains("WEP"); in isScanResultForWepNetwork()
86 return scanResult.capabilities.contains("OWE"); in isScanResultForOweNetwork()
94 return scanResult.capabilities.contains("OWE_TRANSITION"); in isScanResultForOweTransitionNetwork()
102 return scanResult.capabilities.contains("SAE"); in isScanResultForSaeNetwork()
110 return scanResult.capabilities.contains("PSK") && scanResult.capabilities.contains("SAE"); in isScanResultForPskSaeTransitionNetwork()
204 r.capabilities); in dumpScanResults()
/frameworks/ml/nn/common/include/
DUtils.h435 bool compliantWithV1_0(const hal::V1_0::Capabilities& capabilities);
436 bool compliantWithV1_0(const hal::V1_1::Capabilities& capabilities);
437 bool compliantWithV1_0(const hal::V1_2::Capabilities& capabilities);
438 bool compliantWithV1_0(const hal::V1_3::Capabilities& capabilities);
439 bool compliantWithV1_1(const hal::V1_0::Capabilities& capabilities);
440 bool compliantWithV1_1(const hal::V1_1::Capabilities& capabilities);
441 bool compliantWithV1_1(const hal::V1_2::Capabilities& capabilities);
442 bool compliantWithV1_1(const hal::V1_3::Capabilities& capabilities);
443 bool compliantWithV1_2(const hal::V1_0::Capabilities& capabilities);
444 bool compliantWithV1_2(const hal::V1_1::Capabilities& capabilities);
[all …]
/frameworks/base/telephony/java/android/telephony/ims/feature/
DRcsFeature.java118 public void updateCapabilities(RcsContactUceCapability capabilities, int operationToken) in updateCapabilities() argument
121 .updateCapabilities(capabilities, operationToken), in updateCapabilities()
127 public void sendCapabilityRequest(Uri contactUri, RcsContactUceCapability capabilities, in sendCapabilityRequest() argument
130 .sendCapabilityRequest(contactUri, capabilities, operationToken), in sendCapabilityRequest()
228 public RcsImsCapabilities(@RcsImsCapabilityFlag int capabilities) { in RcsImsCapabilities() argument
229 super(capabilities); in RcsImsCapabilities()
237 public void addCapabilities(@RcsImsCapabilityFlag int capabilities) { in addCapabilities() argument
238 super.addCapabilities(capabilities); in addCapabilities()
242 public void removeCapabilities(@RcsImsCapabilityFlag int capabilities) { in removeCapabilities() argument
243 super.removeCapabilities(capabilities); in removeCapabilities()
[all …]
DImsFeature.java248 protected Capabilities(int capabilities) { in Capabilities() argument
249 mCapabilities = capabilities; in Capabilities()
257 public void addCapabilities(int capabilities) { in addCapabilities() argument
258 mCapabilities |= capabilities; in addCapabilities()
266 public void removeCapabilities(int capabilities) { in removeCapabilities() argument
267 mCapabilities &= ~capabilities; in removeCapabilities()
274 public boolean isCapable(int capabilities) { in isCapable() argument
275 return (mCapabilities & capabilities) == capabilities; in isCapable()
DCapabilityChangeRequest.java133 @MmTelFeature.MmTelCapabilities.MmTelCapability int capabilities, in addCapabilitiesToEnableForTech()
135 addAllCapabilities(mCapabilitiesToEnable, capabilities, radioTech); in addCapabilitiesToEnableForTech()
146 @MmTelFeature.MmTelCapabilities.MmTelCapability int capabilities, in addCapabilitiesToDisableForTech()
148 addAllCapabilities(mCapabilitiesToDisable, capabilities, radioTech); in addCapabilitiesToDisableForTech()
167 private void addAllCapabilities(Set<CapabilityPair> set, int capabilities, int tech) { in addAllCapabilities() argument
168 long highestCapability = Long.highestOneBit(capabilities); in addAllCapabilities()
170 if ((i & capabilities) > 0) { in addAllCapabilities()
/frameworks/ml/nn/common/
DUtils.cpp2077 static bool isQuantized8PerformanceConsistentWithP(const V1_2::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP() argument
2079 lookup(capabilities.operandPerformance, V1_2::OperandType::TENSOR_QUANT8_ASYMM); in isQuantized8PerformanceConsistentWithP()
2082 [quantized8Performance, &capabilities](OperandType type) { in isQuantized8PerformanceConsistentWithP()
2084 lookup(capabilities.operandPerformance, in isQuantized8PerformanceConsistentWithP()
2089 static bool isQuantized8PerformanceConsistentWithP(const V1_3::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP() argument
2091 lookup(capabilities.operandPerformance, OperandType::TENSOR_QUANT8_ASYMM); in isQuantized8PerformanceConsistentWithP()
2094 [quantized8Performance, &capabilities](OperandType type) { in isQuantized8PerformanceConsistentWithP()
2096 lookup(capabilities.operandPerformance, type); in isQuantized8PerformanceConsistentWithP()
2117 bool compliantWithV1_0(const V1_1::Capabilities& capabilities) { in compliantWithV1_0() argument
2118 return capabilities.relaxedFloat32toFloat16Performance == capabilities.float32Performance; in compliantWithV1_0()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeCallback.java147 NanCapabilities capabilities) { in notifyCapabilitiesResponse() argument
150 + ", capabilities=" + capabilities); in notifyCapabilitiesResponse()
155 frameworkCapabilities.maxConcurrentAwareClusters = capabilities.maxConcurrentClusters; in notifyCapabilitiesResponse()
156 frameworkCapabilities.maxPublishes = capabilities.maxPublishes; in notifyCapabilitiesResponse()
157 frameworkCapabilities.maxSubscribes = capabilities.maxSubscribes; in notifyCapabilitiesResponse()
158 frameworkCapabilities.maxServiceNameLen = capabilities.maxServiceNameLen; in notifyCapabilitiesResponse()
159 frameworkCapabilities.maxMatchFilterLen = capabilities.maxMatchFilterLen; in notifyCapabilitiesResponse()
160 frameworkCapabilities.maxTotalMatchFilterLen = capabilities.maxTotalMatchFilterLen; in notifyCapabilitiesResponse()
162 capabilities.maxServiceSpecificInfoLen; in notifyCapabilitiesResponse()
164 capabilities.maxExtendedServiceSpecificInfoLen; in notifyCapabilitiesResponse()
[all …]
/frameworks/wilhelm/src/itf/
DIPlaybackRate.cpp136 SLuint32 capabilities; in IPlaybackRate_GetCapabilitiesOfRate() local
139 capabilities = 0; in IPlaybackRate_GetCapabilitiesOfRate()
142 capabilities = thiz->mCapabilities; in IPlaybackRate_GetCapabilitiesOfRate()
145 *pCapabilities = capabilities; in IPlaybackRate_GetCapabilitiesOfRate()
167 SLuint32 capabilities = thiz->mCapabilities; in IPlaybackRate_GetRateRange() local
171 *pCapabilities = capabilities; in IPlaybackRate_GetRateRange()
/frameworks/ml/nn/driver/sample/
DSampleDriverMinimal.cpp50 Capabilities capabilities = { in getCapabilities_1_3() local
56 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_3()
58 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_3()
61 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_3()
DSampleDriverFloatSlow.cpp49 Capabilities capabilities = { in getCapabilities_1_3() local
55 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_3()
57 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_3()
60 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_3()
DSampleDriverFloatFast.cpp49 Capabilities capabilities = { in getCapabilities_1_3() local
55 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_3()
57 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_3()
60 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_3()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java311 private int applyLocalCallCapabilities(ImsCallProfile localProfile, int capabilities) { in applyLocalCallCapabilities() argument
313 capabilities = removeCapability(capabilities, in applyLocalCallCapabilities()
318 return capabilities; in applyLocalCallCapabilities()
324 capabilities = addCapability(capabilities, in applyLocalCallCapabilities()
328 return capabilities; in applyLocalCallCapabilities()
331 private static int applyRemoteCallCapabilities(ImsCallProfile remoteProfile, int capabilities) { in applyRemoteCallCapabilities() argument
333 capabilities = removeCapability(capabilities, in applyRemoteCallCapabilities()
340 capabilities = addCapability(capabilities, in applyRemoteCallCapabilities()
344 return capabilities; in applyRemoteCallCapabilities()
1020 int capabilities = getConnectionCapabilities(); in updateMediaCapabilities() local
[all …]
/frameworks/base/telecomm/java/android/telecom/
DCall.java641 public static boolean can(int capabilities, int capability) { in can() argument
642 return (capabilities & capability) == capability; in can()
661 public static String capabilitiesToString(int capabilities) { in capabilitiesToString() argument
664 if (can(capabilities, CAPABILITY_HOLD)) { in capabilitiesToString()
667 if (can(capabilities, CAPABILITY_SUPPORT_HOLD)) { in capabilitiesToString()
670 if (can(capabilities, CAPABILITY_MERGE_CONFERENCE)) { in capabilitiesToString()
673 if (can(capabilities, CAPABILITY_SWAP_CONFERENCE)) { in capabilitiesToString()
676 if (can(capabilities, CAPABILITY_RESPOND_VIA_TEXT)) { in capabilitiesToString()
679 if (can(capabilities, CAPABILITY_MUTE)) { in capabilitiesToString()
682 if (can(capabilities, CAPABILITY_MANAGE_CONFERENCE)) { in capabilitiesToString()
[all …]
DConnection.java894 public static String capabilitiesToString(int capabilities) { in capabilitiesToString() argument
895 return capabilitiesToStringInternal(capabilities, true /* isLong */); in capabilitiesToString()
906 public static String capabilitiesToStringShort(int capabilities) { in capabilitiesToStringShort() argument
907 return capabilitiesToStringInternal(capabilities, false /* isLong */); in capabilitiesToStringShort()
910 private static String capabilitiesToStringInternal(int capabilities, boolean isLong) { in capabilitiesToStringInternal() argument
917 if ((capabilities & CAPABILITY_HOLD) == CAPABILITY_HOLD) { in capabilitiesToStringInternal()
920 if ((capabilities & CAPABILITY_SUPPORT_HOLD) == CAPABILITY_SUPPORT_HOLD) { in capabilitiesToStringInternal()
923 if ((capabilities & CAPABILITY_MERGE_CONFERENCE) == CAPABILITY_MERGE_CONFERENCE) { in capabilitiesToStringInternal()
926 if ((capabilities & CAPABILITY_SWAP_CONFERENCE) == CAPABILITY_SWAP_CONFERENCE) { in capabilitiesToStringInternal()
929 if ((capabilities & CAPABILITY_RESPOND_VIA_TEXT) == CAPABILITY_RESPOND_VIA_TEXT) { in capabilitiesToStringInternal()
[all …]
DParcelableConnection.java63 int capabilities, in ParcelableConnection() argument
83 this(phoneAccount, state, capabilities, properties, supportedAudioRoutes, address, in ParcelableConnection()
96 int capabilities, in ParcelableConnection() argument
116 mConnectionCapabilities = capabilities; in ParcelableConnection()
266 int capabilities = source.readInt();
292 capabilities,
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCameraSettings.java31 public AndroidCameraSettings(CameraCapabilities capabilities, Camera.Parameters params) { in AndroidCameraSettings() argument
37 CameraCapabilities.Stringifier stringifier = capabilities.getStringifier(); in AndroidCameraSettings()
52 if (capabilities.supports(CameraCapabilities.Feature.ZOOM)) { in AndroidCameraSettings()
63 if (capabilities.supports(CameraCapabilities.Feature.VIDEO_STABILIZATION)) { in AndroidCameraSettings()
/frameworks/wilhelm/tests/mimeUri/
DslesTestSlowDownUri.cpp148 void printCapabilities(SLuint32 capabilities) in printCapabilities() argument
151 printf("0x%x (", capabilities); in printCapabilities()
153 if (capabilities & SL_RATEPROP_##x) { \ in printCapabilities()
158 capabilities &= ~SL_RATEPROP_##x; \ in printCapabilities()
164 if (capabilities != 0) { in printCapabilities()
167 printf("0x%x", capabilities); in printCapabilities()
307 SLuint32 capabilities; in TestSlowDownUri() local
309 &capabilities); in TestSlowDownUri()
322 printCapabilities(capabilities); in TestSlowDownUri()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp1332 jlong capabilities = 0; in CalculateCapabilities() local
1344 capabilities |= (1LL << CAP_WAKE_ALARM); in CalculateCapabilities()
1345 capabilities |= (1LL << CAP_NET_ADMIN); in CalculateCapabilities()
1346 capabilities |= (1LL << CAP_NET_RAW); in CalculateCapabilities()
1347 capabilities |= (1LL << CAP_NET_BIND_SERVICE); in CalculateCapabilities()
1348 capabilities |= (1LL << CAP_SYS_NICE); in CalculateCapabilities()
1352 capabilities |= (1LL << CAP_NET_ADMIN); in CalculateCapabilities()
1353 capabilities |= (1LL << CAP_NET_BROADCAST); in CalculateCapabilities()
1354 capabilities |= (1LL << CAP_NET_BIND_SERVICE); in CalculateCapabilities()
1355 capabilities |= (1LL << CAP_NET_RAW); in CalculateCapabilities()
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java725 public void setCapabilities(int capabilities) { in setCapabilities() argument
726 mCapabilities = capabilities; in setCapabilities()
1005 private static void appendCapabilities(StringBuilder stringBuilder, int capabilities) { in appendCapabilities() argument
1008 while (capabilities != 0) { in appendCapabilities()
1009 final int capabilityBit = (1 << Integer.numberOfTrailingZeros(capabilities)); in appendCapabilities()
1011 capabilities &= ~capabilityBit; in appendCapabilities()
1012 if (capabilities != 0) { in appendCapabilities()
1158 int capabilities = mCapabilities; in getCapabilityInfos() local
1162 while (capabilities != 0) { in getCapabilityInfos()
1163 final int capabilityBit = 1 << Integer.numberOfTrailingZeros(capabilities); in getCapabilityInfos()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DScanResult.java78 public String capabilities; field in ScanResult
575 this.capabilities = caps; in ScanResult()
597 this.capabilities = caps; in ScanResult()
622 this.capabilities = caps; in ScanResult()
662 capabilities = source.capabilities; in ScanResult()
701 append(capabilities == null ? none : capabilities). in toString()
745 dest.writeString(capabilities); in writeToParcel()

1234567