Home
last modified time | relevance | path

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

123456

/packages/modules/Permission/SafetyCenter/PendingIntents/java/com/android/safetycenter/pendingintents/
DPendingIntentSender.java48 public static void send(PendingIntent pendingIntent) throws PendingIntent.CanceledException { in send() argument
49 send(pendingIntent, createActivityOptions(pendingIntent, /* launchTaskId= */ null)); in send()
54 public static void send(PendingIntent pendingIntent, @Nullable Integer launchTaskId) in send() argument
56 send(pendingIntent, createActivityOptions(pendingIntent, launchTaskId)); in send()
59 private static void send(PendingIntent pendingIntent, @Nullable ActivityOptions activityOptions) in send() argument
62 pendingIntent.send(); in send()
65 pendingIntent.send( in send()
79 public static boolean trySend(PendingIntent pendingIntent) { in trySend() argument
81 pendingIntent, createActivityOptions(pendingIntent, /* launchTaskId= */ null)); in trySend()
89 public static boolean trySend(PendingIntent pendingIntent, @Nullable Integer launchTaskId) { in trySend() argument
[all …]
/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetySourceDataFixesTest.kt64 val entryPendingIntent = lockScreenEntry.pendingIntent!! in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace()
65 val iconActionPendingIntent = lockScreenEntry.iconAction!!.pendingIntent in lockScreenSource_withoutReplaceLockScreenIconActionFlag_doesntReplace()
87 val entryPendingIntent = lockScreenEntry.pendingIntent!! in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces()
88 val iconActionPendingIntent = lockScreenEntry.iconAction!!.pendingIntent in lockScreenSource_withReplaceLockScreenIconActionFlag_replaces()
99 val originalPendingIntent = pendingIntent(Intent("blah.wrong.INTENT")) in defaultActionOverride_issue_overridesMatchingActions()
108 pendingIntent = originalPendingIntent in defaultActionOverride_issue_overridesMatchingActions()
122 .pendingIntent in defaultActionOverride_issue_overridesMatchingActions()
124 pendingIntent( in defaultActionOverride_issue_overridesMatchingActions()
137 val originalPendingIntent = pendingIntent(Intent("blah.wrong.INTENT")) in defaultActionOverride_notification_overridesMatchingActions()
146 pendingIntent = originalPendingIntent in defaultActionOverride_notification_overridesMatchingActions()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/notification/
DMigrationNotificationFactory.java170 PendingIntent pendingIntent = getHealthHomeSettingsPendingIntent(); in getMigrationInProgressNotification() local
177 .setContentIntent(pendingIntent) in getMigrationInProgressNotification()
188 PendingIntent pendingIntent = getSystemUpdatePendingIntent(); in getModuleUpdateNeededNotification() local
200 .setContentIntent(pendingIntent) in getModuleUpdateNeededNotification()
209 PendingIntent pendingIntent = getAppStorePendingIntent(); in getAppUpdateNeededNotification() local
221 .setContentIntent(pendingIntent) in getAppUpdateNeededNotification()
230 PendingIntent pendingIntent = getSystemStoragePendingIntent(); in getMoreSpaceNeededNotification() local
246 getAppIcon(), notificationTryAgainAction, pendingIntent) in getMoreSpaceNeededNotification()
251 getAppIcon(), notificationFreeUpSpaceAction, pendingIntent) in getMoreSpaceNeededNotification()
259 .setContentIntent(pendingIntent) in getMoreSpaceNeededNotification()
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilder.java460 public RowBuilder setPendingIntent(@NonNull PendingIntent pendingIntent) { in setPendingIntent() argument
461 return setPrimaryAction(new SliceAction(pendingIntent, "", false)); in setPendingIntent()
472 public RowBuilder setFollowupPendingIntent(@NonNull PendingIntent pendingIntent) { in setFollowupPendingIntent() argument
473 mFollowupAction = new SliceAction(pendingIntent, "", false); in setFollowupPendingIntent()
614 PendingIntent pendingIntent, boolean isChecked) { in addRadioButton() argument
615 return addButton(pendingIntent, isChecked, RADIO); in addRadioButton()
625 PendingIntent pendingIntent, boolean isChecked, CharSequence radioGroup) { in addRadioButton() argument
626 return addButton(pendingIntent, isChecked, RADIO).setRadioGroup(radioGroup); in addRadioButton()
635 PendingIntent pendingIntent, boolean isChecked) { in addCheckMark() argument
636 return addButton(pendingIntent, isChecked, CHECKMARK); in addCheckMark()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DAndroidLockScreenFix.java144 PendingIntent pendingIntent = in overrideTiramisuIssueAction() local
147 return SafetySourceDataOverrides.overrideActionPendingIntent(action, pendingIntent); in overrideTiramisuIssueAction()
151 Context context, PendingIntent pendingIntent, boolean isIconAction) { in overridePendingIntent() argument
152 String settingsPackageName = pendingIntent.getCreatorPackage(); in overridePendingIntent()
153 int userId = pendingIntent.getCreatorUserHandle().getIdentifier(); in overridePendingIntent()
158 return pendingIntent; in overridePendingIntent()
161 return pendingIntent; in overridePendingIntent()
171 return pendingIntent; in overridePendingIntent()
173 if (!suspectPendingIntent.equals(pendingIntent)) { in overridePendingIntent()
175 return pendingIntent; in overridePendingIntent()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
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()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetySourceStatus.java85 @Nullable PendingIntent pendingIntent, in SafetySourceStatus() argument
91 this.mPendingIntent = pendingIntent; in SafetySourceStatus()
223 PendingIntent pendingIntent = in.readTypedObject(PendingIntent.CREATOR);
224 return new IconAction(iconType, pendingIntent);
256 public IconAction(@IconType int iconType, @NonNull PendingIntent pendingIntent) { in IconAction() argument
258 this.mPendingIntent = requireNonNull(pendingIntent); in IconAction()
371 public Builder setPendingIntent(@Nullable PendingIntent pendingIntent) { in setPendingIntent() argument
373 pendingIntent == null || pendingIntent.isActivity(), in setPendingIntent()
375 this.mPendingIntent = pendingIntent; in setPendingIntent()
DSafetyCenterEntry.java170 @Nullable PendingIntent pendingIntent, in SafetyCenterEntry() argument
178 mPendingIntent = pendingIntent; in SafetyCenterEntry()
394 public Builder setPendingIntent(@Nullable PendingIntent pendingIntent) { in setPendingIntent() argument
395 mPendingIntent = pendingIntent; in setPendingIntent()
409 @IconAction.IconActionType int type, @NonNull PendingIntent pendingIntent) { in setIconAction() argument
410 mIconAction = new IconAction(type, pendingIntent); in setIconAction()
461 PendingIntent pendingIntent = in.readTypedObject(PendingIntent.CREATOR);
462 return new IconAction(type, pendingIntent);
475 public IconAction(@IconActionType int type, @NonNull PendingIntent pendingIntent) { in IconAction() argument
477 mPendingIntent = requireNonNull(pendingIntent); in IconAction()
DSafetyCenterStaticEntry.java72 @Nullable PendingIntent pendingIntent) { in SafetyCenterStaticEntry() argument
75 mPendingIntent = pendingIntent; in SafetyCenterStaticEntry()
182 public Builder setPendingIntent(@Nullable PendingIntent pendingIntent) { in setPendingIntent() argument
183 mPendingIntent = pendingIntent; in setPendingIntent()
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java273 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
278 if (pendingIntent != null) { in setBroadcastSubscriber()
279 service.setBroadcastSubscriber(configKey, subscriberId, pendingIntent, in setBroadcastSubscriber()
302 long configKey, long subscriberId, PendingIntent pendingIntent) { in setBroadcastSubscriber() argument
304 setBroadcastSubscriber(pendingIntent, configKey, subscriberId); in setBroadcastSubscriber()
327 public void setFetchReportsOperation(PendingIntent pendingIntent, long configKey) in setFetchReportsOperation() argument
332 if (pendingIntent == null) { in setFetchReportsOperation()
335 service.setDataFetchOperation(configKey, pendingIntent, in setFetchReportsOperation()
364 public @NonNull long[] setActiveConfigsChangedOperation(@Nullable PendingIntent pendingIntent) in setActiveConfigsChangedOperation() argument
369 if (pendingIntent == null) { in setActiveConfigsChangedOperation()
[all …]
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app2/src/com/android/cts/netpolicy/hostside/app2/
DMyBroadcastReceiver.java129 final PendingIntent pendingIntent = PendingIntent.getService(context, 0, serviceIntent, in sendNotification() local
142 .setContentIntent(pendingIntent); in sendNotification()
145 builder.setDeleteIntent(pendingIntent); in sendNotification()
148 builder.setFullScreenIntent(pendingIntent, true); in sendNotification()
151 bundle.putParcelable("Magnum P.I. (Pending Intent)", pendingIntent); in sendNotification()
156 R.drawable.ic_notification, "ACTION", pendingIntent) in sendNotification()
161 bundle.putParcelable("Magnum A.P.I. (Action Pending Intent)", pendingIntent); in sendNotification()
174 R.drawable.ic_notification, "ACTION WITH REMOTE INPUT", pendingIntent) in sendNotification()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepInteractionHandler.java52 public boolean onInteraction(View view, PendingIntent pendingIntent, in onInteraction() argument
57 return RemoteViews.startPendingIntent(hostView, pendingIntent, in onInteraction()
76 if (Utilities.ATLEAST_S && !pendingIntent.isActivity()) { in onInteraction()
82 pendingIntent.getCreatorPackage(), in onInteraction()
94 if (pendingIntent.isActivity()) { in onInteraction()
97 return RemoteViews.startPendingIntent(hostView, pendingIntent, options); in onInteraction()
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricUtils.java437 PendingIntent pendingIntent = (PendingIntent) fromIntent.getExtra( in copyMultiBiometricExtras() local
439 if (pendingIntent != null) { in copyMultiBiometricExtras()
441 pendingIntent); in copyMultiBiometricExtras()
444 pendingIntent = (PendingIntent) fromIntent.getExtra( in copyMultiBiometricExtras()
446 if (pendingIntent != null) { in copyMultiBiometricExtras()
448 pendingIntent); in copyMultiBiometricExtras()
461 PendingIntent pendingIntent = (PendingIntent) activity.getIntent() in tryStartingNextBiometricEnroll() local
463 if (pendingIntent == null) { in tryStartingNextBiometricEnroll()
464 pendingIntent = (PendingIntent) activity.getIntent() in tryStartingNextBiometricEnroll()
468 if (pendingIntent != null) { in tryStartingNextBiometricEnroll()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeAlarm.java137 mPendingIntent = alarmConfig.pendingIntent; in IkeAlarmWithPendingIntent()
187 public final PendingIntent pendingIntent; field in IkeAlarm.IkeAlarmConfig
193 PendingIntent pendingIntent, in IkeAlarmConfig() argument
199 this.pendingIntent = pendingIntent; in IkeAlarmConfig()
204 return new IkeAlarmConfig(context, tag, updatedDelayMs, pendingIntent, message); in buildCopyWithDelayMs()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPeriodicJobManager.java74 final PendingIntent pendingIntent = getPendingIntent(); in refreshJob() local
75 cancelJob(pendingIntent); in refreshJob()
80 AlarmManager.RTC_WAKEUP, triggerAtMillis, pendingIntent); in refreshJob()
90 private void cancelJob(PendingIntent pendingIntent) { in cancelJob() argument
92 mAlarmManager.cancel(pendingIntent); in cancelJob()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DWorkPolicyInfoTest.kt142 val pendingIntent = in safetyCenterEnabledChanged_safetyCenterEnabled() constant
150 .setPendingIntent(pendingIntent) in safetyCenterEnabledChanged_safetyCenterEnabled()
211 val pendingIntent = in rescanAndPushSafetyCenterData_eventRebooted_deviceOwner() constant
219 .setPendingIntent(pendingIntent) in rescanAndPushSafetyCenterData_eventRebooted_deviceOwner()
253 val pendingIntent = in rescanAndPushSafetyCenterData_eventRefresh_deviceOwner() constant
261 .setPendingIntent(pendingIntent) in rescanAndPushSafetyCenterData_eventRefresh_deviceOwner()
289 val pendingIntent = in rescanAndPushSafetyCenterData_eventUnknown_profileOwner() constant
300 .setPendingIntent(pendingIntent) in rescanAndPushSafetyCenterData_eventUnknown_profileOwner()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DSafetyEntryView.kt106 val pendingIntent = entry.pendingIntent in setupEntryClickListener() constant
107 if (pendingIntent != null) { in setupEntryClickListener()
110 PendingIntentSender.send(entry.pendingIntent, launchTaskId) in setupEntryClickListener()
165 PendingIntentSender.send(iconAction.pendingIntent, launchTaskId) in sendIconActionIntent()
176 isEnabled = entry.pendingIntent != null in enableOrDisableEntry()
/packages/modules/StatsD/aidl/android/os/
DIStatsManagerService.aidl37 void setDataFetchOperation(long configId, in PendingIntent pendingIntent, in setDataFetchOperation() argument
55 long[] setActiveConfigsChangedOperation(in PendingIntent pendingIntent, in String packageName); in setActiveConfigsChangedOperation() argument
79 void setBroadcastSubscriber(long configKey, long subscriberId, in PendingIntent pendingIntent, in setBroadcastSubscriber() argument
154 long[] setRestrictedMetricsChangedOperation(in PendingIntent pendingIntent, in long configKey, in setRestrictedMetricsChangedOperation() argument
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
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()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetySubpageEntryPreference.kt78 val pendingIntent = entry.pendingIntent in setupClickListener() constant
79 if (pendingIntent != null) { in setupClickListener()
82 PendingIntentSender.send(pendingIntent, launchTaskId) in setupClickListener()
125 PendingIntentSender.send(iconAction.pendingIntent, launchTaskId) in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DLockScreenSafetySource.java75 final PendingIntent pendingIntent = in setSafetySourceData() local
101 .setPendingIntent(lockScreenAllowedByAdmin ? pendingIntent : null) in setSafetySourceData()
108 safetySourceDataBuilder.addIssue(createNoScreenLockIssue(context, pendingIntent)); in setSafetySourceData()
148 Context context, PendingIntent pendingIntent) { in createNoScreenLockIssue() argument
153 pendingIntent) in createNoScreenLockIssue()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DBootNotificationCreator.java101 PendingIntent pendingIntent = in onPropertiesChanged() local
123 AlarmManager.RTC_WAKEUP, scheduledPostTimeLong, pendingIntent); in onPropertiesChanged()
165 PendingIntent pendingIntent = in onReceive() local
178 pendingIntent).build(); in onReceive()
192 PendingIntent pendingIntent = in tryAgainIn24Hours() local
206 AlarmManager.RTC_WAKEUP, scheduledPostTimeLong, pendingIntent); in tryAgainIn24Hours()
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/ui/notifications/
DConsentNotificationTrigger.java258 PendingIntent pendingIntent = in getGaV2ConsentNotification() local
289 .setContentIntent(pendingIntent); in getGaV2ConsentNotification()
303 PendingIntent pendingIntent = in getConsentNotification() local
329 .setContentIntent(pendingIntent) in getConsentNotification()
342 PendingIntent pendingIntent = in getU18ConsentNotification() local
357 .setContentIntent(pendingIntent) in getU18ConsentNotification()
370 PendingIntent pendingIntent = in getPasConsentNotification() local
401 .setContentIntent(pendingIntent); in getPasConsentNotification()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMediaSessionWrapperTest.java55 private PendingIntent pendingIntent; field in MediaSessionWrapperTest
59 pendingIntent = PendingIntent.getActivity(RuntimeEnvironment.application, TEST_REQUEST_CODE, in setUp()
62 new MediaSessionWrapper(RuntimeEnvironment.application, pendingIntent) { in setUp()
80 assertThat(mediaSession.mSessionActivity).isEqualTo(this.pendingIntent); in setSessionActivity()
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPanelViewController.java276 PendingIntent pendingIntent = ((QAWalletCardViewInfo) card).mWalletCard.getPendingIntent(); in onCardClicked() local
277 startPendingIntent(pendingIntent); in onCardClicked()
314 PendingIntent pendingIntent = PendingIntent.getActivity(mSysuiContext, 0, intent, in startIntent() local
316 startPendingIntent(pendingIntent); in startIntent()
319 private void startPendingIntent(PendingIntent pendingIntent) { in startPendingIntent() argument
320 mPluginCallbacks.startPendingIntentDismissingKeyguard(pendingIntent); in startPendingIntent()

123456