/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/java/android/net/ |
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/tests/net/integration/src/com/android/server/net/integrationtests/ |
D | ConnectivityServiceIntegrationTest.kt | 31 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET 186 .addCapability(NET_CAPABILITY_INTERNET) in testValidation() 201 na.addCapability(NET_CAPABILITY_INTERNET) in testValidation()
|
/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 | 309 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeTetheringDependencies()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | ProvisionObserver.java | 57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
|
D | CaptivePortalLoginActivity.java | 271 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in getNetworkForCaptivePortal() 282 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in requestNetworkForCaptivePortal()
|
/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 | 91 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest() 105 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest()
|
/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/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/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()
|
/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/apex/jobscheduler/framework/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/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 327 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcNetworkAgent.java | 234 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()
|
D | DataConnection.java | 1338 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities() 1349 result.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in getNetworkCapabilities() 1450 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in isValidationRequired() 1474 && !nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in shouldSkip464Xlat() 3091 if (networkRequest.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in calculateScore()
|
/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() 3125 .addCapability(NET_CAPABILITY_INTERNET) in testInvalidSignalStrength() 3465 .addCapability(NET_CAPABILITY_INTERNET); in testMobileDataAlwaysOn() 3809 .addCapability(NET_CAPABILITY_INTERNET); in runUnfulfillableNetworkRequest() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 628 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities()
|