Home
last modified time | relevance | path

Searched refs:pendingIntent (Results 1 – 25 of 180) sorted by relevance

12345678

/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DMediaButtonReceiverHolder.java113 PendingIntent pendingIntent, String sessionPackageName) { in create() argument
114 if (pendingIntent == null) { in create()
117 int componentType = getComponentType(pendingIntent); in create()
139 mPendingIntent = pendingIntent; in MediaButtonReceiverHolder()
147 mPendingIntent = pendingIntent; in MediaButtonReceiverHolder()
271 if (pendingIntent.isBroadcast()) { in getComponentType()
273 } else if (pendingIntent.isActivity()) { in getComponentType()
275 } else if (pendingIntent.isForegroundService() || pendingIntent.isService()) { in getComponentType()
318 resolveInfos = pendingIntent.queryIntentComponents( in getComponentName()
325 resolveInfos = pendingIntent.queryIntentComponents( in getComponentName()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationUiAdjustmentTest.java44 PendingIntent pendingIntent = in needReinflate_differentLength() local
59 PendingIntent pendingIntent = in needReinflate_differentLabels() local
77 PendingIntent pendingIntent = in needReinflate_differentIcons() local
119 PendingIntent pendingIntent = in needReinflate_differentChoices() local
129 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentChoices()
133 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentChoices()
147 PendingIntent pendingIntent = in needReinflate_differentRemoteInputLabel() local
157 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentRemoteInputLabel()
161 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentRemoteInputLabel()
175 PendingIntent pendingIntent = in needReinflate_negative() local
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DActionClickLogger.kt34 pendingIntent: PendingIntent
39 str3 = pendingIntent.intent.toString()
57 pendingIntent: PendingIntent
61 str2 = pendingIntent.intent.toString()
68 pendingIntent: PendingIntent
71 str1 = pendingIntent.intent.toString()
78 pendingIntent: PendingIntent
81 str1 = pendingIntent.intent.toString()
H A DNotificationRemoteInputManager.java129 mLogger.logInitialClick(entry, pendingIntent);
131 if (handleRemoteInput(view, pendingIntent)) {
139 logActionClick(view, entry, pendingIntent);
149 return mCallback.handleRemoteViewClick(view, pendingIntent,
227 if (mCallback.shouldHandleRemoteInput(view, pendingIntent)) {
253 return activateRemoteInput(view, inputs, input, pendingIntent,
512 riv.setPendingIntent(pendingIntent); in activateRemoteInput()
521 && showBouncerForRemoteInput(view, pendingIntent, finalRow)); in activateRemoteInput()
533 final int userId = pendingIntent.getCreatorUserHandle().getIdentifier(); in showBouncerForRemoteInput()
733 boolean shouldHandleRemoteInput(View view, PendingIntent pendingIntent); in shouldHandleRemoteInput() argument
[all …]
/aosp12/frameworks/base/apct-tests/perftests/core/src/android/app/
H A DPendingIntentPerfTest.java64 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in create() local
68 pendingIntent.cancel(); in create()
86 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithCancelFlag() local
90 pendingIntent.cancel(); in createWithCancelFlag()
108 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, mIntent, in createWithUpdateFlag() local
113 pendingIntent.cancel(); in createWithUpdateFlag()
126 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, in cancel() local
130 pendingIntent.cancel(); in cancel()
/aosp12/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
H A DPreferenceSliceBuilder.java430 public RowBuilder setPendingIntent(@NonNull PendingIntent pendingIntent) { in setPendingIntent() argument
431 return setPrimaryAction(new SliceAction(pendingIntent, "", false)); in setPendingIntent()
443 mFollowupAction = new SliceAction(pendingIntent, "", false); in setFollowupPendingIntent()
584 PendingIntent pendingIntent, boolean isChecked) { in addRadioButton() argument
585 return addButton(pendingIntent, isChecked, RADIO); in addRadioButton()
605 PendingIntent pendingIntent, boolean isChecked) { in addCheckMark() argument
606 return addButton(pendingIntent, isChecked, CHECKMARK); in addCheckMark()
615 PendingIntent pendingIntent, boolean isChecked) { in addSwitch() argument
616 return addButton(pendingIntent, isChecked, SWITCH); in addSwitch()
642 PendingIntent pendingIntent, int min, int max, int value) { in addSeekBar() argument
[all …]
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DMyNotificationListenerService.java87 private void send(String reason, PendingIntent pendingIntent) { in send() argument
88 if (pendingIntent == null) { in send()
99 + "' (" + pendingIntent + ")"); in send()
101 Log.i(TAG, "Sending pending intent for " + reason + ":" + pendingIntent); in send()
103 pendingIntent.send(); in send()
104 mSentIntent = pendingIntent; in send()
107 Log.w(TAG, "Pending intent " + pendingIntent + " canceled"); in send()
/aosp12/frameworks/base/services/core/java/com/android/server/location/geofence/
H A DGeofenceManager.java96 PendingIntent pendingIntent) { in GeofenceRegistration() argument
97 super(geofence, identity, pendingIntent); in GeofenceRegistration()
185 return pendingIntent -> sendIntent(pendingIntent, true); in onLocationChanged()
191 return pendingIntent -> sendIntent(pendingIntent, false); in onLocationChanged()
198 private void sendIntent(PendingIntent pendingIntent, boolean entering) { in sendIntent() argument
209 removeRegistration(new GeofenceKey(pendingIntent, getRequest()), this); in sendIntent()
300 attributionTag, AppOpsManager.toReceiverId(pendingIntent)); in addGeofence()
304 putRegistration(new GeofenceKey(pendingIntent, geofence), in addGeofence()
305 new GeofenceRegistration(geofence, identity, pendingIntent)); in addGeofence()
314 public void removeGeofence(PendingIntent pendingIntent) { in removeGeofence() argument
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DDetailDialogTest.kt44 private lateinit var pendingIntent: PendingIntent
54 val dialog = createDialog(pendingIntent)
60 verify(taskView).startActivity(eq(pendingIntent), any(), any(), any())
63 private fun createDialog(pendingIntent: PendingIntent): DetailDialog {
67 pendingIntent,
/aosp12/packages/modules/StatsD/framework/java/android/app/
H A DStatsManager.java248 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
253 if (pendingIntent != null) { in setBroadcastSubscriber()
277 long configKey, long subscriberId, PendingIntent pendingIntent) { in setBroadcastSubscriber() argument
279 setBroadcastSubscriber(pendingIntent, configKey, subscriberId); in setBroadcastSubscriber()
301 public void setFetchReportsOperation(PendingIntent pendingIntent, long configKey) in setFetchReportsOperation() argument
306 if (pendingIntent == null) { in setFetchReportsOperation()
309 service.setDataFetchOperation(configKey, pendingIntent, in setFetchReportsOperation()
342 if (pendingIntent == null) { in setActiveConfigsChangedOperation()
346 return service.setActiveConfigsChangedOperation(pendingIntent, in setActiveConfigsChangedOperation()
366 public boolean setDataFetchOperation(long configKey, PendingIntent pendingIntent) { in setDataFetchOperation() argument
[all …]
/aosp12/frameworks/base/core/java/android/view/translation/
H A DTranslationManager.java340 @NonNull PendingIntent pendingIntent) { in addOnDeviceTranslationCapabilityUpdateListener() argument
341 Objects.requireNonNull(pendingIntent, "pending intent should not be null"); in addOnDeviceTranslationCapabilityUpdateListener()
346 (formats) -> new ArrayList<>()).add(pendingIntent); in addOnDeviceTranslationCapabilityUpdateListener()
358 @NonNull PendingIntent pendingIntent) { in addTranslationCapabilityUpdateListener() argument
397 @NonNull PendingIntent pendingIntent) { in removeOnDeviceTranslationCapabilityUpdateListener() argument
398 Objects.requireNonNull(pendingIntent, "pending intent should not be null"); in removeOnDeviceTranslationCapabilityUpdateListener()
405 if (intents.contains(pendingIntent)) { in removeOnDeviceTranslationCapabilityUpdateListener()
406 intents.remove(pendingIntent); in removeOnDeviceTranslationCapabilityUpdateListener()
408 Log.w(TAG, "pending intent=" + pendingIntent + " does not exist in " in removeOnDeviceTranslationCapabilityUpdateListener()
426 @NonNull PendingIntent pendingIntent) { in removeTranslationCapabilityUpdateListener() argument
[all …]
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
H A DQuickstepInteractionHandler.java50 public boolean onInteraction(View view, PendingIntent pendingIntent, in onInteraction() argument
55 return RemoteViews.startPendingIntent(hostView, pendingIntent, in onInteraction()
61 if (Utilities.ATLEAST_S && !pendingIntent.isActivity()) { in onInteraction()
67 pendingIntent.getCreatorPackage(), in onInteraction()
80 if (pendingIntent.isActivity()) { in onInteraction()
83 return RemoteViews.startPendingIntent(hostView, pendingIntent, options); in onInteraction()
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DBiometricNotificationUtils.java61 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showReEnrollmentNotification() local
67 showNotificationHelper(context, name, title, content, pendingIntent, channelName, in showReEnrollmentNotification()
97 final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context, in showBadCalibrationNotification() local
103 showNotificationHelper(context, name, title, content, pendingIntent, channelName, in showBadCalibrationNotification()
108 String content, PendingIntent pendingIntent, String channelName, in showNotificationHelper() argument
123 .setContentIntent(pendingIntent) in showNotificationHelper()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DAppSmsManager.java175 info.pendingIntent.send(mContext, 0, fillIn); in handleSmsReceivedIntent()
202 request.pendingIntent.send(mContext, 0, fillIn); in removeExpiredTokenLocked()
272 public final PendingIntent pendingIntent; field in AppSmsManager.AppRequestInfo
279 AppRequestInfo(String packageName, PendingIntent pendingIntent, String token) { in AppRequestInfo() argument
280 this(packageName, pendingIntent, token, null, in AppRequestInfo()
284 AppRequestInfo(String packageName, PendingIntent pendingIntent, String token, in AppRequestInfo() argument
287 this.pendingIntent = pendingIntent; in AppRequestInfo()
/aosp12/frameworks/base/services/core/java/com/android/server/location/contexthub/
H A DContextHubClientBroker.java287 PendingIntentRequest(PendingIntent pendingIntent, long nanoAppId) { in PendingIntentRequest() argument
288 mPendingIntent = pendingIntent; in PendingIntentRequest()
325 if (pendingIntent == null) { in ContextHubClientBroker()
328 mPendingIntentRequest = new PendingIntentRequest(pendingIntent, nanoAppId); in ContextHubClientBroker()
356 short hostEndPointId, PendingIntent pendingIntent, long nanoAppId, in ContextHubClientBroker() argument
360 pendingIntent.getCreatorPackage()); in ContextHubClientBroker()
578 PendingIntent pendingIntent = null; in hasPendingIntent() local
581 pendingIntent = mPendingIntentRequest.getPendingIntent(); in hasPendingIntent()
584 return (pendingIntent != null) && pendingIntent.equals(intent) in hasPendingIntent()
836 private void doSendPendingIntent(PendingIntent pendingIntent, Intent intent) { in doSendPendingIntent() argument
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DSmartActionsReceiver.java49 PendingIntent pendingIntent = intent.getParcelableExtra(EXTRA_ACTION_INTENT); in onReceive() local
52 Log.d(TAG, "Executing smart action [" + actionType + "]:" + pendingIntent.getIntent()); in onReceive()
57 pendingIntent.send(context, 0, null, null, null, null, opts.toBundle()); in onReceive()
64 pendingIntent.getIntent()); in onReceive()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
H A DDailyLoggingAlarmScheduler.java69 PendingIntent pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm() local
70 alarmManagerWrapper.cancel(pendingIntent); in setAlarm()
72 pendingIntent = createAlarmReceiverPendingIntent(appContext); in setAlarm()
77 pendingIntent /* operation */); in setAlarm()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
H A DMyBroadcastReceiver.java207 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, serviceIntent, in sendNotification() local
220 .setContentIntent(pendingIntent); in sendNotification()
223 builder.setDeleteIntent(pendingIntent); in sendNotification()
226 builder.setFullScreenIntent(pendingIntent, true); in sendNotification()
229 bundle.putParcelable("Magnum P.I. (Pending Intent)", pendingIntent); in sendNotification()
234 R.drawable.ic_notification, "ACTION", pendingIntent) in sendNotification()
239 bundle.putParcelable("Magnum A.P.I. (Action Pending Intent)", pendingIntent); in sendNotification()
252 R.drawable.ic_notification, "ACTION WITH REMOTE INPUT", pendingIntent) in sendNotification()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarNotificationActivityStarterLogger.kt55 fun logStartNotificationIntent(key: String, pendingIntent: PendingIntent) {
58 str2 = pendingIntent.intent.toString()
104 fun logSendingFullScreenIntent(key: String, pendingIntent: PendingIntent) {
107 str2 = pendingIntent.intent.toString()
H A DStatusBarRemoteInputCallback.java249 public boolean shouldHandleRemoteInput(View view, PendingIntent pendingIntent) { in shouldHandleRemoteInput() argument
255 public boolean handleRemoteViewClick(View view, PendingIntent pendingIntent, in handleRemoteViewClick() argument
258 final boolean isActivity = pendingIntent.isActivity(); in handleRemoteViewClick()
260 mActionClickLogger.logWaitingToCloseKeyguard(pendingIntent); in handleRemoteViewClick()
262 pendingIntent.getIntent(), mLockscreenUserManager.getCurrentUserId()); in handleRemoteViewClick()
264 mActionClickLogger.logKeyguardGone(pendingIntent); in handleRemoteViewClick()
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/
H A DBiometricUtils.java235 final PendingIntent pendingIntent = (PendingIntent) fromIntent.getExtra( in copyMultiBiometricExtras() local
237 if (pendingIntent != null) { in copyMultiBiometricExtras()
238 toIntent.putExtra(MultiBiometricEnrollHelper.EXTRA_ENROLL_AFTER_FACE, pendingIntent); in copyMultiBiometricExtras()
253 final PendingIntent pendingIntent = (PendingIntent) activity.getIntent() in tryStartingNextBiometricEnroll() local
255 if (pendingIntent != null) { in tryStartingNextBiometricEnroll()
257 Log.d(TAG, "Starting pendingIntent: " + pendingIntent); in tryStartingNextBiometricEnroll()
258 IntentSender intentSender = pendingIntent.getIntentSender(); in tryStartingNextBiometricEnroll()
/aosp12/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
H A DHeadsUpNotificationFragment.java65 PendingIntent pendingIntent = in createNotification() local
71 .addAction(new Notification.Action.Builder(null, "Action1", pendingIntent).build()) in createNotification()
72 .addAction(new Notification.Action.Builder(null, "Action2", pendingIntent).build()) in createNotification()
73 .addAction(new Notification.Action.Builder(null, "Action3", pendingIntent).build()) in createNotification()
/aosp12/packages/modules/StatsD/aidl/android/os/
H A DIStatsManagerService.aidl36 void setDataFetchOperation(long configId, in PendingIntent pendingIntent, in setDataFetchOperation() argument
54 long[] setActiveConfigsChangedOperation(in PendingIntent pendingIntent, in String packageName); in setActiveConfigsChangedOperation() argument
78 void setBroadcastSubscriber(long configKey, long subscriberId, in PendingIntent pendingIntent, in setBroadcastSubscriber() argument
/aosp12/frameworks/base/core/java/android/service/quickaccesswallet/
H A DWalletCard.java75 PendingIntent pendingIntent = PendingIntent.readPendingIntentOrNullFromParcel(source); in readFromParcel() local
78 return new Builder(cardId, cardImage, contentDesc, pendingIntent) in readFromParcel()
200 @NonNull PendingIntent pendingIntent) { in Builder() argument
204 mPendingIntent = pendingIntent; in Builder()
/aosp12/packages/apps/TV/tests/robotests/src/com/android/tv/
H A DMediaSessionWrapperTest.java55 private PendingIntent pendingIntent; field in MediaSessionWrapperTest
59 pendingIntent = in setUp()
63 new MediaSessionWrapper(RuntimeEnvironment.application, pendingIntent) { in setUp()
81 assertThat(mediaSession.mSessionActivity).isEqualTo(this.pendingIntent); in setSessionActivity()

12345678