Home
last modified time | relevance | path

Searched refs:hasTransport (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java461 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities()
462 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
463 assertFalse(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities()
471 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities()
472 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
473 assertFalse(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities()
481 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities()
482 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities()
483 assertTrue(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities()
491 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DLingerMonitor.java107 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport() method in LingerMonitor
108 return nai.networkCapabilities.hasTransport(transport); in hasTransport()
143 if (hasTransport(fromNai, fromTransport) && hasTransport(toNai, toTransport)) { in isNotificationEnabled()
DNetworkAgentInfo.java420 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN()
449 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
DNetworkNotificationManager.java88 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
/frameworks/base/core/java/android/net/
DNetworkRequest.java447 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkRequest
448 return networkCapabilities.hasTransport(transportType); in hasTransport()
DNetworkCapabilities.java724 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkCapabilities
DConnectivityManager.java1391 if (!netCap.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { in inferLegacyTypeForNetworkCapabilities()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringInterfaceUtils.java77 ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1113 assertTrue(mCm.getNetworkCapabilities(mCm.getActiveNetwork()).hasTransport(transport)); in verifyActiveNetwork()
3712 assertTrue(capabilities.hasTransport(TRANSPORT_WIFI_AWARE)); in testNetworkInfoOfTypeNone()
4351 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testVpnSetUnderlyingNetworks()
4352 assertFalse(nc.hasTransport(TRANSPORT_CELLULAR)); in testVpnSetUnderlyingNetworks()
4353 assertFalse(nc.hasTransport(TRANSPORT_WIFI)); in testVpnSetUnderlyingNetworks()
4364 vpnNetworkCallback.expectCapabilitiesLike((caps) -> caps.hasTransport(TRANSPORT_VPN) in testVpnSetUnderlyingNetworks()
4365 && caps.hasTransport(TRANSPORT_CELLULAR) && !caps.hasTransport(TRANSPORT_WIFI) in testVpnSetUnderlyingNetworks()
4376 vpnNetworkCallback.expectCapabilitiesLike((caps) -> caps.hasTransport(TRANSPORT_VPN) in testVpnSetUnderlyingNetworks()
4377 && caps.hasTransport(TRANSPORT_CELLULAR) && caps.hasTransport(TRANSPORT_WIFI) in testVpnSetUnderlyingNetworks()
4385 vpnNetworkCallback.expectCapabilitiesLike((caps) -> caps.hasTransport(TRANSPORT_VPN) in testVpnSetUnderlyingNetworks()
[all …]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java57 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
DCaptivePortalLoginActivity.java283 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java74 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
DApnContext.java572 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java304 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
332 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
/frameworks/base/tests/net/java/android/net/
DConnectivityManagerTest.java87 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1844 if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
1850 } else if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking()
1878 if (iface != null && (caps.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) || in removeDataActivityTracking()
1879 caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI))) { in removeDataActivityTracking()
2520 if (!nai.networkCapabilities.hasTransport(TRANSPORT_VPN)) { in disconnectAndDestroyNetwork()
2881 if (nai.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in rematchForAvoidBadWifiUpdate()
2967 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in handleNetworkUnvalidated()
4734 if (!caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in wakeupModifyInterface()
4976 if (!newNc.hasTransport(TRANSPORT_VPN)) { in updateCapabilities()
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java562 || !nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getHeaderTitle()
/frameworks/base/core/java/android/app/job/
DJobInfo.java448 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java4978 && state.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in parseSubId()
/frameworks/base/config/
Dhiddenapi-public-dex.txt25525 Landroid/net/NetworkCapabilities;->hasTransport(I)Z
25631 Landroid/net/NetworkRequest;->hasTransport(I)Z
Dboot-image-profile.txt26131 HSPLandroid/net/NetworkCapabilities;->hasTransport(I)Z
/frameworks/base/api/
Dcurrent.txt27195 method public boolean hasTransport(int);
27280 method public boolean hasTransport(int);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17113 method public boolean hasTransport(int);