Home
last modified time | relevance | path

Searched refs:NET_CAPABILITY_VALIDATED (Results 1 – 25 of 49) sorted by relevance

12

/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DUnattendedRebootManagerTest.java176 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot()
198 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_requiresCharging_notCharging()
235 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_doesNotRequireCharging_notCharging()
262 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_requiresCharging_flagNotEnabled()
289 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_noPinLock()
310 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_noPreparation()
330 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_simPinPreparationFailed()
405 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in scheduleReboot_elapsedRealtimeLessThanFrequency()
441 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in tryRebootOrSchedule_outsideRebootWindow()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java124 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange()
137 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NetworkChange()
154 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_NoCallbackOnCapabilitiesChange()
180 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in testWaitForValidated_ToggleBlocked()
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/grpc/impl/
DDeviceCheckinClientImplTest.java19 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
247 NET_CAPABILITY_VALIDATED); in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn()
315 NET_CAPABILITY_VALIDATED); in getCheckInStatus_lostNonVpnConnection_isNotSuccessful()
369 NET_CAPABILITY_VALIDATED); in isDeviceInApprovedCountry_noDefaultConnectivity_fallsBackToNonVpn()
436 NET_CAPABILITY_VALIDATED); in isDeviceInApprovedCountry_lostNonVpnConnection_isNotSuccessful()
490 NET_CAPABILITY_VALIDATED); in pauseProvisioning_noDefaultConnectivity_fallsBackToNonVpn()
559 NET_CAPABILITY_VALIDATED); in pauseProvisioning_lostNonVpnConnection_isNotSuccessful()
615 NET_CAPABILITY_VALIDATED); in reportProvisioningState_noDefaultConnectivity_fallsBackToNonVpn()
686 NET_CAPABILITY_VALIDATED); in reportProvisioningState_lostNonVpnConnection_isNotSuccessful()
731 NET_CAPABILITY_VALIDATED); in cleanUp_shutsDownChannels()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/
DInternetPreferenceRepositoryTest.kt68 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
97 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
122 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
146 .addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DFullScore.java21 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
173 caps.hasCapability(NET_CAPABILITY_VALIDATED), in fromNetworkScore()
247 caps.hasCapability(NET_CAPABILITY_VALIDATED), in mixInScore()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DConnectUtil.kt27 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
78 it.caps.hasCapability(NET_CAPABILITY_VALIDATED) in ensureWifiConnected()
112 (!requireValidated || it.caps.hasCapability(NET_CAPABILITY_VALIDATED)) in ensureWifiConnected()
DTestableNetworkCallback.kt24 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
523 validated == null || validated == it.caps.hasCapability(NET_CAPABILITY_VALIDATED) in expectAvailableCallbacks()
555 expectCaps(net, tmt) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in expectAvailableThenValidatedCallbacks()
570 expectCaps(net, tmt) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in expectAvailableThenValidatedCallbacks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiNoInternetDialogTest.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
216 when(mNetworkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)).thenReturn(true); in networkCallbackOnCapabilitiesChanged_shouldFinish()
230 when(mNetworkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)).thenReturn(true); in networkCallbackOnCapabilitiesChanged_shouldNotFinishIfNetworkIsNotTheSame()
/packages/modules/Connectivity/tests/cts/multidevices/snippet/
DConnectivityMultiDevicesSnippet.kt24 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
127 ssidFromCaps == ssid && it.caps.hasCapability(NET_CAPABILITY_VALIDATED) in connectToWifi()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java22 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
103 if (mNetwork.equals(network) && nc.hasCapability(NET_CAPABILITY_VALIDATED)) { in onCreate()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPseudonymManager.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
123 && networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) {
497 && nc.hasCapability(NET_CAPABILITY_VALIDATED); in isNetworkConnected()
/packages/modules/ExtServices/java/src/android/ext/services/watchdog/
DNetworkChecker.java86 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in onCapabilitiesChanged()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DCaptivePortalTest.kt31 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
161 it is CapabilitiesChanged && it.caps.hasCapability(NET_CAPABILITY_VALIDATED) in testCaptivePortalIsNotDefaultNetwork()
DIkev2VpnTest.java20 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
565 && !c.hasCapability(NET_CAPABILITY_VALIDATED) in checkStartStopVpnProfileBuildsNetworks()
582 .hasCapability(NET_CAPABILITY_VALIDATED)); in checkStartStopVpnProfileBuildsNetworks()
DNetworkAgentTest.kt50 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED in <lambda>()
852 it.allowedUids.isEmpty() && !it.hasCapability(NET_CAPABILITY_VALIDATED) in testRejectedUpdates()
857 it.allowedUids.isEmpty() && it.hasCapability(NET_CAPABILITY_VALIDATED) in testRejectedUpdates()
1645 testCallback.expectCaps(wifiNetwork) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in testUnregisterAfterReplacement()
1648 matchAllCallback.expectCaps(wifiNetwork) { it.hasCapability(NET_CAPABILITY_VALIDATED) } in testUnregisterAfterReplacement()
1768 it.hasCapability(NET_CAPABILITY_VALIDATED) in doTestNativeNetworkCreation()
1771 it.hasCapability(NET_CAPABILITY_VALIDATED) in doTestNativeNetworkCreation()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitor.java114 NetworkCapabilities.NET_CAPABILITY_VALIDATED);
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/
DConnectivitySampleMetricsTest.kt14 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED in <lambda>()
84 hasCapability(NET_CAPABILITY_VALIDATED) -> ValidatedState.VS_VALID
/packages/modules/Connectivity/framework/src/android/net/
DNetworkRequest.java34 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
290 NET_CAPABILITY_VALIDATED,
DNetworkCapabilities.java444 NET_CAPABILITY_VALIDATED,
573 public static final int NET_CAPABILITY_VALIDATED = 16; field in NetworkCapabilities
780 (1L << NET_CAPABILITY_VALIDATED) |
829 (1L << NET_CAPABILITY_VALIDATED) |
2617 case NET_CAPABILITY_VALIDATED: return "VALIDATED"; in capabilityNameOf()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/rkpd/vm_attestation/testapp/
DRkpdVmAttestationTest.java137 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED); in isNetworkConnected()
/packages/apps/Settings/src/com/android/settings/network/
DInternetPreferenceRepository.kt70 hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) in <lambda>()
DInternetUpdater.java234 && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) { in updateInternetAvailable()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java126 import static android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED;
1242 if (networkCapabilities.hasCapability(NET_CAPABILITY_VALIDATED)) { in connect()
2992 NET_CAPABILITY_VALIDATED));
3000 NET_CAPABILITY_VALIDATED));
3008 NET_CAPABILITY_VALIDATED));
3064 generalCb.expectCaps(net2, c -> c.hasCapability(NET_CAPABILITY_VALIDATED));
3236 NET_CAPABILITY_VALIDATED));
3241 NET_CAPABILITY_VALIDATED));
3246 NET_CAPABILITY_VALIDATED));
3251 NET_CAPABILITY_VALIDATED));
[all …]
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DConnectivityServiceIntegrationTest.kt34 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
368 !it.hasCapability(NET_CAPABILITY_VALIDATED) in testCapportApi()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt36 import android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED
139 .addCapability(NET_CAPABILITY_VALIDATED)

12