Home
last modified time | relevance | path

Searched refs:avoidBadWifi (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/util/
DMultinetworkPolicyTrackerTest.kt118 assertFalse(tracker.avoidBadWifi) in testUpdateAvoidBadWifi()
122 assertTrue(tracker.avoidBadWifi) in testUpdateAvoidBadWifi()
153 assertFalse(tracker.avoidBadWifi) in testOnActiveDataSubscriptionIdChanged()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java309 private void doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest(boolean avoidBadWifi) in doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest() argument
311 when(mCm.shouldAvoidBadWifi()).thenReturn(avoidBadWifi); in doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest()
337 boolean avoidBadWifi) throws Exception { in doDefaultDualStackProvisioningConfigurationTest() argument
338 when(mCm.shouldAvoidBadWifi()).thenReturn(avoidBadWifi); in doDefaultDualStackProvisioningConfigurationTest()
347 if (avoidBadWifi) { // Provisioning failure is expected only when avoidBadWifi is true in doDefaultDualStackProvisioningConfigurationTest()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java733 return networkCapabilities.hasTransport(TRANSPORT_CELLULAR) && !mConnService.avoidBadWifi(); in yieldToBadWiFi()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java4582 public boolean avoidBadWifi() { in avoidBadWifi() method in ConnectivityService
4595 return avoidBadWifi(); in shouldAvoidBadWifi()
4614 pw.println("Bad Wi-Fi avoidance: " + avoidBadWifi()); in dumpAvoidBadWifiSettings()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java4871 assertFalse(mService.avoidBadWifi()); in testAvoidBadWifiConfig_controlledBySettings()
4877 assertTrue(mService.avoidBadWifi()); in testAvoidBadWifiConfig_controlledBySettings()
4883 assertFalse(mService.avoidBadWifi()); in testAvoidBadWifiConfig_controlledBySettings()
4897 assertTrue(mService.avoidBadWifi()); in testAvoidBadWifiConfig_ignoreSettings()