Searched refs:intentFilter (Results 1 – 7 of 7) sorted by relevance
/external/robolectric/v1/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/v1/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/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
D | CapabilityPolling.java | 246 IntentFilter intentFilter = new IntentFilter(); in registerForBroadcasts() local 247 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_AVAILABLE); in registerForBroadcasts() 248 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_UNAVAILABLE); in registerForBroadcasts() 249 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_DIED); in registerForBroadcasts() 250 intentFilter.addAction(RcsPresence.ACTION_PUBLISH_STATE_CHANGED); in registerForBroadcasts() 251 intentFilter.addAction(ImsConfig.ACTION_IMS_CONFIG_CHANGED); in registerForBroadcasts() 252 intentFilter.addAction(TelephonyIntents.ACTION_SIM_STATE_CHANGED); in registerForBroadcasts() 253 mContext.registerReceiver(mReceiver, intentFilter); in registerForBroadcasts()
|
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
D | NetworkMonitorAutoDetect.java | 262 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/ |
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
|