diff options
author | Varun Shah <varunshah@google.com> | 2020-02-04 14:01:12 -0800 |
---|---|---|
committer | Varun Shah <varunshah@google.com> | 2020-02-13 12:01:13 -0800 |
commit | 0cbb6b63ee696f156499ed8873efc95602c01440 (patch) | |
tree | 0fc402f65d19e12692cd9f86541ec75f014051f2 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3b726119ac628e0a7016ef22d2b14e1802dcfd48 (diff) |
Obfuscate visibility of notification-related events.
UsageStats will return obfuscated NOTIFICATION_SEEN or
NOTIFICATION_INTERRUPTION events to callers of #queryEvents
and #queryEventsForUser if they don't hold the MANAGE_NOTIFICATIONS
permission.
Additionaly, refactor the query API in UsageStats to take in flags as
defined in UsageEvents to make future obfuscation/visibility parameters
cleaner.
Also, add the MANAGE_NOTIFICATIONS permission to shell for CTS test.
Bug: 144724524
Test: atest android.app.usage.cts.UsageStatsTest
Test: atest com.android.server.people.data.UsageStatsQueryHelperTest
Test: atest android.content.pm.cts.shortcutmanager.ShortcutManagerUsageTest
Change-Id: I118de7e589ac8dd5924d3740c70903fa484b79b5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions