Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_INTERNET (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tests/net/java/android/net/
DNetworkCapabilitiesTest.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
72 assertEquals((1 << NET_CAPABILITY_INTERNET) & RESTRICTED_CAPABILITIES, 0); in testMaybeMarkCapabilitiesRestricted()
79 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
85 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
90 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
97 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
103 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
156 .addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
157 nc2 = new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
163 .addCapability(NET_CAPABILITY_INTERNET) in testDescribeImmutableDifferences()
[all …]
DConnectivityManagerTest.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
99 NET_CAPABILITY_INTERNET, in verifyUnrestrictedNetworkCapabilities()
113 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
162 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
174 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl()
191 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
DCaptivePortalLoginActivity.java284 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getNetworkForCaptivePortal()
295 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in requestNetworkForCaptivePortal()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java65 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
68 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
DMultipathPolicyTrackerTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
233 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
DVpnTest.java24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
446 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities()
452 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java128 NET_CAPABILITY_INTERNET,
217 public static final int NET_CAPABILITY_INTERNET = 12; field in NetworkCapabilities
357 (1 << NET_CAPABILITY_INTERNET) |
1524 case NET_CAPABILITY_INTERNET: return "INTERNET"; in capabilityNameOf()
DConnectivityManager.java1426 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in inferLegacyTypeForNetworkCapabilities()
1459 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in legacyTypeForNetworkCapabilities()
1613 type, NetworkCapabilities.NET_CAPABILITY_INTERNET)); in networkCapabilitiesForType()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java39 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
141 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification()
DMultipathPolicyTracker.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
449 .addCapability(NET_CAPABILITY_INTERNET) in registerTrackMobileCallback()
DNetworkAgentInfo.java450 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
DVpn.java921 NetworkCapabilities.NET_CAPABILITY_INTERNET); in updateLinkPropertiesInPlaceIfPossible()
939 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
941 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
286 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto87 NET_CAPABILITY_INTERNET = 12; enumerator
103 // validated. For example, for a network with NET_CAPABILITY_INTERNET,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcRequest.java83 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
DTelephonyNetworkFactory.java120 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in makeNetworkFilter()
DApnContext.java581 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
970 netCap.addCapability(NET_CAPABILITY_INTERNET); in addDefaultRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java125 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
DDataConnectionTest.java418 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
431 .hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)); in testNetworkCapability()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
571 networkCapabilities.addCapability(NET_CAPABILITY_INTERNET); in TestNetworkAgent()
/frameworks/base/core/java/android/app/job/
DJobInfo.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
1110 builder.addCapability(NET_CAPABILITY_INTERNET); in setRequiredNetworkType()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetTracker.java313 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createDefaultNetworkCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java148 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in PhoneSwitcher()

12