diff options
author | Jin Seok Park <jinpark@google.com> | 2021-01-27 13:53:27 +0900 |
---|---|---|
committer | Jin Seok Park <jinpark@google.com> | 2021-02-05 22:00:55 +0900 |
commit | b2fcacab9ea88d219ac636407d026b89c3566f06 (patch) | |
tree | f6e006c47f3cb3687a046d4918496cd9f1c9ba00 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | cf6cd1ba41ae8343474995e02df9b3d3ac0261d0 (diff) |
[Media ML] Replace using PendingIntent hidden APIs
Replace using PendingIntent.getIntent() with the newly exposed APIs:
queryIntentComponents
isActivity
isBroadcast
isService
isForegroundService
Also throw IllegalArgumentException when a PendingIntent with an
implicit intent that cannot be resolved to a specific component
name is set as a media button receiver.
Bug: 161334442
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Change-Id: I19ac844bedea30f4a42bd292acaf33e15e8e5d15
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions