Home
last modified time | relevance | path

Searched refs:sendBroadcastAsUser (Results 1 – 25 of 159) sorted by relevance

1234567

/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DBroadcastSender.kt54 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/
DBroadcastSenderTest.kt82 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/
DDpmMockContext.java366 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()
DNetworkEventTest.java65 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/
DSliceBroadcastRelay.java66 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/
DBluetoothEventManagerIntegTest.java108 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/
DBroadcastInterceptingContext.java238 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/
DSystemAppUpdateTrackerTest.java213 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/
DSystemServerAdapter.java71 mContext.sendBroadcastAsUser( in sendMicrophoneMuteChangedIntent()
89 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendDeviceBecomingNoisyIntent()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPermissionManager.java99 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in usbDeviceRemoved()
118 mContext.sendBroadcastAsUser(intent, UserHandle.ALL); in usbAccessoryRemoved()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsHelper.java41 context.sendBroadcastAsUser( in sendStatsdReadyBroadcast()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java136 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/
DBatterySaverController.java469 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/
DPersistentDataStore.java218 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/
DRavenwoodBaseContext.java406 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/
DMusicFxHelperTest.java127 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/
DDomainVerificationProxyTest.kt89 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/
DMediaResourceMonitorService.java76 getContext().sendBroadcastAsUser(intent, userHandle, in notifyResourceGranted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/dialog/
DAddUserDialog.kt67 broadcastSender.sendBroadcastAsUser( in onClick()
/frameworks/base/core/java/android/content/
DContextWrapper.java602 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/
DApplicationContext.java658 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/
DDreamController.java180 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/
DEmergencyAffordanceServiceTest.java408 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in sendBroadcastNetworkCountryChanged()
444 mServiceContext.sendBroadcastAsUser(intent, UserHandle.ALL); in setAirplaneMode()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java248 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/
DDomainVerificationProxyV2.java93 mContext.sendBroadcastAsUser(intent, UserHandle.SYSTEM, null, options.toBundle()); in runMessage()

1234567