/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastDispatcherTest.kt | 84 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 …]
|
D | UserBroadcastDispatcherTest.kt | 64 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/ |
D | PendingRemovalStore.kt | 25 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/ |
D | BroadcastEventController.kt | 33 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/ |
D | DefaultBroadcastReceiverBinder.java | 45 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/ |
D | BroadcastReceiverFlow.kt | 38 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>()
|
D | BroadcastReceiverAsUserFlow.kt | 42 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/ |
D | ControlsActivity.kt | 62 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/ |
D | StylusUsiPowerUiTest.kt | 73 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/ |
D | RecoverySnapshotListenersStorageTest.java | 86 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/ |
D | OverlayableSystemBooleanResourceWrapper.java | 93 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/ |
D | FeatureFlagsClassicDebugTest.kt | 68 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/ |
D | AvalancheProvider.kt | 51 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/ |
D | PunchExtractedLibTest.java | 46 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/ |
D | PunchEmbeddedLibTest.java | 46 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/ |
D | BroadcastTest.java | 277 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/ |
D | RollbackTest.java | 124 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/ |
D | KeyboardShortcutsModule.java | 39 KeyboardShortcutsReceiver broadcastReceiver); in bindKeyboardShortcutsReceiver() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/controller/ |
D | WalletContextualSuggestionsControllerTest.kt | 63 @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/ |
D | UserFileManagerImpl.kt | 93 private val broadcastReceiver = in <lambda>() constant in com.android.systemui.settings.UserFileManagerImpl 107 broadcastDispatcher.registerReceiver(broadcastReceiver, filter, backgroundExecutor) in <lambda>()
|
/frameworks/base/media/java/android/media/session/ |
D | ISession.aidl | 39 void setMediaButtonBroadcastReceiver(in ComponentName broadcastReceiver); in setMediaButtonBroadcastReceiver() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeController.kt | 90 receiver = broadcastReceiver, in <lambda>() 245 private val broadcastReceiver = in <lambda>() constant in com.android.systemui.demomode.DemoModeController
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | PackageInstallerImpl.java | 256 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in getCommitCallback() local 267 mContext.registerReceiver(broadcastReceiver, intentFilter, in getCommitCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | BiometricNotificationServiceTest.java | 108 BiometricNotificationBroadcastReceiver broadcastReceiver = in setUp() local 114 broadcastReceiver, in setUp()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaButtonReceiverHolder.java | 137 public static MediaButtonReceiverHolder create(int userId, ComponentName broadcastReceiver) { in create() argument 138 return new MediaButtonReceiverHolder(userId, null, broadcastReceiver, in create()
|