Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/app/activity/
DIntentSenderTest.java20 import android.app.PendingIntent;
34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted()
48 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in testRegisteredReceivePermissionDenied()
49 public void onSendFinished(PendingIntent pi, Intent intent, in testRegisteredReceivePermissionDenied()
55 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testRegisteredReceivePermissionDenied()
63 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted()
75 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in testLocalReceivePermissionDenied()
76 public void onSendFinished(PendingIntent pi, Intent intent, in testLocalReceivePermissionDenied()
82 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); in testLocalReceivePermissionDenied()
/frameworks/base/apct-tests/perftests/core/src/android/app/
DPendingIntentPerfTest.java64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in create()
82 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0, in createWithCancelFlag()
86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithCancelFlag()
87 PendingIntent.FLAG_CANCEL_CURRENT); in createWithCancelFlag()
104 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0, in createWithUpdateFlag()
108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithUpdateFlag()
109 PendingIntent.FLAG_UPDATE_CURRENT); in createWithUpdateFlag()
126 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, in cancel()
/frameworks/base/telephony/java/com/android/internal/telephony/
DISmsImplBase.java19 import android.app.PendingIntent;
49 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataForSubscriber()
50 PendingIntent deliveryIntent) { in sendDataForSubscriber()
56 String destAddr, String scAddr, String text, PendingIntent sentIntent, in sendTextForSubscriber()
57 PendingIntent deliveryIntent, boolean persistMessageForNonDefaultSmsApp) { in sendTextForSubscriber()
64 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextForSubscriberWithOptions()
72 int subId, byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPduForSubscriber()
79 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber()
80 List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp) { in sendMultipartTextForSubscriber()
87 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextForSubscriberWithOptions()
[all …]
DISms.aidl19 import android.app.PendingIntent;
91 in PendingIntent sentIntent, in PendingIntent deliveryIntent); in sendDataForSubscriber()
122 in String destAddr, in String scAddr, in String text, in PendingIntent sentIntent, in sendTextForSubscriber()
123 in PendingIntent deliveryIntent, in boolean persistMessageForNonDefaultSmsApp); in sendTextForSubscriber()
173 in PendingIntent sentIntent, in PendingIntent deliveryIntent, in sendTextForSubscriberWithOptions()
190 int subId, in byte[] pdu, String format, in PendingIntent receivedIntent); in injectSmsPduForSubscriber()
221 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber()
222 in List<PendingIntent> deliveryIntents, in boolean persistMessageForNonDefaultSmsApp); in sendMultipartTextForSubscriber()
270 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartTextForSubscriberWithOptions()
271 in List<PendingIntent> deliveryIntents, in boolean persistMessageForNonDefaultSmsApp, in sendMultipartTextForSubscriberWithOptions()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/
DIEuiccController.aidl19 import android.app.PendingIntent;
32 String callingPackage, in PendingIntent callbackIntent); in getDownloadableSubscriptionMetadata()
34 String callingPackage, in PendingIntent callbackIntent); in getDefaultDownloadableSubscriptionList()
39 in PendingIntent callbackIntent); in downloadSubscription()
42 in PendingIntent callbackIntent); in deleteSubscription()
44 in PendingIntent callbackIntent); in switchToSubscription()
46 String callingPackage, in PendingIntent callbackIntent); in updateSubscriptionNickname()
47 oneway void eraseSubscriptions(int cardId, in PendingIntent callbackIntent); in eraseSubscriptions()
49 int cardId, int options, in PendingIntent callbackIntent); in eraseSubscriptionsWithOptions()
50 oneway void retainSubscriptionsForFactoryReset(int cardId, in PendingIntent callbackIntent); in retainSubscriptionsForFactoryReset()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java21 import android.app.PendingIntent;
41 PendingIntent pendingIntent = in needReinflate_differentLength()
42 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentLength()
53 PendingIntent pendingIntent = in needReinflate_differentLabels()
54 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentLabels()
68 PendingIntent pendingIntent = in needReinflate_differentIcons()
69 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentIcons()
84 PendingIntent firstPendingIntent = in needReinflate_differentPendingIntent()
85 PendingIntent.getActivity(mContext, 0, new Intent(Intent.ACTION_VIEW), 0); in needReinflate_differentPendingIntent()
86 PendingIntent secondPendingIntent = in needReinflate_differentPendingIntent()
[all …]
/frameworks/base/core/java/android/app/
DPendingIntent.java98 public final class PendingIntent implements Parcelable { class
206 void onSendFinished(PendingIntent pendingIntent, Intent intent, in onSendFinished()
212 private final PendingIntent mPendingIntent;
220 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher()
265 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); in onMarshaled()
309 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
342 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
356 return target != null ? new PendingIntent(target) : null; in getActivity()
368 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser()
382 return target != null ? new PendingIntent(target) : null; in getActivityAsUser()
[all …]
DAlarmManager.java355 public void set(@AlarmType int type, long triggerAtMillis, PendingIntent operation) { in set()
444 long intervalMillis, PendingIntent operation) { in setRepeating()
494 PendingIntent operation) { in setWindow()
547 public void setExact(@AlarmType int type, long triggerAtMillis, PendingIntent operation) { in setExact()
614 public void setAlarmClock(AlarmClockInfo info, PendingIntent operation) { in setAlarmClock()
623 long intervalMillis, PendingIntent operation, WorkSource workSource) { in set()
666 long intervalMillis, int flags, PendingIntent operation, final OnAlarmListener listener, in setImpl()
800 long intervalMillis, PendingIntent operation) { in setInexactRepeating()
850 PendingIntent operation) { in setAndAllowWhileIdle()
904 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/
DBtSmsInterfaceManager.java20 import android.app.PendingIntent;
41 public void sendText(Context context, String destAddr, String text, PendingIntent sentIntent, in sendText()
42 PendingIntent deliveryIntent, SubscriptionInfo info) { in sendText()
66 private void sendErrorInPendingIntent(PendingIntent intent, int errorCode) { in sendErrorInPendingIntent()
72 } catch (PendingIntent.CanceledException e) { in sendErrorInPendingIntent()
84 final PendingIntent mSentIntent;
85 final PendingIntent mDeliveryIntent;
88 final PendingIntent sentIntent, final PendingIntent deliveryIntent) { in MapMessageSender()
DIccSmsInterfaceManager.java25 import android.app.PendingIntent;
400 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataWithSelfPermissions()
401 PendingIntent deliveryIntent, boolean isForVvm) { in sendDataWithSelfPermissions()
418 byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendData()
428 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendData()
429 PendingIntent deliveryIntent) { in sendData()
467 int destPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendDataInternal()
485 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendText()
497 String destAddr, String scAddr, String text, PendingIntent sentIntent, in sendTextWithSelfPermissions()
498 PendingIntent deliveryIntent, boolean persistMessage, boolean isForVvm) { in sendTextWithSelfPermissions()
[all …]
DSmsController.java26 import android.app.PendingIntent;
136 String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataForSubscriber()
137 PendingIntent deliveryIntent) { in sendDataForSubscriber()
145 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendDataForSubscriber()
163 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean isForVvm) { in sendDataForSubscriberWithSelfPermissionsInternal()
182 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextForSubscriber()
214 String text, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendBluetoothText()
220 String scAddr, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendIccText()
235 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextForSubscriberWithSelfPermissionsInternal()
251 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextForSubscriberWithOptions()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsManager.java28 import android.app.PendingIntent;
390 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessage()
502 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextMessage()
509 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextMessageInternal()
600 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessageWithoutPersisting()
607 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextMessageInternal()
707 PendingIntent sentIntent, PendingIntent deliveryIntent, int priority, in sendTextMessageWithoutPersisting()
744 byte[] pdu, @SmsMessage.Format String format, PendingIntent receivedIntent) { in injectSmsPdu()
761 } catch (PendingIntent.CanceledException cx) { in injectSmsPdu()
885 ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent> deliveryIntents) { in sendMultipartTextMessage()
[all …]
/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/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java21 import android.app.PendingIntent;
63 PendingIntent pendingDialogIntent = PendingIntent.getActivityAsUser(context, type, in buildNotification()
84 PendingIntent pendingIntentAccept = PendingIntent.getBroadcast(context, NOTIFICATION_ID, in buildNotification()
86 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
87 PendingIntent pendingIntentDecline = PendingIntent.getBroadcast(context, in buildNotification()
90 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java23 import android.app.PendingIntent;
366 final PendingIntent initIntent = buildInitPendingIntent(vol); in onVolumeMounted()
382 final PendingIntent browseIntent = buildBrowsePendingIntent(vol); in onVolumeMounted()
481 final PendingIntent intent; in onMoveProgress()
530 final PendingIntent intent; in onMoveFinished()
589 private PendingIntent buildInitPendingIntent(DiskInfo disk) { in buildInitPendingIntent()
601 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent()
602 PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT); in buildInitPendingIntent()
605 private PendingIntent buildInitPendingIntent(VolumeInfo vol) { in buildInitPendingIntent()
617 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent()
[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/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/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorage.java20 import android.app.PendingIntent;
38 private SparseArray<PendingIntent> mAgentIntents = new SparseArray<>();
50 int recoveryAgentUid, @Nullable PendingIntent intent) { in setSnapshotListener()
75 PendingIntent intent = mAgentIntents.get(recoveryAgentUid); in recoverySnapshotAvailable()
90 private synchronized void tryToSendIntent(int recoveryAgentUid, PendingIntent intent) { in tryToSendIntent()
95 } catch (PendingIntent.CanceledException e) { in tryToSendIntent()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceManager.java25 import android.app.PendingIntent;
47 public class GeofenceManager implements LocationListener, PendingIntent.OnFinished {
153 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent, in addFence()
177 public void removeFence(Geofence fence, PendingIntent intent) { in removeFence()
275 List<PendingIntent> enterIntents = new LinkedList<PendingIntent>(); in updateFences()
276 List<PendingIntent> exitIntents = new LinkedList<PendingIntent>(); in updateFences()
373 for (PendingIntent intent : exitIntents) { in updateFences()
376 for (PendingIntent intent : enterIntents) { in updateFences()
381 private void sendIntentEnter(PendingIntent pendingIntent) { in sendIntentEnter()
391 private void sendIntentExit(PendingIntent pendingIntent) { in sendIntentExit()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java31 import android.app.PendingIntent;
98 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnCancel()
107 createPendingIntentRecord(PendingIntent.FLAG_CANCEL_CURRENT); in alarmsRemovedOnRecreateWithCancelCurrent()
108 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnRecreateWithCancelCurrent()
116 final PendingIntentRecord pir = createPendingIntentRecord(PendingIntent.FLAG_ONE_SHOT); in alarmsRemovedOnSendingOneShot()
118 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnSendingOneShot()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java6 import android.app.PendingIntent;
42 PendingIntent intent = PendingIntent.getBroadcast( in hasListener_isTrueForRegisteredUid()
56 PendingIntent intent = PendingIntent.getBroadcast( in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
77 PendingIntent intent = PendingIntent.getBroadcast( in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DActivityStarter.java18 import android.app.PendingIntent;
33 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard()
39 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard()
46 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard()
57 void postStartActivityDismissingKeyguard(PendingIntent intent); in postStartActivityDismissingKeyguard()
/frameworks/base/telephony/java/android/telephony/euicc/
DEuiccManager.java26 import android.app.PendingIntent;
917 boolean switchAfterDownload, PendingIntent callbackIntent) { in downloadSubscription()
950 PendingIntent callbackIntent) throws IntentSender.SendIntentException { in startResolutionActivity()
951 PendingIntent resolutionIntent = in startResolutionActivity()
981 PendingIntent callbackIntent = in continueOperation()
1016 DownloadableSubscription subscription, PendingIntent callbackIntent) { in getDownloadableSubscriptionMetadata()
1046 public void getDefaultDownloadableSubscriptionList(PendingIntent callbackIntent) { in getDefaultDownloadableSubscriptionList()
1090 public void deleteSubscription(int subscriptionId, PendingIntent callbackIntent) { in deleteSubscription()
1130 public void switchToSubscription(int subscriptionId, PendingIntent callbackIntent) { in switchToSubscription()
1156 int subscriptionId, @Nullable String nickname, @NonNull PendingIntent callbackIntent) { in updateSubscriptionNickname()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccOperation.java20 import android.app.PendingIntent;
265 PendingIntent callbackIntent) { in continueOperation()
322 PendingIntent callbackIntent) { in resolvedGetMetadataDeactivateSim()
339 PendingIntent callbackIntent) { in resolvedDownloadDeactivateSim()
358 PendingIntent callbackIntent) { in resolvedDownloadNoPrivileges()
386 boolean consent, PendingIntent callbackIntent) { in resolvedDownloadNoPrivilegesOrDeactivateSimCheckMetadata()
419 PendingIntent callbackIntent) { in resolvedDownloadConfirmationCode()
436 PendingIntent callbackIntent) { in resolvedDownloadResolvableErrors()
470 PendingIntent callbackIntent) { in resolvedGetDefaultListDeactivateSim()
486 PendingIntent callbackIntent) { in resolvedSwitchDeactivateSim()
[all …]

12345678910>>...14