/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastSender.kt | 54 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle) { in sendBroadcastAsUser() method 56 context.sendBroadcastAsUser(intent, userHandle) in sendBroadcastAsUser() 65 fun sendBroadcastAsUser(intent: Intent, userHandle: UserHandle, receiverPermission: String?) { in sendBroadcastAsUser() method 67 context.sendBroadcastAsUser(intent, userHandle, receiverPermission) in sendBroadcastAsUser() 76 fun sendBroadcastAsUser( in sendBroadcastAsUser() method 83 context.sendBroadcastAsUser(intent, userHandle, receiverPermission, options) in sendBroadcastAsUser() 92 fun sendBroadcastAsUser( in sendBroadcastAsUser() method in com.android.systemui.broadcast.BroadcastSender 99 context.sendBroadcastAsUser(intent, userHandle, receiverPermission, appOp) in sendBroadcastAsUser()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 82 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock() 85 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL) in sendBroadcastAsUser_dispatchesWithWakelock() 93 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL, permission) in sendBroadcastAsUserWithPermission_dispatchesWithWakelock() 96 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL, permission) in sendBroadcastAsUserWithPermission_dispatchesWithWakelock() 107 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL, permission, options) in sendBroadcastAsUserWithPermissionAndOptions_dispatchesWithWakelock() 110 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL, permission, options) in sendBroadcastAsUserWithPermissionAndOptions_dispatchesWithWakelock() 119 broadcastSender.sendBroadcastAsUser(intent, UserHandle.ALL, permission, 12) in sendBroadcastAsUserWithPermissionAndAppOp_dispatchesWithWakelock() 122 verify(mockContext).sendBroadcastAsUser(intent, UserHandle.ALL, permission, 12) in sendBroadcastAsUserWithPermissionAndAppOp_dispatchesWithWakelock()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 366 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() method in DpmMockContext 374 spiedContext.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser() 378 public void sendBroadcastAsUser(Intent intent, in sendBroadcastAsUser() method in DpmMockContext 380 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission, options); in sendBroadcastAsUser() 384 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) { in sendBroadcastAsUser() method in DpmMockContext 385 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser() 389 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() method in DpmMockContext 391 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission, appOp); in sendBroadcastAsUser()
|
D | NetworkEventTest.java | 65 doNothing().when(mSpiedDpmMockContext).sendBroadcastAsUser(any(Intent.class), in setUp() 145 verify(mSpiedDpmMockContext).sendBroadcastAsUser(intentCaptor.capture(), in fillHandlerWithFullBatchOfEvents()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | SliceBroadcastRelay.java | 66 context.sendBroadcastAsUser(registerBroadcast, UserHandle.SYSTEM); in registerReceiver() 83 context.sendBroadcastAsUser(registerBroadcast, UserHandle.SYSTEM); in unregisterReceivers()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/bluetooth/ |
D | BluetoothEventManagerIntegTest.java | 108 mContext.sendBroadcastAsUser(mTestIntent, mOtherUser.getUserHandle()); in registerAdapterReceiver_ifIntentFromAnotherUser_broadcastIsReceived() 130 mContext.sendBroadcastAsUser(mTestIntent, mOtherUser.getUserHandle()); in registerProfileReceiver_ifIntentFromAnotherUser_broadcastIsReceived()
|
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 238 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() method in BroadcastInterceptingContext 243 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() method in BroadcastInterceptingContext 249 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() method in BroadcastInterceptingContext
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locales/ |
D | SystemAppUpdateTrackerTest.java | 213 verify(mMockContext, times(1)).sendBroadcastAsUser(any(), any()); in testOnPackageUpdatedFinished_systemAppSecondUpdate_doesNothing() 231 verify(mMockContext, never()).sendBroadcastAsUser(any(), any()); in testOnPackageUpdatedFinished_notSystemApp_doesNothing() 249 verify(mMockContext, never()).sendBroadcastAsUser(any(), any()); in testOnPackageUpdatedFinished_noInstaller_doesNothing() 288 verify(mMockContext).sendBroadcastAsUser(captor.capture(), any(UserHandle.class)); in assertBroadcastSentToInstaller()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SystemServerAdapter.java | 71 mContext.sendBroadcastAsUser( in sendMicrophoneMuteChangedIntent() 89 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendDeviceBecomingNoisyIntent()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPermissionManager.java | 99 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in usbDeviceRemoved() 118 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in usbAccessoryRemoved()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsHelper.java | 41 context.sendBroadcastAsUser( in sendStatsdReadyBroadcast()
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 136 mContext.sendBroadcastAsUser(intent, new UserHandle(userHandle)); in requestPermission() 197 mContext.sendBroadcastAsUser(responseIntent, new UserHandle(userHandle)); in notifyPermissionResponse()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 469 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in handleBatterySaverStateChanged() 477 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in handleBatterySaverStateChanged() 483 mContext.sendBroadcastAsUser(intent, UserHandle.ALL, in handleBatterySaverStateChanged()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | PersistentDataStore.java | 218 mContext.sendBroadcastAsUser(new Intent( in broadcastChangesIfNeeded() 223 mContext.sendBroadcastAsUser(new Intent(TvInputManager.ACTION_BLOCKED_RATINGS_CHANGED), in broadcastChangesIfNeeded()
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodBaseContext.java | 406 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() method in RavenwoodBaseContext 411 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) { in sendBroadcastAsUser() method in RavenwoodBaseContext 416 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() method in RavenwoodBaseContext 422 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() method in RavenwoodBaseContext
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | MusicFxHelperTest.java | 127 verify(mMockContext, times(broadcast)).sendBroadcastAsUser(anyObject(), anyObject()); in openSessionWithResList() 155 verify(mMockContext, times(broadcast)).sendBroadcastAsUser(anyObject(), anyObject()); in closeSessionWithResList() 163 verify(mMockContext, times(broadcasts)).sendBroadcastAsUser(anyObject(), anyObject()); in sendMessage() 213 verify(mMockContext, times(0)).sendBroadcastAsUser(anyObject(), anyObject()); in testBroadcastIntentWithPackage() 220 verify(mMockContext, times(0)).sendBroadcastAsUser(anyObject(), anyObject()); in testBroadcastIntentWithPackage()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationProxyTest.kt | 89 whenever(sendBroadcastAsUser(any(), any(), any(), any<Bundle>())) in <lambda>() 234 verify(context, times(2)).sendBroadcastAsUser( in <lambda>() 273 verify(context, times(2)).sendBroadcastAsUser( in <lambda>() 451 verify(context).sendBroadcastAsUser( in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaResourceMonitorService.java | 76 getContext().sendBroadcastAsUser(intent, userHandle, in notifyResourceGranted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/ |
D | AddUserDialog.kt | 67 broadcastSender.sendBroadcastAsUser( in onClick()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 602 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() method in ContextWrapper 603 mBase.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser() 607 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() method in ContextWrapper 609 mBase.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser() 614 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() method in ContextWrapper 616 mBase.sendBroadcastAsUser(intent, user, receiverPermission, options); in sendBroadcastAsUser() 621 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() method in ContextWrapper 623 mBase.sendBroadcastAsUser(intent, user, receiverPermission, appOp); in sendBroadcastAsUser()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | ApplicationContext.java | 658 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() method in ApplicationContext 661 context.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser() 666 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) { in sendBroadcastAsUser() method in ApplicationContext 669 context.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser() 674 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() method in ApplicationContext 678 context.sendBroadcastAsUser(intent, user, receiverPermission, options); in sendBroadcastAsUser() 683 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() method in ApplicationContext 687 context.sendBroadcastAsUser(intent, user, receiverPermission, appOp); in sendBroadcastAsUser()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamController.java | 180 mContext.sendBroadcastAsUser(mCloseNotificationShadeIntent, UserHandle.ALL, in startDream() 373 mContext.sendBroadcastAsUser(mDreamingStoppedIntent, UserHandle.ALL, in stopDreamInstance() 424 mContext.sendBroadcastAsUser(mDreamingStartedIntent, UserHandle.ALL, in attach()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/ |
D | EmergencyAffordanceServiceTest.java | 408 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendBroadcastNetworkCountryChanged() 444 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in setAirplaneMode()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | SearchManagerService.java | 248 mContext.sendBroadcastAsUser(intent, new UserHandle(changingUserId)); in onFinishPackageChangesInternal() 284 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in onChange()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/proxy/ |
D | DomainVerificationProxyV2.java | 93 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM, null, options.toBundle()); in runMessage()
|