Searched refs:broadcastReceiver (Results 1 – 3 of 3) sorted by relevance
329 wrapper.broadcastReceiver.onReceive(realApplication, intent); in sendBroadcast()378 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument383 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.Wrapper524 … public Wrapper(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, Context context) { in Wrapper() argument525 this.broadcastReceiver = broadcastReceiver; in Wrapper()532 return broadcastReceiver; in getBroadcastReceiver()
91 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument92 getApplicationContext().unregisterReceiver(broadcastReceiver); in unregisterReceiver()
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