diff options
author | Roshan Pius <rpius@google.com> | 2019-03-07 10:14:51 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-03-14 07:47:44 -0700 |
commit | 0cd22728c628e51e8f259f8404a97dec49804424 (patch) | |
tree | 50d7abd4a1f2e2288f022d0f09e29b0783fbe855 /tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java | |
parent | d03677ad20ec1d521f11461160dcb56fa8b3bfff (diff) | |
download | android_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.tar.gz android_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.tar.bz2 android_frameworks_opt_net_wifi-0cd22728c628e51e8f259f8404a97dec49804424.zip |
WifiConfigManager: Temporarily blacklist on disconnect
When an external entity (settings for example) triggers
WifiManager.disconnect() API, ensure that we blacklist the network
temporarily for 1 hour. Any internal disconnects triggered by the stack
will not result in blacklisting the network.
Bug: 126503889
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: If66fd078fa74b8153a9d1aca2ed362b2246f276d
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java index eb09d239b..4e2cb9b5d 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSuggestionsManagerTest.java @@ -1257,7 +1257,7 @@ public class WifiNetworkSuggestionsManagerTest { // Now remove the network suggestion and ensure we did not trigger a disconnect. assertEquals(WifiManager.STATUS_NETWORK_SUGGESTIONS_SUCCESS, mWifiNetworkSuggestionsManager.remove(networkSuggestionList, TEST_PACKAGE_1)); - verify(mClientModeImpl, never()).disconnectCommand(); + verify(mClientModeImpl, never()).disconnectCommandInternal(); } /** @@ -1293,11 +1293,11 @@ public class WifiNetworkSuggestionsManagerTest { // Now remove one of the apps and ensure we did not trigger a disconnect. mWifiNetworkSuggestionsManager.removeApp(TEST_PACKAGE_1); - verify(mClientModeImpl, never()).disconnectCommand(); + verify(mClientModeImpl, never()).disconnectCommandInternal(); // Now remove the other app and ensure we trigger a disconnect. mWifiNetworkSuggestionsManager.removeApp(TEST_PACKAGE_2); - verify(mClientModeImpl).disconnectCommand(); + verify(mClientModeImpl).disconnectCommandInternal(); } /** @@ -1324,7 +1324,7 @@ public class WifiNetworkSuggestionsManagerTest { // Now remove the app and ensure we did not trigger a disconnect. mWifiNetworkSuggestionsManager.removeApp(TEST_PACKAGE_1); - verify(mClientModeImpl, never()).disconnectCommand(); + verify(mClientModeImpl, never()).disconnectCommandInternal(); } /** @@ -1356,7 +1356,7 @@ public class WifiNetworkSuggestionsManagerTest { // Now remove the app and ensure we did not trigger a disconnect. mWifiNetworkSuggestionsManager.removeApp(TEST_PACKAGE_1); - verify(mClientModeImpl, never()).disconnectCommand(); + verify(mClientModeImpl, never()).disconnectCommandInternal(); } /** |