Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java810 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 …]
DNetworkProviderTest.kt110 callback.request.hasTransport(TRANSPORT_TEST) in <lambda>()
145 callback.request.hasTransport(TRANSPORT_TEST) in <lambda>()
/frameworks/base/services/core/java/com/android/server/connectivity/
DLingerMonitor.java111 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()
DNetworkAgentInfo.java478 return networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_VPN); in isVPN()
508 boolean isWifi = networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) && in ignoreWifiUnvalidationPenalty()
DNetworkNotificationManager.java101 if (nai.networkCapabilities.hasTransport(i)) return i; in getFirstTransportType()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java620 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/
DConnectivityServiceTest.java1375 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/
DNetworkRequest.java484 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkRequest
485 return networkCapabilities.hasTransport(transportType); in hasTransport()
DNetworkCapabilities.java875 public boolean hasTransport(@Transport int transportType) { in hasTransport() method in NetworkCapabilities
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringInterfaceUtils.java81 && ns.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR); in getIPv6Interface()
DIPv6TetheringCoordinator.java176 if (mUpstreamNetworkState.networkCapabilities.hasTransport( in getTtlAdjustment()
DUpstreamNetworkMonitor.java559 return (nc != null) && nc.hasTransport(TRANSPORT_CELLULAR) in isCellular()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java56 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in onStartJob()
DCaptivePortalLoginActivity.java271 if (nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) in getNetworkForCaptivePortal()
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java125 if (networkCapabilities == null || !networkCapabilities.hasTransport( in onCreate()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java322 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/
DConnectivityService.java1703 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/
DConnectivityManagerTest.java88 assertTrue(nc.hasTransport(transportType)); in verifyNetworkCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java548 nc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) == false) { in getApnTypeFromNetworkRequest()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java350 !capabilities.hasTransport(
/frameworks/base/core/java/android/app/job/
DJobInfo.java466 } else if (networkRequest.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in getNetworkType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java287 if (networkCapabilities.hasTransport(TRANSPORT_CELLULAR) in onCapabilitiesChanged()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java1395 if (!state.networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) {
DNetworkPolicyManagerService.java5345 && state.networkCapabilities.hasTransport(TRANSPORT_CELLULAR)) { in parseSubId()
/frameworks/base/non-updatable-api/
Dcurrent.txt29026 method public boolean hasTransport(int);
29114 method public boolean hasTransport(int);

12