Home
last modified time | relevance | path

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

12

/frameworks/base/tests/net/common/java/android/net/
DNetworkCapabilitiesTest.java26 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 …]
DNetworkProviderTest.kt118 removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
/frameworks/base/tests/net/java/android/net/
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/tests/net/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt31 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/
DNetworkNotificationManagerTest.java68 CELL_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
71 WIFI_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
76 VPN_CAPABILITIES.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
DMultipathPolicyTrackerTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
234 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
246 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
DVpnTest.java24 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/
DUpstreamNetworkMonitor.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
228 .addCapability(NET_CAPABILITY_INTERNET) in registerMobileNetworkRequest()
603 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in networkCapabilitiesForType()
DTetheringService.java309 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeTetheringDependencies()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
DCaptivePortalLoginActivity.java271 && 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/
DApnContextTest.java126 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestNormal()
153 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestDetach()
DDcRequestTest.java56 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in whenNetworkRequestInternetThenPriorityZero()
DTelephonyNetworkFactoryTest.java91 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/
DUpstreamNetworkMonitorTest.java23 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/
Dnetworkcapabilities.proto87 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/
DNetworkNotificationManager.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
155 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()
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java159 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/
DJobInfo.java19 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/
DCellularNetworkValidator.java327 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java234 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()
DDataConnection.java1338 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/
DConnectivityServiceTest.java55 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/
DConnectivityControllerTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
628 return new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET) in createCapabilities()

12