Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowIntentFilterTest.java16 IntentFilter intentFilter = new IntentFilter(action); in copyConstructorTest() local
17 IntentFilter copy = new IntentFilter(intentFilter); in copyConstructorTest()
30 IntentFilter intentFilter = new IntentFilter(); in addDataScheme_shouldAddTheDataScheme() local
31 intentFilter.addDataScheme("http"); in addDataScheme_shouldAddTheDataScheme()
32 intentFilter.addDataScheme("ftp"); in addDataScheme_shouldAddTheDataScheme()
34 assertThat(intentFilter.getDataScheme(0)).isEqualTo("http"); in addDataScheme_shouldAddTheDataScheme()
35 assertThat(intentFilter.getDataScheme(1)).isEqualTo("ftp"); in addDataScheme_shouldAddTheDataScheme()
40 IntentFilter intentFilter = new IntentFilter(); in addDataAuthority_shouldAddTheDataAuthority() local
41 intentFilter.addDataAuthority("test.com", "8080"); in addDataAuthority_shouldAddTheDataAuthority()
42 intentFilter.addDataAuthority("example.com", "42"); in addDataAuthority_shouldAddTheDataAuthority()
[all …]
DShadowContextWrapperTest.java59 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
75 contextWrapper.registerReceiver(larryReceiver, intentFilter("foo", "baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
78 contextWrapper.registerReceiver(bobReceiver, intentFilter("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
94 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), "validPermission", null); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
122 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), null, handler); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
253 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in unregisterReceiver_shouldUnregisterReceiver()
270 new ContextWrapper(application).registerReceiver(receiver, intentFilter("foo", "baz")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
291 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in sendStickyBroadcast_shouldDeliverIntentToAllRegisteredReceivers()
310 Intent sticker = contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in sendStickyBroadcast_shouldStickSentIntent()
323 Intent sticker = contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in afterSendStickyBroadcast_allSentIntentsShouldBeDeliveredToNewRegistrants()
[all …]
DShadowPackageManagerTest.java2322 IntentFilter intentFilter = intentFilters.get(0); in getIntentFiltersForActivity() local
2323 assertThat(intentFilter.getCategory(0)).isEqualTo(Intent.CATEGORY_DEFAULT); in getIntentFiltersForActivity()
2324 assertThat(intentFilter.getAction(0)).isEqualTo(Intent.ACTION_VIEW); in getIntentFiltersForActivity()
2325 assertThat(intentFilter.getDataPath(0).getPath()).isEqualTo("/testPath/test.jpeg"); in getIntentFiltersForActivity()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManager.java58 if (wrapper.intentFilter.matchAction(intent.getAction())) {
59 …final int match = wrapper.intentFilter.matchData(intent.getType(), intent.getScheme(), intent.getD…
86 public final IntentFilter intentFilter;
88 public Wrapper(BroadcastReceiver broadcastReceiver, IntentFilter intentFilter) {
90 this.intentFilter = intentFilter;
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplication.java260 public IntentFilter intentFilter; field in ShadowApplication.Wrapper
268 IntentFilter intentFilter, in Wrapper() argument
273 this.intentFilter = intentFilter; in Wrapper()
285 return intentFilter; in getIntentFilter()
DShadowApplicationPackageManager.java549 IntentFilter intentFilter = matchIntentFilter(intent, provider.intents); in queryImplicitIntentContentProviders() local
550 if (intentFilter != null) { in queryImplicitIntentContentProviders()
566 IntentFilter intentFilter = matchIntentFilter(intent, activity.intents); in queryImplicitIntentActivities() local
567 if (intentFilter != null) { in queryImplicitIntentActivities()
568 resolveInfoList.add(buildResolveInfo(activity, intentFilter)); in queryImplicitIntentActivities()
583 IntentFilter intentFilter = matchIntentFilter(intent, service.intents); in queryImplicitIntentServices() local
584 if (intentFilter != null) { in queryImplicitIntentServices()
585 resolveInfoList.add(buildResolveInfo(service, intentFilter)); in queryImplicitIntentServices()
600 IntentFilter intentFilter = matchIntentFilter(intent, activity.intents); in queryImplicitIntentReceivers() local
601 if (intentFilter != null) { in queryImplicitIntentReceivers()
[all …]
DShadowInstrumentation.java220 Iterator<String> actions = registeredReceiver.intentFilter.actionsIterator(); in assertNoBroadcastListenersOfActionRegistered()
250 && wrapper.intentFilter.matchAction(intent.getAction())) { in getAppropriateWrappers()
252 wrapper.intentFilter.matchData(intent.getType(), intent.getScheme(), intent.getData()); in getAppropriateWrappers()
665 if (wrapper.intentFilter.matchAction(intent.getAction())) {
677 if (wrapper.intentFilter.matchAction(intent.getAction())) {
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/
DBluetoothMapClientFacade.java79 IntentFilter intentFilter = new IntentFilter(); in BluetoothMapClientFacade() local
80 intentFilter.addAction(BluetoothMapClient.ACTION_MESSAGE_RECEIVED); in BluetoothMapClientFacade()
81 intentFilter.addAction( in BluetoothMapClientFacade()
83 intentFilter.addAction( in BluetoothMapClientFacade()
85 mService.registerReceiver(mNotificationReceiver, intentFilter); in BluetoothMapClientFacade()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowLocalBroadcastManagerTest.java63 IntentFilter intentFilter = new IntentFilter("com.foo"); in shouldSendBroadcastsWithDataScheme() local
64 intentFilter.addDataScheme("http"); in shouldSendBroadcastsWithDataScheme()
65 instance.registerReceiver(receiver, intentFilter); in shouldSendBroadcastsWithDataScheme()
123 assertEquals(filter, capturedWrapper.intentFilter); in testGetRegisteredBroadcastReceivers()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DCapabilityPolling.java246 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/
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/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-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseCreateApplicationTest.java80 …assertThat(receivers.get(0).intentFilter.matchAction("org.robolectric.ACTION_SUPERSET_PACKAGE")).i… in shouldRegisterReceiversFromTheManifest()