/frameworks/base/tests/net/java/android/net/ |
D | NetworkCapabilitiesTest.java | 23 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 …]
|
D | ConnectivityManagerTest.java | 23 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/ |
D | ProvisionObserver.java | 58 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
|
D | CaptivePortalLoginActivity.java | 284 && 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/ |
D | NetworkNotificationManagerTest.java | 65 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); 68 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
D | MultipathPolicyTrackerTest.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 233 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
|
D | VpnTest.java | 24 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/ |
D | NetworkCapabilities.java | 128 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()
|
D | ConnectivityManager.java | 1426 } 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/ |
D | NetworkNotificationManager.java | 39 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 141 if (!nai.networkCapabilities.hasCapability(NET_CAPABILITY_INTERNET)) return; in showNotification()
|
D | MultipathPolicyTracker.java | 22 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 449 .addCapability(NET_CAPABILITY_INTERNET) in registerTrackMobileCallback()
|
D | NetworkAgentInfo.java | 450 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
|
D | Vpn.java | 921 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/ |
D | ConnectivityControllerTest.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 286 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities()
|
/frameworks/base/core/proto/android/net/ |
D | networkcapabilities.proto | 87 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/ |
D | DcRequest.java | 83 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
|
D | TelephonyNetworkFactory.java | 120 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in makeNetworkFilter()
|
D | ApnContext.java | 581 if (nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in apnIdForNetworkRequest()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 19 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/ |
D | TelephonyNetworkFactoryTest.java | 125 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificDefaultRequest()
|
D | DataConnectionTest.java | 418 .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/ |
D | UpstreamNetworkMonitorTest.java | 24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 571 networkCapabilities.addCapability(NET_CAPABILITY_INTERNET); in TestNetworkAgent()
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 19 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/ |
D | EthernetTracker.java | 313 nc.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in createDefaultNetworkCapabilities()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneSwitcher.java | 148 netCap.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in PhoneSwitcher()
|