Home
last modified time | relevance | path

Searched refs:intentFilter (Results 1 – 16 of 16) 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.java64 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in registerReceiver_shouldRegisterForAllIntentFilterActions()
80 contextWrapper.registerReceiver(larryReceiver, intentFilter("foo", "baz")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
83 contextWrapper.registerReceiver(bobReceiver, intentFilter("foo")); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver()
99 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), "validPermission", null); in sendBroadcast_shouldOnlySendIntentWithMatchingReceiverPermission()
127 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz"), null, handler); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
344 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in unregisterReceiver_shouldUnregisterReceiver()
361 new ContextWrapper(application).registerReceiver(receiver, intentFilter("foo", "baz")); in broadcastReceivers_shouldBeSharedAcrossContextsPerApplicationContext()
382 contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in sendStickyBroadcast_shouldDeliverIntentToAllRegisteredReceivers()
401 Intent sticker = contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in sendStickyBroadcast_shouldStickSentIntent()
414 Intent sticker = contextWrapper.registerReceiver(receiver, intentFilter("foo", "baz")); in afterSendStickyBroadcast_allSentIntentsShouldBeDeliveredToNewRegistrants()
[all …]
DShadowPackageManagerTest.java2362 IntentFilter intentFilter = intentFilters.get(0); in getIntentFiltersForActivity() local
2363 assertThat(intentFilter.getCategory(0)).isEqualTo(Intent.CATEGORY_DEFAULT); in getIntentFiltersForActivity()
2364 assertThat(intentFilter.getAction(0)).isEqualTo(Intent.ACTION_VIEW); in getIntentFiltersForActivity()
2365 assertThat(intentFilter.getDataPath(0).getPath()).isEqualTo("/testPath/test.jpeg"); in getIntentFiltersForActivity()
/external/dagger2/java/dagger/hilt/android/example/gradle/simple/app/src/sharedTest/java/dagger/hilt/android/example/gradle/simple/
DBroadcastReceiverTest.java52 IntentFilter intentFilter = new IntentFilter("test-action"); in verifyReceiverInjectedValue() local
53 context.registerReceiver(receiver, intentFilter); in verifyReceiverInjectedValue()
68 IntentFilter intentFilter = new IntentFilter("test-action"); in verifyBaseReceiverInjectedValue() local
69 context.registerReceiver(receiver, intentFilter); in verifyBaseReceiverInjectedValue()
84 IntentFilter intentFilter = new IntentFilter("test-action"); in verifyBaseReceiverIsNotDoubleInjected() local
85 context.registerReceiver(receiver, intentFilter); in verifyBaseReceiverIsNotDoubleInjected()
101 IntentFilter intentFilter = new IntentFilter("test-action"); in verifyComplexReceiverInjectedValue() local
102 context.registerReceiver(receiver, intentFilter); in verifyComplexReceiverInjectedValue()
/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.java570 IntentFilter intentFilter = matchIntentFilter(intent, provider.intents); in queryImplicitIntentContentProviders() local
571 if (intentFilter != null) { in queryImplicitIntentContentProviders()
587 IntentFilter intentFilter = matchIntentFilter(intent, activity.intents); in queryImplicitIntentActivities() local
588 if (intentFilter != null) { in queryImplicitIntentActivities()
589 resolveInfoList.add(buildResolveInfo(activity, intentFilter)); in queryImplicitIntentActivities()
604 IntentFilter intentFilter = matchIntentFilter(intent, service.intents); in queryImplicitIntentServices() local
605 if (intentFilter != null) { in queryImplicitIntentServices()
606 resolveInfoList.add(buildResolveInfo(service, intentFilter)); in queryImplicitIntentServices()
621 IntentFilter intentFilter = matchIntentFilter(intent, activity.intents); in queryImplicitIntentReceivers() local
622 if (intentFilter != null) { in queryImplicitIntentReceivers()
[all …]
DShadowInstrumentation.java225 Iterator<String> actions = registeredReceiver.intentFilter.actionsIterator(); in assertNoBroadcastListenersOfActionRegistered()
255 && wrapper.intentFilter.matchAction(intent.getAction())) { in getAppropriateWrappers()
257 wrapper.intentFilter.matchData(intent.getType(), intent.getScheme(), intent.getData()); in getAppropriateWrappers()
670 if (wrapper.intentFilter.matchAction(intent.getAction())) {
682 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/webrtc/sdk/android/api/org/webrtc/
DNetworkMonitorAutoDetect.java540 IntentFilter intentFilter = new IntentFilter(); in WifiDirectManagerDelegate() local
541 intentFilter.addAction(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION); in WifiDirectManagerDelegate()
542 intentFilter.addAction(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION); in WifiDirectManagerDelegate()
543 context.registerReceiver(this, intentFilter); in WifiDirectManagerDelegate()
622 private final IntentFilter intentFilter; field in NetworkMonitorAutoDetect
663 intentFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION); in NetworkMonitorAutoDetect()
751 context.registerReceiver(this, intentFilter); in registerReceiver()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioCapabilitiesReceiver.java96 IntentFilter intentFilter = new IntentFilter(AudioManager.ACTION_HDMI_AUDIO_PLUG); in register() local
99 receiver, intentFilter, /* broadcastPermission= */ null, handler); in register()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DCapabilityPolling.java275 IntentFilter intentFilter = new IntentFilter(); in registerForBroadcasts() local
276 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_AVAILABLE); in registerForBroadcasts()
277 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_UNAVAILABLE); in registerForBroadcasts()
278 intentFilter.addAction(RcsManager.ACTION_RCS_SERVICE_DIED); in registerForBroadcasts()
279 intentFilter.addAction(RcsPresence.ACTION_PUBLISH_STATE_CHANGED); in registerForBroadcasts()
280 intentFilter.addAction(SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED); in registerForBroadcasts()
281 mContext.registerReceiver(mReceiver, intentFilter); in registerForBroadcasts()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DPlayerNotificationManager.java365 private final IntentFilter intentFilter; field in PlayerNotificationManager
618 intentFilter = new IntentFilter(); in PlayerNotificationManager()
633 intentFilter.addAction(action); in PlayerNotificationManager()
640 intentFilter.addAction(action); in PlayerNotificationManager()
643 intentFilter.addAction(ACTION_DISMISS); in PlayerNotificationManager()
985 context.registerReceiver(notificationBroadcastReceiver, intentFilter); in startOrUpdateNotification()
/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()