summaryrefslogtreecommitdiff
path: root/service/src/com/android/server/connectivity/NetworkNotificationManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Add overlay options for no internet notificationsRemi NGUYEN VAN2021-08-041-1/+30
| | | | | | | | | | | | | | | | | | | Add an option to display the no internet dialog directly instead of showing a notification when the notification would have been high priority (typically when the network was explicitly selected). This is disabled by default, but allows device manufacturers to use a slightly more disruptive UX to ensure that the user is aware that the network has no connectivity, and can take action. Also add an option to show the same notification as "no internet" instead of the "partial connectivity" notification. This is also disabled by default, but allows device manufacturers to use the "no internet" text if they feel that "partial connectivity" text is hard to understand for the user. Bug: 193847396 Test: atest NetworkNotificationManagerTest Change-Id: Ib5bd74d8cf973bf70d373dd63648c178fae0ebae
* Make notification icons and autocancel overlayableRemi NGUYEN VAN2021-07-011-1/+1
| | | | | | | | | | | | | | Allow overlays to change the connectivity notification icons, and whether the notifications are auto-cancelled. This does not change default behavior, but is necessary to allow vendors to adapt the notifications to their standards. Bug: 173171709 Bug: 172048052 Test: atest NetworkNotificationManagerTest Added test overlay, verified icon replaced Change-Id: Ibbb765a5e828b8b870cbfb81e89df2dbd2828be7
* Add option to make sign-in notification ongoingRemi NGUYEN VAN2021-06-301-1/+5
| | | | | | | | | | | | | | | | | | Add an overlay boolean that allows setting the SIGN_IN notification as an ongoing notification. This can be useful to make sure users can always easily find the notification to sign in to a captive portal, as studies have found that some users have a tendency to dismiss notifications before reading them. At the same time the notification shade is generally too crowded, which is what causes such behaviors in the first place, so this option is not enabled by default and should generally not be enabled without proper user studies or metrics. Bug: 173171709 Test: atest NetworkNotificationManagerTest Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Change-Id: Ic187d2a2b7e49ad152ea2aa35bb784864b97473c
* Remove hidden Icon.createWithResource API usageRemi NGUYEN VAN2021-06-011-7/+8
| | | | | | | | | | | | | | | | Icon.createWithResource(Context, int) is public, but Icon.createWithResource(Resources, int) is a hidden API. Replace the former by the latter in NetworkNotificationManager, so that it builds against stable APIs. Original change (project moved): Ied29d3c7fb517d0c82f40662a1e0e87186c3a89e Bug: 182125649 Test: atest FrameworksNetTests Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Change-Id: I6b18aab62fbb66bdd43cdb7add30e0c215687c3c
* Move connectivity sources to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+399
The service-connectivity sources should be in packages/modules/Connectivity. Move them to frameworks/base/packages/Connectivity, so that the whole directory can be moved to the dedicated packages/modules/Connectivity git project. Bug: 186628461 Test: m Merged-In: I26d1a274058fa38763ad4f605549d880865b4d76 Change-Id: Ie0562db92ebee269b901926d763ae907bde61b98