Home
last modified time | relevance | path

Searched refs:PendingIntent (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/app/activity/
DIntentSenderTest.java20 import android.app.PendingIntent;
33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted()
47 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in testRegisteredReceivePermissionDenied()
48 public void onSendFinished(PendingIntent pi, Intent intent, in testRegisteredReceivePermissionDenied()
54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testRegisteredReceivePermissionDenied()
62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted()
74 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in testLocalReceivePermissionDenied()
75 public void onSendFinished(PendingIntent pi, Intent intent, in testLocalReceivePermissionDenied()
81 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testLocalReceivePermissionDenied()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISms.aidl19 import android.app.PendingIntent;
98 in String scAddr, in int destPort, in byte[] data, in PendingIntent sentIntent, in sendDataForSubscriber()
99 in PendingIntent deliveryIntent); in sendDataForSubscriber()
126 in String scAddr, in int destPort, in byte[] data, in PendingIntent sentIntent, in sendDataForSubscriberWithSelfPermissions()
127 in PendingIntent deliveryIntent); in sendDataForSubscriberWithSelfPermissions()
158 in String scAddr, in String text, in PendingIntent sentIntent, in sendTextForSubscriber()
159 in PendingIntent deliveryIntent, in boolean persistMessageForNonDefaultSmsApp); in sendTextForSubscriber()
186 in String destAddr, in String scAddr, in String text, in PendingIntent sentIntent, in sendTextForSubscriberWithSelfPermissions()
187 in PendingIntent deliveryIntent, in boolean persistMessage); in sendTextForSubscriberWithSelfPermissions()
202 int subId, in byte[] pdu, String format, in PendingIntent receivedIntent); in injectSmsPduForSubscriber()
[all …]
/frameworks/support/compat/gingerbread/android/support/v4/app/
DNotificationCompatBase.java20 import android.app.PendingIntent;
36 public abstract PendingIntent getActionIntent(); in getActionIntent()
42 Action build(int icon, CharSequence title, PendingIntent actionIntent, in build()
54 abstract PendingIntent getReplyPendingIntent(); in getReplyPendingIntent()
55 abstract PendingIntent getReadPendingIntent(); in getReadPendingIntent()
61 PendingIntent replyPendingIntent, PendingIntent readPendingIntent, in build()
67 CharSequence contentTitle, CharSequence contentText, PendingIntent contentIntent, in add()
68 PendingIntent fullScreenIntent) { in add()
/frameworks/base/core/java/android/app/
DPendingIntent.java94 public final class PendingIntent implements Parcelable { class
198 void onSendFinished(PendingIntent pendingIntent, Intent intent, in onSendFinished()
204 private final PendingIntent mPendingIntent;
212 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher()
257 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); in onMarshaled()
300 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
333 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
347 return target != null ? new PendingIntent(target) : null; in getActivity()
358 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser()
372 return target != null ? new PendingIntent(target) : null; in getActivityAsUser()
[all …]
DAlarmManager.java335 public void set(int type, long triggerAtMillis, PendingIntent operation) { in set()
426 long intervalMillis, PendingIntent operation) { in setRepeating()
477 PendingIntent operation) { in setWindow()
531 public void setExact(int type, long triggerAtMillis, PendingIntent operation) { in setExact()
586 public void setAlarmClock(AlarmClockInfo info, PendingIntent operation) { in setAlarmClock()
594 PendingIntent operation, WorkSource workSource) { in set()
633 int flags, PendingIntent operation, final OnAlarmListener listener, String listenerTag, in setImpl()
767 long intervalMillis, PendingIntent operation) { in setInexactRepeating()
817 public void setAndAllowWhileIdle(int type, long triggerAtMillis, PendingIntent operation) { in setAndAllowWhileIdle()
871 public void setExactAndAllowWhileIdle(int type, long triggerAtMillis, PendingIntent operation) { in setExactAndAllowWhileIdle()
[all …]
DTaskStackBuilder.java248 public PendingIntent getPendingIntent(int requestCode, @PendingIntent.Flags int flags) { in getPendingIntent()
267 public PendingIntent getPendingIntent(int requestCode, @PendingIntent.Flags int flags, in getPendingIntent()
274 return PendingIntent.getActivities(mSourceContext, requestCode, getIntents(), in getPendingIntent()
281 public PendingIntent getPendingIntent(int requestCode, int flags, Bundle options, in getPendingIntent()
288 return PendingIntent.getActivitiesAsUser(mSourceContext, requestCode, getIntents(), flags, in getPendingIntent()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DUiccSmsController.java23 import android.app.PendingIntent;
97 String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataForSubscriber()
98 PendingIntent deliveryIntent) { in sendDataForSubscriber()
112 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataForSubscriberWithSelfPermissions()
113 PendingIntent deliveryIntent) { in sendDataForSubscriberWithSelfPermissions()
125 String text, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendText()
132 String scAddr, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextForSubscriber()
146 String destAddr, String scAddr, String text, PendingIntent sentIntent, in sendTextForSubscriberWithSelfPermissions()
147 PendingIntent deliveryIntent, boolean persistMessage) { in sendTextForSubscriberWithSelfPermissions()
159 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartText()
[all …]
DIccSmsInterfaceManager.java25 import android.app.PendingIntent;
321 int destPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendDataWithSelfPermissions()
334 byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendData()
369 int destPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendDataInternal()
388 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendText()
402 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextWithSelfPermissions()
437 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextInternal()
467 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu()
504 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartText()
505 List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp) { in sendMultipartText()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java21 import android.app.PendingIntent;
62 PendingIntent pendingDialogIntent = PendingIntent.getActivityAsUser(context, type, in buildNotification()
83 PendingIntent pendingIntentAccept = PendingIntent.getBroadcast(context, NOTIFICATION_ID, in buildNotification()
85 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
86 PendingIntent pendingIntentDecline = PendingIntent.getBroadcast(context, in buildNotification()
89 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DNotificationHelper.java7 import android.app.PendingIntent;
39 private final SparseArray<PendingIntent> mIntents = new SparseArray<PendingIntent>();
53 mIntents.put(R.drawable.ic_pause, PendingIntent.getBroadcast(mService, 100, new Intent( in NotificationHelper()
55 PendingIntent.FLAG_CANCEL_CURRENT)); in NotificationHelper()
56 mIntents.put(R.drawable.ic_play_arrow, PendingIntent.getBroadcast(mService, 100, in NotificationHelper()
58 PendingIntent.FLAG_CANCEL_CURRENT)); in NotificationHelper()
59 mIntents.put(R.drawable.ic_skip_previous, PendingIntent.getBroadcast(mService, 100, in NotificationHelper()
61 PendingIntent.FLAG_CANCEL_CURRENT)); in NotificationHelper()
62 mIntents.put(R.drawable.ic_skip_next, PendingIntent.getBroadcast(mService, 100, in NotificationHelper()
64 PendingIntent.FLAG_CANCEL_CURRENT)); in NotificationHelper()
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaNotificationManager.java20 import android.app.PendingIntent;
67 private PendingIntent mPauseIntent;
68 private PendingIntent mPlayIntent;
69 private PendingIntent mPreviousIntent;
70 private PendingIntent mNextIntent;
86 mPauseIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
87 new Intent(ACTION_PAUSE).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager()
88 mPlayIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
89 new Intent(ACTION_PLAY).setPackage(pkg), PendingIntent.FLAG_CANCEL_CURRENT); in MediaNotificationManager()
90 mPreviousIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java21 import android.app.PendingIntent;
40 PendingIntent pending = PendingIntent.getBroadcast( in setDiscoverableAlarm()
50 pending = PendingIntent.getBroadcast( in setDiscoverableAlarm()
61 PendingIntent pending = PendingIntent.getBroadcast( in cancelDiscoverableAlarm()
62 context, 0, intent, PendingIntent.FLAG_NO_CREATE); in cancelDiscoverableAlarm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java23 import android.app.PendingIntent;
354 final PendingIntent initIntent = buildInitPendingIntent(vol); in onVolumeMounted()
371 final PendingIntent browseIntent = buildBrowsePendingIntent(vol); in onVolumeMounted()
472 final PendingIntent intent; in onMoveProgress()
521 final PendingIntent intent; in onMoveFinished()
578 private PendingIntent buildInitPendingIntent(DiskInfo disk) { in buildInitPendingIntent()
585 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent()
586 PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT); in buildInitPendingIntent()
589 private PendingIntent buildInitPendingIntent(VolumeInfo vol) { in buildInitPendingIntent()
596 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsManager.java19 import android.app.PendingIntent;
78 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessage()
130 ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents) { in sendMultipartTextMessage()
163 byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendDataMessage()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceManager.java25 import android.app.PendingIntent;
42 public class GeofenceManager implements LocationListener, PendingIntent.OnFinished {
119 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent, in addFence()
143 public void removeFence(Geofence fence, PendingIntent intent) { in removeFence()
241 List<PendingIntent> enterIntents = new LinkedList<PendingIntent>(); in updateFences()
242 List<PendingIntent> exitIntents = new LinkedList<PendingIntent>(); in updateFences()
339 for (PendingIntent intent : exitIntents) { in updateFences()
342 for (PendingIntent intent : enterIntents) { in updateFences()
347 private void sendIntentEnter(PendingIntent pendingIntent) { in sendIntentEnter()
357 private void sendIntentExit(PendingIntent pendingIntent) { in sendIntentExit()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DSmsManager.java20 import android.app.PendingIntent;
300 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessage()
306 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextMessageInternal()
337 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessageWithoutPersisting()
353 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage) { in sendTextMessageWithSelfPermissions()
390 public void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu()
467 ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents) { in sendMultipartTextMessage()
474 ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents, in sendMultipartTextMessageInternal()
494 PendingIntent sentIntent = null; in sendMultipartTextMessageInternal()
495 PendingIntent deliveryIntent = null; in sendMultipartTextMessageInternal()
[all …]
/frameworks/base/docs/html/training/notify-user/
Dnavigation.jd15 <li><a href="#DirectEntry">Set up a regular activity PendingIntent</a></li>
16 <li><a href="#ExtendedNotification">Set up a special activity PendingIntent</a></li>
64 <h2 id="DirectEntry">Set Up a Regular Activity PendingIntent</h2>
66 To set up a {@link android.app.PendingIntent} that starts a direct entry
104 // Gets a PendingIntent containing the entire back stack
105 PendingIntent resultPendingIntent =
106 stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
115 <h2 id="ExtendedNotification">Set Up a Special Activity PendingIntent</h2>
123 and create the {@link android.app.PendingIntent} by calling
124 {@link android.app.PendingIntent#getActivity getActivity()}:
[all …]
/frameworks/support/recommendation/src/android/support/app/recommendation/
DContentRecommendation.java20 import android.app.PendingIntent;
1103 PendingIntent contentPending; in getNotificationObject()
1105 contentPending = PendingIntent.getActivity(context, mContentIntentData.mRequestCode, in getNotificationObject()
1106 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT, in getNotificationObject()
1109 contentPending = PendingIntent.getService(context, mContentIntentData.mRequestCode, in getNotificationObject()
1110 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
1112 contentPending = PendingIntent.getBroadcast(context, in getNotificationObject()
1114 mContentIntentData.mIntent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationObject()
1120 PendingIntent dismissPending; in getNotificationObject()
1122 dismissPending = PendingIntent.getActivity(context, mDismissIntentData.mRequestCode, in getNotificationObject()
[all …]
/frameworks/base/core/java/android/text/style/
DEasyEditSpan.java19 import android.app.PendingIntent;
56 private final PendingIntent mPendingIntent;
74 public EasyEditSpan(PendingIntent pendingIntent) { in EasyEditSpan()
136 public PendingIntent getPendingIntent() { in getPendingIntent()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSMSDispatcher.java20 import android.app.PendingIntent;
21 import android.app.PendingIntent.CanceledException;
95 PendingIntent intent = tracker.mDeliveryIntent; in handleCdmaStatusReport()
110 byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendData()
142 public void sendText(String destAddr, String scAddr, String text, PendingIntent sentIntent, in sendText()
143 PendingIntent deliveryIntent, Uri messageUri, String callingPkg, in sendText()
175 protected void injectSmsPdu(byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPdu()
190 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean lastPart, in getNewSubmitPduTracker()
/frameworks/support/core-utils/java/android/support/v4/app/
DTaskStackBuilder.java20 import android.app.PendingIntent;
77 PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
82 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
86 return PendingIntent.getActivity(context, requestCode, topIntent, flags); in getPendingIntent()
91 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
102 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent()
346 public PendingIntent getPendingIntent(int requestCode, int flags) { in getPendingIntent()
363 public PendingIntent getPendingIntent(int requestCode, int flags, Bundle options) { in getPendingIntent()
/frameworks/support/core-utils/honeycomb/android/support/v4/app/
DTaskStackBuilderHoneycomb.java19 import android.app.PendingIntent;
27 public static PendingIntent getActivitiesPendingIntent(Context context, int requestCode, in getActivitiesPendingIntent()
29 return PendingIntent.getActivities(context, requestCode, intents, flags); in getActivitiesPendingIntent()
/frameworks/base/core/java/android/net/
DIConnectivityMetricsLogger.aidl19 import android.app.PendingIntent;
41 boolean register(in PendingIntent newEventsIntent); in register()
42 void unregister(in PendingIntent newEventsIntent); in unregister()
/frameworks/support/core-utils/jellybean/android/support/v4/app/
DTaskStackBuilderJellybean.java19 import android.app.PendingIntent;
26 public static PendingIntent getActivitiesPendingIntent(Context context, int requestCode, in getActivitiesPendingIntent()
28 return PendingIntent.getActivities(context, requestCode, intents, flags, options); in getActivitiesPendingIntent()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java19 import android.app.PendingIntent;
20 import android.app.PendingIntent.CanceledException;
59 private ArrayMap<PendingIntent, SessionHolder> mSessions
60 = new ArrayMap<PendingIntent, SessionHolder>();
163 public MediaSession getSession(PendingIntent pi) { in getSession()
240 public void addRccListener(PendingIntent pi, MediaSession.Callback listener) { in addRccListener()
267 public void removeRccListener(PendingIntent pi) { in removeRccListener()
283 public void addMediaButtonListener(PendingIntent pi, ComponentName mbrComponent, in addMediaButtonListener()
311 public void removeMediaButtonListener(PendingIntent pi) { in removeMediaButtonListener()
363 private SessionHolder getHolder(PendingIntent pi, boolean createIfMissing) { in getHolder()
[all …]

12345678910>>...14