/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 108 assertEquals((1 << NET_CAPABILITY_INTERNET) & RESTRICTED_CAPABILITIES, 0); in testMaybeMarkCapabilitiesRestricted() 115 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 121 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 126 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 133 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 139 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted() 192 .addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences() 193 nc2 = new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences() 199 .addCapability(NET_CAPABILITY_INTERNET) in testDescribeImmutableDifferences() [all …]
|
D | NetworkProviderTest.kt | 118 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
|
/frameworks/base/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 32 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET 195 .addCapability(NET_CAPABILITY_INTERNET) in testValidation() 206 na.addCapability(NET_CAPABILITY_INTERNET) in testValidation() 217 .addCapability(NET_CAPABILITY_INTERNET) in testCapportApi() 244 na.addCapability(NET_CAPABILITY_INTERNET) in testCapportApi()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 100 NET_CAPABILITY_INTERNET, in verifyUnrestrictedNetworkCapabilities() 114 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities() 163 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms() 175 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl() 192 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 68 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); 71 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); 76 VPN_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
D | MultipathPolicyTrackerTest.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 234 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference() 246 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
|
D | VpnTest.java | 24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 601 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities() 608 .addCapability(NET_CAPABILITY_INTERNET) in testCapabilities()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 228 .addCapability(NET_CAPABILITY_INTERNET) in registerMobileNetworkRequest() 603 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in networkCapabilitiesForType()
|
D | TetheringService.java | 324 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeTetheringDependencies()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnContextTest.java | 126 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestNormal() 153 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestDetach()
|
D | DcRequestTest.java | 56 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in whenNetworkRequestInternetThenPriorityZero()
|
D | TelephonyNetworkFactoryTest.java | 86 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest() 100 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
|
D | CaptivePortalLoginActivity.java | 272 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getNetworkForCaptivePortal() 283 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in requestNetworkForCaptivePortal()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 410 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testGetCurrentPreferredUpstream() 481 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testLocalPrefixes() 721 networkCapabilities.addCapability(NET_CAPABILITY_INTERNET); in TestNetworkAgent()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkNotificationManager.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 155 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 | 509 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
|
/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/base/core/java/android/net/ |
D | NetworkCapabilities.java | 159 NET_CAPABILITY_INTERNET, 251 public static final int NET_CAPABILITY_INTERNET = 12; field in NetworkCapabilities 415 (1 << NET_CAPABILITY_INTERNET) | 1903 case NET_CAPABILITY_INTERNET: return "INTERNET"; in capabilityNameOf()
|
/frameworks/base/core/java/android/app/job/ |
D | JobInfo.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 1126 builder.addCapability(NET_CAPABILITY_INTERNET); in setRequiredNetworkType()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 327 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 553 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 55 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 702 assertFalse(getNetworkCapabilities().hasCapability(NET_CAPABILITY_INTERNET)); in connect() 724 addCapability(NET_CAPABILITY_INTERNET); in connect() 2233 .clearCapabilities().addCapability(NET_CAPABILITY_INTERNET) in testExplicitlySelected() 2360 if (capability != NET_CAPABILITY_INTERNET) { in tryNetworkFactoryRequests() 2442 tryNetworkFactoryRequests(NET_CAPABILITY_INTERNET); in testNetworkFactoryRequests() 2567 .clearCapabilities().addCapability(NET_CAPABILITY_INTERNET) in testPartialConnectivity() 3133 .addCapability(NET_CAPABILITY_INTERNET) in testInvalidSignalStrength() 3473 .addCapability(NET_CAPABILITY_INTERNET); in testMobileDataAlwaysOn() 3817 .addCapability(NET_CAPABILITY_INTERNET); in runUnfulfillableNetworkRequest() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcNetworkAgent.java | 241 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()
|