diff options
author | Jin Seok Park <jinpark@google.com> | 2020-07-14 21:15:44 +0900 |
---|---|---|
committer | Jin Seok Park <jinpark@google.com> | 2020-07-20 16:01:23 +0900 |
commit | e1f4d51d555eac69d9d56ecefafcd4cc65a4c1bd (patch) | |
tree | 95a0a6aef303fe6a403f8ba65a866ce64671b22c /tools/aapt2/java/AnnotationProcessor.cpp | |
parent | 4cc7111329edcc0d89a3f352669127decdbd8a0a (diff) |
Add hasEnabledNotificationListener API
This CL adds a system API to NotificationManager for checking whether
the NotificationListener for the current package name and user id is
enabled or not.
This replaces existing implementation which was using binder calls
directly to NotificationManagerService.
Bug: 160762852
Test: atest CtsMediaHostTestCases:\
android.media.session.cts.MediaSessionManagerHostTest\
#testGetActiveSessions_withSession2
-> MediaSessionManager#getActiveSessions verifies call by checking if
the notification listener is currently enabled.
Change-Id: Ic730b0abfe08c40171062421b2015be9cc05310a
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor.cpp')
0 files changed, 0 insertions, 0 deletions