History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fac6568cbb329e06b22bfe07993acb263f3762ab 09-Aug-2017 Michael Plass <mplass@google.com> Wifi connection hysteresis

Making an automatic connection should not happen unless the RSSI
is a little bit above the level at which a connection is considered
to be "bad", to avoid flapping back and forth between wifi and cell.

Bug: 64422319
Test: Unit tests, manual
Change-Id: I9a148f2d66ea835d19696eb6317b682f6756f002
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
3cf27a7144be15b7ca400412e4f1bc31daa8be13 26-Jun-2017 Ningyuan Wang <nywang@google.com> Stay on network during ongoing traffic

Changing network might result L3 disconnection, causing
disruptive user experience.
We should change network less aggressively in the presence
of heavy traffic, which implies streaming activities.

This adds the corresponding unit tests. As a result, this
also modifies the existing test helper method |testStayOrSwitch|
and adjusts some other related unit tests.

Bug: 62428282
Test: compile, unit tests, integration tests

Change-Id: Ib285d42b7191e45e2124b2385fb0802c9fc55f71
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
eb04ff08fe0985acd105a92ae397cbcd7ab91266 21-Jun-2017 Stephen Chen <stewchen@google.com> WifiNetworkSelector: cache filtered scan results

The filtered scan results removes the need to check for blacklisted
bssids, low signal strength, and invalid SSIDs before showing ONA
notifications.

Exempt-From-Owner-Approval: Owners file out of date
Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I5ac71fa366c8c45377857c18f392aa34d9cbd88f
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
3b518300cd177eb84b9fb65c98e2e52ab959d123 14-Mar-2017 Nathan Harold <nharold@google.com> Only auto-disqualify 2.4GHz NWs when 5GHz NWs are available

The WifiSelector logic automatically disqualifies 2.4GHz
networks so that we always go looking for a candidate 5GHz
network. This is the right thing to do so long as there are
5GHz candidates. For 5GHz candidates to be available:
1) 5Ghz must be supported by the device
2) 5GHz networks must be found by a scan
3) 5GHz must be enabled by the user (not always configurable)

Thus, for cases where 5GHz networks aren't available for
whatever reason, we should only disqualify 2.4GHz networks
using the established RSSI-based logic that is applied in
other cases.

Exempt-From-Owner-Approval: Owners file out of date
Bug: 36226123
Test: test2GhzQualifiedNo5GhzAvailable,
test2GhzHighQuality5GhzAvailable,
test2GhzNotQualifiedOther2GhzAvailable,
test5GhzNotQualifiedLowRssi,
test5GhzQualified
Merged-In: I3632e056c9890c7ac6607f72b21e42d34ec0386d
Change-Id: I3632e056c9890c7ac6607f72b21e42d34ec0386d
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
03c23584f072aef576736044c1fa12ddcb2d882b 31-May-2017 Roshan Pius <rpius@google.com> WifiConfigManager: Rename scan result to network lookup method

Rename from |getSavedNetworkForScanDetailAndCache| to
|getConfiguredNetworkForScanDetailAndCache| because the method might
also return the configured ephemeral network matching the scan result.

Bug: 62202610
Test: Unit tests
Change-Id: I6fa4c23bde017c412b10b31a350b5c780fc8a672
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
17c2a7b30e5680b11fc0073ce322ee7bc14ef2c5 03-Feb-2017 Randy Pan <zpan@google.com> Local log buffer shared by connectivity modules

Move the creation of the local log buffer for connectivity modules to
WifiInjector. Then pass it over to all the connectivity modules.
Dump the log buffer via WifiConnectivityManager.

While there, removed the null check in localLog() for all the
connectivity modules.

Bug: 35642622
Test: runtest.sh and manual test
Change-Id: I31866c6fecdd9f50061f47e34e16c701ff230a6c
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
167b90b5e002698378728a54a417a08c317d29dc 25-Feb-2017 Randy Pan <zpan@google.com> Move BSSID blacklist to WifiConnectivityManager

Now the BSSID blacklist is managed by WifiConnectivityManager and
passed to WifiNetworkSelector for scan results filtration.

Bug: 35642214
Test: runtests.sh and manual tests
Change-Id: I7afb5e66be471f3582075adb687a7d85ba49a80b
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
235642dba4359c1e68618f27c949e744765cbbcc 07-Feb-2017 Amin Shaikh <ashaikh@google.com> Move adjustCandidateWithUserSelection to WifiNetworkSelector

WifiNetworkSelector#setUserConnectChoice contains all of the logic for
favoring a user selected network over other visible networks present at
the last round on network selection. However, the logic for using this
data is contained in
SavedNetworkEvaluator#adjustCandidateWithUserSelection. This has the
side effect that RecommendedNetworkEvaluator or any new NetworkEvaluator
in the future can override the user's explicit intent to choose a
specific network. This change moves adjustCandidateWithUserSelection to
WifiNetworkSelector, fixing this bug and bringing all user connect
choice logic into the same class, WifiNetworkSelector.

Set a candidate ScanResult for every WifiConfiguration in
SavedNetworkEvaluator, regardless of whether it is externally scored.
This ensures that the user connect choice is respected if an externally
scored network is selected by a user over a secure saved network.

Bug: 34971941
Test: ./runtests.sh
Change-Id: I8730aee89dbee0ebb97161a56f00c026139ef5c9
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
805966beca772f5755be73ac1fe0819142ec294b 06-Dec-2016 Randy Pan <zpan@google.com> Blacklist AP immediately if its capacity is full

Blacklist a BSSID immediately when the association to it was
rejected because the AP cannot handle new stations. Previously
we treat all the association rejection the same and blacklist
the AP after 3 times of rejection.

Bug: 32745407
Test: Wifi framework unit tests
Change-Id: Ie64e7b2c659ee27d4cfa109b879d36fe836ee65b
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
6491dffa5242829ccafa59a9a7243d56beafe7e6 10-Nov-2016 Randy Pan <zpan@google.com> WNS: less agressive roaming

When connected, WNS no longer triggers network switching if the
current network didn't show up in the scan results.

While there, fixed the comments of
WifiNetworkSelectorTest#filterOutBlacklistedBssid.

Bug: 31707128
Test: Wifi Unit Tests
Change-Id: Ieebc71151396608cd63e0b834e3f1c572e4cb557
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
bab1104d9cdce66688e45aa04f49d36966bc49e0 09-Nov-2016 Randy Pan <zpan@google.com> WNS: feed filtered scan results to network evaluators

Bug: 32745148
Test: Wifi unit tests
Change-Id: I32a3e8e2698f2ab7aa58123c0606872e762e151d
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
6c90568a19e32a1825e06a608e59d3f36daff9ca 03-Oct-2016 Randy Pan <zpan@google.com> Move WifiNetworkSelector to WifiInjector

While there, move WifiInfo to be an input parameter of
WifiNetworkSelector#selectNetwork and make WifiInfo the
sole source for obtaining information of the currently
connected network.

Bug: 31383992
Test: Wifi framework unit tests
Change-Id: I107ba600165b008079cebf230865f8b2082740a8
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java
0e3cc5f112670c455029e89c93c1f122b897f6e2 13-Sep-2016 Randy Pan <zpan@google.com> WifiNetworkSelector unit tests.

Created a WifiNetworkSelectorTestUtil class.
Added unit tests for WifiNetworkSelector.

Bug: 31469319
Test: unit tests passed.
Merged-In: I2fff00bf258a26275f124931000635ab2cdba69f
Change-Id: I2fff00bf258a26275f124931000635ab2cdba69f
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTest.java