History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f18cd43a78de639b3680a0e881d90d02ae57decd 11-Apr-2018 Eric Schwarzenbach <easchwar@google.com> Fix issue where WakeupLock locks with unsaved networks.

The WakeupController now correctly filters out unsaved networks on
start() and during handleScanResults().

Manual testing done on top of ag/3866992.

Bug: 77863333
Test: runtest, manual

Change-Id: I21ff355c93051a8634d0337c653e6a461d01d8e4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
dca47232ea69a4501318b4dfb69db69e1216694f 26-Mar-2018 Eric Schwarzenbach <easchwar@google.com> Implement new metrics for WifiWake

Implements collection of new WifiWake metrics defined in wifi.proto.
Records initialization event, and counts total number of wakeups and
ignored calls to start.

Bug: 72762459
Test: runtest
Change-Id: I3de8420999da7771a12f1da30911121b00d97f26
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
5aad8ece7e38a80db917d49b5245f6b8c6dca273 14-Mar-2018 Eric Schwarzenbach <easchwar@google.com> Change onboarding flow.

This CL incorporates a few changes to the Wifi Wake onboarding flow.

Wifi Wake now operates as normal even if the user has not interacted
with the onboarding notification.

The onboarding notification will be shown when WiFi is disabled if the
user is not onboarded (3 times max, at most once every 24 hours).

The user is considered onboarded if they have interacted with the
notification, seen 3 notifications, or manually changed enabled/disabled
the feature from Wifi Settings page.

Bug: 72399908
Test: runtest, manual

Change-Id: I5fd02510b39ae89223ad28352f2045af33c13a5e
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
4f894bd0f4b378972d10f64390ab710da54d5cc6 13-Mar-2018 Eric Schwarzenbach <easchwar@google.com> Fix WifiWake locking behavior.

To prevent a single non-representative scan from determining the state
of the WakeupLock, we no longer initialize the lock with solely the
results from WifiScanner.getSingleScanResults(). Instead, we
iteratively build the lock up over 3 scans (capped by a timeout).

The WakeupLock is now responsible for determining whether to add or
remove the networks from the lock based on its initialization state
(see WakeupLock#update()).

All DFS channels are excluded from consideration for both locking and
waking.

The initialization state is not persisted to the StoreData, but rather
any loaded StoreData is assumed to be initialized.

Bug: 74259229
Test: runtest, manual
Change-Id: I062f000546079dee1be1aa565a515237ab0c745f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
eaa590a3216ed7bf971c67a43ae68ed6e3ad1ce1 09-Mar-2018 Eric Schwarzenbach <easchwar@google.com> Add more Wifi Wake log statements

Plumbs the verbose logging flag down into WakeupController and
WakeupLock.

Bug: 71756207
Test: manual

Change-Id: I9fccc14fee856733b4a5ce729188dacb73dbffee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
12d31e7fea8e5c17dddc0ab433c26c31a3bf2550 06-Feb-2018 Eric Schwarzenbach <easchwar@google.com> Add metrics for Wifi Wake

Test: runtest, manual
Bug: 72762459
Change-Id: I0bb64c9a6bff0fde8c1203de4445698247bb781a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
aa872c243eb5b27beaefe1360b69a46ceb016b56 01-Feb-2018 Eric Schwarzenbach <easchwar@google.com> Fix WakeupConfigStoreData bug.

Prevents the wakeup controller from doing any work until the store has
been read.

Bug: 72757283
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Test: set user as onboarded, start phone with wifi disabled, ensure
that no onboarding notification pops up.

Test: wipe phone, reboot, turn wifi off, ensure onboarding notification
appears

Change-Id: I9968aa158ed2cd87c5f0f1ab04b4962404da0fb0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
32152cdeeefb4d8cc9a1137232892e5360ae1f5b 22-Jan-2018 Eric Schwarzenbach <easchwar@google.com> Enable platform Wifi Wake.

Bug: 69624403
Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I85150769363a306ad98c16bcc6fa27ecc71a2416
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
17139823e3dbbcdb46f1e586427297d72a5a0e66 09-Jan-2018 Eric Schwarzenbach <easchwar@google.com> Add method to enable wifi from WakeupController

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I4fc1f862f81f72d42a4ee42ca7ad8b3a0e220dde
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
9d60c0ff94757e8862f167f6de54789fe2e1bab2 15-Dec-2017 Eric Schwarzenbach <easchwar@google.com> Add onboarding process for Wifi Wake.

Creates a notification to display to the user the first time they turn
off wifi with the feature enabled. Updates the ConfigStoreData to
include a bit for "isOnboarded". Creates a factory class to handle
constructing the actual notification. Gates handleScanResults on user
onboarded status.

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: adb push old WifiConfigStore.xml; adb shell stop; adb shell start;
verify that the config store loads properly and writes the new
WakeupConfigStoreData

Change-Id: Ia3949a70a2c64bc40fc658788e395061a7ca86ee
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
b6b9c915c200d71da56026d8c3aeec9c243a933a 08-Dec-2017 Eric Schwarzenbach <easchwar@google.com> Handle incoming ScanResults.

Adds logic for determining whether to enable wifi. Hooks into onResults
from ScanListener.

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Id8aa749688a5c28ef7d5f25ae0a804d76513cf19
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
115c8923f9cfee8052c03eb5c92359d4156a86b2 05-Dec-2017 Eric Schwarzenbach <easchwar@google.com> Implement WakeupController lifecycle events.

Implements the lifecycle hooks to WakeupController and adds them to
WifiStateMachine state transitions.

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ie58fc5071d1f9f01f30937856ebca922beb1f7ca
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
04263765dc4bb2a74722d69db56c5b42e7fb1bc9 01-Dec-2017 Eric Schwarzenbach <easchwar@google.com> Add dump commmand for Wifi Wake.

Bug: 64094365
Test: adb shell dumpsys wifi | grep -A 10 WakeupController
frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I8d835c083f534749c7dbca4b0706c558d46aef38
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
a57806da53f2eadcf12475892ae3a0e0e58d98cd 22-Nov-2017 Eric Schwarzenbach <easchwar@google.com> Connect WakeupLock and WakeupController to the config store data.

Creates data sources for WakeupLock and WakeupController and registers
them with the WifiConfigStore.

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I4620691a83b9cde9435378a0d692996c11404bfe
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java
a55e8d795bba5aa66f692cffa8fa28e3b4174546 14-Nov-2017 Eric Schwarzenbach <easchwar@google.com> Add WakeupController class.

Adds a barebones WakeupController class. It listens for changes to
Settings values to determine whether or not it is enabled.

Adds the WakeupController to WifiInjector.

Bug: 64094365
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I471ee381f425388857f4bb0bb34fee61ee8b0c3b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WakeupController.java