/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 461 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/ |
D | LingerMonitor.java | 107 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()
|
D | NetworkAgentInfo.java | 420 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN() 449 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
|
D | NetworkNotificationManager.java | 88 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
|
/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 447 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkRequest 448 return networkCapabilities.hasTransport(transportType); in hasTransport()
|
D | NetworkCapabilities.java | 724 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkCapabilities
|
D | ConnectivityManager.java | 1391 if (!netCap.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) { in inferLegacyTypeForNetworkCapabilities()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | TetheringInterfaceUtils.java | 77 ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1113 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/ |
D | ProvisionObserver.java | 57 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
|
D | CaptivePortalLoginActivity.java | 283 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcRequest.java | 74 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
|
D | ApnContext.java | 572 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in apnIdForNetworkRequest()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 304 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType() 332 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 87 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1844 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/ |
D | CaptivePortalLoginActivity.java | 562 || !nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in getHeaderTitle()
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 448 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 4978 && state.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in parseSubId()
|
/frameworks/base/config/ |
D | hiddenapi-public-dex.txt | 25525 Landroid/net/NetworkCapabilities;->hasTransport(I)Z 25631 Landroid/net/NetworkRequest;->hasTransport(I)Z
|
D | boot-image-profile.txt | 26131 HSPLandroid/net/NetworkCapabilities;->hasTransport(I)Z
|
/frameworks/base/api/ |
D | current.txt | 27195 method public boolean hasTransport(int); 27280 method public boolean hasTransport(int);
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 17113 method public boolean hasTransport(int);
|