Home
last modified time | relevance | path

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

12345

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DMultiInternetWifiNetworkFactoryTest.java133 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsWifiMultiInternetRequest()
135 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsWifiMultiInternetRequest()
166 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testIsWifiMultiInternetRequest()
182 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testMultiInternetHandleNetworkRequest()
209 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid()
229 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testMultiInternetHandleDualBandNetworkRequest()
231 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testMultiInternetHandleDualBandNetworkRequest()
257 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testHandleMultiInternetNetworkRelease()
278 NetworkCapabilities.NET_CAPABILITY_INTERNET); in testHandleMultiInternetNetworkReleaseWithMultiRequests()
DWifiShellCommandTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
917 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
932 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
948 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
964 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
980 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
996 .removeCapability(NET_CAPABILITY_INTERNET) in testAddNetworkRequest()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkRequestTest.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
229 .addCapability(NET_CAPABILITY_INTERNET); in testCanBeSatisfiedBy()
238 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
253 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
269 .addCapability(NET_CAPABILITY_INTERNET) in testCanBeSatisfiedBy()
295 .addCapability(NET_CAPABILITY_INTERNET) in testInvariantInCanBeSatisfiedBy()
318 .addCapability(NET_CAPABILITY_INTERNET).build(); in testInvariantInCanBeSatisfiedBy()
444 .addCapability(NET_CAPABILITY_INTERNET).build(); in testBypassingVcn()
450 .addCapability(NET_CAPABILITY_INTERNET) in testBypassingVcn()
464 .addCapability(NET_CAPABILITY_INTERNET).build(); in testBypassingVcn()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java28 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
134 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
140 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
145 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
152 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
158 netCap.addCapability(NET_CAPABILITY_INTERNET); in testMaybeMarkCapabilitiesRestricted()
211 .addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
212 nc2 = new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
218 .addCapability(NET_CAPABILITY_INTERNET) in testDescribeImmutableDifferences()
220 nc2 = new NetworkCapabilities().addCapability(NET_CAPABILITY_INTERNET); in testDescribeImmutableDifferences()
[all …]
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DUnattendedRebootManagerTest.java175 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot()
197 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_requiresCharging_notCharging()
234 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_doesNotRequireCharging_notCharging()
261 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_requiresCharging_flagNotEnabled()
288 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_noPinLock()
309 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_noPreparation()
329 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_simPinPreparationFailed()
367 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_noInternetValidation()
404 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in scheduleReboot_elapsedRealtimeLessThanFrequency()
440 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in tryRebootOrSchedule_outsideRebootWindow()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DNetworkCapabilitiesUtilsTest.kt24 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
84 nc.addCapability(NET_CAPABILITY_INTERNET) in testInferRestrictedCapability()
93 nc.removeCapability(NET_CAPABILITY_INTERNET) in testInferRestrictedCapability()
120 assertEquals((1 shl NET_CAPABILITY_INTERNET).toLong() and RESTRICTED_CAPABILITIES, 0) in testRestrictedUnrestrictedCapabilities()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkActivityTest.kt27 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET in <lambda>()
86 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
97 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
111 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
162 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
168 .addCapability(NET_CAPABILITY_INTERNET) in <lambda>()
DCSLocalAgentTests.kt27 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
177 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
221 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
226 nc = nc(TRANSPORT_CELLULAR, NET_CAPABILITY_INTERNET)) in keepScore()
503 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
525 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
569 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
616 val wifiAgent = Agent(lp = lp("wifi0"), nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
646 val wifiAgent = Agent(lp = lp("wifi0"), nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
700 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET)) in keepScore()
[all …]
DCSActiveNetworkInfoTest.kt22 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
42 .addCapability(NET_CAPABILITY_INTERNET) in nc()
DCSCaptivePortalAppTest.kt31 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
113 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET) in createWifiAgent()
DCSBlockedReasonsTest.kt34 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
55 .addCapability(NET_CAPABILITY_INTERNET) in cellNc()
64 .addCapability(NET_CAPABILITY_INTERNET) in cellNc()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DInternetPreferenceRepositoryTest.kt67 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
96 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
121 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
145 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DNetworkMonitorUtils.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
80 if (nc.hasCapability(NET_CAPABILITY_INTERNET) in isPrivateDnsValidationRequired()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/network/
DNetworkMonitor.kt83 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
91 ?.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in <lambda>()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt33 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
288 .addCapability(NET_CAPABILITY_INTERNET) in testValidation()
300 na.addCapability(NET_CAPABILITY_INTERNET) in testValidation()
321 .addCapability(NET_CAPABILITY_INTERNET) in testCapportApi()
350 na.addCapability(NET_CAPABILITY_INTERNET) in testCapportApi()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DConnectUtil.kt26 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET
71 .addCapability(NET_CAPABILITY_INTERNET).build(), cb) in ensureWifiConnected()
89 .addCapability(NET_CAPABILITY_INTERNET) in ensureWifiConnected()
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java24 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
125 NET_CAPABILITY_INTERNET, in verifyUnrestrictedNetworkCapabilities()
139 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in verifyRestrictedMobileNetworkCapabilities()
188 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileMms()
200 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeMobileSupl()
217 assertFalse(nc.hasCapability(NET_CAPABILITY_INTERNET)); in testNetworkCapabilitiesForTypeWifiP2p()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java27 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
123 (1L << NET_CAPABILITY_INTERNET) |
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/schedule/
DDeviceLockControllerSchedulerImplTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
263 assertThat(networkRequest.hasCapability(NET_CAPABILITY_INTERNET)).isTrue(); in scheduleInitialCheckInWork()
286 assertThat(networkRequest.hasCapability(NET_CAPABILITY_INTERNET)).isTrue(); in scheduleRetryCheckInWork()
324 assertThat(networkRequest.hasCapability(NET_CAPABILITY_INTERNET)).isTrue(); in rescheduleRetryCheckInWork()
396 assertThat(networkRequest.hasCapability(NET_CAPABILITY_INTERNET)).isTrue(); in maybeScheduleInitialCheckIn_noNeedCheckIn_reschedule()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/worker/
DSetupWizardCompletionTimeoutWorker.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
117 .addCapability(NET_CAPABILITY_INTERNET)
DPauseProvisioningWorker.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
76 .addCapability(NET_CAPABILITY_INTERNET) in reportProvisionPausedByUser()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/receivers/
DNextProvisionFailedStepReceiverTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
163 assertThat(networkRequest.hasCapability(NET_CAPABILITY_INTERNET)).isTrue(); in verifyReportProvisionStateWorkScheduled()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/network/
DNetworkMonitorTest.kt65 .apply { addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) } in setup()
99 assertThat(request.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)).isTrue() in testRegistersNetworkCallback()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET;
201 final boolean mayValidate = caps.hasCapability(NET_CAPABILITY_INTERNET); in makeProspectiveScore()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java123 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable()
135 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable()

12345