Searched refs:intentFilter (Results 1 – 5 of 5) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | IntentFilterTest.java | 15 IntentFilter intentFilter = new IntentFilter(); in addDataScheme_shouldAddTheDataScheme() local 16 intentFilter.addDataScheme("http"); in addDataScheme_shouldAddTheDataScheme() 17 intentFilter.addDataScheme("ftp"); in addDataScheme_shouldAddTheDataScheme() 19 assertThat(intentFilter.getDataScheme(0), equalTo("http")); in addDataScheme_shouldAddTheDataScheme() 20 assertThat(intentFilter.getDataScheme(1), equalTo("ftp")); in addDataScheme_shouldAddTheDataScheme() 25 IntentFilter intentFilter = new IntentFilter(); in addDataAuthority_shouldAddTheDataAuthority() local 26 intentFilter.addDataAuthority("test.com", "8080"); in addDataAuthority_shouldAddTheDataAuthority() 27 intentFilter.addDataAuthority("example.com", "42"); in addDataAuthority_shouldAddTheDataAuthority() 29 assertThat(intentFilter.getDataAuthority(0).getHost(), equalTo("test.com")); in addDataAuthority_shouldAddTheDataAuthority() 30 assertThat(intentFilter.getDataAuthority(0).getPort(), equalTo(8080)); in addDataAuthority_shouldAddTheDataAuthority() [all …]
|
D | ContextWrapperTest.java | 43 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions() 58 contextWrapper.registerReceiver(larryReceiver, intentFilter("foo", "baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() 61 contextWrapper.registerReceiver(bobReceiver, intentFilter("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() 77 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in unregisterReceiver_shouldUnregisterReceiver() 93 …new ContextWrapper(Robolectric.application).registerReceiver(receiver, intentFilter("foo", "baz")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext() 192 private IntentFilter intentFilter(String... actions) {
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowApplication.java | 328 if (wrapper.intentFilter.matchAction(intent.getAction())) { in sendBroadcast() 416 Iterator<String> actions = registeredReceiver.intentFilter.actionsIterator(); in assertNoBroadcastListenersOfActionRegistered() 432 if (wrapper.intentFilter.matchAction(intent.getAction())) { in hasReceiverForIntent() 442 if (wrapper.intentFilter.matchAction(intent.getAction())) { in getReceiversForIntent() 520 public IntentFilter intentFilter; field in ShadowApplication.Wrapper 524 … public Wrapper(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, Context context) { in Wrapper() argument 526 this.intentFilter = intentFilter; in Wrapper() 536 return intentFilter; in getIntentFilter()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/ |
D | ApplicationResolverTest.java | 52 assertTrue(receivers.get(0).intentFilter.matchAction("com.xtremelabs.robolectric.ACTION1")); in shouldRegisterReceiversFromTheManifest()
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/ |
D | MockContext.java | 299 … public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) { in registerReceiver() argument 304 …nt registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, String s, Hand… in registerReceiver() argument
|