Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/java/android/net/
DNetworkCapabilitiesTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
53 assertEquals((1 << NET_CAPABILITY_INTERNET) & RESTRICTED_CAPABILITIES, 0); in testMaybeMarkCapabilitiesRestricted()
60 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
66 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
71 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
78 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
84 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
DConnectivityManagerTest.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
70 NET_CAPABILITY_INTERNET, in verifyUnrestrictedNetworkCapabilities()
84 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
133 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
145 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl()
162 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java55 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
58 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java153 public static final int NET_CAPABILITY_INTERNET = 12; field in NetworkCapabilities
251 (1 << NET_CAPABILITY_INTERNET) |
860 case NET_CAPABILITY_INTERNET: capabilities += "INTERNET"; break; in toString()
DConnectivityManager.java1288 } else if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in inferLegacyTypeForNetworkCapabilities()
1321 if (netCap.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in legacyTypeForNetworkCapabilities()
1475 type, NetworkCapabilities.NET_CAPABILITY_INTERNET)); in networkCapabilitiesForType()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
DCaptivePortalLoginActivity.java254 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getNetworkForCaptivePortal()
265 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in requestNetworkForCaptivePortal()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkNotificationManager.java37 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
138 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification()
DNetworkAgentInfo.java432 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
DVpn.java673 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
675 mNetworkCapabilities.removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in agentConnect()
/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()
DDataConnection.java880 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities()
890 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
959 netCap.addCapability(NET_CAPABILITY_INTERNET); in addDefaultRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java114 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
DDcTrackerTest.java758 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET).build(); in testDDSResetAutoAttach()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java451 mNetworkCapabilities.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in initNetworkCapabilities()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java147 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in PhoneSwitcher()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java156 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java396 assertFalse(mNetworkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)); in connect()
416 addCapability(NET_CAPABILITY_INTERNET); in connect()
1634 if (capability != NET_CAPABILITY_INTERNET) { in tryNetworkFactoryRequests()
1713 tryNetworkFactoryRequests(NET_CAPABILITY_INTERNET); in testNetworkFactoryRequests()
2360 .addCapability(NET_CAPABILITY_INTERNET); in testMobileDataAlwaysOn()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java28 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
846 netCap.addCapability(NET_CAPABILITY_INTERNET); in createInternetRequestForTransport()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiStateMachine.java940 mNetworkCapabilitiesFilter.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in WifiStateMachine()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17122 field public static final int NET_CAPABILITY_INTERNET = 12; // 0xc
/frameworks/base/api/
Dcurrent.txt25576 field public static final int NET_CAPABILITY_INTERNET = 12; // 0xc

12