/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
PendingIntentTest.java | 12 import android.app.PendingIntent; 29 PendingIntent service = PendingIntent.getService(null, 0, expectedIntent, 0); 38 PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100); 39 ShadowPendingIntent shadow = shadowOf(pendingIntent); 50 PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100) [all...] |
AlarmManagerTest.java | 6 import android.app.PendingIntent; 43 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 53 PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 60 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 61 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 66 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, 0, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 67 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, 0, AlarmManager.INTERVAL_HOUR, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 76 PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0) [all...] |
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));
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSmsManager.java | 3 import android.app.PendingIntent; 28 PendingIntent sentIntent, PendingIntent deliveryIntent) { 56 private PendingIntent sentIntent; 57 private PendingIntent deliveryIntent; 61 PendingIntent sentIntent, PendingIntent deliveryIntent) { 81 public PendingIntent getSentIntent() { 85 public PendingIntent getDeliveryIntent() {
|
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...] |
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() {
|
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...] |
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() {
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
IntentSenderTest.java | 20 import android.app.PendingIntent; 33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, 47 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { 48 public void onSendFinished(PendingIntent pi, Intent intent, 54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); 62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0 [all...] |
/cts/tests/app/src/android/app/cts/ |
PendingIntentTest.java | 19 import android.app.PendingIntent; 20 import android.app.PendingIntent.CanceledException; 38 private PendingIntent mPendingIntent; 44 private PendingIntent.OnFinished mFinish; 53 mFinish = new PendingIntent.OnFinished() { 54 public void onSendFinished(PendingIntent pi, Intent intent, int resultCode, 140 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 141 PendingIntent.FLAG_CANCEL_CURRENT); 152 mPendingIntent = PendingIntent.getActivity(mContext, 1, mIntent, 153 PendingIntent.FLAG_NO_CREATE) [all...] |
PendingIntent_CanceledExceptionTest.java | 19 import android.app.PendingIntent; 20 import android.app.PendingIntent.CanceledException; 26 PendingIntent.CanceledException canceledException = new PendingIntent.CanceledException(); 34 canceledException = new PendingIntent.CanceledException(message); 42 canceledException = new PendingIntent.CanceledException(ex);
|
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
SmsManagerTest.java | 21 import android.app.PendingIntent; 43 ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents) { 48 protected void sendDataMessage(String destAddr,short port, byte[] data, PendingIntent sentIntent, PendingIntent deliveredIntent) { 53 protected void sendTextMessage(String destAddr, String text, PendingIntent sentIntent, PendingIntent deliveredIntent) {
|
/frameworks/support/compat/gingerbread/android/support/v4/app/ |
NotificationCompatBase.java | 20 import android.app.PendingIntent; 32 public abstract PendingIntent getActionIntent(); 38 Action build(int icon, CharSequence title, PendingIntent actionIntent, 50 abstract PendingIntent getReplyPendingIntent(); 51 abstract PendingIntent getReadPendingIntent(); 57 PendingIntent replyPendingIntent, PendingIntent readPendingIntent, 63 CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent, 64 PendingIntent fullScreenIntent) {
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
MyNotificationListenerService.java | 19 import android.app.PendingIntent; 20 import android.app.PendingIntent.CanceledException; 78 private PendingIntent mSentIntent = null; 81 private void send(String reason, PendingIntent pendingIntent) { 82 if (pendingIntent == null) { 91 throw new IllegalStateException("Already sent a PendingIntent (" + mSentIntent 93 + "' (" + pendingIntent + ")"); 95 Log.i(TAG, "Sending pending intent for " + reason + ":" + pendingIntent); 97 pendingIntent.send() [all...] |
/frameworks/base/core/java/android/app/ |
PendingIntent.java | 48 * <p>By giving a PendingIntent to another application, 51 * identity). As such, you should be careful about how you build the PendingIntent: 56 * <p>A PendingIntent itself is simply a reference to a token maintained by 59 * PendingIntent itself will remain usable from other processes that 61 * same kind of PendingIntent (same operation, same Intent action, data, 62 * categories, and components, and same flags), it will receive a PendingIntent 67 * are considered to be the same for purposes of retrieving a PendingIntent. 68 * A common mistake people make is to create multiple PendingIntent objects 70 * a different PendingIntent each time. This does <em>not</em> happen. The 75 * the same PendingIntent for both of them [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sms/ |
OmtpCvvmMessageSender.java | 19 import android.app.PendingIntent; 34 public void requestVvmActivation(@Nullable PendingIntent sentIntent) { 39 public void requestVvmDeactivation(@Nullable PendingIntent sentIntent) { 44 public void requestVvmStatus(@Nullable PendingIntent sentIntent) { 48 private void sendCvvmMessage(String request, PendingIntent sentIntent) {
|
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
AlarmUtil.java | 20 import android.app.PendingIntent; 49 PendingIntent pendingIntent = PendingIntent 50 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); 59 pendingIntent); 60 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent); 75 PendingIntent pendingIntent = PendingIntent [all...] |
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
AlarmUtil.java | 20 import android.app.PendingIntent; 49 PendingIntent pendingIntent = PendingIntent 50 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); 59 pendingIntent); 60 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent); 75 PendingIntent pendingIntent = PendingIntent [all...] |
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
AlarmUtil.java | 20 import android.app.PendingIntent; 49 PendingIntent pendingIntent = PendingIntent 50 .getService(mContext, alarm.id, intent, PendingIntent.FLAG_UPDATE_CURRENT); 59 pendingIntent); 60 mAlarmManager.setAlarmClock(alarmClockInfo, pendingIntent); 75 PendingIntent pendingIntent = PendingIntent [all...] |
/frameworks/support/core-utils/honeycomb/android/support/v4/app/ |
TaskStackBuilderHoneycomb.java | 19 import android.app.PendingIntent; 27 public static PendingIntent getActivitiesPendingIntent(Context context, int requestCode, 29 return PendingIntent.getActivities(context, requestCode, intents, flags);
|
/frameworks/support/core-utils/jellybean/android/support/v4/app/ |
TaskStackBuilderJellybean.java | 19 import android.app.PendingIntent; 26 public static PendingIntent getActivitiesPendingIntent(Context context, int requestCode, 28 return PendingIntent.getActivities(context, requestCode, intents, flags, options);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmNotifications.java | 18 import android.app.PendingIntent; 56 notification.setDeleteIntent(PendingIntent.getService(context, instance.hashCode(), 57 hideIntent, PendingIntent.FLAG_UPDATE_CURRENT)); 64 PendingIntent.getService(context, instance.hashCode(), 65 dismissIntent, PendingIntent.FLAG_UPDATE_CURRENT)); 69 notification.setContentIntent(PendingIntent.getActivity(context, instance.hashCode(), 70 viewAlarmIntent, PendingIntent.FLAG_UPDATE_CURRENT)); 98 PendingIntent.getService(context, instance.hashCode(), 99 dismissIntent, PendingIntent.FLAG_UPDATE_CURRENT)); 103 notification.setContentIntent(PendingIntent.getActivity(context, instance.hashCode() [all...] |
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationUtil.java | 19 import android.app.PendingIntent; 29 public static PendingIntent getExamplePendingIntent(Context context, int messageResId) { 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent, 34 PendingIntent.FLAG_UPDATE_CURRENT);
|
/developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationUtil.java | 19 import android.app.PendingIntent; 29 public static PendingIntent getExamplePendingIntent(Context context, int messageResId) { 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent, 34 PendingIntent.FLAG_UPDATE_CURRENT);
|
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
NotificationUtil.java | 19 import android.app.PendingIntent; 29 public static PendingIntent getExamplePendingIntent(Context context, int messageResId) { 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent, 34 PendingIntent.FLAG_UPDATE_CURRENT);
|