Home
last modified time | relevance | path

Searched refs:getBroadcast (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUsageStatsManagerTest.java194 PendingIntent pendingIntent1 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION1"), 0); in testRegisterAppUsageObserver_uniqueObserverIds_shouldAddBothObservers()
197 PendingIntent pendingIntent2 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION2"), 0); in testRegisterAppUsageObserver_uniqueObserverIds_shouldAddBothObservers()
216 PendingIntent pendingIntent1 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION1"), 0); in testRegisterAppUsageObserver_duplicateObserverIds_shouldOverrideExistingObserver()
219 PendingIntent pendingIntent2 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION2"), 0); in testRegisterAppUsageObserver_duplicateObserverIds_shouldOverrideExistingObserver()
232 PendingIntent pendingIntent1 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION1"), 0); in testUnregisterAppUsageObserver_existingObserverId_shouldRemoveObserver()
235 PendingIntent pendingIntent2 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION2"), 0); in testUnregisterAppUsageObserver_existingObserverId_shouldRemoveObserver()
250 PendingIntent pendingIntent1 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION1"), 0); in testUnregisterAppUsageObserver_nonExistentObserverId_shouldBeNoOp()
253 PendingIntent pendingIntent2 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION2"), 0); in testUnregisterAppUsageObserver_nonExistentObserverId_shouldBeNoOp()
274 PendingIntent pendingIntent1 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION1"), 0); in testTriggerRegisteredAppUsageObserver_shouldSendIntentAndRemoveObserver()
277 PendingIntent pendingIntent2 = PendingIntent.getBroadcast(context, 0, new Intent("ACTION2"), 0); in testTriggerRegisteredAppUsageObserver_shouldSendIntentAndRemoveObserver()
DShadowPendingIntentTest.java41 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_shouldCreateIntentForBroadcast()
261 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, 0); in updatePendingIntent()
266 PendingIntent.getBroadcast(context, 0, intent, 0); in updatePendingIntent()
270 PendingIntent.getBroadcast(context, 0, intent, FLAG_UPDATE_CURRENT); in updatePendingIntent()
349 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 99, intent, FLAG_NO_CREATE); in getBroadcast_withFlagNoCreate_shouldReturnNullIfNoPendingIntentExists()
356 PendingIntent.getBroadcast(context, 99, intent, 0); in getBroadcast_withFlagNoCreate_shouldReturnNullIfRequestCodeIsUnmatched()
357 assertThat(PendingIntent.getBroadcast(context, 98, intent, FLAG_NO_CREATE)).isNull(); in getBroadcast_withFlagNoCreate_shouldReturnNullIfRequestCodeIsUnmatched()
363 PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_withFlagNoCreate_shouldReturnExistingIntent()
366 PendingIntent saved = PendingIntent.getBroadcast(context, 99, identical, FLAG_NO_CREATE); in getBroadcast_withFlagNoCreate_shouldReturnExistingIntent()
374 PendingIntent.getBroadcast(context, 99, intent, 100); in getBroadcast_withNoFlags_shouldReturnExistingIntent()
[all …]
DShadowAlarmManagerTest.java253 PendingIntent.getBroadcast(context, 0, intent, FLAG_UPDATE_CURRENT); in cancel_removesMatchingPendingIntents()
258 PendingIntent.getBroadcast(context, 0, intent2, FLAG_UPDATE_CURRENT); in cancel_removesMatchingPendingIntents()
265 PendingIntent.getBroadcast(context, 0, intent3, FLAG_UPDATE_CURRENT); in cancel_removesMatchingPendingIntents()
274 PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, newIntent, 0); in cancel_removesMatchingPendingIntentsWithActions()
279 alarmManager.cancel(PendingIntent.getBroadcast(context, 0, new Intent("anotherAction"), 0)); in cancel_removesMatchingPendingIntentsWithActions()
282 alarmManager.cancel(PendingIntent.getBroadcast(context, 0, new Intent("someAction"), 0)); in cancel_removesMatchingPendingIntentsWithActions()
341 PendingIntent show = PendingIntent.getBroadcast(context, 0, new Intent("showAction"), 0); in getNextAlarmClockInfo()
342 PendingIntent operation = PendingIntent.getBroadcast(context, 0, new Intent("opAction"), 0); in getNextAlarmClockInfo()
353 PendingIntent show2 = PendingIntent.getBroadcast(context, 0, new Intent("showAction2"), 0); in getNextAlarmClockInfo()
354 PendingIntent operation2 = PendingIntent.getBroadcast(context, 0, new Intent("opAction2"), 0); in getNextAlarmClockInfo()
DShadowLocationManagerTest.java197 PendingIntent.getBroadcast(context, 0, someIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
200 PendingIntent.getBroadcast(context, 0, someOtherIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria()
233 PendingIntent.getBroadcast(context, 0, someIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners()
236 PendingIntent.getBroadcast(context, 0, someOtherIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners()
284 PendingIntent.getBroadcast(context, 0, someIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound()
389 PendingIntent.getBroadcast(context, 0, someIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRegisterLocationUpdatesWhenProviderGiven()
404 PendingIntent.getBroadcast(context, 0, someIntent, PendingIntent.FLAG_UPDATE_CURRENT); in shouldRegisterLocationUpdatesWhenCriteriaGiven()
DShadowContextImplTest.java131 PendingIntent.getBroadcast( in startIntentSender_broadcastIntent()
DShadowNotificationBuilderTest.java215 PendingIntent.getBroadcast(ApplicationProvider.getApplicationContext(), 0, null, 0); in build_addsActionToNotification()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMapClientFacade.java140 mSentIntent = PendingIntent.getBroadcast(mService, 0, mSendIntent, in mapSendMessage()
142 mDeliveredIntent = PendingIntent.getBroadcast( in mapSendMessage()
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresenceCapabilityTask.java120 PendingIntent mAlarmIntent = PendingIntent.getBroadcast(mContext, 0, intent, in startTimer()
DPresencePublication.java967 mRetryAlarmIntent = PendingIntent.getBroadcast(mContext, 0, intent, in scheduleRetryPublish()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DBaseUsbConnection.java130 PendingIntent permissionIntent = PendingIntent.getBroadcast(context, 0, in connect()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPollingTask.java201 mRetryAlarmIntent = PendingIntent.getBroadcast(mContext, 0, intent, in scheduleRetry()
DCapabilityPolling.java456 mDiscoveryAlarmIntent = PendingIntent.getBroadcast(mContext, 0, intent, in schedulePolling()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPendingIntent.java87 protected static PendingIntent getBroadcast( in getBroadcast() method in ShadowPendingIntent
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DRcsStackAdaptor.java651 mRetryAlarmIntent = PendingIntent.getBroadcast(mContext, 0, intent, in startInitPresenceTimer()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DSmsFacade.java740 return PendingIntent.getBroadcast(mService, 0, intent, 0); in createBroadcastPendingIntent()