Home
last modified time | relevance | path

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

12345678910>>...16

/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()
65 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextForSubscriberWithOptions()
73 int subId, byte[] pdu, String format, PendingIntent receivedIntent) { in injectSmsPduForSubscriber()
80 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber()
81 List<PendingIntent> deliveryIntents, boolean persistMessageForNonDefaultSmsApp, in sendMultipartTextForSubscriber()
89 List<String> parts, List<PendingIntent> sentIntents, in sendMultipartTextForSubscriberWithOptions()
[all …]
DISms.aidl19 import android.app.PendingIntent;
91 in PendingIntent sentIntent, in PendingIntent deliveryIntent); in sendDataForSubscriber()
124 in String destAddr, in String scAddr, in String text, in PendingIntent sentIntent, in sendTextForSubscriber()
125 in PendingIntent deliveryIntent, in boolean persistMessageForNonDefaultSmsApp, in sendTextForSubscriber()
176 in PendingIntent sentIntent, in PendingIntent deliveryIntent, in sendTextForSubscriberWithOptions()
193 int subId, in byte[] pdu, String format, in PendingIntent receivedIntent); in injectSmsPduForSubscriber()
226 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartTextForSubscriber()
227 in List<PendingIntent> deliveryIntents, in boolean persistMessageForNonDefaultSmsApp, in sendMultipartTextForSubscriber()
276 in List<String> parts, in List<PendingIntent> sentIntents, in sendMultipartTextForSubscriberWithOptions()
277 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/screenrecord/
DRecordingControllerTest.java24 import android.app.PendingIntent;
88 public void testStartRecording() throws PendingIntent.CanceledException { in testStartRecording()
93 PendingIntent startIntent = Mockito.mock(PendingIntent.class); in testStartRecording()
102 public void testStopRecording() throws PendingIntent.CanceledException { in testStopRecording()
107 PendingIntent startIntent = Mockito.mock(PendingIntent.class); in testStopRecording()
108 PendingIntent stopIntent = Mockito.mock(PendingIntent.class); in testStopRecording()
139 PendingIntent startIntent = Mockito.mock(PendingIntent.class); in testUserChange()
140 PendingIntent stopIntent = Mockito.mock(PendingIntent.class); in testUserChange()
/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;
397 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataWithSelfPermissions()
398 PendingIntent deliveryIntent, boolean isForVvm) { in sendDataWithSelfPermissions()
415 byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendData()
425 String destAddr, String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendData()
426 PendingIntent deliveryIntent) { in sendData()
464 int destPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendDataInternal()
482 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendText()
495 String destAddr, String scAddr, String text, PendingIntent sentIntent, in sendTextWithSelfPermissions()
496 PendingIntent deliveryIntent, boolean persistMessage, boolean isForVvm) { in sendTextWithSelfPermissions()
[all …]
DSmsController.java26 import android.app.PendingIntent;
140 String scAddr, int destPort, byte[] data, PendingIntent sentIntent, in sendDataForSubscriber()
141 PendingIntent deliveryIntent) { in sendDataForSubscriber()
149 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendDataForSubscriber()
167 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean isForVvm) { in sendDataForSubscriberWithSelfPermissionsInternal()
186 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextForSubscriber()
217 String text, PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendBluetoothText()
223 String scAddr, String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendIccText()
240 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextForSubscriberWithSelfPermissionsInternal()
256 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextForSubscriberWithOptions()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java21 import android.app.PendingIntent;
42 PendingIntent pendingIntent = in needReinflate_differentLength()
43 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentLength()
54 PendingIntent pendingIntent = in needReinflate_differentLabels()
55 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentLabels()
69 PendingIntent pendingIntent = in needReinflate_differentIcons()
70 PendingIntent.getActivity(mContext, 0, new Intent(), 0); in needReinflate_differentIcons()
85 PendingIntent firstPendingIntent = in needReinflate_differentPendingIntent()
86 PendingIntent.getActivity(mContext, 0, new Intent(Intent.ACTION_VIEW), 0); in needReinflate_differentPendingIntent()
87 PendingIntent secondPendingIntent = in needReinflate_differentPendingIntent()
[all …]
/frameworks/base/core/java/android/app/
DPendingIntent.java104 public final class PendingIntent implements Parcelable { class
212 void onSendFinished(PendingIntent pendingIntent, Intent intent, in onSendFinished()
218 private final PendingIntent mPendingIntent;
226 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher()
271 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); in onMarshaled()
315 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
348 public static PendingIntent getActivity(Context context, int requestCode, in getActivity()
362 return target != null ? new PendingIntent(target) : null; in getActivity()
374 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser()
388 return target != null ? new PendingIntent(target) : null; in getActivityAsUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java23 import android.app.PendingIntent;
381 final PendingIntent initIntent = buildInitPendingIntent(vol); in onVolumeMounted()
382 final PendingIntent unmountIntent = buildUnmountPendingIntent(vol); in onVolumeMounted()
405 final PendingIntent browseIntent = buildBrowsePendingIntent(vol); in onVolumeMounted()
448 PendingIntent action; in onVolumeUnmountable()
510 final PendingIntent intent; in onMoveProgress()
559 final PendingIntent intent; in onMoveFinished()
618 private PendingIntent buildInitPendingIntent(DiskInfo disk) { in buildInitPendingIntent()
633 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent()
634 PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT); in buildInitPendingIntent()
[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/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/telephony/java/android/telephony/
DSmsManager.java28 import android.app.PendingIntent;
425 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessage()
443 @Nullable PendingIntent sentIntent, @Nullable PendingIntent deliveryIntent, in sendTextMessage()
556 PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextMessage()
563 String text, PendingIntent sentIntent, PendingIntent deliveryIntent, in sendTextMessageInternal()
654 PendingIntent sentIntent, PendingIntent deliveryIntent) { in sendTextMessageWithoutPersisting()
662 PendingIntent sentIntent, PendingIntent deliveryIntent, boolean persistMessage, in sendTextMessageInternal()
760 PendingIntent sentIntent, PendingIntent deliveryIntent, int priority, in sendTextMessageWithoutPersisting()
797 byte[] pdu, @SmsMessage.Format String format, PendingIntent receivedIntent) { in injectSmsPdu()
814 } catch (PendingIntent.CanceledException cx) { in injectSmsPdu()
[all …]
/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/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/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportUtils.java21 import android.app.PendingIntent;
78 PendingIntent pendingDialogIntent = PendingIntent.getActivityAsUser(context, type, in buildNotification()
99 PendingIntent pendingIntentAccept = PendingIntent.getBroadcast(context, NOTIFICATION_ID, in buildNotification()
101 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
102 PendingIntent pendingIntentDecline = PendingIntent.getBroadcast(context, in buildNotification()
105 PendingIntent.FLAG_CANCEL_CURRENT); in buildNotification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordDialog.java25 import android.app.PendingIntent;
116 PendingIntent startIntent = PendingIntent.getForegroundService(userContext, in requestScreenCapture()
121 PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE); in requestScreenCapture()
122 PendingIntent stopIntent = PendingIntent.getService(userContext, in requestScreenCapture()
125 PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE); in requestScreenCapture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTask.java21 import android.app.PendingIntent;
277 PendingIntent chooserAction = PendingIntent.getBroadcast(context, requestCode, in createShareAction()
279 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_ONE_SHOT); in createShareAction()
286 PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, 0, in createShareAction()
287 sharingChooserIntent, PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT); in createShareAction()
290 PendingIntent shareAction = PendingIntent.getBroadcastAsUser(context, requestCode, in createShareAction()
299 PendingIntent.FLAG_CANCEL_CURRENT, UserHandle.SYSTEM); in createShareAction()
327 PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, 0, in createEditAction()
335 PendingIntent editAction = PendingIntent.getBroadcastAsUser(context, requestCode, in createEditAction()
345 PendingIntent.FLAG_CANCEL_CURRENT, UserHandle.SYSTEM); in createEditAction()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPendingIntentControllerTest.java32 import android.app.PendingIntent;
102 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnCancel()
111 createPendingIntentRecord(PendingIntent.FLAG_CANCEL_CURRENT); in alarmsRemovedOnRecreateWithCancelCurrent()
112 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnRecreateWithCancelCurrent()
120 final PendingIntentRecord pir = createPendingIntentRecord(PendingIntent.FLAG_ONE_SHOT); in alarmsRemovedOnSendingOneShot()
122 final ArgumentCaptor<PendingIntent> piCaptor = ArgumentCaptor.forClass(PendingIntent.class); in alarmsRemovedOnSendingOneShot()
/frameworks/base/core/java/android/service/quickaccesswallet/
DWalletCard.java21 import android.app.PendingIntent;
38 private final PendingIntent mPendingIntent;
61 PendingIntent.writePendingIntentOrNullToParcel(mPendingIntent, dest); in writeToParcel()
75 PendingIntent pendingIntent = PendingIntent.readPendingIntentOrNullFromParcel(source); in readFromParcel()
129 public PendingIntent getPendingIntent() { in getPendingIntent()
169 private PendingIntent mPendingIntent;
200 @NonNull PendingIntent pendingIntent) { in Builder()
/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/services/core/java/com/android/server/location/
DGeofenceManager.java20 import android.app.PendingIntent;
45 public class GeofenceManager implements LocationListener, PendingIntent.OnFinished {
123 public void addFence(LocationRequest request, Geofence geofence, PendingIntent intent, in addFence()
143 public void removeFence(Geofence fence, PendingIntent intent) { in removeFence()
229 List<PendingIntent> enterIntents = new LinkedList<>(); in updateFences()
230 List<PendingIntent> exitIntents = new LinkedList<>(); in updateFences()
323 for (PendingIntent intent : exitIntents) { in updateFences()
326 for (PendingIntent intent : enterIntents) { in updateFences()
331 private void sendIntentEnter(PendingIntent pendingIntent) { in sendIntentEnter()
341 private void sendIntentExit(PendingIntent pendingIntent) { in sendIntentExit()
[all …]

12345678910>>...16