Searched refs:MAX_SCAN_RESTART_ALLOWED (Results 1 - 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiConnectivityManager.java100 public static final int MAX_SCAN_RESTART_ALLOWED = 5; field in class:WifiConnectivityManager
205 // A periodic/PNO scan will be rescheduled up to MAX_SCAN_RESTART_ALLOWED times
214 // A single scan will be rescheduled up to MAX_SCAN_RESTART_ALLOWED times
414 if (mSingleScanRestartCount++ < MAX_SCAN_RESTART_ALLOWED) {
419 + MAX_SCAN_RESTART_ALLOWED + " times");
470 if (mScanRestartCount++ < MAX_SCAN_RESTART_ALLOWED) {
475 + MAX_SCAN_RESTART_ALLOWED + " times");
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConnectivityManagerTest.java1318 * Verify that we retry connectivity scan up to MAX_SCAN_RESTART_ALLOWED times
1322 * MAX_SCAN_RESTART_ALLOWED times.
1340 for (int i = 0; i < (WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED * 2); i++) {
1345 // Verify that the connectivity scan has been retried for MAX_SCAN_RESTART_ALLOWED
1346 // times. Note, WifiScanner.startScan() is invoked MAX_SCAN_RESTART_ALLOWED + 1 times.
1347 // The very first scan is the initial one, and the other MAX_SCAN_RESTART_ALLOWED
1349 verify(mWifiScanner, times(WifiConnectivityManager.MAX_SCAN_RESTART_ALLOWED + 1)).startScan(

Completed in 37 milliseconds