Home
last modified time | relevance | path

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

12345678910>>...28

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DActionReceiverTest.kt22 import android.content.IntentFilter
66 fun IntentFilter.matchesOther(it: IntentFilter): Boolean { in sameNotNull() method
81 private lateinit var registerFunction: BroadcastReceiver.(IntentFilter) -> Unit
93 private lateinit var intentFilterCaptor: ArgumentCaptor<IntentFilter>
121 any(IntentFilter::class.java)) in testStartsUnregistered()
126 val receiverData = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnFirstAdd()
133 assertTrue(IntentFilter(ACTION1).matchesOther(intentFilterCaptor.value)) in testRegistersOnFirstAdd()
138 val receiverData1 = ReceiverData(receiver1, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
139 val receiverData2 = ReceiverData(receiver2, IntentFilter(ACTION1), directExecutor, USER) in testRegistersOnlyOnce()
144 verify(registerFunction).invoke(sameNotNull(actionReceiver), any(IntentFilter::class.java)) in testRegistersOnlyOnce()
[all …]
DUserBroadcastDispatcherTest.kt21 import android.content.IntentFilter
76 private lateinit var intentFilter: IntentFilter in capture()
77 private lateinit var intentFilterOther: IntentFilter in capture()
108 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverRegistered()
121 intentFilter = IntentFilter(ACTION_1) in testDifferentActionReceiversForDifferentFlags()
139 intentFilter = IntentFilter(ACTION_1) in testDifferentActionReceiversForDifferentPermissions()
157 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverRegistered_logging()
168 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverUnregistered()
184 intentFilter = IntentFilter(ACTION_1) in testSingleReceiverUnregistered_logger()
198 intentFilter = IntentFilter(ACTION_1) in testRemoveReceiverReferences()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/statusbar/
DNoBroadcastContextWrapper.java23 import android.content.IntentFilter;
48 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
53 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
59 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
65 public Intent registerReceiver(@Nullable BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
74 @NonNull IntentFilter filter, @Nullable String broadcastPermission, in registerReceiverForAllUsers()
82 @NonNull IntentFilter filter, @Nullable String broadcastPermission, in registerReceiverForAllUsers()
90 IntentFilter filter, @Nullable String broadcastPermission, in registerReceiverAsUser()
98 IntentFilter filter, @Nullable String broadcastPermission, in registerReceiverAsUser()
115 final IntentFilter mIntentFilter;
[all …]
/frameworks/base/core/java/android/app/admin/
DIntentFilterPolicyKey.java27 import android.content.IntentFilter;
54 private final IntentFilter mFilter;
60 public IntentFilterPolicyKey(@NonNull String identifier, @NonNull IntentFilter filter) { in IntentFilterPolicyKey()
75 mFilter = source.readTypedObject(IntentFilter.CREATOR); in IntentFilterPolicyKey()
82 public IntentFilter getIntentFilter() { in getIntentFilter()
104 IntentFilter filter = readIntentFilterFromXml(parser); in readFromXml()
109 private IntentFilter readIntentFilterFromXml(TypedXmlPullParser parser) in readIntentFilterFromXml()
115 IntentFilter filter = new IntentFilter(); in readIntentFilterFromXml()
142 && IntentFilter.filterEquals(mFilter, other.mFilter); in equals()
/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()
49 in.readList(mFilters, getClass().getClassLoader(), android.content.IntentFilter.class); in InstantAppIntentFilter()
56 public List<IntentFilter> getFilters() { in getFilters()
/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 public 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/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.java32 import android.content.IntentFilter;
99 IntentFilter value = new IntentFilter(TEST_ACTION); in testRegister()
120 IntentFilter value = new IntentFilter(TEST_ACTION); in testUnregister()
162 IntentFilter value = new IntentFilter(TEST_ACTION); in testRelay()
181 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class)); in testRegisteredWithDispatcher_onMainThread()
183 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class)); in testRegisteredWithDispatcher_onMainThread()
193 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class), in testRegisteredWithDispatcher_onBackgroundThread()
196 .registerReceiver(any(BroadcastReceiver.class), any(IntentFilter.class)); in testRegisteredWithDispatcher_onBackgroundThread()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedIntentInfoImpl.java21 import android.content.IntentFilter;
44 private IntentFilter mIntentFilter = new IntentFilter();
84 public @NonNull IntentFilter getIntentFilter() { in getIntentFilter()
144 IntentFilter intentFilter = (IntentFilter) in.readTypedObject(IntentFilter.CREATOR); in ParsedIntentInfoImpl()
/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()
162 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, int flags) { in registerReceiver()
167 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
181 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DSysuiTestableContext.java21 import android.content.IntentFilter;
87 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { in registerReceiver()
97 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, int flags) { in registerReceiver()
107 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
118 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, in registerReceiver()
130 IntentFilter filter, String broadcastPermission, Handler scheduler) { in registerReceiverAsUser()
141 IntentFilter filter, String broadcastPermission, Handler scheduler, int flags) { in registerReceiverAsUser()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DWatchedIntentHandlingTest.java22 import android.content.IntentFilter;
39 IntentFilter i = new IntentFilter("TEST_ACTION"); in testWatchedIntentFilter()
97 IntentFilter i = new IntentFilter("TEST_ACTION"); in testPreferredActivity()
145 IntentFilter i = new IntentFilter("TEST_ACTION"); in testPreferredIntentResolver()
/frameworks/libs/systemui/toruslib/torus-wallpaper-settings/src/main/java/com/google/android/torus/settings/inlinecontrol/
DSliceConfigController.kt21 import android.content.IntentFilter
31 private val sliceIntentFilter: IntentFilter,
43 override fun onRegister(fire: Boolean): IntentFilter { in onRegister()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDockStateReader.java23 import android.content.IntentFilter;
35 private static final IntentFilter DOCK_INTENT_FILTER = new IntentFilter(
/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/packages/SystemUI/src/com/android/systemui/
DSliceBroadcastRelayHandler.java24 import android.content.IntentFilter;
70 IntentFilter filter = new IntentFilter(SliceBroadcastRelay.ACTION_REGISTER); in start()
89 IntentFilter filter = intent.getParcelableExtra(SliceBroadcastRelay.EXTRA_FILTER, in handleIntent()
90 IntentFilter.class); in handleIntent()
140 public void register(Context context, ComponentName receiver, IntentFilter filter) { in register()
/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/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/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DConnectivityPreferenceControllerTest.java31 import android.content.IntentFilter;
64 final ArgumentCaptor<IntentFilter> filterArgumentCaptor = in testBroadcastReceiver()
65 ArgumentCaptor.forClass(IntentFilter.class); in testBroadcastReceiver()
78 final IntentFilter filter = filterArgumentCaptor.getValue(); in testBroadcastReceiver()
/frameworks/base/services/people/java/com/android/server/people/data/
DConversationStatusExpirationBroadcastReceiver.java27 import android.content.IntentFilter;
73 static IntentFilter getFilter() { in getFilter()
74 IntentFilter conversationStatusFilter = in getFilter()
75 new IntentFilter(ConversationStatusExpirationBroadcastReceiver.ACTION); in getFilter()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/app/
DKeyguardLockController.kt23 import android.content.IntentFilter
45 private val userPresentIntentFilter: IntentFilter = IntentFilter(Intent.ACTION_USER_PRESENT)
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java26 import android.content.IntentFilter;
180 public void registerMyReceiver(IntentFilter filter, String permission) { in registerMyReceiver()
320 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testSetSticky()
336 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testClearSticky()
350 IntentFilter filter = new IntentFilter(LaunchpadActivity.BROADCAST_STICKY1); in testReplaceSticky()
381 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_GRANTED); in ignore_testRegisteredReceivePermissionGranted()
389 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), PERMISSION_DENIED); in testRegisteredReceivePermissionDenied()
406 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in ignore_testRegisteredBroadcastPermissionGranted()
416 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in testRegisteredBroadcastPermissionDenied()
537 registerMyReceiver(new IntentFilter(BROADCAST_REGISTERED), null); in testLocalUnregisterTwice()
/frameworks/base/services/core/java/com/android/server/location/injector/
DSystemScreenInteractiveHelper.java22 import android.content.IntentFilter;
49 IntentFilter screenIntentFilter = new IntentFilter(); in onSystemReady()

12345678910>>...28