Home
last modified time | relevance | path

Searched refs:IntentFilter (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt22 import android.content.IntentFilter
65 fun IntentFilter.matchesOther(it: IntentFilter): Boolean { in sameNotNull() method
80 private lateinit var registerFunction: BroadcastReceiver.(IntentFilter) -> Unit
90 private lateinit var intentFilterCaptor: ArgumentCaptor<IntentFilter>
115 any(IntentFilter::class.java)) in testStartsUnregistered()
120 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnFirstAdd()
127 assertTrue(IntentFilter(ACTION1).matchesOther(intentFilterCaptor.value)) in testRegistersOnFirstAdd()
132 val receiverData1 = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
133 val receiverData2 = ReceiverData(receiver2, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
138 verify(registerFunction).invoke(sameNotNull(actionReceiver), any(IntentFilter::class.java)) in testRegistersOnlyOnce()
[all …]
DUserBroadcastDispatcherTest.kt21 import android.content.IntentFilter
71 private lateinit var intentFilter: IntentFilter in capture()
72 private lateinit var intentFilterOther: IntentFilter in capture()
93 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverRegistered()
106 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverRegistered_logging()
117 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverUnregistered()
133 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverUnregistered_logger()
147 intentFilter = IntentFilter(ACTION_1) in testRemoveReceiverReferences()
151 intentFilterOther = IntentFilter(ACTION_1) in testRemoveReceiverReferences()
DBroadcastDispatcherTest.kt21 import android.content.IntentFilter
76 private lateinit var intentFilter: IntentFilter in capture()
78 private lateinit var intentFilterOther: IntentFilter in capture()
197 val testFilter = IntentFilter() in testFilterMustContainActions()
203 val testFilter = IntentFilter(TEST_ACTION).apply { in testFilterMustNotContainDataScheme()
211 val testFilter = IntentFilter(TEST_ACTION).apply { in testFilterMustNotContainDataAuthority()
212 addDataAuthority(mock(IntentFilter.AuthorityEntry::class.java)) in testFilterMustNotContainDataAuthority()
219 val testFilter = IntentFilter(TEST_ACTION).apply { in testFilterMustNotContainDataPath()
227 val testFilter = IntentFilter(TEST_ACTION).apply { in testFilterMustNotContainDataType()
235 val testFilter = IntentFilter(TEST_ACTION).apply { in testFilterMustNotSetPriority()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DWatchedIntentFilter.java22 import android.content.IntentFilter;
76 protected IntentFilter mFilter;
83 mFilter = new IntentFilter(); in WatchedIntentFilter()
87 protected WatchedIntentFilter(IntentFilter f) { in WatchedIntentFilter()
88 mFilter = new IntentFilter(f); in WatchedIntentFilter()
101 mFilter = new IntentFilter(action); in WatchedIntentFilter()
109 throws IntentFilter.MalformedMimeTypeException { in WatchedIntentFilter()
110 mFilter = new IntentFilter(action, dataType); in WatchedIntentFilter()
123 public IntentFilter getIntentFilter() { in getIntentFilter()
276 throws IntentFilter.MalformedMimeTypeException { in addDataType()
[all …]
/frameworks/base/test-mock/api/
Dsystem-lint-baseline.txt2 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
6 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
8 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
10 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
12 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
14 …eceiverForAllUsers(android.content.BroadcastReceiver, android.content.IntentFilter, String, androi…
/frameworks/base/core/java/android/content/pm/
DInstantAppIntentFilter.java22 import android.content.IntentFilter;
37 private final List<IntentFilter> mFilters = new ArrayList<IntentFilter>();
39 public InstantAppIntentFilter(@Nullable String splitName, @NonNull List<IntentFilter> filters) { in InstantAppIntentFilter()
56 public List<IntentFilter> getFilters() { in getFilters()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java23 import android.content.IntentFilter;
39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED); in UsbDisconnectedReceiver()
47 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_ACCESSORY_DETACHED); in UsbDisconnectedReceiver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSliceBroadcastRelayHandlerTest.java31 import android.content.IntentFilter;
77 IntentFilter value = new IntentFilter(TEST_ACTION); in testRegister()
97 IntentFilter value = new IntentFilter(TEST_ACTION); in testUnregister()
136 IntentFilter value = new IntentFilter(TEST_ACTION); in testRelay()
152 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class)); in testRegisteredWithDispatcher()
154 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class)); in testRegisteredWithDispatcher()
DSysuiTestableContext.java20 import android.content.IntentFilter;
76 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
86 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
98 IntentFilter filter, String broadcastPermission, Handler scheduler) { in registerReceiverAsUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DWatchedIntentHandlingTest.java22 import android.content.IntentFilter;
37 IntentFilter i = new IntentFilter("TEST_ACTION"); in testWatchedIntentFilter()
95 IntentFilter i = new IntentFilter("TEST_ACTION"); in testPreferredActivity()
143 IntentFilter i = new IntentFilter("TEST_ACTION"); in testPreferredIntentResolver()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java23 import android.content.IntentFilter;
65 private final IntentFilter mFilter;
68 public BroadcastInterceptor(BroadcastReceiver receiver, IntentFilter filter, in BroadcastInterceptor()
124 return nextBroadcastIntent(new IntentFilter(action)); in nextBroadcastIntent()
127 public FutureIntent nextBroadcastIntent(IntentFilter filter) { in nextBroadcastIntent()
149 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
154 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java24 import android.content.IntentFilter;
177 public void registerMyReceiver(IntentFilter filter, String permission) { in registerMyReceiver()
313 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testSetSticky()
329 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testClearSticky()
343 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testReplaceSticky()
374 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_GRANTED); in testRegisteredReceivePermissionGranted()
382 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_DENIED); in testRegisteredReceivePermissionDenied()
399 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in testRegisteredBroadcastPermissionGranted()
409 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in testRegisteredBroadcastPermissionDenied()
530 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in testLocalUnregisterTwice()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java22 import android.content.IntentFilter;
72 final IntentFilter filter = new IntentFilter(); in onBootPhase()
76 filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); in onBootPhase()
/frameworks/base/tests/ActivityManagerPerfTests/test-app/src/com/android/frameworks/perftests/amteststestapp/
DTestApplication.java23 import android.content.IntentFilter;
48 IntentFilter intentFilter = new IntentFilter(Constants.ACTION_BROADCAST_REGISTERED_RECEIVE); in createRegisteredReceiver()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DDeviceDisconnectedReceiver.java23 import android.content.IntentFilter;
39 IntentFilter filter = new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED); in DeviceDisconnectedReceiver()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DConnectivityPreferenceControllerTest.java30 import android.content.IntentFilter;
63 final ArgumentCaptor<IntentFilter> filterArgumentCaptor = in testBroadcastReceiver()
64 ArgumentCaptor.forClass(IntentFilter.class); in testBroadcastReceiver()
77 final IntentFilter filter = filterArgumentCaptor.getValue(); in testBroadcastReceiver()
/frameworks/base/services/people/java/com/android/server/people/data/
DConversationStatusExpirationBroadcastReceiver.java27 import android.content.IntentFilter;
71 static IntentFilter getFilter() { in getFilter()
72 IntentFilter conversationStatusFilter = in getFilter()
73 new IntentFilter(ConversationStatusExpirationBroadcastReceiver.ACTION); in getFilter()
/frameworks/base/services/core/java/com/android/server/powerstats/
DBatteryTrigger.java22 import android.content.IntentFilter;
60 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in BatteryTrigger()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java22 import android.content.IntentFilter;
57 IntentFilter filter = new IntentFilter(SliceBroadcastRelay.ACTION_REGISTER); in start()
69 IntentFilter filter = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_FILTER); in handleIntent()
113 public void register(Context context, ComponentName receiver, IntentFilter filter) { in register()
DSystemUIApplication.java24 import android.content.IntentFilter;
96 IntentFilter bootCompletedFilter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); in onCreate()
97 bootCompletedFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); in onCreate()
127 IntentFilter localeChangedFilter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED); in onCreate()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemScreenInteractiveHelper.java22 import android.content.IntentFilter;
49 IntentFilter screenIntentFilter = new IntentFilter(); in onSystemReady()
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DBroadcastDispatcher.kt22 import android.content.IntentFilter
42 val filter: IntentFilter,
98 filter: IntentFilter, in registerReceiverWithHandler()
122 filter: IntentFilter, in registerReceiver()
137 private fun checkFilter(filter: IntentFilter) { in checkFilter()
DActionReceiver.kt22 import android.content.IntentFilter
47 private val registerAction: BroadcastReceiver.(IntentFilter) -> Unit,
84 private fun createFilter(): IntentFilter { in createFilter()
85 val filter = IntentFilter(action) in createFilter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingController.java24 import android.content.IntentFilter;
136 IntentFilter userFilter = new IntentFilter(Intent.ACTION_USER_SWITCHED); in startCountdown()
140 IntentFilter stateFilter = new IntentFilter(INTENT_UPDATE_STATE); in startCountdown()
/frameworks/base/services/core/java/com/android/server/audio/
DSystemServerAdapter.java26 import android.content.IntentFilter;
112 IntentFilter filter = new IntentFilter(); in registerUserStartedReceiver()
143 new IntentFilter(intentAction), /*broadcastPermission*/ null, /*scheduler*/ null); in broadcastProfileParentStickyIntent()

12345678910>>...21