/frameworks/base/core/java/android/app/ |
AlarmManager.java | 61 * {@link #setWindow(int, long, long, PendingIntent)} and 62 * {@link #setExact(int, long, PendingIntent)}. Applications whose {@code targetSdkVersion} 177 * the necessary behavior; see {@link #setWindow(int, long, long, PendingIntent)} 178 * and {@link #setExact(int, long, PendingIntent)}. 191 * typically comes from {@link PendingIntent#getBroadcast 207 public void set(int type, long triggerAtMillis, PendingIntent operation) { 251 * typically comes from {@link PendingIntent#getBroadcast 268 long intervalMillis, PendingIntent operation) { 274 * is similar to {@link #set(int, long, PendingIntent)}, but allows the 287 * {@link #set(int, long, PendingIntent)} method. This will give the OS the mos [all...] |
PendingIntent.java | 46 * <p>By giving a PendingIntent to another application, 49 * identity). As such, you should be careful about how you build the PendingIntent: 54 * <p>A PendingIntent itself is simply a reference to a token maintained by 57 * PendingIntent itself will remain usable from other processes that 59 * same kind of PendingIntent (same operation, same Intent action, data, 60 * categories, and components, and same flags), it will receive a PendingIntent 65 * are considered to be the same for purposes of retrieving a PendingIntent. 66 * A common mistake people make is to create multiple PendingIntent objects 68 * a different PendingIntent each time. This does <em>not</em> happen. The 73 * the same PendingIntent for both of them [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowNotification.java | 4 import android.app.PendingIntent; 31 CharSequence contentText, PendingIntent contentIntent) { 43 private final PendingIntent contentIntent; 45 private LatestEventInfo(CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent) { 59 public PendingIntent getContentIntent() {
|
ShadowAlarmManager.java | 4 import android.app.PendingIntent; 24 public void set(int type, long triggerAtTime, PendingIntent operation) { 29 public void setRepeating (int type, long triggerAtTime, long interval, PendingIntent operation){ 33 private void internalSet(int type, long triggerAtTime, long interval, PendingIntent operation) { 80 public void cancel(PendingIntent pendingIntent) { 81 final Intent intentTypeToRemove = shadowOf(pendingIntent).getSavedIntent(); 91 * Container object to hold an PendingIntent, together with the alarm 98 public PendingIntent operation; 100 public ScheduledAlarm(int type, long triggerAtTime, PendingIntent operation) [all...] |
ShadowNfcAdapter.java | 4 import android.app.PendingIntent; 19 private PendingIntent intent; 42 public void enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) { 58 public PendingIntent getIntent() {
|
ShadowPendingIntent.java | 3 import android.app.PendingIntent; 4 import android.app.PendingIntent.CanceledException; 16 * Shadow of {@code PendingIntent} that creates and sends {@code Intent}s appropriately. 18 @Implements(PendingIntent.class) 28 public static PendingIntent getActivity(Context context, int requestCode, Intent intent, int flags) { 33 public static PendingIntent getBroadcast(Context context, int requestCode, Intent intent, int flags) { 38 public static PendingIntent getService(Context context, int requestCode, Intent intent, int flags) { 67 public static void writePendingIntentOrNullToParcel(PendingIntent sender, Parcel out) { 76 public static PendingIntent readPendingIntentOrNullFromParcel(Parcel in) { 126 if (obj instanceof PendingIntent) { [all...] |
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
FullScreenActivity.java | 21 import android.app.PendingIntent; 51 public static PendingIntent getPendingIntent(Context context, int id) { 56 PendingIntent pi = PendingIntent.getActivity( 57 context, 22, fullScreenIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
ToastService.java | 20 import android.app.PendingIntent; 63 public static PendingIntent getPendingIntent(Context context, String text) { 68 PendingIntent pi = PendingIntent.getService( 69 context, 58, toastIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
PhoneService.java | 21 import android.app.PendingIntent; 72 public static PendingIntent getPendingIntent(Context context, int id, String action) { 77 PendingIntent pi = PendingIntent.getService( 78 context, 58, phoneIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
UpdateService.java | 21 import android.app.PendingIntent; 64 public static PendingIntent getPendingIntent(Context context, int update, int id, long when) { 71 PendingIntent pi = PendingIntent.getService( 72 context, 58, updateIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmNotifications.java | 21 import android.app.PendingIntent; 43 int flags = instance == null ? PendingIntent.FLAG_NO_CREATE : 0; 44 PendingIntent operation = PendingIntent.getBroadcast(context, 0 /* requestCode */, 51 PendingIntent viewIntent = PendingIntent.getActivity(context, instance.hashCode(), 52 createViewAlarmIntent(context, instance), PendingIntent.FLAG_UPDATE_CURRENT); 83 notification.setDeleteIntent(PendingIntent.getBroadcast(context, instance.hashCode(), 84 hideIntent, PendingIntent.FLAG_UPDATE_CURRENT)); 91 PendingIntent.getBroadcast(context, instance.hashCode() [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
BootupActivity.java | 18 import android.app.PendingIntent; 45 PendingIntent alarmIntent = PendingIntent.getService(context, 0, recommendationIntent, 0);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
NotificationTest.java | 5 import android.app.PendingIntent; 18 PendingIntent pendingIntent = PendingIntent.getActivity(new Activity(), 0, new Intent(), 0); 20 notification.setLatestEventInfo(new Activity(), "title", "content", pendingIntent); 21 assertThat(pendingIntent, is(notification.contentIntent));
|
/frameworks/base/media/java/android/media/ |
IRemoteControlDisplay.aidl | 19 import android.app.PendingIntent; 35 * @param clientMediaIntent the PendingIntent associated with the client. 40 void setCurrentClientId(int clientGeneration, in PendingIntent clientMediaIntent,
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
ISipService.aidl | 19 import android.app.PendingIntent; 30 in PendingIntent incomingCallPendingIntent,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
DictionaryDecayBroadcastReciever.java | 20 import android.app.PendingIntent; 53 final PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0 /* requestCode */, 54 updateIntent, PendingIntent.FLAG_CANCEL_CURRENT); 56 alarmTime, DICTIONARY_DECAY_INTERVAL, pendingIntent);
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/development/samples/browseable/Timer/Wearable/src/com.example.android.wearable.timer/ |
TimerNotificationService.java | 23 import android.app.PendingIntent; 78 PendingIntent pendingIntent = PendingIntent.getService(this, 0, intent, 79 PendingIntent.FLAG_UPDATE_CURRENT); 80 alarm.cancel(pendingIntent); 100 PendingIntent pendingIntentRestart = PendingIntent 101 .getService(this, 0, restartIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
IntentActivityFlags.java | 6 import android.app.PendingIntent; 7 import android.app.PendingIntent.CanceledException; 76 PendingIntent pi = PendingIntent.getActivities(context, 0, 77 buildIntentsToViewsLists(), PendingIntent.FLAG_UPDATE_CURRENT); 82 Log.w("IntentActivityFlags", "Failed sending PendingIntent", e);
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsManagerTest.java | 20 import android.app.PendingIntent; 181 private PendingIntent mSentIntent; 182 private PendingIntent mDeliveredIntent; 295 ArrayList<PendingIntent> sentIntents = new ArrayList<PendingIntent>(); 296 ArrayList<PendingIntent> deliveryIntents = new ArrayList<PendingIntent>(); 298 sentIntents.add(PendingIntent.getBroadcast(getContext(), 0, mSendIntent, 0)); 299 deliveryIntents.add(PendingIntent.getBroadcast(getContext(), 0, mDeliveryIntent, 0)); 317 mSentIntent = PendingIntent.getBroadcast(getContext(), 0, mSendIntent [all...] |
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoReceiveSmsPermissionTest.java | 20 import android.app.PendingIntent; 87 PendingIntent sentIntent = PendingIntent.getBroadcast(getContext(), 0, 88 new Intent(MESSAGE_SENT_ACTION), PendingIntent.FLAG_ONE_SHOT); 89 PendingIntent deliveryIntent = PendingIntent.getBroadcast(getContext(), 0, 90 new Intent(MESSAGE_STATUS_RECEIVED_ACTION), PendingIntent.FLAG_ONE_SHOT); 100 protected void sendSms(String currentNumber, String text, PendingIntent sentIntent, 101 PendingIntent deliveryIntent) {
|
/frameworks/base/core/java/android/hardware/usb/ |
IUsbManager.aidl | 19 import android.app.PendingIntent; 64 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); 71 in PendingIntent pi);
|
/frameworks/base/media/java/android/media/session/ |
ISession.aidl | 18 import android.app.PendingIntent; 37 void setMediaButtonReceiver(in PendingIntent mbr); 38 void setLaunchPendingIntent(in PendingIntent pi);
|
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetProvider.java | 19 import android.app.PendingIntent; 83 PendingIntent launchBrowser = PendingIntent.getActivity(context, 0, 86 PendingIntent.FLAG_UPDATE_CURRENT); 98 PendingIntent.getBroadcast(context, 0, ic, 99 PendingIntent.FLAG_UPDATE_CURRENT));
|