Home
last modified time | relevance | path

Searched refs:intentFilter (Results 1 – 20 of 20) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DIntentFilterTest.java15 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 …]
DContextWrapperTest.java43 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/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowApplication.java328 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/webrtc/talk/app/webrtc/java/android/org/webrtc/
DNetworkMonitorAutoDetect.java262 private final IntentFilter intentFilter; field in NetworkMonitorAutoDetect
297 intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in NetworkMonitorAutoDetect()
333 context.registerReceiver(this, intentFilter); in registerReceiver()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
DApplicationResolverTest.java52 assertTrue(receivers.get(0).intentFilter.matchAction("com.xtremelabs.robolectric.ACTION1")); in shouldRegisterReceiversFromTheManifest()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java299 … public Intent registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) { in registerReceiver() argument
304 …nt registerReceiver(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter, String s, Hand… in registerReceiver() argument
/external/robolectric/v3/
Dshadows-support-v4-3.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ org/ ...
Drobolectric-3.1-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/robolectric/ org/ ...
/external/robolectric/v3/runtime/
Dshadows-core-3.1-SNAPSHOT-22.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dshadows-core-3.1-SNAPSHOT-19.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dshadows-core-3.1-SNAPSHOT-16.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dshadows-core-3.1-SNAPSHOT-21.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dshadows-core-3.1-SNAPSHOT-18.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dshadows-core-3.1-SNAPSHOT-17.jarMETA-INF/ META-INF/MANIFEST.MF linux-x86_64/ linux-x86_64/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...