Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextWrapperTest.java63 BroadcastReceiver receiver = broadcastReceiver("Larry"); in registerReceiver_shouldRegisterForAllIntentFilterActions()
79 BroadcastReceiver larryReceiver = broadcastReceiver("Larry"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
82 BroadcastReceiver bobReceiver = broadcastReceiver("Bob"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
98 BroadcastReceiver receiver = broadcastReceiver("Larry"); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
126 BroadcastReceiver receiver = broadcastReceiver("Larry"); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
144 BroadcastReceiver lowReceiver = broadcastReceiver("Low"); in sendOrderedBroadcast_shouldReturnValues()
149 BroadcastReceiver highReceiver = broadcastReceiver("High"); in sendOrderedBroadcast_shouldReturnValues()
165 BroadcastReceiver lowReceiver = broadcastReceiver("Low"); in sendOrderedBroadcastAsUser_shouldReturnValues()
170 BroadcastReceiver highReceiver = broadcastReceiver("High"); in sendOrderedBroadcastAsUser_shouldReturnValues()
187 BroadcastReceiver lowReceiver = broadcastReceiver("Low"); in sendOrderedBroadcastAsUser_withAppOp_shouldReturnValues()
[all …]
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManager.java45 if (wrapper.broadcastReceiver == receiver) {
62 final BroadcastReceiver receiver = wrapper.broadcastReceiver;
85 public final BroadcastReceiver broadcastReceiver;
88 public Wrapper(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) {
89 this.broadcastReceiver = broadcastReceiver;
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DSimpleLogger.java66 public void registerReceiver(BroadcastReceiver broadcastReceiver) { in registerReceiver() argument
67 broadcastManager.registerReceiver(broadcastReceiver, new IntentFilter(LOG_INTENT)); in registerReceiver()
70 public void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
71 broadcastManager.unregisterReceiver(broadcastReceiver); in unregisterReceiver()
/external/dagger2/javatests/dagger/android/support/functional/
DInjectorsTest.java41 private TestBroadcastReceiver broadcastReceiver; field in InjectorsTest
61 broadcastReceiver = new TestBroadcastReceiver(); in setUp()
62 broadcastReceiver.onReceive(ApplicationProvider.getApplicationContext(), new Intent()); in setUp()
110 assertThat(broadcastReceiver.componentHierarchy) in componentStructureFollowsControllerStructure()
168 assertThat(broadcastReceiver.componentHierarchy) in allControllersAreDirectChildrenOfApplication()
220 assertThat(broadcastReceiver.componentHierarchy) in usesGeneratedModules()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplication.java259 public BroadcastReceiver broadcastReceiver; field in ShadowApplication.Wrapper
267 BroadcastReceiver broadcastReceiver, in Wrapper() argument
272 this.broadcastReceiver = broadcastReceiver; in Wrapper()
281 return broadcastReceiver; in getBroadcastReceiver()
DShadowInstrumentation.java235 + registeredReceiver.broadcastReceiver in assertNoBroadcastListenersOfActionRegistered()
270 final BroadcastReceiver receiver = wrapper.broadcastReceiver; in postIntent()
351 wrapper.broadcastReceiver.setPendingResult(result); in postIntent()
355 Shadow.extract(wrapper.broadcastReceiver); in postIntent()
651 void unregisterReceiver(BroadcastReceiver broadcastReceiver) {
656 if (wrapper.broadcastReceiver == broadcastReceiver) {
662 throw new IllegalArgumentException("Receiver not registered: " + broadcastReceiver);
DShadowContextImpl.java267 protected void unregisterReceiver(BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument
268 getShadowInstrumentation().unregisterReceiver(broadcastReceiver); in unregisterReceiver()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java279 …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
/external/dagger2/java/dagger/android/
DAndroidInjection.java140 public static void inject(BroadcastReceiver broadcastReceiver, Context context) { in inject() argument
141 checkNotNull(broadcastReceiver, "broadcastReceiver"); in inject()
152 inject(broadcastReceiver, (HasAndroidInjector) application); in inject()
/external/dagger2/java/dagger/hilt/android/migration/
DOptionalInjectCheck.java52 public static boolean wasInjectedByHilt(@NonNull BroadcastReceiver broadcastReceiver) { in wasInjectedByHilt() argument
53 return check(broadcastReceiver); in wasInjectedByHilt()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManagerTest.java122 assertEquals(receiver, capturedWrapper.broadcastReceiver); in testGetRegisteredBroadcastReceivers()