/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 203 public void sendBroadcast(Intent intent) { in sendBroadcast() method in BroadcastInterceptingContext 216 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in BroadcastInterceptingContext 217 sendBroadcast(intent); in sendBroadcast() 222 sendBroadcast(intent); in sendBroadcastMultiplePermissions() 228 sendBroadcast(intent); in sendBroadcastMultiplePermissions() 234 sendBroadcast(intent); in sendBroadcastAsUserMultiplePermissions() 239 sendBroadcast(intent); in sendBroadcastAsUser() 245 sendBroadcast(intent); in sendBroadcastAsUser() 251 sendBroadcast(intent); in sendBroadcastAsUser() 256 sendBroadcast(intent); in sendStickyBroadcast() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsStorageMonitorTest.java | 75 verify(mContextFixture.getTestDouble()).sendBroadcast(intentArgumentCaptor.capture()); in testEventIccFull() 90 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus() 103 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus() 121 mContextFixture.getTestDouble().sendBroadcast( in testRetrySmsMemoryStatus() 159 mContextFixture.getTestDouble().sendBroadcast( in testReportSmsMemoryStatusToIms() 172 mContextFixture.getTestDouble().sendBroadcast( in testReportSmsMemoryStatusToIms() 185 mContextFixture.getTestDouble().sendBroadcast( in testReportSmsMemoryStatusDuringRetry() 192 mContextFixture.getTestDouble().sendBroadcast( in testReportSmsMemoryStatusDuringRetry()
|
D | CarrierSignalAgentTest.java | 173 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 183 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 191 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 240 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 258 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 274 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 291 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 303 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 342 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 352 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() [all …]
|
D | TelephonyAdminReceiverTest.java | 65 mContext.sendBroadcast(new Intent(UserManager.ACTION_USER_RESTRICTIONS_CHANGED)); in test_nullIntent_noUpdate() 76 mContext.sendBroadcast(new Intent(UserManager.ACTION_USER_RESTRICTIONS_CHANGED)); in test_userRestrictionsNotChanged_noUpdate() 88 mContext.sendBroadcast(new Intent(UserManager.ACTION_USER_RESTRICTIONS_CHANGED)); in test_userRestrictionToggled_shouldUpdate() 91 mContext.sendBroadcast(new Intent(UserManager.ACTION_USER_RESTRICTIONS_CHANGED)); in test_userRestrictionToggled_shouldUpdate()
|
D | ContextFixture.java | 469 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextFixture.FakeContext 480 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextFixture.FakeContext 482 sendBroadcast(intent); in sendBroadcast() 486 public void sendBroadcast(Intent intent, String receiverPermission, Bundle initialExtras) { in sendBroadcast() method in ContextFixture.FakeContext 488 sendBroadcast(intent); in sendBroadcast() 494 sendBroadcast(intent); in sendOrderedBroadcast() 528 sendBroadcast(intent); in sendBroadcastAsUser() 534 sendBroadcast(intent); in sendBroadcastAsUser() 540 sendBroadcast(intent); in sendBroadcastAsUser() 546 sendBroadcast(intent); in sendBroadcastMultiplePermissions() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastSender.kt | 32 fun sendBroadcast(intent: Intent) { in sendBroadcast() method in com.android.systemui.broadcast.BroadcastSender 34 context.sendBroadcast(intent) in sendBroadcast() 43 fun sendBroadcast(intent: Intent, receiverPermission: String?) { in sendBroadcast() method 45 context.sendBroadcast(intent, receiverPermission) in sendBroadcast()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | DemoModeFragment.java | 171 getContext().sendBroadcast(intent); in startDemoMode() 180 getContext().sendBroadcast(intent); in startDemoMode() 184 getContext().sendBroadcast(intent); in startDemoMode() 189 getContext().sendBroadcast(intent); in startDemoMode() 195 getContext().sendBroadcast(intent); in startDemoMode() 199 getContext().sendBroadcast(intent); in startDemoMode()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | BroadcastPerfTest.java | 42 mContext.sendBroadcast(intent); in manifestFgBroadcastRunning() 58 mContext.sendBroadcast(intent); in manifestFgBroadcastNotRunning() 76 mContext.sendBroadcast(intent); in registeredFgBroadcast()
|
D | OomAdjPerfTest.java | 173 TargetPackageUtils.sendBroadcast(STUB_PACKAGE1_NAME, STUB_PACKAGE1_NAME); in runCUJWithOomComputationOnce() 174 TargetPackageUtils.sendBroadcast(STUB_PACKAGE2_NAME, STUB_PACKAGE2_NAME); in runCUJWithOomComputationOnce() 175 TargetPackageUtils.sendBroadcast(STUB_PACKAGE3_NAME, STUB_PACKAGE3_NAME); in runCUJWithOomComputationOnce() 185 TargetPackageUtils.sendBroadcast(STUB_PACKAGE1_NAME, STUB_PACKAGE1_NAME); in runCUJWithOomComputationOnce() 186 TargetPackageUtils.sendBroadcast(STUB_PACKAGE2_NAME, STUB_PACKAGE2_NAME); in runCUJWithOomComputationOnce() 187 TargetPackageUtils.sendBroadcast(STUB_PACKAGE3_NAME, STUB_PACKAGE3_NAME); in runCUJWithOomComputationOnce()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmInboundSmsHandlerTest.java | 270 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts() 288 verify(mContext, times(2 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts() 326 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testNewSms() 342 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumber_noBroadcastsSent() 360 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsWithUserLocked_notificationShown() 389 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumberWithUserLocked_noNotificationShown() 420 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSms_filterInvoked_noBroadcastsSent() 442 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSms_filterChaining_noBroadcastsSent() 464 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifyDataSmsIntentBroadcasts() 567 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testInjectSms() [all …]
|
/frameworks/base/errorprone/tests/res/android/content/ |
D | Context.java | 28 public void sendBroadcast(Intent intent) { in sendBroadcast() method in Context 32 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in Context
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
D | DemoModeController.java | 227 mContext.sendBroadcast(intent); in exitDemoMode() 248 mContext.sendBroadcast(intent); 261 mContext.sendBroadcast(intent); 274 mContext.sendBroadcast(intent); 300 mContext.sendBroadcast(intent); 313 mContext.sendBroadcast(intent); 325 mContext.sendBroadcast(intent); 337 mContext.sendBroadcast(intent);
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | MediaStoreSaver.java | 74 context.sendBroadcast(new Intent("android.hardware.action.NEW_PICTURE", fileUri)); in MediaStorageScan() 78 context.sendBroadcast(new Intent("com.android.camera.NEW_PICTURE", fileUri)); in MediaStorageScan() 83 context.sendBroadcast(intent); in MediaStorageScan()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManagerTest.java | 175 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback() 196 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback() 219 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager() 241 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveHapClientConnectionStateChanged_dispatchDeviceManager() 262 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChanged_shouldNotDispatchCallback() 283 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChangedWithoutProfile_shouldNotRefresh() 303 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChangedWithProfile_shouldRefresh()
|
D | BluetoothEventManagerTest.java | 172 mContext.sendBroadcast(mIntent); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback() 185 mContext.sendBroadcast(mIntent); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback() 365 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback() 377 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback() 390 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice() 403 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice() 416 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback() 624 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonAuthTimeout_showCorrectedErrorCode() 640 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonRemoteDeviceDown_showCorrectedErrorCode() 656 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonAuthRejected_showCorrectedErrorCode() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 107 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in correctlyReportsScreenInteractive() 110 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_ON)); in correctlyReportsScreenInteractive() 132 mContext.sendBroadcast(intentPluggedIn); in correctlyReportsCharging() 137 mContext.sendBroadcast(intentUnplugged); in correctlyReportsCharging() 167 mContext.sendBroadcast(intentPluggedIn); in correctlyTracksTimeOnBattery()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 61 broadcastSender.sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 64 verify(mockContext).sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 72 broadcastSender.sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock() 75 verify(mockContext).sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | MediaStoreSaver.java | 80 context.sendBroadcast(new Intent("android.hardware.action.NEW_PICTURE", fileUri)); in MediaStorageScan() 83 context.sendBroadcast(new Intent("com.android.camera.NEW_PICTURE", fileUri)); in MediaStorageScan() 87 context.sendBroadcast(intent); in MediaStorageScan()
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | MediaStoreSaver.java | 80 context.sendBroadcast(new Intent("android.hardware.action.NEW_PICTURE", fileUri)); in MediaStorageScan() 83 context.sendBroadcast(new Intent("com.android.camera.NEW_PICTURE", fileUri)); in MediaStorageScan() 87 context.sendBroadcast(intent); in MediaStorageScan()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 383 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED)); in ignore_testRegisteredReceivePermissionGranted() 408 getContext().sendBroadcast( in ignore_testRegisteredBroadcastPermissionGranted() 434 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_LOCAL_GRANTED)); in testLocalReceivePermissionGranted() 456 getContext().sendBroadcast( in ignore_testLocalBroadcastPermissionGranted() 480 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REMOTE_GRANTED)); in testRemoteReceivePermissionGranted() 502 getContext().sendBroadcast( in ignore_testRemoteBroadcastPermissionGranted() 526 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_FAIL_REGISTER)); in ignore_testReceiverCanNotRegister() 532 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_FAIL_BIND)); in testReceiverCanNotBind() 553 getContext().sendBroadcast(intent, null, options.toBundle()); in testBroadcastOption_interactive()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccStateChangedLauncherTest.java | 111 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet() 122 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet() 129 verify(mContext, times(broadcast_count)).sendBroadcast(any(Intent.class)); in testProvisioningPackageSet() 137 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | PendingReports.java | 207 sendBroadcast(); in approveReport() 232 sendBroadcast(); in denyReport() 356 sendBroadcast(receiver, currentAdminUser); in authorizeReportImpl() 381 sendBroadcast(receiver, user); in cancelReportImpl() 390 private void sendBroadcast() { in sendBroadcast() method in PendingReports 399 sendBroadcast(receiver, currentAdminUser); in sendBroadcast() 405 private void sendBroadcast(ComponentName receiver, int currentUser) { in sendBroadcast() method in PendingReports
|
/frameworks/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/ |
D | SuspendTestActivity.java | 47 sendBroadcast(reportStart); in onStart() 56 sendBroadcast(reportStop); in onStop()
|
D | SuspendTestReceiver.java | 59 context.sendBroadcast(reportSuspendIntent); in onReceive() 65 context.sendBroadcast(reportUnsuspendIntent); in onReceive()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 298 public void sendBroadcast(Intent intent) { in sendBroadcast() method in DpmMockContext 299 spiedContext.sendBroadcast(intent); in sendBroadcast() 303 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in DpmMockContext 304 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast() 325 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in DpmMockContext 326 spiedContext.sendBroadcast(intent, receiverPermission, options); in sendBroadcast() 330 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in DpmMockContext 331 spiedContext.sendBroadcast(intent, receiverPermission, appOp); in sendBroadcast()
|