Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPendingIntentTest.java41 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_shouldCreateIntentForBroadcast() local
43 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getBroadcast_shouldCreateIntentForBroadcast()
57 PendingIntent pendingIntent = PendingIntent.getActivity(context, 99, intent, 100); in getActivity_shouldCreateIntentForBroadcast() local
59 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivity_shouldCreateIntentForBroadcast()
73 PendingIntent pendingIntent = PendingIntent.getActivities(context, 99, intents, 100); in getActivities_shouldCreateIntentForBroadcast() local
75 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivities_shouldCreateIntentForBroadcast()
78 pendingIntent.send(); in getActivities_shouldCreateIntentForBroadcast()
88 PendingIntent pendingIntent = in getActivities_withBundle_shouldCreateIntentForBroadcast() local
91 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivities_withBundle_shouldCreateIntentForBroadcast()
94 pendingIntent.send(); in getActivities_withBundle_shouldCreateIntentForBroadcast()
[all …]
DShadowAlarmManagerTest.java213 PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, intent, 0); in shouldSupportGetNextScheduledAlarm() local
214 alarmManager.set(AlarmManager.ELAPSED_REALTIME, now, pendingIntent); in shouldSupportGetNextScheduledAlarm()
218 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in shouldSupportGetNextScheduledAlarm()
227 PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, intent, 0); in getNextScheduledAlarm_shouldReturnRepeatingAlarms() local
228 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, now, INTERVAL_HOUR, pendingIntent); in getNextScheduledAlarm_shouldReturnRepeatingAlarms()
232 assertRepeatingScheduledAlarm(now, INTERVAL_HOUR, pendingIntent, scheduledAlarm); in getNextScheduledAlarm_shouldReturnRepeatingAlarms()
241 PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, intent, 0); in peekNextScheduledAlarm_shouldReturnNextAlarm() local
242 alarmManager.set(AlarmManager.ELAPSED_REALTIME, now, pendingIntent); in peekNextScheduledAlarm_shouldReturnNextAlarm()
246 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in peekNextScheduledAlarm_shouldReturnNextAlarm()
252 PendingIntent pendingIntent = in cancel_removesMatchingPendingIntents() local
[all …]
DShadowNotificationTest.java18 PendingIntent pendingIntent = PendingIntent.getActivity(application, 0, new Intent(), 0); in setLatestEventInfo__shouldCaptureContentIntent() local
20 notification.setLatestEventInfo(application, "title", "content", pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
21 assertThat(notification.contentIntent).isSameInstanceAs(pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/
DRoboIntentSender.java15 private PendingIntent pendingIntent; field in RoboIntentSender
17 public RoboIntentSender(PendingIntent pendingIntent) { in RoboIntentSender() argument
19 this.pendingIntent = pendingIntent; in RoboIntentSender()
26 pendingIntent.send(context, code, intent); in sendIntent()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPendingIntent.java108 PendingIntent pendingIntent = i.next(); in cancel() local
109 if (pendingIntent == realPendingIntent) { in cancel()
347 PendingIntent pendingIntent = getCreatedIntentFor(type, intents, requestCode, flags); in create() local
349 return pendingIntent; in create()
353 if (pendingIntent != null && (flags & FLAG_UPDATE_CURRENT) != 0) { in create()
354 ShadowPendingIntent shadowPendingIntent = Shadow.extract(pendingIntent); in create()
361 return pendingIntent; in create()
365 if (pendingIntent != null && (flags & FLAG_CANCEL_CURRENT) != 0) { in create()
366 ShadowPendingIntent shadowPendingIntent = Shadow.extract(pendingIntent); in create()
368 pendingIntent = null; in create()
[all …]
DShadowLocationManager.java282 long minTime, float minDistance, Criteria criteria, PendingIntent pendingIntent) { in requestLocationUpdates() argument
283 if (pendingIntent == null) { in requestLocationUpdates()
289 requestLocationUdpateCriteriaPendingIntents.put(pendingIntent, criteria); in requestLocationUpdates()
294 String provider, long minTime, float minDistance, PendingIntent pendingIntent) { in requestLocationUpdates() argument
295 if (pendingIntent == null) { in requestLocationUpdates()
302 requestLocationUdpateProviderPendingIntents.put(pendingIntent, provider); in requestLocationUpdates()
323 protected void removeUpdates(PendingIntent pendingIntent) { in removeUpdates() argument
324 while (requestLocationUdpateCriteriaPendingIntents.remove(pendingIntent) != null); in removeUpdates()
325 while (requestLocationUdpateProviderPendingIntents.remove(pendingIntent) != null); in removeUpdates()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DActionsSuggestionsHelperTest.java150 PendingIntent pendingIntent = in testDeduplicateActions() local
155 .setAction(new RemoteAction(icon, "label", "1", pendingIntent)) in testDeduplicateActions()
160 .setAction(new RemoteAction(icon, "label", "2", pendingIntent)) in testDeduplicateActions()
165 .setAction(new RemoteAction(icon, "label", "3", pendingIntent)) in testDeduplicateActions()
170 .setAction(new RemoteAction(icon, "another_label", "4", pendingIntent)) in testDeduplicateActions()
175 .setAction(new RemoteAction(icon, "label", "5", pendingIntent)) in testDeduplicateActions()
204 PendingIntent pendingIntent = in testDeduplicateActions_nullComponent() local
209 .setAction(new RemoteAction(icon, "label", "1", pendingIntent)) in testDeduplicateActions_nullComponent()
214 .setAction(new RemoteAction(icon, "label", "2", pendingIntent)) in testDeduplicateActions_nullComponent()
/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/
DLabeledIntent.java161 final PendingIntent pendingIntent = createPendingIntent(context, resolvedIntent, requestCode); in createRemoteAction() local
173 pendingIntent); in createRemoteAction()