016ca1ae5e33eb9529ae10c2510a56fa5c7fec4d |
|
03-Jun-2016 |
Randy Pan <zpan@google.com> |
WCM: Periodic scan interval policy adjustment Allow immediate single scan for scenarios such as user allows untrusted networks, user forces a connectivity scan, and etc. The minimum scan interval is enforced only for the screen state change and connection state change cases. Also removed the scan started by WCM for user selected network. We connect to the user selected network by directly invoking the wpa_supplicant select_network. Now WCM always sets the 'forceSelectNetwork' parameter to false when calling into WifiQualifiedNetworkSelector.selectQualifiedNetwork(). So deleted the unused variable mForceSelectNetwork. Bug: 29103349 Change-Id: I1dd77af0cf7de85a96afac63de1344daab192968
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
c2963eb07660a06592c60224279685166390217d |
|
23-May-2016 |
Randy Pan <zpan@google.com> |
WifiConnectivityManager: enforce minimum single scan interval Instead of always starting a single scan when the device enters screen on state, we now keep track of how long it has been since last periodic single scan and defer the new scan request. Bug: 28887789 Tests: Wifi Unit Tests, manual tests Change-Id: Iba5b5b7db897d3227d87f8d989246a1942525b9c
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
9d6a7a1b5f9e9ea194fc6b15044c9d14d6aefabf |
|
21-May-2016 |
Roshan Pius <rpius@google.com> |
Merge changes Ie64c11f3,I91272aa5 into nyc-dev * changes: WifiNetworHistory: Don't persist QNS blacklist Change clock for time interval/elapsed measurments
|
fb196453c07daad5e525520cecad84cec5d89fb7 |
|
20-May-2016 |
Roshan Pius <rpius@google.com> |
WifiConnectivityManager: Fall back to full band scan Fall back to full band scan when the currently connected network is not present in scan result cache. This could be a transient problem, but we don't want to cause an error by sending an invalid scan request. Changes needed for unit-testing this change: 1. Make WifiInfo a real instance so that we can set the values for the public members directly accessed like tx/rx success rate. 2. Make |getCurrentWifiConfiguration| public so that it can be stubbed out. BUG: 28845855 TEST: Compiles & unit-test passes Change-Id: I6cb2b7ad762b3f8f2ab36d66c4b1fcc39fafffed
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
ee0ab818341d44614ffe56ae73ecc08b974c2cbb |
|
20-May-2016 |
Roshan Pius <rpius@google.com> |
Change clock for time interval/elapsed measurments 1. Use the clock retrieved from WifiInjector in more modules: QNS, Scanner, WifiConfigManager. 2. Use |elapsedRealtime| for time interval/elapsed measurments. Things like scan results, config elements still continue to use |currentTimeMillis| Also, 1. Had to make |tryEnableQualifiedNetwork| public to prevent mockito from calling the real method in WifiConfigManager. 2. Move keystore also into WifiInjector. BUG: 28299258 BUG: 28824635 Change-Id: I91272aa5665abb741da7530d8920d09c8c5ea41f TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
b32b649c815b0b50fd0127d9d4a4563c54a536fb |
|
16-May-2016 |
Randy Pan <zpan@google.com> |
WifiConnectivityManagerTest: exponential backoff periodic scan Add a couple of unit tests to cover the periodic scan exponential backoff feature. Extended MockAlarmManager class such that users can query a pending alarm's trigger time. Bug: 28750989 Change-Id: I9520477180786fce2937e5fa87f790f60f12a3da
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
1d7d62393181cc36b6f87c3cf2151adc54275f9c |
|
04-May-2016 |
Roshan Pius <rpius@google.com> |
WifiConnectivityManager: Unit tests for metrics Add couple of unit-tests for metrics. Had to migrate the unit-tests to use mock alarm manager. BUG: 27479439 BUG: 27704599 BUG: 28480516 Change-Id: I1424053c35799905612b37edeb679e7556568ca5 TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
00f5ad8bafa58232b799e5195783a444fa9168fe |
|
02-May-2016 |
Randy Pan <zpan@google.com> |
Merge "WifiConnectivityManager: PNO retry for low RSSI network" into nyc-dev
|
3d09b9117df33608a43c1fbe0135123e2de9aea2 |
|
27-Apr-2016 |
Randy Pan <zpan@google.com> |
WifiConnectivityManager: PNO retry for low RSSI network Added an exponential back off retry mechanism for networks found by PNO scan but rejected by QNS due to their low RSSI values. Bug: 28402107 Change-Id: I8a69afb3d22fbd2f479073e6087893c24e5a5d39
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
50abba06efa7834b5309df561375e4a2e2df630d |
|
29-Apr-2016 |
Randy Pan <zpan@google.com> |
Fix check on current connected/connecting network Keep track of the network BSSID of the last connection attempt. This BSSID is checked in case the phone is still in the process of connecting to that network. mWifiInfo is checked for the currently connected network. This is for the case that firmware performed roaming automatically. While there, addressed a checkstyle issue. Bug: 28462151 Change-Id: Ia9316048e0549036de1c20bf1f3099cfcda9a75e Test: WiFi unit tests
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
c8a21e495dfaa5c44e87fda330621a1ed6c8aace |
|
26-Apr-2016 |
Randy Pan <zpan@google.com> |
WifiConnectivityManager: Run AlarmManager on WifiStateMachine thread With WifiScanner also running on the WifiStateMachine thread, WifiConnectivityManager is now exectued on a single thread context. While there, fixed a few checkstyle issues. Bug: 28369823 Change-Id: Ibf2b65be42d243deb61a68380a9011f4acc663b4
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
fa2ac2743307559e8dcc5aaf54873536315fbe62 |
|
19-Apr-2016 |
Roshan Pius <rpius@google.com> |
WifiConnectivityManager: Unit tests for rate limit Adding unit tests to verify the connection attempt rate limiting functionality. Had to change the way system time is being fetched in WifiConnectivityManager to achieve this. BUG: 28242396 Change-Id: I2bfae3a9ea60cba1c3c1405dd5eb58208f12c2db TEST: Compiles & unit-test passes
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
09abbe29be6e552a2531b0367bd6d29647d33767 |
|
30-Mar-2016 |
Glen Kuhne <kuh@google.com> |
Created LastResortWatchdog class Created the WifiLastResortWatchdog class, that will handle restarting the wifi stack as a last resort when wifi is failing. Implemented the logic that tracks failure counts for all available networks, and the maintaining of that list of available networks. BUG=27856523 Change-Id: I8c944d033955ad7e5cc9484cce8f20cd3755312e
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
e78a18cf874b4d9bb5db2ef7804b8ac576e56489 |
|
09-Apr-2016 |
Mitchell Wills <mwills@google.com> |
Fix unit tests after rebase of scan worksource CL Fixes: 28096237 Change-Id: I1f9d9284f3b2a09892d2d1d1ff4a3faccb54d616
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
73a52d3336a40903965b946f6d3624a223ad5aac |
|
07-Apr-2016 |
Samuel Tan <samueltan@google.com> |
WifiConfigManager: rename member and constant fields Rename fields in WifiConfigManager to properly reflect that they are members (m* prefix), and constants (all caps with underscores). To accomodate this change, also modify uses of these fields outside WifiConfigManager (e.g. in WifiStateMachine). Also: - Remove default values given to WifiConfigManager member fields that are initialized in its constructor, since the initalization renders the default values useless. - Remove member fields and constants that are unused. - Replace the "*Milli" suffix on fields with "Ms". - Re-ordered fields in a logical manner (i.e. static, public, then private). - Fixed checkstyle issues. BUG: 27300099 Change-Id: Ifaef76bc04960f12f09267a581b9a02da7c5ab5c TEST: 'runtest frameworks-wifi' passes. TEST: Checkstyle returns only missing javadoc errors.
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|
84d962ec8f487f824214744498bba505a6db0c59 |
|
11-Feb-2016 |
Randy Pan <zpan@google.com> |
Wifi Connectivity Manager Created a submodule which manages all the WiFi connectivity related operations. It starts a scan when screen turns on/off, WiFI gets connected/disconnected or on demand. The scan results are passed to QNS for it to recommend a network to connect to. Clean up the relevant logic from WifiStateMachine. Bug: 26666366 Bug: 27227489 Bug: 27677391 Bug: 27364917 Change-Id: I65405506ff55940d0b23f1407e476bff6fce47fa
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiConnectivityManagerTest.java
|