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/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt32 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/
DConnectivityManagerTest.java23 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/
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.java324 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeTetheringDependencies()
/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.java86 addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET). in makeSubSpecificInternetRequest()
100 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in makeDefaultInternetRequest()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DProvisionObserver.java57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
DCaptivePortalLoginActivity.java272 && 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/
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/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()
DNetworkAgentInfo.java509 networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in ignoreWifiUnvalidationPenalty()
/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/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/core/java/android/app/job/
DJobInfo.java19 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/
DCellularNetworkValidator.java327 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java19 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/
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()
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/
DDcNetworkAgent.java241 if (networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in sendNetworkCapabilities()

12