History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a88242633e76bf3a070cfcc0a018ff7f9806f1f4 19-Sep-2017 Stephen Chen <stewchen@google.com> WifiMetrics: add methods to increment ONA metrics.

Tracks the number of notifications posted for each state of ONA, and the
number of user actions made for each notification type. Also tracks the
state of the feature setting, the size of the recommender blacklist,
recommendation update counts, and connection initiation failure counts.

Also adds additional debug logging.

Bug: 37501326
Bug: 66996715
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
and verify in dumpsys

Change-Id: Ia00ae95fbcf923ebae051ba82cd3174cfe11be31
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
b6103294dc1e6785c8ba236582e53801e1f9f2cd 08-Sep-2017 Stephen Chen <stewchen@google.com> ONA: Enable new UI and connection flow.

The new Open Network Available notification UI introduces a connection
flow in which users can connect to a recommended open network directly
by interacting with the notification. "Connect" and "See all" action
buttons are introduced to initiate the flow, and once a connection
attempt is made, the connection status will be reflected on the
notification.

Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I30231c4f71476a7417a3b423848575d5488f51f7
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
20361dcf2d45262685c8dec334c11f0b2c987702 05-Sep-2017 Stephen Chen <stewchen@google.com> ONA: Add connection related notifications.

This change introduces the new notifications but does not utilize them
to change the existing functionality yet. It also refactors the state
handling of the notifier to represent the new connection and
notification states.

When attempting to connect to a network, the notification will update
based on connection success and failures.

Bug: 37357441
Bug: 65257065
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I3cf188f7f0fac1ea7d1ec882c9473bdbaccccabd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
08ffa580f6756129929667785408da377b363787 25-Aug-2017 Stephen Chen <stewchen@google.com> ONA: Implement connection attempt and failure callback.

Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I2d531304598249dcb18bdc45492e48ee90ddff5f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
b280c399d7be7d04a245c5fc2d2897f0ddc9cc0a 09-Aug-2017 Stephen Chen <stewchen@google.com> ONA: Implement SSID blacklist handling for dismissed networks.

When ONA notifications are dismissed by the user, the recommended
network ssid is permanently blacklisted.

This change also removes the use of currentRecommendation in the
recommendation logic, because the extra stickiness is not neccesary due
to the slow scan rate that triggers a recommendation update.

Bug: 64091575
Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I27fc667ae51f9dbc4665ba9d15b18ed3e6daa058
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
579066a6f282b9d6729a93b7cce3b18980a0a61d 27-Jul-2017 Stephen Chen <stewchen@google.com> ONA: Refactor notification builder and register broadcast receiver.

Refactors the posting of the ONA notification by using a notification
builder from the framework facade. The notification building is isolated
in a helper class. OpenNetworkNotifier registers a broadcast receiver to
listen to user actions like swiping to dismiss and notification content
clicks. Also plumbs in a clock to stop using System#currentTimeMillis.

Bug: 38460614
Bug: 37357441
Bug: 62410249
Bug: 63544378
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: Ifa1eef1f17c3f3271ec4a11f4311ea00a2698be3
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java
ce76a17ac5010e0b7ff5dcf6d8c9db8b48280f9c 26-Jul-2017 Stephen Chen <stewchen@google.com> ONA: Rename WifiNotificationController to OpenNetworkNotifier

Bug: 37357441
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: If59ecbd3078452f05e156091df1d098c8469a66a
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/OpenNetworkNotifier.java