Searched refs:broadcastReceiver (Results 1 – 4 of 4) sorted by relevance
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowApplication.java | 329 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()
|
D | ShadowContextWrapper.java | 91 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument 92 getApplicationContext().unregisterReceiver(broadcastReceiver); in unregisterReceiver()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | ContextWrapperTest.java | 42 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
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockContext.java | 279 …oid sendOrderedBroadcast(Intent intent, String s, BroadcastReceiver broadcastReceiver, Handler han… in sendOrderedBroadcast() argument 289 …public void sendStickyOrderedBroadcast(Intent intent, BroadcastReceiver broadcastReceiver, Handler… in sendStickyOrderedBroadcast() argument 299 … public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) { in registerReceiver() argument 304 …public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, Str… in registerReceiver() argument 309 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
|