Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/media/
DMediaButtonReceiverHolder.java113 PendingIntent pendingIntent, String sessionPackageName) { in create() argument
114 if (pendingIntent == null) { in create()
117 int componentType = getComponentType(pendingIntent); in create()
118 ComponentName componentName = getComponentName(pendingIntent, componentType); in create()
120 return new MediaButtonReceiverHolder(userId, pendingIntent, componentName, in create()
127 Log.w(TAG, "Unresolvable implicit intent is set, pi=" + pendingIntent); in create()
128 return new MediaButtonReceiverHolder(userId, pendingIntent, sessionPackageName); in create()
136 private MediaButtonReceiverHolder(int userId, PendingIntent pendingIntent, in MediaButtonReceiverHolder() argument
139 mPendingIntent = pendingIntent; in MediaButtonReceiverHolder()
145 private MediaButtonReceiverHolder(int userId, PendingIntent pendingIntent, String packageName) { in MediaButtonReceiverHolder() argument
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationUiAdjustmentTest.java44 PendingIntent pendingIntent = in needReinflate_differentLength() local
48 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLength()
59 PendingIntent pendingIntent = in needReinflate_differentLabels() local
63 createActionBuilder("first", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
65 createActionBuilder("second", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentLabels()
77 PendingIntent pendingIntent = in needReinflate_differentIcons() local
81 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent).build(); in needReinflate_differentIcons()
83 createActionBuilder("same", R.drawable.ic_account_circle, pendingIntent) in needReinflate_differentIcons()
119 PendingIntent pendingIntent = in needReinflate_differentChoices() local
129 createActionBuilder("same", R.drawable.ic_corp_icon, pendingIntent) in needReinflate_differentChoices()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DActionClickLogger.kt34 pendingIntent: PendingIntent in logInitialClick()
39 str3 = pendingIntent.intent.toString() in logInitialClick()
57 pendingIntent: PendingIntent in logStartingIntentWithDefaultHandler()
61 str2 = pendingIntent.intent.toString() in logStartingIntentWithDefaultHandler()
68 pendingIntent: PendingIntent in logWaitingToCloseKeyguard()
71 str1 = pendingIntent.intent.toString() in logWaitingToCloseKeyguard()
78 pendingIntent: PendingIntent in logKeyguardGone()
81 str1 = pendingIntent.intent.toString() in logKeyguardGone()
DNotificationRemoteInputManager.java142 View view, PendingIntent pendingIntent, RemoteViews.RemoteResponse response) {
147 mLogger.logInitialClick(entry, pendingIntent);
149 if (handleRemoteInput(view, pendingIntent)) {
155 Log.v(TAG, "Notification click handler invoked for intent: " + pendingIntent);
157 logActionClick(view, entry, pendingIntent);
166 Notification.Action action = getActionFromView(view, entry, pendingIntent);
167 return mCallback.handleRemoteViewClick(view, pendingIntent,
170 mLogger.logStartingIntentWithDefaultHandler(entry, pendingIntent);
171 boolean started = RemoteViews.startPendingIntent(view, pendingIntent, options);
243 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/services/core/java/com/android/server/location/geofence/
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
205 pendingIntent.send(mContext, 0, intent, (pI, i, rC, rD, rE) -> mWakeLock.release(), in sendIntent()
209 removeRegistration(new GeofenceKey(pendingIntent, getRequest()), this); in sendIntent()
295 public void addGeofence(Geofence geofence, PendingIntent pendingIntent, String packageName, in addGeofence() argument
300 attributionTag, AppOpsManager.toReceiverId(pendingIntent)); in addGeofence()
304 putRegistration(new GeofenceKey(pendingIntent, geofence), in addGeofence()
[all …]
DGeofenceKey.java34 GeofenceKey(PendingIntent pendingIntent, Geofence geofence) { in GeofenceKey() argument
35 mPendingIntent = Objects.requireNonNull(pendingIntent); in GeofenceKey()
/frameworks/base/core/java/android/view/translation/
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
359 addOnDeviceTranslationCapabilityUpdateListener(sourceFormat, targetFormat, pendingIntent); in addTranslationCapabilityUpdateListener()
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()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
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()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
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()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarterLogger.kt55 fun logStartNotificationIntent(key: String, pendingIntent: PendingIntent) { in logStartNotificationIntent()
58 str2 = pendingIntent.intent.toString() in logStartNotificationIntent()
104 fun logSendingFullScreenIntent(key: String, pendingIntent: PendingIntent) { in logSendingFullScreenIntent()
107 str2 = pendingIntent.intent.toString() in logSendingFullScreenIntent()
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()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubClientBroker.java281 PendingIntentRequest(PendingIntent pendingIntent, long nanoAppId) { in PendingIntentRequest() argument
282 mPendingIntent = pendingIntent; in PendingIntentRequest()
311 ContextHubTransactionManager transactionManager, PendingIntent pendingIntent, in ContextHubClientBroker() argument
319 if (pendingIntent == null) { in ContextHubClientBroker()
322 mPendingIntentRequest = new PendingIntentRequest(pendingIntent, nanoAppId); in ContextHubClientBroker()
350 short hostEndPointId, PendingIntent pendingIntent, long nanoAppId, in ContextHubClientBroker() argument
353 null /* callback */, attributionTag, transactionManager, pendingIntent, nanoAppId, in ContextHubClientBroker()
354 pendingIntent.getCreatorPackage()); in ContextHubClientBroker()
572 PendingIntent pendingIntent = null; in hasPendingIntent() local
575 pendingIntent = mPendingIntentRequest.getPendingIntent(); in hasPendingIntent()
[all …]
DContextHubClientManager.java198 ContextHubInfo contextHubInfo, PendingIntent pendingIntent, long nanoAppId, in registerClient() argument
203 broker = getClientBroker(contextHubInfo.getId(), pendingIntent, nanoAppId); in registerClient()
209 hostEndPointId, pendingIntent, nanoAppId, attributionTag, in registerClient()
383 int contextHubId, PendingIntent pendingIntent, long nanoAppId) { in getClientBroker() argument
385 if (broker.hasPendingIntent(pendingIntent, nanoAppId) in getClientBroker()
/frameworks/base/core/java/android/service/quickaccesswallet/
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DAlarmTileTest.kt55 private lateinit var pendingIntent: PendingIntent variable in com.android.systemui.qs.tiles.AlarmTileTest
125 val alarmInfo = AlarmManager.AlarmClockInfo(1L, pendingIntent) in testActiveAfterNextAlarm()
134 val alarmInfo = AlarmManager.AlarmClockInfo(1L, pendingIntent) in testActivityStartedWhenNextAlarm()
139 verify(activityStarter).postStartActivityDismissingKeyguard(pendingIntent, in testActivityStartedWhenNextAlarm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationTemplateViewWrapper.java235 PendingIntent pendingIntent = (PendingIntent) view.getTag( in performOnPendingIntentCancellation() local
237 if (pendingIntent == null) { in performOnPendingIntentCancellation()
240 if (mCancelledPendingIntents.contains(pendingIntent)) { in performOnPendingIntentCancellation()
245 mCancelledPendingIntents.add(pendingIntent); in performOnPendingIntentCancellation()
253 mUiOffloadThread.execute(() -> pendingIntent.registerCancelListener(listener)); in performOnPendingIntentCancellation()
258 mUiOffloadThread.execute(() -> pendingIntent.registerCancelListener(listener)); in performOnPendingIntentCancellation()
264 () -> pendingIntent.unregisterCancelListener(listener)); in performOnPendingIntentCancellation()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DGlobalActionsPanelPlugin.java71 default void startPendingIntentDismissingKeyguard(PendingIntent pendingIntent) { in startPendingIntentDismissingKeyguard() argument
73 pendingIntent.send(); in startPendingIntentDismissingKeyguard()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsInfoProvider.kt51 private var pendingIntent: PendingIntent in <lambda>() variable in com.android.systemui.globalactions.GlobalActionsInfoProvider
59 pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE) in <lambda>()
80 activityStarter.postStartActivityDismissingKeyguard(pendingIntent) in <lambda>()
/frameworks/base/location/java/android/location/
DLocationManager.java1051 @NonNull PendingIntent pendingIntent) { in requestSingleUpdate() argument
1060 pendingIntent); in requestSingleUpdate()
1085 @NonNull PendingIntent pendingIntent) { in requestSingleUpdate() argument
1095 pendingIntent); in requestSingleUpdate()
1286 @NonNull PendingIntent pendingIntent) { in requestLocationUpdates() argument
1292 pendingIntent); in requestLocationUpdates()
1320 @NonNull Criteria criteria, @NonNull PendingIntent pendingIntent) { in requestLocationUpdates() argument
1325 pendingIntent); in requestLocationUpdates()
1418 @NonNull PendingIntent pendingIntent) { in requestLocationUpdates() argument
1423 requestLocationUpdates(locationRequest.getProvider(), locationRequest, pendingIntent); in requestLocationUpdates() local
[all …]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java173 PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, portalIntent, in onShowCaptivePortalNotification() local
176 R.string.portal_notification_detail, pendingIntent); in onShowCaptivePortalNotification()
211 PendingIntent pendingIntent) { in getNotification() argument
240 if (pendingIntent != null) { in getNotification()
241 builder.setContentIntent(pendingIntent); in getNotification()
/frameworks/base/core/java/android/text/style/
DEasyEditSpan.java76 public EasyEditSpan(PendingIntent pendingIntent) { in EasyEditSpan() argument
77 mPendingIntent = pendingIntent; in EasyEditSpan()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/
DWalletScreenControllerTest.java431 PendingIntent pendingIntent = in createNonActiveWalletCard() local
433 return new WalletCard.Builder(CARD_ID_2, createIcon(), "•••• 5678", pendingIntent) in createNonActiveWalletCard()
440 PendingIntent pendingIntent = in createLockedWalletCard() local
442 return new WalletCard.Builder(CARD_ID_2, createIcon(), "•••• 5679", pendingIntent) in createLockedWalletCard()
449 PendingIntent pendingIntent = in createWalletCard() local
451 return new WalletCard.Builder(CARD_ID_1, createIcon(), "•••• 1234", pendingIntent) in createWalletCard()
458 PendingIntent pendingIntent = in createCrazyWalletCard() local
460 return new WalletCard.Builder("BadCard", createIcon(), "•••• 1234", pendingIntent) in createCrazyWalletCard()
/frameworks/base/core/java/android/app/smartspace/
DSmartspaceAction.java101 @Nullable PendingIntent pendingIntent, in SmartspaceAction() argument
110 mPendingIntent = pendingIntent; in SmartspaceAction()
312 public Builder setPendingIntent(@Nullable PendingIntent pendingIntent) { in setPendingIntent() argument
313 mPendingIntent = pendingIntent; in setPendingIntent()

1234