/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
H A D | NetworkRequestTest.java | 21 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 D | CaptivePortalTest.kt | 30 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 D | NetworkCapabilitiesUtilsTest.kt | 22 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 D | NetworkCapabilitiesTest.java | 107 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 D | ConnectivityServiceIntegrationTest.kt | 33 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 D | NetworkMonitorUtils.java | 19 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 D | ConnectivityManagerTest.java | 24 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 D | NetworkCapabilitiesUtils.java | 25 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 D | FullScore.java | 19 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 D | VcnTest.java | 23 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 D | VcnGatewayConnectionTest.java | 20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 133 if (cap == NET_CAPABILITY_INTERNET || cap == NET_CAPABILITY_DUN) { in verifyBuildNetworkCapabilitiesCommon()
|
H A D | UnderlyingNetworkTrackerTest.java | 80 .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 D | InternetUpdaterTest.java | 122 .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 D | NetworkCapabilities.java | 142 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 D | DataConnectivityListener.java | 43 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in DataConnectivityListener()
|
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
H A D | MultipathPolicyTrackerTest.java | 20 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 D | ApnContextTest.java | 121 .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 D | UpstreamNetworkMonitorTest.java | 23 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 D | UpstreamNetworkMonitor.java | 26 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 D | VcnGatewayConnectionConfig.java | 105 allowedCaps.add(NetworkCapabilities.NET_CAPABILITY_INTERNET); 126 NetworkCapabilities.NET_CAPABILITY_INTERNET,
|
/aosp12/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
H A D | ConnectivityManagerShimImpl.java | 87 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in registerSystemDefaultNetworkCallback()
|
/aosp12/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
H A D | ProvisionObserver.java | 57 && nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)) { in onStartJob()
|
/aosp12/packages/modules/Connectivity/framework/src/android/net/ |
H A D | NetworkRequest.java | 22 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 189 NET_CAPABILITY_INTERNET,
|
/aosp12/frameworks/base/services/core/java/com/android/server/vcn/ |
H A D | Vcn.java | 20 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 D | networkcapabilities.proto | 72 NET_CAPABILITY_INTERNET = 12; enumerator 88 // validated. For example, for a network with NET_CAPABILITY_INTERNET,
|