/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MultiInternetWifiNetworkFactoryTest.java | 133 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()
|
D | WifiShellCommandTest.java | 19 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/ |
D | NetworkRequestTest.java | 21 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/ |
D | NetworkCapabilitiesTest.java | 28 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/ |
D | UnattendedRebootManagerTest.java | 175 .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/ |
D | NetworkCapabilitiesUtilsTest.kt | 24 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/ |
D | CSNetworkActivityTest.kt | 27 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>()
|
D | CSLocalAgentTests.kt | 27 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 …]
|
D | CSActiveNetworkInfoTest.kt | 22 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET 42 .addCapability(NET_CAPABILITY_INTERNET) in nc()
|
D | CSCaptivePortalAppTest.kt | 31 import android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET 113 nc = nc(TRANSPORT_WIFI, NET_CAPABILITY_INTERNET) in createWifiAgent()
|
D | CSBlockedReasonsTest.kt | 34 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/ |
D | InternetPreferenceRepositoryTest.kt | 67 .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/ |
D | NetworkMonitorUtils.java | 20 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/ |
D | NetworkMonitor.kt | 83 .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/ |
D | ConnectivityServiceIntegrationTest.kt | 33 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/ |
D | ConnectUtil.kt | 26 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/ |
D | ConnectivityManagerTest.java | 24 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/ |
D | NetworkCapabilitiesUtils.java | 27 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 123 (1L << NET_CAPABILITY_INTERNET) |
|
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/schedule/ |
D | DeviceLockControllerSchedulerImplTest.java | 19 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/ |
D | SetupWizardCompletionTimeoutWorker.java | 19 import static android.net.NetworkCapabilities.NET_CAPABILITY_INTERNET; 117 .addCapability(NET_CAPABILITY_INTERNET)
|
D | PauseProvisioningWorker.java | 19 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/ |
D | NextProvisionFailedStepReceiverTest.java | 19 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/ |
D | NetworkMonitorTest.kt | 65 .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/ |
D | FullScore.java | 19 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/ |
D | InternetUpdaterTest.java | 123 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndNoValidated_internetUnavailable() 135 .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) in updateInternetAvailable_wifiConnectedAndValidated_internetAvailable()
|