Home
last modified time | relevance | path

Searched refs:broadcastReceiver (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DBroadcastDispatcherTest.kt84 private lateinit var broadcastReceiver: BroadcastReceiver in <lambda>() variable in com.android.systemui.broadcast.BroadcastDispatcherTest
134 broadcastDispatcher.registerReceiverWithHandler(broadcastReceiver, intentFilter, in <lambda>()
143 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in <lambda>()
153 broadcastDispatcher.registerReceiver(broadcastReceiver, intentFilter, mainExecutor, user0) in <lambda>()
161 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in <lambda>()
172 broadcastReceiver, intentFilter, mockHandler) in <lambda>()
177 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in <lambda>()
186 broadcastReceiver, intentFilter, mockHandler, flags = flag) in <lambda>()
191 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in <lambda>()
197 broadcastDispatcher.registerReceiver(broadcastReceiver, intentFilter) in <lambda>()
[all …]
DUserBroadcastDispatcherTest.kt64 private lateinit var broadcastReceiver: BroadcastReceiver in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest
109 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testSingleReceiverRegistered()
122 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testDifferentActionReceiversForDifferentFlags()
141 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION1") in testDifferentActionReceiversForDifferentPermissions()
143 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE, "PERMISSION2") in testDifferentActionReceiversForDifferentPermissions()
160 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverRegistered_logging()
163 verify(logger).logReceiverRegistered(USER_HANDLE.identifier, broadcastReceiver, FLAG) in testSingleReceiverRegistered_logging()
171 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE), FLAG) in testSingleReceiverUnregistered()
174 userBroadcastDispatcher.unregisterReceiver(broadcastReceiver) in testSingleReceiverUnregistered()
179 verify(actionReceiver)?.removeReceiver(broadcastReceiver) in testSingleReceiverUnregistered()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DPendingRemovalStore.kt25 fun tagForRemoval(broadcastReceiver: BroadcastReceiver, userId: Int) { in tagForRemoval()
26 logger.logTagForRemoval(userId, broadcastReceiver) in tagForRemoval()
28 pendingRemoval.add(userId, broadcastReceiver) in tagForRemoval()
32 fun isPendingRemoval(broadcastReceiver: BroadcastReceiver, userId: Int): Boolean { in isPendingRemoval()
34 pendingRemoval.contains(userId, broadcastReceiver) || in isPendingRemoval()
35 pendingRemoval.contains(UserHandle.USER_ALL, broadcastReceiver) in isPendingRemoval()
39 fun clearPendingRemoval(broadcastReceiver: BroadcastReceiver, userId: Int) { in clearPendingRemoval()
41 pendingRemoval.remove(userId, broadcastReceiver) in clearPendingRemoval()
43 logger.logClearedAfterRemoval(userId, broadcastReceiver) in clearPendingRemoval()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/broadcast/
DBroadcastEventController.kt33 private val broadcastReceiver: BroadcastReceiver = object : BroadcastReceiver() { in <lambda>() constant in com.google.android.torus.utils.broadcast.BroadcastEventController
64 registerReceiver(context, broadcastReceiver, filter) in <lambda>()
76 unregisterReceiver(context, broadcastReceiver) in <lambda>()
83 broadcastReceiver: BroadcastReceiver?, in <lambda>()
86 context.registerReceiver(broadcastReceiver, filter) in <lambda>()
89 protected fun unregisterReceiver(context: Context, broadcastReceiver: BroadcastReceiver?) { in <lambda>()
90 context.unregisterReceiver(broadcastReceiver) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DDefaultBroadcastReceiverBinder.java45 SmartActionsReceiver broadcastReceiver); in bindSmartActionsReceiver() argument
54 MediaOutputDialogReceiver broadcastReceiver); in bindMediaOutputDialogReceiver() argument
63 PeopleSpaceWidgetPinnedReceiver broadcastReceiver); in bindPeopleSpaceWidgetPinnedReceiver() argument
72 PeopleSpaceWidgetProvider broadcastReceiver); in bindPeopleSpaceWidgetProvider() argument
81 GuestResetOrExitSessionReceiver broadcastReceiver); in bindGuestResetOrExitSessionReceiver() argument
90 HearingDevicesDialogReceiver broadcastReceiver); in bindHearingDevicesDialogReceiver() argument
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/framework/common/
DBroadcastReceiverFlow.kt38 val broadcastReceiver = object : BroadcastReceiver() { in <lambda>() constant
44 registerReceiver(broadcastReceiver, intentFilter, Context.RECEIVER_VISIBLE_TO_INSTANT_APPS) in <lambda>()
46 awaitClose { unregisterReceiver(broadcastReceiver) } in <lambda>()
DBroadcastReceiverAsUserFlow.kt42 val broadcastReceiver = object : BroadcastReceiver() { in <lambda>() constant
48 broadcastReceiver, in <lambda>()
56 awaitClose { unregisterReceiver(broadcastReceiver) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsActivity.kt62 private lateinit var broadcastReceiver: BroadcastReceiver in <lambda>() variable in com.android.systemui.controls.ui.ControlsActivity
163 broadcastDispatcher.unregisterReceiver(broadcastReceiver) in <lambda>()
167 broadcastReceiver = object : BroadcastReceiver() { in <lambda>()
180 broadcastDispatcher.registerReceiver(broadcastReceiver, filter) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/stylus/
DStylusUsiPowerUiTest.kt73 private lateinit var broadcastReceiver: BroadcastReceiver variable in com.android.systemui.stylus.StylusUsiPowerUiTest
101 broadcastReceiver = stylusUsiPowerUi.receiver in setUp()
237 broadcastReceiver.onReceive(contextSpy, intent) in broadcastReceiver_clicked_hasInputDeviceId_startsUsiDetailsActivity()
251 broadcastReceiver.onReceive(contextSpy, intent) in broadcastReceiver_clicked_nullInputDeviceId_doesNotStartActivity()
259 broadcastReceiver.onReceive(contextSpy, intent) in broadcastReceiver_clicked_logsNotificationClicked()
274 broadcastReceiver.onReceive(contextSpy, intent) in broadcastReceiver_dismissed_logsNotificationDismissed()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java86 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in setSnapshotListener_doesNotRepeatedlyInvokeListener() local
92 context.registerReceiver(broadcastReceiver, new IntentFilter(TEST_INTENT_ACTION), in setSnapshotListener_doesNotRepeatedlyInvokeListener()
99 context.unregisterReceiver(broadcastReceiver); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DOverlayableSystemBooleanResourceWrapper.java93 final BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in create() local
102 userContext.registerReceiver(broadcastReceiver, intentFilter, in create()
105 cleanerRef.set(() -> userContext.unregisterReceiver(broadcastReceiver)); in create()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DFeatureFlagsClassicDebugTest.kt68 private lateinit var broadcastReceiver: BroadcastReceiver variable in com.android.systemui.flags.FeatureFlagsClassicDebugTest
94 broadcastReceiver = withArgCaptor { in setup()
301 broadcastReceiver.onReceive(mockContext, null) in broadcastReceiver_IgnoresInvalidData()
302 broadcastReceiver.onReceive(mockContext, Intent()) in broadcastReceiver_IgnoresInvalidData()
303 broadcastReceiver.onReceive(mockContext, Intent("invalid action")) in broadcastReceiver_IgnoresInvalidData()
304 broadcastReceiver.onReceive(mockContext, Intent(FlagManager.ACTION_SET_FLAG)) in broadcastReceiver_IgnoresInvalidData()
318 broadcastReceiver.onReceive( in intentWithId_NoValueKeyClears()
325 broadcastReceiver.onReceive( in intentWithId_NoValueKeyClears()
494 broadcastReceiver.onReceive(mockContext, intent) in setByBroadcast()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DAvalancheProvider.kt51 private val broadcastReceiver: BroadcastReceiver = constant in com.android.systemui.statusbar.notification.interruption.AvalancheProvider
76 broadcastDispatcher.registerReceiver(broadcastReceiver, intentFilter) in register()
/frameworks/base/core/tests/FileSystemUtilsTest/apk_extract_native_libs/src/android/test/extract/
DPunchExtractedLibTest.java46 BroadcastReceiver broadcastReceiver = in testPunchedNativeLibs_extractedLib() local
55 context.registerReceiver(broadcastReceiver, intentFilter, Context.RECEIVER_EXPORTED); in testPunchedNativeLibs_extractedLib()
/frameworks/base/core/tests/FileSystemUtilsTest/apk_embedded_native_libs/src/android/test/embedded/
DPunchEmbeddedLibTest.java46 BroadcastReceiver broadcastReceiver = in testPunchedNativeLibs_embeddedLib() local
56 context.registerReceiver(broadcastReceiver, intentFilter, Context.RECEIVER_EXPORTED); in testPunchedNativeLibs_embeddedLib()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java277 TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testResult() local
288 null, broadcastReceiver, null, 1, "foo", map); in testResult()
289 while (!broadcastReceiver.mHaveResult) { in testResult()
299 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), in testResult()
300 3, broadcastReceiver.getResultCode()); in testResult()
302 assertEquals("bar", broadcastReceiver.getResultData()); in testResult()
304 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testResult()
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java124 RollbackBroadcastReceiver broadcastReceiver = new RollbackBroadcastReceiver(); in testBasic() local
165 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic()
180 Intent broadcast = broadcastReceiver.poll(5, TimeUnit.SECONDS); in testBasic()
182 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic()
193 broadcastReceiver.unregister(); in testBasic()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutsModule.java39 KeyboardShortcutsReceiver broadcastReceiver); in bindKeyboardShortcutsReceiver() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/controller/
DWalletContextualSuggestionsControllerTest.kt63 @Captor private lateinit var broadcastReceiver: ArgumentCaptor<BroadcastReceiver> in <lambda>() variable in com.android.systemui.wallet.controller.WalletContextualSuggestionsControllerTest
201 capture(broadcastReceiver), in <lambda>()
211 broadcastReceiver.value.onReceive(mockContext, Intent(Intent.ACTION_SCREEN_ON)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserFileManagerImpl.kt93 private val broadcastReceiver = in <lambda>() constant
107 broadcastDispatcher.registerReceiver(broadcastReceiver, filter, backgroundExecutor) in <lambda>()
/frameworks/base/media/java/android/media/session/
DISession.aidl39 void setMediaButtonBroadcastReceiver(in ComponentName broadcastReceiver); in setMediaButtonBroadcastReceiver() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/
DDemoModeController.kt90 receiver = broadcastReceiver, in <lambda>()
245 private val broadcastReceiver = in <lambda>() constant
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java256 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in getCommitCallback() local
267 mContext.registerReceiver(broadcastReceiver, intentFilter, in getCommitCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DBiometricNotificationServiceTest.java108 BiometricNotificationBroadcastReceiver broadcastReceiver = in setUp() local
114 broadcastReceiver, in setUp()
/frameworks/base/services/core/java/com/android/server/media/
DMediaButtonReceiverHolder.java137 public static MediaButtonReceiverHolder create(int userId, ComponentName broadcastReceiver) { in create() argument
138 return new MediaButtonReceiverHolder(userId, null, broadcastReceiver, in create()

12