History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4efccec8a7f8c871dbf0b7360f44d28e0a6db6d 04-May-2017 Amin Shaikh <ashaikh@google.com> Move ONA back into the wifi framework.

- This is the minimum change to restore the "Open networks available"
feature from N and fulfill O requirements without causing regressions
- Post the "Open networks available" using the NETWORK_AVAILABLE
NotificationChannel. Note that the feature is still enabled/disabled by
toggling Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
- Before showing a notification, check if the current user has the
DISALLOW_CONFIG_WIFI restriction. See b/35996959 for details.
- Add tests for the UserManager check in WifiNotificationController

Bug: 37794067
Test: ./tests/wifitests/runtests.sh
Change-Id: I0266f63acafc56b995f71420af726933908ce8a0
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
cee93a796f42939b2d4f2e3e5491c3d951694662 28-Apr-2017 Joe LaPenna <jlapenna@google.com> Revert "Move WifiNotificationController to NetworkRecommendation"

This reverts commit fcbdc7fdb5612e82991494832a95c73bcc898f12.

Bug: 37794067
Test: ./tests/wifitests/runtests.sh

Change-Id: I6c4b876fc50d35fbec03dab58fb26caa6e4d1655
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
fcbdc7fdb5612e82991494832a95c73bcc898f12 04-Jan-2017 Stephen Chen <stewchen@google.com> Move WifiNotificationController to NetworkRecommendation

Bug: 32981344
Test: runtests.sh
Change-Id: If11c7b5bb9e47503e22ad8fe58b5e8f23798db7a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
da918df16e03ee19be62343313d954027d3eb3ab 28-Nov-2016 Rebecca Silberstein <silberst@google.com> WifiServiceImpl: allow for unit tests

Some structural cleanup that allows for WifiServiceImplTest development.

Bug: 33167818
Test: runtests.sh
Change-Id: Ic3ca545f210dfaa3277cc28166b2611b3c818408
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
3b363f83de09574fe91de54e44e56a967237f4fd 02-Dec-2016 Sarah Fortune <sfortune@google.com> Removed unused param wifi state machine.

Bug: 32981261
Test: refactoring CL. Existing unit tests still pass.
Change-Id: Ifb442b90980e5bcbe8350d65b402eaf97020998a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
52f0452bbc9e7088a6eee0aea244b3415f9a650e 28-Oct-2016 Paul Stewart <pstew@google.com> WifiNotificationController: Explicitly ignore cases

Explicitly ignore all known cases for NetworkInfo.DetailedState
so build tools can alert us when new cases are added that we have
not yet considered here.

Bug: 32490639
Change-Id: I8091a93073ea8f85878471ebb5c01792f0f1e4f0
Test: Compile only -- trivial change
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
22f57da33e6b132a0e7e4bd6d986f74b53d19527 19-Sep-2016 Rebecca Silberstein <silberst@google.com> WifiNotificationController: use WifiScanner

Update WifiNotificiationController to use
WifiScanner.getSingleScanResults() instead of WifiStateMachine. This
involves plumbing WifiInjector to retrieve WifiScanner. Also updated
the test to mock the getSingleScanResults call instead of the
WifiStateMachine.syncGetScanResultsAsList call.

BUG: 31504903
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manual testing looking for notification and reported dump values
Change-Id: I6449e953c4fd35941096586383252e7c24c504db
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
40abf54c81c5624641543d86e1d7ab21ebe30175 08-Mar-2016 Paul Stewart <pstew@google.com> WifiNotificationController: Take a looper

This CL adds a Looper argument to the WifiNotificationController
constructor, so its Handler can be initialized with a specific
looper instead of relying on the default.

Bug: 27545448
Test: runtest frameworks-wifi \
-c 'com.android.server.wifi.WifiNotificationControllerTest' \
-m 'verifyNotificationDisplayed'

Change-Id: I33fb221ddfead0b24d98bd23c92c0226ff3c6a1d
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
250e70cb113e75ac9b24b09bbf176804d37755d8 09-Feb-2016 Paul Stewart <pstew@google.com> WifiNotificationController: Ignore "SCANNING" network state

While the system is disconnected and does screen-on scanning,
it is legitimate to see temporary state changes to the "SCANNING"
state then back to "DISCONNECTED". The current implementation
of WifiNotificationController resets its scan counter during
these transitions, and therefore never displays the "WiFi
Networks Avaialable" notification. This CL fixes this problem
by separately tracking NetworkInfo.DetailedState and ignoring both
"SCANNING" and the no-op state changes that will happen as a
result.

BUG=26076402
TEST=New unit test included in CL
TEST=Repeat bug reproduction steps

Change-Id: I5e6049edb767e4f67be1ddb31023a28043db53d5
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
2247009c2527c80e7fb00f056aea67d1fe09671b 11-Jun-2015 Chris Wren <cwren@android.com> remove setLatestEventInfo from wifi

Bug: 18510449
Change-Id: I155caaf80d90b15b1a1ee1cc71819358edb4c604
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
c5e82ad2600416d7eafdde5d1d02400ece28e48a 10-Sep-2014 Vinit Deshpande <vinitd@google.com> Fix first time notification of available open Wifi

There is no networkInfo the first time notification controller starts,
and as a result it is dropping check to find out if open networks are
available.

Bug: 17349359
Change-Id: I09ca0b1cb44a849f2cdfafb1dcdcc943b2586562
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
0d647da4a502c1d3679d700144469460acab3d73 27-Aug-2014 Selim Cinek <cinek@google.com> Colored notifications

Bug: 17128331
Change-Id: I30a31d5da000e021e9891c56da91b0ff9615d4d6
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
155b9d09ef9b8ead3ca617afdd91e74070d3f0cb 09-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Revert "Move Wifi services to a new git project""

This reverts commit 862f81faba40e9af8fb80744a22e968a298e814e.

Change-Id: I7b15e266a5948749026e01a61d8581746cfd0f5f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
862f81faba40e9af8fb80744a22e968a298e814e 08-Jan-2014 Vinit Deshpande <vinitd@google.com> Revert "Move Wifi services to a new git project"

This reverts commit a07c419913bfae2a896fbc29e8f269ee08c4d910.

Change-Id: I1cd35cea1594cdbeae800b9130bc6f885f238b28
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java
a07c419913bfae2a896fbc29e8f269ee08c4d910 18-Dec-2013 Vinit Deshapnde <vinitd@google.com> Move Wifi services to a new git project

Bug: 12175455
Change-Id: I1fa07e29c6a9aae38d9e334d519a9f2445d15613
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiNotificationController.java