Home
last modified time | relevance | path

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

12345678

/frameworks/base/services/core/java/com/android/server/media/
DMediaButtonReceiverHolder.java119 int userId, @Nullable PendingIntent pendingIntent, String sessionPackageName) { in create() argument
120 if (pendingIntent == null) { in create()
123 int componentType = getComponentType(pendingIntent); in create()
124 ComponentName componentName = getComponentName(pendingIntent, componentType); in create()
126 return new MediaButtonReceiverHolder(userId, pendingIntent, componentName, in create()
133 Log.w(TAG, "Unresolvable implicit intent is set, pi=" + pendingIntent); in create()
134 return new MediaButtonReceiverHolder(userId, pendingIntent, sessionPackageName); in create()
142 private MediaButtonReceiverHolder(int userId, PendingIntent pendingIntent, in MediaButtonReceiverHolder() argument
145 mPendingIntent = pendingIntent; in MediaButtonReceiverHolder()
151 private MediaButtonReceiverHolder(int userId, PendingIntent pendingIntent, String packageName) { in MediaButtonReceiverHolder() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java42 PendingIntent pendingIntent = in needReinflate_differentLength() local
47 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLength()
56 PendingIntent pendingIntent = in needReinflate_differentLabels() local
61 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
63 createActionBuilder("second", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
73 PendingIntent pendingIntent = in needReinflate_differentIcons() local
78 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentIcons()
81 pendingIntent).build(); in needReinflate_differentIcons()
115 PendingIntent pendingIntent = in needReinflate_differentChoices() local
126 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentChoices()
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/sharedconnectivity/app/
DSharedConnectivitySettingsState.java71 public Builder setInstantTetherSettingsPendingIntent(@NonNull PendingIntent pendingIntent) { in setInstantTetherSettingsPendingIntent() argument
72 mInstantTetherSettingsPendingIntent = pendingIntent; in setInstantTetherSettingsPendingIntent()
100 private static void validate(PendingIntent pendingIntent) { in validate() argument
101 if (pendingIntent != null && !pendingIntent.isImmutable()) { in validate()
107 PendingIntent pendingIntent, @NonNull Bundle extras) { in SharedConnectivitySettingsState() argument
108 validate(pendingIntent); in SharedConnectivitySettingsState()
110 mInstantTetherSettingsPendingIntent = pendingIntent; in SharedConnectivitySettingsState()
176 PendingIntent pendingIntent = PendingIntent.readPendingIntentOrNullFromParcel(in); in readFromParcel() local
179 return new SharedConnectivitySettingsState(instantTetherEnabled, pendingIntent, extras); in readFromParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DActionClickLogger.kt35 pendingIntent: PendingIntent in logInitialClick()
40 str3 = pendingIntent.toString() in logInitialClick()
61 pendingIntent: PendingIntent, in logStartingIntentWithDefaultHandler()
66 str2 = pendingIntent.toString() in logStartingIntentWithDefaultHandler()
74 pendingIntent: PendingIntent, in logWaitingToCloseKeyguard()
78 str1 = pendingIntent.toString() in logWaitingToCloseKeyguard()
87 pendingIntent: PendingIntent, in logKeyguardGone()
91 str1 = pendingIntent.toString() in logKeyguardGone()
DNotificationRemoteInputManager.java126 View view, PendingIntent pendingIntent, RemoteViews.RemoteResponse response) {
134 mLogger.logInitialClick(entry, actionIndex, pendingIntent);
136 if (handleRemoteInput(view, pendingIntent)) {
142 Log.v(TAG, "Notification click handler invoked for intent: " + pendingIntent);
144 logActionClick(view, entry, pendingIntent);
153 Notification.Action action = getActionFromView(view, entry, pendingIntent);
154 return mCallback.handleRemoteViewClick(view, pendingIntent,
157 mLogger.logStartingIntentWithDefaultHandler(entry, pendingIntent, actionIndex);
158 boolean started = RemoteViews.startPendingIntent(view, pendingIntent, options);
224 private boolean handleRemoteInput(View view, PendingIntent pendingIntent) {
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/app/
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()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/slice/
DSliceUtilTest.kt71 val pendingIntent = sliceUriWithoutParams.createBroadcastPendingIntent() in createBroadcastPendingIntentTest() constant
72 assertThat(pendingIntent).isNotNull() in createBroadcastPendingIntentTest()
73 assertThat(pendingIntent!!.isBroadcast).isTrue() in createBroadcastPendingIntentTest()
74 assertThat(pendingIntent.isImmutable).isFalse() in createBroadcastPendingIntentTest()
91 val pendingIntent = sliceUri.createBrowsePendingIntent() in createBrowsePendingIntentTest() constant
92 assertThat(pendingIntent).isNotNull() in createBrowsePendingIntentTest()
93 assertThat(pendingIntent!!.isActivity).isTrue() in createBrowsePendingIntentTest()
94 assertThat(pendingIntent.isImmutable).isTrue() in createBrowsePendingIntentTest()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/base/actions/
DQSTileIntentUserInputHandlerTest.kt82 val pendingIntent = mock<PendingIntent> { whenever(isActivity).thenReturn(true) } in testPassesActivityPendingIntentToStarterAsPendingIntent() constant
84 underTest.handle(null, pendingIntent, true) in testPassesActivityPendingIntentToStarterAsPendingIntent()
86 verify(activityStarter).postStartActivityDismissingKeyguard(eq(pendingIntent), any()) in testPassesActivityPendingIntentToStarterAsPendingIntent()
91 val pendingIntent = mock<PendingIntent> { whenever(isActivity).thenReturn(true) } in testPassesActivityPendingIntentToStarterAsPendingIntentWhenNotRequestingActivityStart() constant
93 underTest.handle(null, pendingIntent, false) in testPassesActivityPendingIntentToStarterAsPendingIntentWhenNotRequestingActivityStart()
95 verify(activityStarter).postStartActivityDismissingKeyguard(eq(pendingIntent), any()) in testPassesActivityPendingIntentToStarterAsPendingIntentWhenNotRequestingActivityStart()
100 val pendingIntent = in testPassNonActivityPendingIntentAndRequestStartingActivity_findsIntentAndStarts() constant
107 underTest.handle(null, pendingIntent, true) in testPassNonActivityPendingIntentAndRequestStartingActivity_findsIntentAndStarts()
128 val pendingIntent = mock<PendingIntent> { whenever(isActivity).thenReturn(false) } in testPassNonActivityPendingIntentAndDoNotRequestStartingActivity_doesNotStartActivity() constant
130 underTest.handle(null, pendingIntent, false) in testPassNonActivityPendingIntentAndDoNotRequestStartingActivity_doesNotStartActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/contexthub/
DContextHubClientBrokerTest.java85 private ContextHubClientBroker createFromPendingIntent(PendingIntent pendingIntent) { in createFromPendingIntent() argument
93 pendingIntent, in createFromPendingIntent()
150 PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(), 0); in testWakeLock_pendingIntent() local
151 ContextHubClientBroker broker = createFromPendingIntent(pendingIntent); in testWakeLock_pendingIntent()
171 broker.doSendPendingIntent(pendingIntent, new Intent(), onFinishedCallback); in testWakeLock_pendingIntent()
180 PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 0, new Intent(), 0); in testWakeLock_pendingIntent_multipleTimes() local
181 ContextHubClientBroker broker = createFromPendingIntent(pendingIntent); in testWakeLock_pendingIntent_multipleTimes()
201 broker.doSendPendingIntent(pendingIntent, new Intent(), onFinishedCallback); in testWakeLock_pendingIntent_multipleTimes()
202 broker.doSendPendingIntent(pendingIntent, new Intent(), onFinishedCallback); in testWakeLock_pendingIntent_multipleTimes()
203 broker.doSendPendingIntent(pendingIntent, new Intent(), onFinishedCallback); in testWakeLock_pendingIntent_multipleTimes()
[all …]
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java84 GeofenceKey(PendingIntent pendingIntent, Geofence geofence) { in GeofenceKey() argument
85 mPendingIntent = Objects.requireNonNull(pendingIntent); in GeofenceKey()
132 PendingIntent pendingIntent) { in GeofenceRegistration() argument
133 super(pendingIntent); in GeofenceRegistration()
243 return pendingIntent -> sendIntent(pendingIntent, true); in onLocationChanged()
249 return pendingIntent -> sendIntent(pendingIntent, false); in onLocationChanged()
256 private void sendIntent(PendingIntent pendingIntent, boolean entering) { in sendIntent() argument
263 pendingIntent.send(mContext, 0, intent, (pI, i, rC, rD, rE) -> mWakeLock.release(), in sendIntent()
267 removeRegistration(new GeofenceKey(pendingIntent, mGeofence), this); in sendIntent()
348 public void addGeofence(Geofence geofence, PendingIntent pendingIntent, String packageName, in addGeofence() argument
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DLegacyActivityStarterInternalImplTest.kt139 val pendingIntent = mock(PendingIntent::class.java) in startPendingIntentDismissingKeyguard_keyguardShowing_dismissWithAction() constant
140 whenever(pendingIntent.isActivity).thenReturn(true) in startPendingIntentDismissingKeyguard_keyguardShowing_dismissWithAction()
144 underTest.startPendingIntentDismissingKeyguard(intent = pendingIntent, dismissShade = true) in startPendingIntentDismissingKeyguard_keyguardShowing_dismissWithAction()
153 val pendingIntent = mock(PendingIntent::class.java) in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator() constant
161 whenever(pendingIntent.isActivity).thenReturn(true) in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator()
164 whenever(activityIntentHelper.wouldPendingShowOverLockscreen(eq(pendingIntent), anyInt())) in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator()
168 intent = pendingIntent, in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator()
185 val pendingIntent = mock(PendingIntent::class.java) in startPendingIntentDismissingKeyguard_fillInIntentAndExtraOptions_sendAndReturnResult() constant
194 whenever(pendingIntent.isActivity).thenReturn(true) in startPendingIntentDismissingKeyguard_fillInIntentAndExtraOptions_sendAndReturnResult()
197 whenever(activityIntentHelper.wouldPendingShowOverLockscreen(eq(pendingIntent), anyInt())) in startPendingIntentDismissingKeyguard_fillInIntentAndExtraOptions_sendAndReturnResult()
[all …]
/frameworks/base/core/java/android/view/translation/
DTranslationManager.java312 @NonNull PendingIntent pendingIntent) { in addOnDeviceTranslationCapabilityUpdateListener() argument
313 Objects.requireNonNull(pendingIntent, "pending intent should not be null"); in addOnDeviceTranslationCapabilityUpdateListener()
318 (formats) -> new ArrayList<>()).add(pendingIntent); in addOnDeviceTranslationCapabilityUpdateListener()
330 @NonNull PendingIntent pendingIntent) { in addTranslationCapabilityUpdateListener() argument
331 addOnDeviceTranslationCapabilityUpdateListener(sourceFormat, targetFormat, pendingIntent); in addTranslationCapabilityUpdateListener()
369 @NonNull PendingIntent pendingIntent) { in removeOnDeviceTranslationCapabilityUpdateListener() argument
370 Objects.requireNonNull(pendingIntent, "pending intent should not be null"); in removeOnDeviceTranslationCapabilityUpdateListener()
377 if (intents.contains(pendingIntent)) { in removeOnDeviceTranslationCapabilityUpdateListener()
378 intents.remove(pendingIntent); in removeOnDeviceTranslationCapabilityUpdateListener()
380 Log.w(TAG, "pending intent=" + pendingIntent + " does not exist in " in removeOnDeviceTranslationCapabilityUpdateListener()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputViewController.kt57 var pendingIntent: PendingIntent? in <lambda>() variable
91 pendingIntent = other.pendingIntent in <lambda>()
138 override var pendingIntent: PendingIntent? = null in onSendRemoteInput() variable in com.android.systemui.statusbar.policy.RemoteInputViewControllerImpl
175 val current: Intent = pendingIntent?.intent ?: return false in onSendRemoteInput()
181 pendingIntent = actionIntent in onSendRemoteInput()
216 val pendingIntent = pendingIntent ?: run { in onSendRemoteInput() constant
221 sendRemoteInput(pendingIntent, intent) in onSendRemoteInput()
224 private fun sendRemoteInput(pendingIntent: PendingIntent, intent: Intent) { in onSendRemoteInput()
263 pendingIntent.send(view.context, 0, intent, null, null, null, options.toBundle()) in onSendRemoteInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/actions/
DQSTileIntentUserInputHandler.kt45 pendingIntent: PendingIntent, in <lambda>()
83 pendingIntent: PendingIntent, in handle()
86 if (pendingIntent.isActivity) { in handle()
91 activityStarter.postStartActivityDismissingKeyguard(pendingIntent, animationController) in handle()
96 .setPackage(pendingIntent.creatorPackage) in handle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/smartspace/
DSmartspaceInteractionHandler.kt43 pendingIntent: PendingIntent, in <lambda>()
45 ): Boolean = delegate.onInteraction(view, pendingIntent, response) in <lambda>()
48 pendingIntent: PendingIntent, in <lambda>()
54 pendingIntent, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/widgets/
DWidgetInteractionHandler.kt44 pendingIntent: PendingIntent, in <lambda>()
46 ): Boolean = delegate.onInteraction(view, pendingIntent, response) in <lambda>()
50 pendingIntent: PendingIntent, in <lambda>()
56 pendingIntent, in <lambda>()
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/
DCredentialKtx.kt62 return pendingIntent?.let{ in <lambda>()
64 .Builder(pendingIntent = it) in <lambda>()
130 pendingIntent = credentialEntry.pendingIntent, in getCredentialOptionInfoList()
158 pendingIntent = credentialEntry.pendingIntent, in getCredentialOptionInfoList()
188 pendingIntent = credentialEntry.pendingIntent, in getCredentialOptionInfoList()
296 pendingIntent = structuredAuthEntry.pendingIntent, in getAuthenticationEntryList()
320 pendingIntent = structuredRemoteEntry.pendingIntent, in getRemoteEntry()
341 pendingIntent = actionEntryUi.pendingIntent, in getActionEntryList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/util/
DInteractionHandlerDelegate.kt49 pendingIntent: PendingIntent, in onInteraction()
54 pendingIntent.isActivity -> { in onInteraction()
63 pendingIntent, in onInteraction()
70 else -> RemoteViews.startPendingIntent(view, pendingIntent, launchOptions) in onInteraction()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DDetailDialogTest.kt59 @Mock private lateinit var pendingIntent: PendingIntent variable in com.android.systemui.controls.ui.DetailDialogTest
69 underTest = createDialog(pendingIntent) in setUp()
78 verify(taskView).startActivity(eq(pendingIntent), any(), any(), any()) in testPendingIntentIsUnModified()
101 underTest = createDialog(pendingIntent, it) in testDismissRemovesTheTask()
119 pendingIntent: PendingIntent, in createDialog()
126 pendingIntent, in createDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationTemplateViewWrapper.java214 PendingIntent pendingIntent = getPendingIntentForAction(action); in updatePendingIntentCancellations() local
217 if (pendingIntent != null) { in updatePendingIntentCancellations()
218 int pendingIntentHashCode = getHashCodeForPendingIntent(pendingIntent); in updatePendingIntentCancellations()
224 updatePendingIntentCancellationListener(action, pendingIntent); in updatePendingIntentCancellations()
236 @Nullable PendingIntent pendingIntent) { in updatePendingIntentCancellationListener() argument
238 if (pendingIntent != null) { in updatePendingIntentCancellationListener()
240 cancellationHandler = new ActionPendingIntentCancellationHandler(pendingIntent, action, in updatePendingIntentCancellationListener()
375 PendingIntent pendingIntent = getPendingIntentForAction(action); in disableActionViewWithIntent() local
376 if (intent.equals(pendingIntent)) { in disableActionViewWithIntent()
414 private static int getHashCodeForPendingIntent(PendingIntent pendingIntent) { in getHashCodeForPendingIntent() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSmartActionsReceiver.java49 PendingIntent pendingIntent = in onReceive() local
54 Log.d(TAG, "Executing smart action [" + actionType + "]:" + pendingIntent.getIntent()); in onReceive()
60 pendingIntent.send(context, 0, fillIn, null, null, null, opts.toBundle()); in onReceive()
67 pendingIntent.getIntent()); in onReceive()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/autofill/
DCredentialAutofillService.kt267 val pendingIntent = actionEntry.pendingIntent in <lambda>() constant
268 if (pendingIntent == null) { in <lambda>()
283 pendingIntent, in <lambda>()
296 .setAuthentication(pendingIntent.intentSender) in <lambda>()
341 val pendingIntent = primaryEntry.pendingIntent in <lambda>() constant
343 if (pendingIntent == null || fillInIntent == null) { in <lambda>()
376 fillRequest, i, primaryEntry, pendingIntent, in <lambda>()
388 .setAuthentication(pendingIntent.intentSender) in <lambda>()
424 pendingIntent: PendingIntent, in <lambda>()
444 pendingIntent, icon, in <lambda>()
[all …]
/frameworks/base/core/java/android/credentials/
DPrepareGetCredentialResponse.java70 @Nullable PendingIntent pendingIntent) { in PendingGetCredentialHandle() argument
72 mPendingIntent = pendingIntent; in PendingGetCredentialHandle()
87 public void onPendingIntent(PendingIntent pendingIntent) { in show()
89 context.startIntentSender(pendingIntent.getIntentSender(), null, 0, 0, 0, in show()
182 void onPendingIntent(@NonNull PendingIntent pendingIntent); in onPendingIntent() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java176 info.pendingIntent.send(mContext, 0, fillIn); in handleSmsReceivedIntent()
203 request.pendingIntent.send(mContext, 0, fillIn); in removeExpiredTokenLocked()
273 public final PendingIntent pendingIntent; field in AppSmsManager.AppRequestInfo
280 AppRequestInfo(String packageName, PendingIntent pendingIntent, String token) { in AppRequestInfo() argument
281 this(packageName, pendingIntent, token, null, in AppRequestInfo()
285 AppRequestInfo(String packageName, PendingIntent pendingIntent, String token, in AppRequestInfo() argument
288 this.pendingIntent = pendingIntent; in AppRequestInfo()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitScreenControllerTests.java194 PendingIntent pendingIntent = in testStartIntent_appendsNoUserActionFlag() local
197 mSplitScreenController.startIntent(pendingIntent, mContext.getUserId(), null, in testStartIntent_appendsNoUserActionFlag()
200 verify(mStageCoordinator).startIntent(eq(pendingIntent), mIntentCaptor.capture(), in testStartIntent_appendsNoUserActionFlag()
210 PendingIntent pendingIntent = in startIntent_multiInstancesSupported_appendsMultipleTaskFag() local
217 mSplitScreenController.startIntent(pendingIntent, mContext.getUserId(), null, in startIntent_multiInstancesSupported_appendsMultipleTaskFag()
220 verify(mStageCoordinator).startIntent(eq(pendingIntent), mIntentCaptor.capture(), in startIntent_multiInstancesSupported_appendsMultipleTaskFag()
230 PendingIntent pendingIntent = in startIntent_multiInstancesNotSupported_startTaskInBackgroundBeforeSplitActivated() local
240 mSplitScreenController.startIntent(pendingIntent, mContext.getUserId(), null, in startIntent_multiInstancesNotSupported_startTaskInBackgroundBeforeSplitActivated()
254 PendingIntent pendingIntent = in startIntent_multiInstancesSupported_startTaskInBackgroundAfterSplitActivated() local
266 mSplitScreenController.startIntent(pendingIntent, mContext.getUserId(), null, in startIntent_multiInstancesSupported_startTaskInBackgroundAfterSplitActivated()
[all …]

12345678