/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 810 assertFalse(nc.hasTransport(i)); in assertNoTransport() 821 assertTrue(nc.hasTransport(i)); in checkCurrentTransportTypes() 823 assertFalse(nc.hasTransport(i)); in checkCurrentTransportTypes() 828 assertFalse(nc.hasTransport(i)); in checkCurrentTransportTypes() 830 assertTrue(nc.hasTransport(i)); in checkCurrentTransportTypes() 851 assertTrue(nc.hasTransport(TRANSPORT_WIFI)); in testMultipleTransportTypes() 852 assertFalse(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes() 854 assertTrue(nc.hasTransport(TRANSPORT_WIFI)); in testMultipleTransportTypes() 855 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testMultipleTransportTypes() 857 assertFalse(nc.hasTransport(TRANSPORT_WIFI)); in testMultipleTransportTypes() [all …]
|
D | NetworkProviderTest.kt | 110 callback.request.hasTransport(TRANSPORT_TEST) in <lambda>() 145 callback.request.hasTransport(TRANSPORT_TEST) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | LingerMonitor.java | 111 private static boolean hasTransport(NetworkAgentInfo nai, int transport) { in hasTransport() method in LingerMonitor 112 return nai.networkCapabilities.hasTransport(transport); in hasTransport() 147 if (hasTransport(fromNai, fromTransport) && hasTransport(toNai, toTransport)) { in isNotificationEnabled()
|
D | NetworkAgentInfo.java | 478 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN() 508 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
|
D | NetworkNotificationManager.java | 101 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 620 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities() 621 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 622 assertFalse(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities() 635 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities() 636 assertTrue(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 637 assertFalse(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities() 647 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities() 648 assertFalse(caps.hasTransport(TRANSPORT_CELLULAR)); in testCapabilities() 649 assertTrue(caps.hasTransport(TRANSPORT_WIFI)); in testCapabilities() 659 assertTrue(caps.hasTransport(TRANSPORT_VPN)); in testCapabilities() [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1375 assertTrue(mCm.getNetworkCapabilities(mCm.getActiveNetwork()).hasTransport(transport)); in verifyActiveNetwork() 4678 assertTrue(capabilities.hasTransport(TRANSPORT_WIFI_AWARE)); in testNetworkInfoOfTypeNone() 5462 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testVpnStartsWithUnderlyingCaps() 5463 assertTrue(nc.hasTransport(TRANSPORT_CELLULAR)); in testVpnStartsWithUnderlyingCaps() 5464 assertFalse(nc.hasTransport(TRANSPORT_WIFI)); in testVpnStartsWithUnderlyingCaps() 5495 assertTrue(nc.hasTransport(TRANSPORT_VPN)); in testVpnSetUnderlyingNetworks() 5496 assertFalse(nc.hasTransport(TRANSPORT_CELLULAR)); in testVpnSetUnderlyingNetworks() 5497 assertFalse(nc.hasTransport(TRANSPORT_WIFI)); in testVpnSetUnderlyingNetworks() 5512 (caps) -> caps.hasTransport(TRANSPORT_VPN) in testVpnSetUnderlyingNetworks() 5513 && caps.hasTransport(TRANSPORT_CELLULAR) && !caps.hasTransport(TRANSPORT_WIFI) in testVpnSetUnderlyingNetworks() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 484 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkRequest 485 return networkCapabilities.hasTransport(transportType); in hasTransport()
|
D | NetworkCapabilities.java | 875 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkCapabilities
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | TetheringInterfaceUtils.java | 81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
|
D | IPv6TetheringCoordinator.java | 176 if (mUpstreamNetworkState.networkCapabilities.hasTransport( in getTtlAdjustment()
|
D | UpstreamNetworkMonitor.java | 559 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) in isCellular()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 56 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
|
D | CaptivePortalLoginActivity.java | 271 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal()
|
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/ |
D | OsuLoginActivity.java | 125 if (networkCapabilities == null || !networkCapabilities.hasTransport( in onCreate()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 322 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType() 358 assertTrue(netReq.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)); in testSelectPreferredUpstreamType()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1703 if (nc.hasTransport(TRANSPORT_VPN)) { in maybeSanitizeLocationInfoForCaller() 2331 if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking() 2337 } else if (networkAgent.networkCapabilities.hasTransport( in setupDataActivityTracking() 2364 if (iface != null && (caps.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) || in removeDataActivityTracking() 2365 caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI))) { in removeDataActivityTracking() 2737 if (networkCapabilities.hasTransport(TRANSPORT_TEST)) { in maybeHandleNetworkAgentMessage() 3367 if (!nai.networkCapabilities.hasTransport(TRANSPORT_VPN)) { in disconnectAndDestroyNetwork() 3890 if (nai.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in rematchForAvoidBadWifiUpdate() 4049 if (!nc.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) { in handleNetworkUnvalidated() 5785 if (request.hasTransport(TRANSPORT_TEST)) { in declareNetworkRequestUnfulfillable() [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 88 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnContext.java | 548 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in getApnTypeFromNetworkRequest()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GnssNetworkConnectivityHandler.java | 350 !capabilities.hasTransport(
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 466 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSwitcher.java | 287 if (networkCapabilities.hasTransport(TRANSPORT_CELLULAR) in onCapabilitiesChanged()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 1395 if (!state.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) {
|
D | NetworkPolicyManagerService.java | 5345 && state.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in parseSubId()
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 29026 method public boolean hasTransport(int); 29114 method public boolean hasTransport(int);
|