Home
last modified time | relevance | path

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

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAlarmManagerTest.java76 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportGetNextScheduledAlarm() local
77 alarmManager.set(AlarmManager.ELAPSED_REALTIME, now, pendingIntent); in shouldSupportGetNextScheduledAlarm()
81 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in shouldSupportGetNextScheduledAlarm()
89 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportGetNextScheduledAlarmForRepeatingAlarms() local
90 …anager.setRepeating(AlarmManager.ELAPSED_REALTIME, now, AlarmManager.INTERVAL_HOUR, pendingIntent); in shouldSupportGetNextScheduledAlarmForRepeatingAlarms()
94 … assertRepeatingScheduledAlarm(now, AlarmManager.INTERVAL_HOUR, pendingIntent, scheduledAlarm); in shouldSupportGetNextScheduledAlarmForRepeatingAlarms()
102 …PendingIntent pendingIntent = PendingIntent.getActivity(activity, 0, new Intent(activity, activity… in shouldSupportPeekScheduledAlarm() local
103 alarmManager.set(AlarmManager.ELAPSED_REALTIME, now, pendingIntent); in shouldSupportPeekScheduledAlarm()
107 assertScheduledAlarm(now, pendingIntent, scheduledAlarm); in shouldSupportPeekScheduledAlarm()
113 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationCon… in cancel_removesMatchingPendingIntents() local
[all …]
DPendingIntentTest.java38 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100); in getBroadcast__shouldCreateIntentForBroadcast() local
39 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getBroadcast__shouldCreateIntentForBroadcast()
50 … PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100); in getActivity__shouldCreateIntentForBroadcast() local
51 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivity__shouldCreateIntentForBroadcast()
62 … PendingIntent pendingIntent = PendingIntent.getService(Robolectric.application, 99, intent, 100); in getService__shouldCreateIntentForBroadcast() local
63 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getService__shouldCreateIntentForBroadcast()
DNotificationTest.java18 PendingIntent pendingIntent = PendingIntent.getActivity(new Activity(), 0, new Intent(), 0); in setLatestEventInfo__shouldCaptureContentIntent() local
20 notification.setLatestEventInfo(new Activity(), "title", "content", pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
21 assertThat(pendingIntent, is(notification.contentIntent)); in setLatestEventInfo__shouldCaptureContentIntent()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowLocationManager.java224 …tLocationUpdates(long minTime, float minDistance, Criteria criteria, PendingIntent pendingIntent) { in requestLocationUpdates() argument
225 if (pendingIntent == null) { in requestLocationUpdates()
231 requestLocationUdpateCriteriaPendingIntents.put(pendingIntent, criteria); in requestLocationUpdates()
236 PendingIntent pendingIntent) { in requestLocationUpdates() argument
237 if (pendingIntent == null) { in requestLocationUpdates()
244 requestLocationUdpateProviderPendingIntents.put(pendingIntent, provider); in requestLocationUpdates()
253 public void removeUpdates(PendingIntent pendingIntent) { in removeUpdates() argument
254 while (requestLocationUdpateCriteriaPendingIntents.remove(pendingIntent) != null); in removeUpdates()
255 while (requestLocationUdpateProviderPendingIntents.remove(pendingIntent) != null); in removeUpdates()
DShadowPendingIntent.java180 PendingIntent pendingIntent = Robolectric.newInstanceOf(PendingIntent.class); in create() local
181 ShadowPendingIntent shadowPendingIntent = Robolectric.shadowOf(pendingIntent); in create()
188 return pendingIntent; in create()
DShadowAlarmManager.java80 public void cancel(PendingIntent pendingIntent) { in cancel() argument
81 final Intent intentTypeToRemove = shadowOf(pendingIntent).getSavedIntent(); in cancel()
DShadowRemoteViews.java54 public void setOnClickPendingIntent(int viewId, final PendingIntent pendingIntent) { in setOnClickPendingIntent() argument
61 pendingIntent.send(view.getContext(), 0, null); in setOnClickPendingIntent()
/external/robolectric/lib/main/
Dandroid.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...