Home
last modified time | relevance | path

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

1234

/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DNetworkRequestTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
189 .addCapability(NET_CAPABILITY_INTERNET); in testCanBeSatisfiedBy()
198 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
213 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
229 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
255 .addCapability(NET_CAPABILITY_INTERNET) in testInvariantInCanBeSatisfiedBy()
278 .addCapability(NET_CAPABILITY_INTERNET).build(); in testInvariantInCanBeSatisfiedBy()
404 .addCapability(NET_CAPABILITY_INTERNET).build(); in testBypassingVcn()
410 .addCapability(NET_CAPABILITY_INTERNET) in testBypassingVcn()
463 NET_CAPABILITY_INTERNET, in testGetCapabilities()
[all …]
H A DCaptivePortalTest.kt30 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
140 .addCapability(NET_CAPABILITY_INTERNET)
/aosp12/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
H A DNetworkCapabilitiesUtilsTest.kt22 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
23 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
98 nc.addCapability(NET_CAPABILITY_INTERNET)
107 nc.removeCapability(NET_CAPABILITY_INTERNET)
122 assertEquals((1 shl NET_CAPABILITY_INTERNET).toLong() and RESTRICTED_CAPABILITIES, 0)
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DNetworkCapabilitiesTest.java107 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
113 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
118 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
125 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
131 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
184 .addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
191 .addCapability(NET_CAPABILITY_INTERNET) in testDescribeImmutableDifferences()
311 .addCapability(NET_CAPABILITY_INTERNET) in testParcelNetworkCapabilities()
330 .addCapability(NET_CAPABILITY_INTERNET) in testParcelNetworkCapabilitiesWithRequestorUidAndPackageName()
348 .addCapability(NET_CAPABILITY_INTERNET) in createNetworkCapabilitiesWithTransportInfo()
[all …]
/aosp12/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
H A DConnectivityServiceIntegrationTest.kt33 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
230 .addCapability(NET_CAPABILITY_INTERNET)
242 na.addCapability(NET_CAPABILITY_INTERNET)
253 .addCapability(NET_CAPABILITY_INTERNET)
280 na.addCapability(NET_CAPABILITY_INTERNET)
/aosp12/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
H A DNetworkMonitorUtils.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
78 if (nc.hasCapability(NET_CAPABILITY_INTERNET) in isPrivateDnsValidationRequired()
/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/
H A DConnectivityManagerTest.java24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
111 NET_CAPABILITY_INTERNET, in verifyUnrestrictedNetworkCapabilities()
125 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
174 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
186 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl()
203 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/
H A DNetworkCapabilitiesUtils.java25 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
154 (1 << NET_CAPABILITY_INTERNET)
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/
H A DFullScore.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
188 final boolean mayValidate = caps.hasCapability(NET_CAPABILITY_INTERNET); in makeProspectiveScore()
/aosp12/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnTest.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
84 new int[] {NET_CAPABILITY_IMS, NET_CAPABILITY_INTERNET, NET_CAPABILITY_DUN},
85 new int[] {NET_CAPABILITY_CBS, NET_CAPABILITY_INTERNET},
447 && (exposedCaps.contains(NET_CAPABILITY_INTERNET) in verifyMobileDataToggledUpdatesGatewayConnections()
H A DVcnGatewayConnectionTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
133 if (cap == NET_CAPABILITY_INTERNET || cap == NET_CAPABILITY_DUN) { in verifyBuildNetworkCapabilitiesCommon()
H A DUnderlyingNetworkTrackerTest.java80 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
90 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
297 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in getExpectedRequestBase()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/network/
H A DInternetUpdaterTest.java122 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable()
134 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable()
/aosp12/packages/modules/Connectivity/core/java/android/net/
H A DNetworkCapabilities.java142 public static final int NET_CAPABILITY_INTERNET = 12; field in NetworkCapabilities
513 case NET_CAPABILITY_INTERNET: capabilities += "INTERNET"; break; in toString()
/aosp12/packages/apps/Settings/src/com/android/settings/network/telephony/
H A DDataConnectivityListener.java43 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in DataConnectivityListener()
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
H A DMultipathPolicyTrackerTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
248 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
260 .addCapability(NET_CAPABILITY_INTERNET) in testGetMultipathPreference()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DApnContextTest.java121 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestNormal()
148 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in testNetworkRequestDetach()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DUpstreamNetworkMonitorTest.java23 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
89 .addTransportType(TRANSPORT_CELLULAR).addCapability(NET_CAPABILITY_INTERNET).build();
93 .addTransportType(TRANSPORT_WIFI).addCapability(NET_CAPABILITY_INTERNET).build();
429 dunAgent.networkCapabilities.removeCapability(NET_CAPABILITY_INTERNET); in testGetCurrentPreferredUpstream()
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
H A DUpstreamNetworkMonitor.java26 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
264 .addCapability(NET_CAPABILITY_INTERNET) in registerMobileNetworkRequest()
686 builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET); in networkCapabilitiesForType()
/aosp12/frameworks/base/core/java/android/net/vcn/
H A DVcnGatewayConnectionConfig.java105 allowedCaps.add(NetworkCapabilities.NET_CAPABILITY_INTERNET);
126 NetworkCapabilities.NET_CAPABILITY_INTERNET,
/aosp12/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
H A DConnectivityManagerShimImpl.java87 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in registerSystemDefaultNetworkCallback()
/aosp12/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DProvisionObserver.java57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
/aosp12/packages/modules/Connectivity/framework/src/android/net/
H A DNetworkRequest.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
189 NET_CAPABILITY_INTERNET,
/aosp12/frameworks/base/services/core/java/com/android/server/vcn/
H A DVcn.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
84 Arrays.asList(NET_CAPABILITY_INTERNET, NET_CAPABILITY_DUN);
523 if (exposedCaps.contains(NET_CAPABILITY_INTERNET) in handleMobileDataToggled()
/aosp12/frameworks/base/core/proto/android/net/
H A Dnetworkcapabilities.proto72 NET_CAPABILITY_INTERNET = 12; enumerator
88 // validated. For example, for a network with NET_CAPABILITY_INTERNET,

1234