/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastDispatcherTest.kt | 72 private lateinit var broadcastReceiver: BroadcastReceiver in capture() variable in com.android.systemui.broadcast.BroadcastDispatcherTest 117 broadcastDispatcher.registerReceiverWithHandler(broadcastReceiver, intentFilter, in testAddingReceiverToCorrectUBR() 126 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR() 136 broadcastDispatcher.registerReceiver(broadcastReceiver, intentFilter, executor, user0) in testAddingReceiverToCorrectUBR_executor() 144 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR_executor() 154 broadcastDispatcher.registerReceiverWithHandler(broadcastReceiver, intentFilter, in testRemovingReceiversRemovesFromAllUBR() 156 broadcastDispatcher.registerReceiverWithHandler(broadcastReceiver, intentFilter, in testRemovingReceiversRemovesFromAllUBR() 159 broadcastDispatcher.unregisterReceiver(broadcastReceiver) in testRemovingReceiversRemovesFromAllUBR() 163 verify(mockUBRUser0).unregisterReceiver(broadcastReceiver) in testRemovingReceiversRemovesFromAllUBR() 164 verify(mockUBRUser1).unregisterReceiver(broadcastReceiver) in testRemovingReceiversRemovesFromAllUBR() [all …]
|
D | UserBroadcastDispatcherTest.kt | 61 private lateinit var broadcastReceiver: BroadcastReceiver in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest 94 val receiverData = ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE) in testSingleReceiverRegistered() 109 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE)) in testSingleReceiverRegistered_logging() 112 verify(logger).logReceiverRegistered(USER_HANDLE.identifier, broadcastReceiver) in testSingleReceiverRegistered_logging() 120 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE)) in testSingleReceiverUnregistered() 123 userBroadcastDispatcher.unregisterReceiver(broadcastReceiver) in testSingleReceiverUnregistered() 128 verify(actionReceiver)?.removeReceiver(broadcastReceiver) in testSingleReceiverUnregistered() 136 ReceiverData(broadcastReceiver, intentFilter, fakeExecutor, USER_HANDLE)) in testSingleReceiverUnregistered_logger() 139 userBroadcastDispatcher.unregisterReceiver(broadcastReceiver) in testSingleReceiverUnregistered_logger() 142 verify(logger).logReceiverUnregistered(USER_HANDLE.identifier, broadcastReceiver) in testSingleReceiverUnregistered_logger() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | DefaultBroadcastReceiverBinder.java | 45 ActionProxyReceiver broadcastReceiver); in bindActionProxyReceiver() argument 54 DeleteScreenshotReceiver broadcastReceiver); in bindDeleteScreenshotReceiver() argument 63 SmartActionsReceiver broadcastReceiver); in bindSmartActionsReceiver() argument 72 MediaOutputDialogReceiver broadcastReceiver); in bindMediaOutputDialogReceiver() argument 81 PeopleSpaceWidgetPinnedReceiver broadcastReceiver); in bindPeopleSpaceWidgetPinnedReceiver() argument 90 PeopleSpaceWidgetProvider broadcastReceiver); in bindPeopleSpaceWidgetProvider() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverySnapshotListenersStorageTest.java | 80 BroadcastReceiver broadcastReceiver = new BroadcastReceiver() { in setSnapshotListener_doesNotRepeatedlyInvokeListener() local 86 context.registerReceiver(broadcastReceiver, new IntentFilter(TEST_INTENT_ACTION)); in setSnapshotListener_doesNotRepeatedlyInvokeListener() 92 context.unregisterReceiver(broadcastReceiver); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 273 TestBroadcastReceiver broadcastReceiver = new TestBroadcastReceiver(); in testResult() local 281 null, broadcastReceiver, null, 1, "foo", map); in testResult() 282 while (!broadcastReceiver.mHaveResult) { in testResult() 292 assertEquals("Incorrect code: " + broadcastReceiver.getResultCode(), in testResult() 293 3, broadcastReceiver.getResultCode()); in testResult() 295 assertEquals("bar", broadcastReceiver.getResultData()); in testResult() 297 Bundle resultExtras = broadcastReceiver.getResultExtras(false); in testResult()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/demomode/ |
D | DemoModeController.kt | 83 context.registerReceiverAsUser(broadcastReceiver, UserHandle.ALL, demoFilter, in <lambda>() 220 private val broadcastReceiver = object : BroadcastReceiver() { in <lambda>() constant
|
/frameworks/base/media/java/android/media/session/ |
D | ISession.aidl | 39 void setMediaButtonBroadcastReceiver(in ComponentName broadcastReceiver); in setMediaButtonBroadcastReceiver() argument
|
D | MediaSession.java | 306 public void setMediaButtonBroadcastReceiver(@Nullable ComponentName broadcastReceiver) { in setMediaButtonBroadcastReceiver() argument 308 if (broadcastReceiver != null) { in setMediaButtonBroadcastReceiver() 309 if (!TextUtils.equals(broadcastReceiver.getPackageName(), in setMediaButtonBroadcastReceiver() 315 mBinder.setMediaButtonBroadcastReceiver(broadcastReceiver); in setMediaButtonBroadcastReceiver()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaButtonReceiverHolder.java | 131 public static MediaButtonReceiverHolder create(int userId, ComponentName broadcastReceiver) { in create() argument 132 return new MediaButtonReceiverHolder(userId, null, broadcastReceiver, in create()
|
/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/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | RollbackTest.java | 133 RollbackBroadcastReceiver broadcastReceiver = new RollbackBroadcastReceiver(); in testBasic() local 171 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic() 186 Intent broadcast = broadcastReceiver.poll(5, TimeUnit.SECONDS); in testBasic() 188 assertThat(broadcastReceiver.poll(0, TimeUnit.SECONDS)).isNull(); in testBasic() 199 broadcastReceiver.unregister(); in testBasic() 674 RollbackBroadcastReceiver broadcastReceiver = new RollbackBroadcastReceiver(); in testRollbackBroadcastRestrictions() local 685 assertThat(broadcastReceiver.poll(5, TimeUnit.SECONDS)).isNull(); in testRollbackBroadcastRestrictions() 689 broadcastReceiver.unregister(); in testRollbackBroadcastRestrictions()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ContextFixture.java | 413 for (BroadcastReceiver broadcastReceiver : in sendBroadcast() 415 broadcastReceiver.onReceive(mContext, intent); in sendBroadcast()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | DataManager.java | 620 BroadcastReceiver broadcastReceiver = new PerUserBroadcastReceiver(userId); in setupUser() local 621 mBroadcastReceivers.put(userId, broadcastReceiver); in setupUser() 623 broadcastReceiver, UserHandle.of(userId), intentFilter, null, null); in setupUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 1007 BroadcastReceiver broadcastReceiver) { in unregisterReceiver() argument 1008 assertEquals(mBroadcastReceiver, broadcastReceiver); in unregisterReceiver()
|