Home
last modified time | relevance | path

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

123456

/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()
143 assertEquals("ScanResult capabilities", input.capabilities, in validateScanDetail()
144 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) {
326 capabilities);
[all …]
/frameworks/ml/nn/common/include/
DUtils.h308 bool compliantWithV1_0(const V1_0::Capabilities& capabilities);
309 bool compliantWithV1_0(const V1_1::Capabilities& capabilities);
310 bool compliantWithV1_0(const V1_2::Capabilities& capabilities);
311 bool compliantWithV1_1(const V1_0::Capabilities& capabilities);
312 bool compliantWithV1_1(const V1_1::Capabilities& capabilities);
313 bool compliantWithV1_1(const V1_2::Capabilities& capabilities);
314 bool compliantWithV1_2(const V1_0::Capabilities& capabilities);
315 bool compliantWithV1_2(const V1_1::Capabilities& capabilities);
316 bool compliantWithV1_2(const V1_2::Capabilities& capabilities);
335 V1_0::Capabilities convertToV1_0(const V1_0::Capabilities& 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+SAE"); in isScanResultForPskSaeTransitionNetwork()
204 r.capabilities); in dumpScanResults()
/frameworks/base/telephony/java/android/telephony/ims/feature/
DImsFeature.java227 protected Capabilities(int capabilities) { in Capabilities() argument
228 mCapabilities = capabilities; in Capabilities()
236 public void addCapabilities(int capabilities) { in addCapabilities() argument
237 mCapabilities |= capabilities; in addCapabilities()
245 public void removeCapabilities(int capabilities) { in removeCapabilities() argument
246 mCapabilities &= ~capabilities; in removeCapabilities()
253 public boolean isCapable(int capabilities) { in isCapable() argument
254 return (mCapabilities & capabilities) == capabilities; in isCapable()
DCapabilityChangeRequest.java129 @MmTelFeature.MmTelCapabilities.MmTelCapability int capabilities, in addCapabilitiesToEnableForTech()
131 addAllCapabilities(mCapabilitiesToEnable, capabilities, radioTech); in addCapabilitiesToEnableForTech()
142 @MmTelFeature.MmTelCapabilities.MmTelCapability int capabilities, in addCapabilitiesToDisableForTech()
144 addAllCapabilities(mCapabilitiesToDisable, capabilities, radioTech); in addCapabilitiesToDisableForTech()
163 private void addAllCapabilities(Set<CapabilityPair> set, int capabilities, int tech) { in addAllCapabilities() argument
164 long highestCapability = Long.highestOneBit(capabilities); in addAllCapabilities()
166 if ((i & capabilities) > 0) { in addAllCapabilities()
/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/base/telecomm/java/android/telecom/
DConnection.java665 public static boolean can(int capabilities, int capability) { in can() argument
666 return (capabilities & capability) == capability; in can()
706 public static String capabilitiesToString(int capabilities) { in capabilitiesToString() argument
707 return capabilitiesToStringInternal(capabilities, true /* isLong */); in capabilitiesToString()
718 public static String capabilitiesToStringShort(int capabilities) { in capabilitiesToStringShort() argument
719 return capabilitiesToStringInternal(capabilities, false /* isLong */); in capabilitiesToStringShort()
722 private static String capabilitiesToStringInternal(int capabilities, boolean isLong) { in capabilitiesToStringInternal() argument
729 if (can(capabilities, CAPABILITY_HOLD)) { in capabilitiesToStringInternal()
732 if (can(capabilities, CAPABILITY_SUPPORT_HOLD)) { in capabilitiesToStringInternal()
735 if (can(capabilities, CAPABILITY_MERGE_CONFERENCE)) { in capabilitiesToStringInternal()
[all …]
DCall.java564 public static boolean can(int capabilities, int capability) { in can() argument
565 return (capabilities & capability) == capability; in can()
584 public static String capabilitiesToString(int capabilities) { in capabilitiesToString() argument
587 if (can(capabilities, CAPABILITY_HOLD)) { in capabilitiesToString()
590 if (can(capabilities, CAPABILITY_SUPPORT_HOLD)) { in capabilitiesToString()
593 if (can(capabilities, CAPABILITY_MERGE_CONFERENCE)) { in capabilitiesToString()
596 if (can(capabilities, CAPABILITY_SWAP_CONFERENCE)) { in capabilitiesToString()
599 if (can(capabilities, CAPABILITY_RESPOND_VIA_TEXT)) { in capabilitiesToString()
602 if (can(capabilities, CAPABILITY_MUTE)) { in capabilitiesToString()
605 if (can(capabilities, CAPABILITY_MANAGE_CONFERENCE)) { in capabilitiesToString()
[all …]
DParcelableConnection.java62 int capabilities, in ParcelableConnection() argument
81 this(phoneAccount, state, capabilities, properties, supportedAudioRoutes, address, in ParcelableConnection()
94 int capabilities, in ParcelableConnection() argument
113 mConnectionCapabilities = capabilities; in ParcelableConnection()
258 int capabilities = source.readInt();
283 capabilities,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneConnection.java275 private int applyLocalCallCapabilities(ImsCallProfile localProfile, int capabilities) { in applyLocalCallCapabilities() argument
277 capabilities = removeCapability(capabilities, in applyLocalCallCapabilities()
282 return capabilities; in applyLocalCallCapabilities()
288 capabilities = addCapability(capabilities, in applyLocalCallCapabilities()
292 return capabilities; in applyLocalCallCapabilities()
295 private static int applyRemoteCallCapabilities(ImsCallProfile remoteProfile, int capabilities) { in applyRemoteCallCapabilities() argument
297 capabilities = removeCapability(capabilities, in applyRemoteCallCapabilities()
304 capabilities = addCapability(capabilities, in applyRemoteCallCapabilities()
308 return capabilities; in applyRemoteCallCapabilities()
946 int capabilities = getConnectionCapabilities(); in updateMediaCapabilities() local
[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/
DSampleDriverFloatSlow.cpp45 Capabilities capabilities = { in getCapabilities_1_2() local
49 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_2()
51 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_2()
54 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_2()
DSampleDriverFloatFast.cpp45 Capabilities capabilities = { in getCapabilities_1_2() local
49 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_2()
51 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_2()
54 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_2()
DSampleDriverMinimal.cpp46 Capabilities capabilities = { in getCapabilities_1_2() local
50 update(&capabilities.operandPerformance, OperandType::TENSOR_FLOAT32, in getCapabilities_1_2()
52 update(&capabilities.operandPerformance, OperandType::FLOAT32, in getCapabilities_1_2()
55 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_2()
DSampleDriverFull.cpp32 Capabilities capabilities = {.relaxedFloat32toFloat16PerformanceScalar = mPerf, in getCapabilities_1_2() local
35 cb(ErrorStatus::NONE, capabilities); in getCapabilities_1_2()
/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/ml/nn/common/
DUtils.cpp1850 static bool isQuantized8PerformanceConsistentWithP(const V1_2::Capabilities& capabilities) { in isQuantized8PerformanceConsistentWithP() argument
1852 lookup(capabilities.operandPerformance, OperandType::TENSOR_QUANT8_ASYMM); in isQuantized8PerformanceConsistentWithP()
1855 [quantized8Performance, &capabilities](OperandType type) { in isQuantized8PerformanceConsistentWithP()
1857 lookup(capabilities.operandPerformance, type); in isQuantized8PerformanceConsistentWithP()
1879 bool compliantWithV1_0(const V1_1::Capabilities& capabilities) { in compliantWithV1_0() argument
1880 return capabilities.relaxedFloat32toFloat16Performance == capabilities.float32Performance; in compliantWithV1_0()
1883 bool compliantWithV1_0(const V1_2::Capabilities& capabilities) { in compliantWithV1_0() argument
1885 lookup(capabilities.operandPerformance, OperandType::TENSOR_FLOAT32); in compliantWithV1_0()
1887 lookup(capabilities.operandPerformance, OperandType::FLOAT32); in compliantWithV1_0()
1889 perfTensorFloat32 != capabilities.relaxedFloat32toFloat16PerformanceTensor || in compliantWithV1_0()
[all …]
/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.cpp1166 jlong capabilities = 0; in CalculateCapabilities() local
1178 capabilities |= (1LL << CAP_WAKE_ALARM); in CalculateCapabilities()
1179 capabilities |= (1LL << CAP_NET_ADMIN); in CalculateCapabilities()
1180 capabilities |= (1LL << CAP_NET_RAW); in CalculateCapabilities()
1181 capabilities |= (1LL << CAP_NET_BIND_SERVICE); in CalculateCapabilities()
1182 capabilities |= (1LL << CAP_SYS_NICE); in CalculateCapabilities()
1186 capabilities |= (1LL << CAP_NET_ADMIN); in CalculateCapabilities()
1187 capabilities |= (1LL << CAP_NET_BROADCAST); in CalculateCapabilities()
1188 capabilities |= (1LL << CAP_NET_BIND_SERVICE); in CalculateCapabilities()
1189 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.java75 public String capabilities; field in ScanResult
530 this.capabilities = caps; in ScanResult()
552 this.capabilities = caps; in ScanResult()
577 this.capabilities = caps; in ScanResult()
617 capabilities = source.capabilities; in ScanResult()
656 append(capabilities == null ? none : capabilities). in toString()
700 dest.writeString(capabilities); in writeToParcel()

123456