Home
last modified time | relevance | path

Searched refs:hasCapability (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java83 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
87 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
91 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
95 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
99 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
103 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
107 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
111 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IA)) { in apnIdForNetworkRequest()
115 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_RCS)) { in apnIdForNetworkRequest()
120 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_XCAP)) { in apnIdForNetworkRequest()
[all …]
DApnContext.java549 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
552 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_MMS)) { in apnIdForNetworkRequest()
556 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in apnIdForNetworkRequest()
560 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in apnIdForNetworkRequest()
564 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in apnIdForNetworkRequest()
568 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in apnIdForNetworkRequest()
572 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in apnIdForNetworkRequest()
576 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_IA)) { in apnIdForNetworkRequest()
580 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_RCS)) { in apnIdForNetworkRequest()
585 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_XCAP)) { in apnIdForNetworkRequest()
[all …]
/frameworks/base/core/java/android/net/
DConnectivityManager.java1235 if (!netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in inferLegacyTypeForNetworkCapabilities()
1245 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in inferLegacyTypeForNetworkCapabilities()
1248 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in inferLegacyTypeForNetworkCapabilities()
1251 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in inferLegacyTypeForNetworkCapabilities()
1254 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_DUN)) { in inferLegacyTypeForNetworkCapabilities()
1257 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_SUPL)) { in inferLegacyTypeForNetworkCapabilities()
1265 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in inferLegacyTypeForNetworkCapabilities()
1280 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_CBS)) { in legacyTypeForNetworkCapabilities()
1283 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_IMS)) { in legacyTypeForNetworkCapabilities()
1286 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_FOTA)) { in legacyTypeForNetworkCapabilities()
[all …]
DNetworkCapabilities.java294 public boolean hasCapability(int capability) { in hasCapability() method in NetworkCapabilities
326 if (hasCapability(NET_CAPABILITY_VALIDATED)) return "NET_CAPABILITY_VALIDATED"; in describeFirstNonRequestableCapability()
327 if (hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL)) return "NET_CAPABILITY_CAPTIVE_PORTAL"; in describeFirstNonRequestableCapability()
DNetworkIdentity.java184 metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java1065 if (hasCapability(GPS_CAPABILITY_MSB) && (suplMode & AGPS_SUPL_MODE_MSB) != 0) { in getSuplMode()
1072 && hasCapability(GPS_CAPABILITY_MSA) in getSuplMode()
1212 if (mStarted && hasCapability(GPS_CAPABILITY_SCHEDULING)) { in updateRequirements()
1390 int interval = (hasCapability(GPS_CAPABILITY_SCHEDULING) ? mFixInterval : 1000); in startNavigating()
1406 if (!hasCapability(GPS_CAPABILITY_SCHEDULING)) { in startNavigating()
1441 private boolean hasCapability(int capability) { in hasCapability() method in GnssLocationProvider
1510 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mFixInterval < NO_FIX_TIMEOUT) { in reportLocation()
1521 if (!hasCapability(GPS_CAPABILITY_SCHEDULING) && mStarted && in reportLocation()
1679 if (hasCapability(GPS_CAPABILITY_ON_DEMAND_TIME)) { in setEngineCapabilities()
2363 if (hasCapability(GPS_CAPABILITY_SCHEDULING)) s.append("SCHEDULING ");
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java322 assertFalse(mNetworkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)); in connect()
335 networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in connect()
361 return caps != null && caps.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL);} }); in connectWithCaptivePortal()
870 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
878 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
886 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testUnlingeringDoesNotValidate()
967 assertTrue(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
972 assertFalse(mCm.getNetworkCapabilities(mWiFiNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
977 assertTrue(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
982 assertFalse(mCm.getNetworkCapabilities(mCellNetworkAgent.getNetwork()).hasCapability( in testCellularFallback()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java238 if (!networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED) && !pretendValidated) { in getCurrentScore()
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java120 boolean hasManualControl = hasCapability(capabilities, in resume()
175 private boolean hasCapability(int[] capabilities, int capability) { in hasCapability() method in CameraOps
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp313 bool Device::hasCapability(HWC2::Capability capability) const in hasCapability() function in HWC2::Device
402 if (hasCapability(Capability::SidebandStream)) { in loadFunctionPointers()
1044 if (!mDevice.hasCapability(Capability::SidebandStream)) { in setSidebandStream()
DHWC2.h94 bool hasCapability(HWC2::Capability capability) const;
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2034 if (networkCapabilities.hasCapability(NET_CAPABILITY_CAPTIVE_PORTAL) || in maybeHandleNetworkAgentMessage()
2035 networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in maybeHandleNetworkAgentMessage()
4009 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) == false) { in enforceNetworkRequestPermissions()
4043 if (networkCapabilities.hasCapability(NET_CAPABILITY_NOT_METERED) == false) { in enforceMeteredApnPolicy()
4436 if (nai.networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) != in updateCapabilities()
4437 networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED)) { in updateCapabilities()
4440 networkCapabilities.hasCapability(NET_CAPABILITY_NOT_RESTRICTED) ? in updateCapabilities()
4923 networkAgent.networkCapabilities.hasCapability( in updateNetworkInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java605 if (nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in updateConnectivity()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java789 if (nc != null && !nc.hasCapability(nc.NET_CAPABILITY_VALIDATED)) { in getSummary()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java3909 if (!networkRequest.networkCapabilities.hasCapability( in needNetworkFor()
3921 if (!networkRequest.networkCapabilities.hasCapability( in releaseNetworkFor()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17112 method public boolean hasCapability(int);
/frameworks/base/api/
Dcurrent.txt23585 method public boolean hasCapability(int);
Dtest-current.txt23654 method public boolean hasCapability(int);
Dsystem-current.txt25409 method public boolean hasCapability(int);