/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | PendingIntentPerfTest.java | 64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in create() 65 PendingIntent.FLAG_MUTABLE_UNAUDITED); in create() 82 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0, in createWithCancelFlag() 83 mIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithCancelFlag() 86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithCancelFlag() 87 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithCancelFlag() 104 final PendingIntent previousPendingIntent = PendingIntent.getActivity(mContext, 0, in createWithUpdateFlag() 105 mIntent, PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithUpdateFlag() 108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithUpdateFlag() 109 PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED); in createWithUpdateFlag() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | IntentSenderTest.java | 20 import android.app.PendingIntent; 34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in ignore_testRegisteredReceivePermissionGranted() 36 PendingIntent.FLAG_MUTABLE); in ignore_testRegisteredReceivePermissionGranted() 50 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in testRegisteredReceivePermissionDenied() 51 public void onSendFinished(PendingIntent pi, Intent intent, in testRegisteredReceivePermissionDenied() 57 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in testRegisteredReceivePermissionDenied() 58 PendingIntent.FLAG_MUTABLE); in testRegisteredReceivePermissionDenied() 66 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted() 68 .setPackage(getContext().getPackageName()), PendingIntent.FLAG_MUTABLE); in testLocalReceivePermissionGranted() 80 PendingIntent.OnFinished finish = new PendingIntent.OnFinished() { in ignore_testLocalReceivePermissionDenied() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustmentTest.java | 21 import android.app.PendingIntent; 42 PendingIntent pendingIntent = in needReinflate_differentLength() 43 PendingIntent.getActivity(mContext, 0, in needReinflate_differentLength() 45 PendingIntent.FLAG_MUTABLE); in needReinflate_differentLength() 56 PendingIntent pendingIntent = in needReinflate_differentLabels() 57 PendingIntent.getActivity(mContext, 0, in needReinflate_differentLabels() 59 PendingIntent.FLAG_MUTABLE); in needReinflate_differentLabels() 73 PendingIntent pendingIntent = in needReinflate_differentIcons() 74 PendingIntent.getActivity(mContext, 0, in needReinflate_differentIcons() 76 PendingIntent.FLAG_MUTABLE); in needReinflate_differentIcons() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ISmsImplBase.java | 19 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 …]
|
D | ISms.aidl | 19 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/errorprone/tests/res/android/app/ |
D | PendingIntent.java | 24 public class PendingIntent { class 30 public static PendingIntent getActivity(Context context, int requestCode, in getActivity() 35 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser() 40 public static PendingIntent getActivities(Context context, int requestCode, in getActivities() 45 public static PendingIntent getActivitiesAsUser(Context context, int requestCode, in getActivitiesAsUser() 50 public static PendingIntent getBroadcast(Context context, int requestCode, in getBroadcast() 55 public static PendingIntent getBroadcastAsUser(Context context, int requestCode, in getBroadcastAsUser() 60 public static PendingIntent getService(Context context, int requestCode, in getService() 65 public static PendingIntent getForegroundService(Context context, int requestCode, in getForegroundService()
|
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/ |
D | IEuiccController.aidl | 19 import android.app.PendingIntent; 33 String callingPackage, in PendingIntent callbackIntent); in getDownloadableSubscriptionMetadata() 35 String callingPackage, in PendingIntent callbackIntent); in getDefaultDownloadableSubscriptionList() 40 in PendingIntent callbackIntent); in downloadSubscription() 43 in PendingIntent callbackIntent); in deleteSubscription() 45 in PendingIntent callbackIntent); in switchToSubscription() 47 String callingPackage, in PendingIntent callbackIntent); in switchToSubscriptionWithPort() 49 String callingPackage, in PendingIntent callbackIntent); in updateSubscriptionNickname() 50 oneway void eraseSubscriptions(int cardId, in PendingIntent callbackIntent); in eraseSubscriptions() 52 int cardId, int options, in PendingIntent callbackIntent); in eraseSubscriptionsWithOptions() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuNotificationFactory.java | 20 import android.app.PendingIntent; 59 private PendingIntent buildUndoIntent() { in buildUndoIntent() 62 return PendingIntent.getBroadcast(mContext, /* requestCode= */ 0, intent, in buildUndoIntent() 63 PendingIntent.FLAG_IMMUTABLE); in buildUndoIntent() 67 private PendingIntent buildDeleteIntent() { in buildDeleteIntent() 70 return PendingIntent.getBroadcastAsUser(mContext, /* requestCode= */ 0, intent, in buildDeleteIntent() 71 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_ONE_SHOT in buildDeleteIntent() 72 | PendingIntent.FLAG_IMMUTABLE, UserHandle.CURRENT); in buildDeleteIntent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothDiscoverableTimeoutReceiver.java | 21 import android.app.PendingIntent; 40 PendingIntent pending = PendingIntent.getBroadcast( in setDiscoverableAlarm() 41 context, 0, intent, PendingIntent.FLAG_IMMUTABLE); in setDiscoverableAlarm() 50 pending = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_IMMUTABLE); in setDiscoverableAlarm() 60 PendingIntent pending = PendingIntent.getBroadcast( in cancelDiscoverableAlarm() 61 context, 0, intent, PendingIntent.FLAG_NO_CREATE | PendingIntent.FLAG_IMMUTABLE); in cancelDiscoverableAlarm()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | NotificationHelper.java | 7 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 | PendingIntent.FLAG_MUTABLE_UNAUDITED)); in NotificationHelper() 56 mIntents.put(R.drawable.ic_play_arrow, PendingIntent.getBroadcast(mService, 100, in NotificationHelper() 58 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED)); in NotificationHelper() 59 mIntents.put(R.drawable.ic_skip_previous, PendingIntent.getBroadcast(mService, 100, in NotificationHelper() 61 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED)); in NotificationHelper() 62 mIntents.put(R.drawable.ic_skip_next, PendingIntent.getBroadcast(mService, 100, in NotificationHelper() 64 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED)); in NotificationHelper() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | TimeToLiveHelperTest.java | 31 import android.app.PendingIntent; 99 ArgumentCaptor<PendingIntent> captor = ArgumentCaptor.forClass(PendingIntent.class); in testTimeoutExpires() 115 ArgumentCaptor<PendingIntent> captorSet = ArgumentCaptor.forClass(PendingIntent.class); in testTimeoutExpires_twoEntries() 118 ArgumentCaptor<PendingIntent> captorNewSet = ArgumentCaptor.forClass(PendingIntent.class); in testTimeoutExpires_twoEntries() 136 ArgumentCaptor<PendingIntent> captorSet = ArgumentCaptor.forClass(PendingIntent.class); in testTimeout_earlierEntryAddedSecond() 137 ArgumentCaptor<PendingIntent> captorCancel = ArgumentCaptor.forClass(PendingIntent.class); in testTimeout_earlierEntryAddedSecond() 162 verify(mAm, never()).cancel((PendingIntent) any()); in testTimeout_earlierEntryAddedFirst() 174 ArgumentCaptor<PendingIntent> captorSet = ArgumentCaptor.forClass(PendingIntent.class); in testTimeout_updateEarliestEntry() 175 ArgumentCaptor<PendingIntent> captorCancel = ArgumentCaptor.forClass(PendingIntent.class); in testTimeout_updateEarliestEntry() 203 ArgumentCaptor<PendingIntent> captorSet = ArgumentCaptor.forClass(PendingIntent.class); in testTimeout_twoEntries_updateEarliestEntry() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 23 import android.app.PendingIntent; 408 final PendingIntent initIntent = buildInitPendingIntent(vol); in onVolumeMounted() 409 final PendingIntent unmountIntent = buildUnmountPendingIntent(vol); in onVolumeMounted() 432 final PendingIntent browseIntent = buildBrowsePendingIntent(vol); in onVolumeMounted() 475 PendingIntent action; in onVolumeUnmountable() 537 final PendingIntent intent; in onMoveProgress() 586 final PendingIntent intent; in onMoveFinished() 645 private PendingIntent buildInitPendingIntent(DiskInfo disk) { in buildInitPendingIntent() 660 return PendingIntent.getActivityAsUser(mContext, requestKey, intent, in buildInitPendingIntent() 661 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE, in buildInitPendingIntent() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 6 import android.app.PendingIntent; 42 PendingIntent intent = PendingIntent.getBroadcast( in hasListener_isTrueForRegisteredUid() 46 /*flags=*/ PendingIntent.FLAG_MUTABLE); in hasListener_isTrueForRegisteredUid() 58 PendingIntent intent = PendingIntent.getBroadcast( in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 61 /*flags=*/PendingIntent.FLAG_MUTABLE); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified() 81 PendingIntent intent = PendingIntent.getBroadcast( in setSnapshotListener_doesNotRepeatedlyInvokeListener() 84 /*flags=*/PendingIntent.FLAG_MUTABLE); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/ |
D | SharedConnectivitySettingsState.java | 22 import android.app.PendingIntent; 42 private final PendingIntent mInstantTetherSettingsPendingIntent; 50 private PendingIntent mInstantTetherSettingsPendingIntent; 71 public Builder setInstantTetherSettingsPendingIntent(@NonNull PendingIntent pendingIntent) { in setInstantTetherSettingsPendingIntent() 100 private static void validate(PendingIntent pendingIntent) { in validate() 107 PendingIntent pendingIntent, @NonNull Bundle extras) { in SharedConnectivitySettingsState() 129 public PendingIntent getInstantTetherSettingsPendingIntent() { in getInstantTetherSettingsPendingIntent() 164 PendingIntent.writePendingIntentOrNullToParcel(mInstantTetherSettingsPendingIntent, dest); in writeToParcel() 176 PendingIntent pendingIntent = PendingIntent.readPendingIntentOrNullFromParcel(in); in readFromParcel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | GuestSessionNotification.java | 21 import android.app.PendingIntent; 83 PendingIntent guestExitPendingIntent = in createPersistentNotification() 84 PendingIntent.getBroadcastAsUser(mContext, 0, guestExitIntent, in createPersistentNotification() 85 PendingIntent.FLAG_IMMUTABLE, in createPersistentNotification() 88 PendingIntent userSettingsPendingIntent = in createPersistentNotification() 89 PendingIntent.getActivityAsUser(mContext, 0, userSettingsIntent, in createPersistentNotification() 90 PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE, in createPersistentNotification() 108 PendingIntent guestResetPendingIntent = in createPersistentNotification() 109 PendingIntent.getBroadcastAsUser(mContext, 0, guestResetIntent, in createPersistentNotification() 110 PendingIntent.FLAG_IMMUTABLE, in createPersistentNotification()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/ |
D | SliceUtil.kt | 20 import android.app.PendingIntent 96 fun SliceUri.createBroadcastPendingIntent(): PendingIntent? { in createBroadcastPendingIntent() 104 fun SliceUri.createBrowsePendingIntent(): PendingIntent? { in createBrowsePendingIntent() 112 fun Intent.createBrowsePendingIntent(): PendingIntent? { in createBrowsePendingIntent() 125 ): PendingIntent { in createBrowsePendingIntent() 136 return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE) in createBrowsePendingIntent() 143 ): PendingIntent { in createBroadcastPendingIntent() 146 return PendingIntent.getBroadcast( in createBroadcastPendingIntent() 148 PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE in createBroadcastPendingIntent()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | BtSmsInterfaceManager.java | 20 import android.app.PendingIntent; 47 public void sendText(Context context, String destAddr, String text, PendingIntent sentIntent, in sendText() 48 PendingIntent deliveryIntent, SubscriptionInfo info) { in sendText() 69 private void sendErrorInPendingIntent(PendingIntent intent, int errorCode) { in sendErrorInPendingIntent() 75 } catch (PendingIntent.CanceledException e) { in sendErrorInPendingIntent() 87 final PendingIntent mSentIntent; 88 final PendingIntent mDeliveryIntent; 91 final PendingIntent sentIntent, final PendingIntent deliveryIntent) { in MapMessageSender()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | ActivityStarter.java | 18 import android.app.PendingIntent; 36 void startPendingIntentDismissingKeyguard(PendingIntent intent); in startPendingIntentDismissingKeyguard() 42 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() 49 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() 56 void startPendingIntentDismissingKeyguard(PendingIntent intent, in startPendingIntentDismissingKeyguard() 66 PendingIntent intent, in startPendingIntentWithoutDismissing() 79 void startPendingIntentMaybeDismissingKeyguard(PendingIntent intent, in startPendingIntentMaybeDismissingKeyguard() 89 void startPendingIntentMaybeDismissingKeyguard(PendingIntent intent, in startPendingIntentMaybeDismissingKeyguard() 123 void postStartActivityDismissingKeyguard(PendingIntent intent); in postStartActivityDismissingKeyguard() 129 void postStartActivityDismissingKeyguard(PendingIntent intent, in postStartActivityDismissingKeyguard()
|
/frameworks/base/core/java/android/app/ |
D | PendingIntent.java | 132 public final class PendingIntent implements Parcelable { class 341 void onSendFinished(PendingIntent pendingIntent, Intent intent, in onSendFinished() 347 private final PendingIntent mPendingIntent; 355 FinishedDispatcher(PendingIntent pi, OnFinished who, Handler handler) { in FinishedDispatcher() 400 void onMarshaled(PendingIntent intent, Parcel parcel, int flags); in onMarshaled() 441 final boolean isFlagImmutableSet = (flags & PendingIntent.FLAG_IMMUTABLE) != 0; in checkPendingIntent() 442 final boolean isFlagMutableSet = (flags & PendingIntent.FLAG_MUTABLE) != 0; in checkPendingIntent() 486 boolean isFlagNoCreateSet = (flags & PendingIntent.FLAG_NO_CREATE) != 0; in isNewMutableDisallowedImplicitPendingIntent() 487 boolean isFlagMutableSet = (flags & PendingIntent.FLAG_MUTABLE) != 0; in isNewMutableDisallowedImplicitPendingIntent() 490 (flags & PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT) != 0; in isNewMutableDisallowedImplicitPendingIntent() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/base/actions/ |
D | FakeQSTileIntentUserInputHandler.kt | 19 import android.app.PendingIntent 44 pendingIntent: PendingIntent, in handle() 48 Input.PendingIntent(expandable, pendingIntent, requestLaunchingDefaultActivity) in handle() 54 data class PendingIntent( dataClass 56 val pendingIntent: android.app.PendingIntent, 65 get() = handledInputs.mapNotNull { it as? FakeQSTileIntentUserInputHandler.Input.PendingIntent } in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | BiometricNotificationUtils.java | 23 import android.app.PendingIntent; 89 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showReEnrollmentNotification() 90 0 /* requestCode */, intent, PendingIntent.FLAG_IMMUTABLE /* flags */, in showReEnrollmentNotification() 116 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showFaceEnrollNotification() 117 0 /* requestCode */, intent, PendingIntent.FLAG_IMMUTABLE /* flags */, in showFaceEnrollNotification() 143 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showFingerprintEnrollNotification() 144 0 /* requestCode */, intent, PendingIntent.FLAG_IMMUTABLE /* flags */, in showFingerprintEnrollNotification() 179 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showBadCalibrationNotification() 180 0 /* requestCode */, intent, PendingIntent.FLAG_IMMUTABLE /* flags */, in showBadCalibrationNotification() 216 final PendingIntent setupPendingIntent = PendingIntent.getBroadcastAsUser(context, 0, in showBiometricReEnrollNotification() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorage.java | 20 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/core/java/android/service/chooser/ |
D | ChooserAction.java | 20 import android.app.PendingIntent; 37 private final PendingIntent mAction; 42 PendingIntent action) { in ChooserAction() 68 public PendingIntent getAction() { in getAction() 97 PendingIntent.CREATOR.createFromParcel(source)); 112 private final PendingIntent mAction; 125 @NonNull PendingIntent action) { in Builder()
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
D | SmsManager.java | 19 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/listeners/ |
D | PendingIntentListenerRegistration.java | 21 import android.app.PendingIntent; 32 RemovableListenerRegistration<TKey, TListener> implements PendingIntent.CancelListener { 38 protected abstract PendingIntent getPendingIntentFromKey(TKey key); in getPendingIntentFromKey() 58 if (e instanceof PendingIntent.CanceledException) { in onOperationFailure() 67 public void onCanceled(PendingIntent intent) { in onCanceled()
|