diff options
author | Beverly <beverlyt@google.com> | 2020-02-07 16:22:14 -0500 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2020-02-12 16:36:15 -0500 |
commit | 7e0d649ac7227a879649b9f0bbffa3be5d656500 (patch) | |
tree | 649336beca9c5abf7aa16616f1f84a2bcad32762 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 63d4441d3efffffafbd8d8ec86221c3451a92b0b (diff) |
Add NotifCollection dismiss methods
Now NotifCollection has three methods for sending dismissals to system
server:
1. dismissNotification
- dismisses a single notification
- use case: when user swipes away a single notification
- ends up calling IStatusBarService#onNotificationClear to
update system server
2. dismissNotifications - dismisses multiple notifications it's passed.
- use case: user dismisses all 'gentle/silent' notifications
- ends up calling dismissNotification (#1) multiple times
3. dismissAllNotification
- dismisses all clearable notifications associated with a given userId
- use case: user clicks on "clear all" to clear all their notifications
- ends up calling IStatusBarService#onClearAllNotifications to
update system server
Test: atest NotifCollectionTest
Test: atest SystemUITests
Change-Id: I1fdf38fd192824b1dfc45dd3a5e1fea0a51e2e75
Fixes: 149241859
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions