1 /* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.app; 18 19 import android.content.Context; 20 import android.content.Intent; 21 import android.os.Bundle; 22 import android.os.UserHandle; 23 24 public class PendingIntent { 25 public static final int FLAG_ONE_SHOT = 1<<30; 26 public static final int FLAG_IMMUTABLE = 1<<26; 27 public static final int FLAG_MUTABLE = 1<<25; 28 public static final int FLAG_NO_CREATE = 1<<29; 29 getActivity(Context context, int requestCode, Intent intent, int flags)30 public static PendingIntent getActivity(Context context, int requestCode, 31 Intent intent, int flags) { 32 throw new UnsupportedOperationException(); 33 } 34 getActivityAsUser(Context context, int requestCode, Intent intent, int flags, Bundle options, UserHandle user)35 public static PendingIntent getActivityAsUser(Context context, int requestCode, 36 Intent intent, int flags, Bundle options, UserHandle user) { 37 throw new UnsupportedOperationException(); 38 } 39 getActivities(Context context, int requestCode, Intent[] intents, int flags, Bundle options)40 public static PendingIntent getActivities(Context context, int requestCode, 41 Intent[] intents, int flags, Bundle options) { 42 throw new UnsupportedOperationException(); 43 } 44 getActivitiesAsUser(Context context, int requestCode, Intent[] intents, int flags, Bundle options, UserHandle user)45 public static PendingIntent getActivitiesAsUser(Context context, int requestCode, 46 Intent[] intents, int flags, Bundle options, UserHandle user) { 47 throw new UnsupportedOperationException(); 48 } 49 getBroadcast(Context context, int requestCode, Intent intent, int flags)50 public static PendingIntent getBroadcast(Context context, int requestCode, 51 Intent intent, int flags) { 52 throw new UnsupportedOperationException(); 53 } 54 getBroadcastAsUser(Context context, int requestCode, Intent intent, int flags, UserHandle userHandle)55 public static PendingIntent getBroadcastAsUser(Context context, int requestCode, 56 Intent intent, int flags, UserHandle userHandle) { 57 throw new UnsupportedOperationException(); 58 } 59 getService(Context context, int requestCode, Intent intent, int flags)60 public static PendingIntent getService(Context context, int requestCode, 61 Intent intent, int flags) { 62 throw new UnsupportedOperationException(); 63 } 64 getForegroundService(Context context, int requestCode, Intent intent, int flags)65 public static PendingIntent getForegroundService(Context context, int requestCode, 66 Intent intent, int flags) { 67 throw new UnsupportedOperationException(); 68 } 69 } 70