Home
last modified time | relevance | path

Searched refs:broadcastReceiver (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowApplication.java329 wrapper.broadcastReceiver.onReceive(realApplication, intent); in sendBroadcast()
378 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
383 if (wrapper.broadcastReceiver == broadcastReceiver) { in unregisterReceiver()
389 throw new IllegalArgumentException("Receiver not registered: " + broadcastReceiver); in unregisterReceiver()
405 … + registeredReceiver.broadcastReceiver + " that was originally registered here. " + in assertNoBroadcastListenersRegistered()
421 … + registeredReceiver.broadcastReceiver + " that was originally registered here:"); in assertNoBroadcastListenersOfActionRegistered()
519 public BroadcastReceiver broadcastReceiver; field in ShadowApplication.Wrapper
524 … public Wrapper(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, Context context) { in Wrapper() argument
525 this.broadcastReceiver = broadcastReceiver; in Wrapper()
532 return broadcastReceiver; in getBroadcastReceiver()
DShadowContextWrapper.java91 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
92 getApplicationContext().unregisterReceiver(broadcastReceiver); in unregisterReceiver()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DContextWrapperTest.java42 BroadcastReceiver receiver = broadcastReceiver("Larry"); in registerReceiver_shouldRegisterForAllIntentFilterActions()
57 BroadcastReceiver larryReceiver = broadcastReceiver("Larry"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
60 BroadcastReceiver bobReceiver = broadcastReceiver("Bob"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
75 BroadcastReceiver receiver = broadcastReceiver("Larry"); in unregisterReceiver_shouldUnregisterReceiver()
91 BroadcastReceiver receiver = broadcastReceiver("Larry"); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
184 private BroadcastReceiver broadcastReceiver(final String name) { in broadcastReceiver() method in ContextWrapperTest