History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3219e97566a093ed10b2a9d6fe77ed9089084d63 07-Sep-2016 Mitchell Wills <mwills@google.com> Add a flag to indicate if a ScanData is for a scan for all channels

BUG=30897947

Change-Id: I989a25dd3df3f473090b76b4e3cb798a2d513490
(cherry picked from commit 4e1f32efceee1db37bfb1e2624b434dbfb055686)
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
f5cdd8e7a6b7d4c0b5f77134273c7e894d8c087b 16-May-2016 Mitchell Wills <mwills@google.com> Fix crash when scanner gets results that don't match the request

Before this, when WifiScanningService processed single scan results from
supplicant that only contained results that did not match a request the
filter code would return null indicating that the results should not be
delivered, causing a NPE later. This change updates the meaning of the
bucket index that the single scan code provides to the filtering code to
instead force it to always include scan results.

Change-Id: I65cd57b14abacec3f407991188c570601d05ac77
Fixes: 28794598
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
c343aec32e1d3fe320eb97c527b0bcfb2d334e45 29-Mar-2016 Roshan Pius <rpius@google.com> WifiScanningServiceImpl: Create PNO state machine

Adding a PNO state machine to fetch full scan results for all types of
PNO when reporting events back to the client.

BUG: 27886011
TEST: Compiles & unit-test passes
TEST: Made changes in WifiConnectivityManager to use the scan results to
auto-connect.
Change-Id: I18879cb1bf82226e329c6076e8443e0986ddbe27
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
8adb4e72f58e3e25918f33e0b2687e6acc14c47d 04-Nov-2015 Mitchell Wills <mwills@google.com> Refactor WifiScanner support for oneshot scans

Seperate oneshot scans so they are no longer implemented using
background scans and make WifiStateMachine use WifiScanner for single
scans.

This changes requires a few parts:
1. Implement single scan logic in WifiScanningServiceImpl for merging
and executing scan requests using the single scan native interface.
2. Writing tests for the new code in 1
3. Make supplicant start scans by using WifiScanner and when it
recieves callbacks dispatch scan complete/failure messages.
4. Enable HalWifiScannerImpl and SupplicantWifiScannerImpl to listen to
supplicant scan events now that WifiStateMachine does not.

Bug: 26525037
Bug: 26895774
Change-Id: I7d03b43bbd2be396b3c772bc4bae681acce8eb7b
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
2e0b845b65b2e2151cddbdafb90bd0f744b10654 05-Mar-2016 Mitchell Wills <mwills@google.com> Correctly filter results by time from supplicant in Hal scan impl

Bug: 27358828
Change-Id: Ic9ddfa02a0e3c282871ddfa3347312a5917dbec0
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
63539f1283899fbbf83ab90757961b4be51d5034 04-Feb-2016 Mitchell Wills <mwills@google.com> Update scanner onScanStatus callback to include event

This now allows scanner implementations to indicate scan failues as
well.

This change also ensures that anqpLines is set in results from supplicant

Change-Id: Ibe18c9b804bf073b9152800295c40d072a41e641
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
ac9ad3283508db15b65b1cbb89b841278973276b 28-Jan-2016 Roshan Pius <rpius@google.com> Update network priorities before PNO is triggered

The max SSID watch list size for PNO supported by wlan drivers is fixed
to a certain size. wpa_supplicant sorts this SSID watch list based on
the priorities assigned to those networks. This may result in us losing
some frequently used networks from the PNO list because they have lower
priorities. This is a side effect of how we assign priorities to
network configuration as they're added.
So before we trigger PNO, re-sort the network list based on the
'numAssociation' value and assign them relative priorities. This will make
sure that the PNO SSID watch list contains all the frequent SSID's to
which we were connected to.
PS: This change has a side-effect of ignoring the configured priorities
during PNO.

While there,
1. Add a common test utils class for common utility functions for all
tests.
2. Annotate all tests in WifiConfigStore so that
|WifiTestUtil.getTestMethod| works reliably.

BUG: 26763375
Change-Id: I2c82254b2cb83aef0dd4da9e7d9b2eb5b376bead
TEST: `adb shell am instrument -e class
'com.android.server.wifi.WifiConfigStoreTest' -w
'com.android.server.wifi.test/android.support.test.runner.AndroidJUnitRunner'`
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
3fdceeaa74e21c0ca4da52deeeef6571e7e2a6cd 01-Feb-2016 Mitchell Wills <mwills@google.com> Revert "Refactor WifiScanner support for oneshot scans"

This CL does not correctly handle devices that do not support WifiNative.getChannelsForBand

Bug: 26895774

This reverts commit 772124d1f1ddb2b9537de5efc748943808dafe80.

Change-Id: Ie49715fc89750f79c8e5f188cb42094f1076a48b
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
772124d1f1ddb2b9537de5efc748943808dafe80 04-Nov-2015 Mitchell Wills <mwills@google.com> Refactor WifiScanner support for oneshot scans

Seperate oneshot scans so they are no longer implemented using
background scans and make WifiStateMachine use WifiScanner for single
scans.

This changes requires a few parts:
1. Implement single scan logic in WifiScanningServiceImpl for merging
and executing scan requests using the single scan native interface.
2. Writing tests for the new code in 1
3. Make supplicant start scans by using WifiScanner and when it
recieves callbacks dispatch scan complete/failure messages.
4. Enable HalWifiScannerImpl and SupplicantWifiScannerImpl to listen to
supplicant scan events now that WifiStateMachine does not.

Bug: 26525037
Change-Id: Iddd6d64b35fed129048e1fd5c79acb6982bfc418
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
2771787818003e53e8175036a3d09688c783f350 07-Jan-2016 Mitchell Wills <mwills@google.com> Fix a couple bugs in WifiScanner and improve tests

Ordering of scan results for HAL scanner implementation was wrong.
Generated scan results for tests were very similar in some cases leading
to tests missing the bug above. This CL makes generated scan results
dependant on the test case name as well.

Change-Id: Ibb35abf275db3585766be630585d0e3c8870494c
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
eee1d479d8d402a2e78e2f143e957030cfc77749 29-Dec-2015 Vinit Deshpande <vinitd@google.com> First WifiStateMachine UnitTests

Change-Id: I044b54f18f1a75b5b33c3fc9fc71a8da820d2521
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
72c639e8b97067e948eca8be50dfea3173121090 04-Nov-2015 Mitchell Wills <mwills@google.com> Cleanup wifi tests style

Make all tests follow style defined in development/tools/checkstyle

Change-Id: I18b24956f4fdecde8f02ebcc9089065b4a5b7e68
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java
41e38d84f562e12198f7db0d45f633712cae6cba 19-Nov-2015 Mitchell Wills <mwills@google.com> Tests for SupplicantWifiScannerImpl

Other small fixes/aids for testing
* deliver full scan results in the order they are returned from
supplicant
* Now use AlarmListener AlarmManager API instead of intents
* Use WifiChannelHelper instead of direct native calls

Change-Id: I3133a21162f598e5e5973ec67ebc9521a3a387ab
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ScanResults.java