/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPendingIntentTest.java | 41 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 …]
|
D | ShadowAlarmManagerTest.java | 213 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 …]
|
D | ShadowNotificationTest.java | 18 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).isSameAs(pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/fakes/ |
D | RoboIntentSender.java | 15 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/ |
D | ShadowPendingIntent.java | 108 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 …]
|
D | ShadowLocationManager.java | 282 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/ |
D | ActionsSuggestionsHelperTest.java | 147 PendingIntent pendingIntent = in testDeduplicateActions() local 152 .setAction(new RemoteAction(icon, "label", "1", pendingIntent)) in testDeduplicateActions() 157 .setAction(new RemoteAction(icon, "label", "2", pendingIntent)) in testDeduplicateActions() 162 .setAction(new RemoteAction(icon, "label", "3", pendingIntent)) in testDeduplicateActions() 167 .setAction(new RemoteAction(icon, "another_label", "4", pendingIntent)) in testDeduplicateActions() 172 .setAction(new RemoteAction(icon, "label", "5", pendingIntent)) in testDeduplicateActions() 201 PendingIntent pendingIntent = in testDeduplicateActions_nullComponent() local 206 .setAction(new RemoteAction(icon, "label", "1", pendingIntent)) in testDeduplicateActions_nullComponent() 211 .setAction(new RemoteAction(icon, "label", "2", pendingIntent)) in testDeduplicateActions_nullComponent()
|
/external/libtextclassifier/java/src/com/android/textclassifier/common/intent/ |
D | LabeledIntent.java | 129 final PendingIntent pendingIntent = createPendingIntent(context, resolvedIntent, requestCode); in resolve() local 137 new RemoteActionCompat(icon, title, resolveDescription(resolveInfo, pm), pendingIntent); in resolve()
|