/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/ |
D | BroadcastInterceptingContext.java | 176 public void sendBroadcast(Intent intent) { in sendBroadcast() method in BroadcastInterceptingContext 189 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in BroadcastInterceptingContext 190 sendBroadcast(intent); in sendBroadcast() 195 sendBroadcast(intent); in sendBroadcastMultiplePermissions() 201 sendBroadcast(intent); in sendBroadcastMultiplePermissions() 207 sendBroadcast(intent); in sendBroadcastAsUserMultiplePermissions() 212 sendBroadcast(intent); in sendBroadcastAsUser() 218 sendBroadcast(intent); in sendBroadcastAsUser() 223 sendBroadcast(intent); in sendStickyBroadcast() 228 sendBroadcast(intent); in sendStickyBroadcast() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierSignalAgentTest.java | 159 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 162 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyManifestReceivers() 168 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 176 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 211 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testLegacyConversionSupport() 223 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 241 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 257 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 274 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 286 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() [all …]
|
D | SmsStorageMonitorTest.java | 62 verify(mContextFixture.getTestDouble()).sendBroadcast(intentArgumentCaptor.capture()); in testEventIccFull() 77 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus() 90 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus()
|
D | ContextFixture.java | 449 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextFixture.FakeContext 460 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextFixture.FakeContext 462 sendBroadcast(intent); in sendBroadcast() 466 public void sendBroadcast(Intent intent, String receiverPermission, Bundle initialExtras) { in sendBroadcast() method in ContextFixture.FakeContext 468 sendBroadcast(intent); in sendBroadcast() 474 sendBroadcast(intent); in sendOrderedBroadcast() 508 sendBroadcast(intent); in sendBroadcastAsUser() 514 sendBroadcast(intent); in sendBroadcastAsUser() 520 sendBroadcast(intent); in sendBroadcastAsUser() 526 sendBroadcast(intent); in sendBroadcastMultiplePermissions() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastSender.kt | 35 fun sendBroadcast(intent: Intent) { in sendBroadcast() method 37 context.sendBroadcast(intent) in sendBroadcast() 46 fun sendBroadcast(intent: Intent, receiverPermission: String?) { in sendBroadcast() method in com.android.systemui.broadcast.BroadcastSender 48 context.sendBroadcast(intent, receiverPermission) in sendBroadcast() 112 context.sendBroadcast(Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)) in closeSystemDialogs()
|
/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/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 62 broadcastSender.sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 65 verify(mockContext).sendBroadcast(intent) in sendBroadcast_dispatchesWithWakelock() 73 broadcastSender.sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock() 76 verify(mockContext).sendBroadcast(intent, permission) in sendBroadcastWithPermission_dispatchesWithWakelock() 134 verify(mockContext).sendBroadcast(intentCaptor.capture()) in sendCloseSystemDialogs_dispatchesWithWakelock()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | BroadcastPerfTest.java | 42 mContext.sendBroadcast(intent); in manifestBroadcastRunning() 58 mContext.sendBroadcast(intent); in manifestBroadcastNotRunning() 76 mContext.sendBroadcast(intent); in registeredBroadcast()
|
D | OomAdjPerfTest.java | 170 TargetPackageUtils.sendBroadcast(STUB_PACKAGE1_NAME, STUB_PACKAGE1_NAME); in runCUJWithOomComputationOnce() 171 TargetPackageUtils.sendBroadcast(STUB_PACKAGE2_NAME, STUB_PACKAGE2_NAME); in runCUJWithOomComputationOnce() 172 TargetPackageUtils.sendBroadcast(STUB_PACKAGE3_NAME, STUB_PACKAGE3_NAME); in runCUJWithOomComputationOnce() 182 TargetPackageUtils.sendBroadcast(STUB_PACKAGE1_NAME, STUB_PACKAGE1_NAME); in runCUJWithOomComputationOnce() 183 TargetPackageUtils.sendBroadcast(STUB_PACKAGE2_NAME, STUB_PACKAGE2_NAME); in runCUJWithOomComputationOnce() 184 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() 327 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testNewSms() 344 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumber_noBroadcastsSent() 363 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsWithUserLocked_notificationShown() 393 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumberWithUserLocked_noNotificationShown() 425 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSms_filterInvoked_noBroadcastsSent() 448 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSms_filterChaining_noBroadcastsSent() 470 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifyDataSmsIntentBroadcasts() 576 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testInjectSms() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | BrickDeniedTest.java | 30 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); in testBrick() 31 getContext().sendBroadcast(new Intent("android.intent.action.BRICK")); in testBrick()
|
/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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 73 verify(mMockContext, times(1)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_firstCall_needWarning() 90 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_secondCall_needWarning() 104 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_thridCall_needWarning() 118 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_enable_firstCall_noWarning() 133 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_disable_firstCall_noWarning() 149 verify(mMockContext, times(0)).sendBroadcast(any(Intent.class)); in testSetPowerSaveMode_disable_firstCall_needWarning()
|
/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/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/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/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManagerTest.java | 163 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback() 184 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback() 206 mContext.sendBroadcast(mIntent); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager() 227 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChanged_shouldNotDispatchCallback() 248 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChangedWithoutProfile_shouldNotRefresh() 268 mContext.sendBroadcast(mIntent); in stateChangedHandler_receivePanConnectionStateChangedWithProfile_shouldRefresh()
|
D | BluetoothEventManagerTest.java | 140 mContext.sendBroadcast(mIntent); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback() 153 mContext.sendBroadcast(mIntent); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback() 179 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback() 191 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback() 204 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice() 217 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice() 230 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback() 408 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonAuthTimeout_showCorrectedErrorCode() 424 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonRemoteDeviceDown_showCorrectedErrorCode() 440 mContext.sendBroadcast(mIntent); in showUnbondMessage_reasonAuthRejected_showCorrectedErrorCode() [all …]
|
/frameworks/base/services/core/java/com/android/server/incident/ |
D | PendingReports.java | 197 sendBroadcast(); in approveReport() 222 sendBroadcast(); in denyReport() 310 sendBroadcast(receiver, primaryUser); in authorizeReportImpl() 335 sendBroadcast(receiver, primaryUser); in cancelReportImpl() 344 private void sendBroadcast() { in sendBroadcast() method in PendingReports 353 sendBroadcast(receiver, primaryUser); in sendBroadcast() 359 private void sendBroadcast(ComponentName receiver, int primaryUser) { in sendBroadcast() method in PendingReports
|
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/ |
D | TestJobService.java | 38 sendBroadcast(reportJobStartIntent); in onStartJob() 47 sendBroadcast(reportJobStopIntent); in onStopJob()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | BroadcastTest.java | 376 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED)); in testRegisteredReceivePermissionGranted() 401 getContext().sendBroadcast( in testRegisteredBroadcastPermissionGranted() 427 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_LOCAL_GRANTED)); in testLocalReceivePermissionGranted() 449 getContext().sendBroadcast( in testLocalBroadcastPermissionGranted() 473 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_REMOTE_GRANTED)); in testRemoteReceivePermissionGranted() 495 getContext().sendBroadcast( in testRemoteBroadcastPermissionGranted() 519 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_FAIL_REGISTER)); in testReceiverCanNotRegister() 525 getContext().sendBroadcast(makeBroadcastIntent(BROADCAST_FAIL_BIND)); in testReceiverCanNotBind()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccStateChangedLauncherTest.java | 110 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet() 121 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet() 128 verify(mContext, times(broadcast_count)).sendBroadcast(any(Intent.class)); in testProvisioningPackageSet() 136 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
|
/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()
|