diff options
author | Evan Laird <evanlaird@google.com> | 2020-05-08 11:56:18 -0400 |
---|---|---|
committer | Evan Laird <evanlaird@google.com> | 2021-01-29 10:47:13 -0500 |
commit | cec677aca48c3c3b85e7320d05440b30c24aef1f (patch) | |
tree | fda795ba80c1bd82599736b353190f1bc6fcdf73 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5f1b131c67763f06d2eb9b33591adde1b6ca6c74 (diff) |
DO NOT MERGE: Create a shim for StatusBarManager click methods
`StatusBarManager#onNotificationClick` and
`StatusBarManager#onNotificationActionClick` are signals we send to
system server about notification clicks. This CL adds a shim so that we
can have an in-process callback about the exact same events.
This CL also adds NotificationInteractionTracker, which basically just
merges the NotificationClickNotifier callbacks with the notification
collection and will be able to answer the question "has the user
interacted with this notification"
Lastly, this modifies the logic in ForegroundServiceLifetimeExtender
which now checks the interaction flag for notifications. So if a user
tapped on a notification action (for instance) which _then_ triggers a
notification cancel, it will succeed. It _does not_ as of yet release
the notification from lifetime extension upon interaction. So if a
notification is canceled and then interacted with, it will still live
the full amount of time.
Test: atest SystemUITests
Bug: 144324894
Bug: 119041698
Change-Id: I42201d6e7b7ffe9ad4f19c774b638a36a51750ef
(cherry picked from commit 9b2a480ceb42bb7a79a1ff532dac42b0f407a88f)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions