Merge "Expose PendingIntent APIs for exposing component/type for CTS" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2102bd8448
@@ -281,6 +281,7 @@ package android.app {
|
||||
}
|
||||
|
||||
public final class PendingIntent implements android.os.Parcelable {
|
||||
method @Nullable @RequiresPermission("android.permission.GET_INTENT_SENDER_INTENT") public java.util.List<android.content.pm.ResolveInfo> queryIntentComponents(int);
|
||||
field @Deprecated public static final int FLAG_MUTABLE_UNAUDITED = 33554432; // 0x2000000
|
||||
}
|
||||
|
||||
|
||||
@@ -1277,6 +1277,7 @@ public final class PendingIntent implements Parcelable {
|
||||
*/
|
||||
@RequiresPermission(permission.GET_INTENT_SENDER_INTENT)
|
||||
@SystemApi(client = Client.MODULE_LIBRARIES)
|
||||
@TestApi
|
||||
public @Nullable List<ResolveInfo> queryIntentComponents(@ResolveInfoFlags int flags) {
|
||||
try {
|
||||
return ActivityManager.getService()
|
||||
|
||||
Reference in New Issue
Block a user