Home
last modified time | relevance | path

Searched refs:sendBroadcast (Results 1 – 25 of 137) sorted by relevance

123456

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierSignalAgentTest.java91 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
94 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyManifestReceivers()
100 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
108 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
133 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
136 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotifyRuntimeReceivers()
142 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
152 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
173 mContext.sendBroadcast(new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED)); in testNotify()
181 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
[all …]
DSmsStorageMonitorTest.java62 verify(mContextFixture.getTestDouble()).sendBroadcast(intentArgumentCaptor.capture()); in testEventIccFull()
77 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus()
90 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus()
DMultiSimSettingControllerTest.java187 verify(mContext, never()).sendBroadcast(any()); in testTestSubInfoChangeBeforeAllSubReady()
234 verify(mContext, never()).sendBroadcast(any()); in testSingleActiveDsds()
258 verify(mContext, never()).sendBroadcast(any()); in testActivatingSecondSub()
386 verify(mContext, never()).sendBroadcast(any()); in testDsdsGrouping()
400 verify(mContext, never()).sendBroadcast(any()); in testDsdsGrouping()
421 verify(mContext, never()).sendBroadcast(any()); in testDsdsGrouping()
442 verify(mContext, never()).sendBroadcast(any()); in testCbrs()
480 verify(mContext, never()).sendBroadcast(any()); in testGroupedCbrs()
502 verify(mContext, never()).sendBroadcast(any()); in testGroupedCbrs()
507 verify(mContext).sendBroadcast(intentCapture.capture()); in captureBroadcastIntent()
[all …]
DContextFixture.java350 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextFixture.FakeContext
361 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextFixture.FakeContext
363 sendBroadcast(intent); in sendBroadcast()
369 sendBroadcast(intent); in sendOrderedBroadcast()
403 sendBroadcast(intent); in sendBroadcastAsUser()
409 sendBroadcast(intent); in sendBroadcastAsUser()
415 sendBroadcast(intent); in sendBroadcastAsUser()
428 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
441 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
456 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java155 public void sendBroadcast(Intent intent) { in sendBroadcast() method in BroadcastInterceptingContext
168 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in BroadcastInterceptingContext
169 sendBroadcast(intent); in sendBroadcast()
174 sendBroadcast(intent); in sendBroadcastMultiplePermissions()
180 sendBroadcast(intent); in sendBroadcastAsUserMultiplePermissions()
185 sendBroadcast(intent); in sendBroadcastAsUser()
191 sendBroadcast(intent); in sendBroadcastAsUser()
196 sendBroadcast(intent); in sendStickyBroadcast()
201 sendBroadcast(intent); in sendStickyBroadcastAsUser()
206 sendBroadcast(intent); in sendStickyBroadcastAsUser()
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/
DVersionedBroadcastListenerTest.java90 private void sendBroadcast() { in sendBroadcast() method in VersionedBroadcastListenerTest
100 sendBroadcast(); in testBasicListening()
110 sendBroadcast(); in testBroadcastsBeforeStartAreIgnored()
115 sendBroadcast(); in testBroadcastsBeforeStartAreIgnored()
122 sendBroadcast(); in testBroadcastsAfterStopAreIgnored()
127 sendBroadcast(); in testBroadcastsAfterStopAreIgnored()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java155 getContext().sendBroadcast(intent); in startDemoMode()
167 getContext().sendBroadcast(intent); in startDemoMode()
176 getContext().sendBroadcast(intent); in startDemoMode()
180 getContext().sendBroadcast(intent); in startDemoMode()
185 getContext().sendBroadcast(intent); in startDemoMode()
191 getContext().sendBroadcast(intent); in startDemoMode()
195 getContext().sendBroadcast(intent); in startDemoMode()
203 getContext().sendBroadcast(intent); in stopDemoMode()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothEventManagerTest.java102 mContext.sendBroadcast(mIntent); in intentWithExtraState_audioStateChangedShouldDispatchToRegisterCallback()
115 mContext.sendBroadcast(mIntent); in intentWithExtraState_phoneStateChangedShouldDispatchToRegisterCallback()
141 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
153 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
166 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice()
179 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
192 mContext.sendBroadcast(mIntent); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
DLocalBluetoothProfileManagerTest.java163 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()
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DBroadcastPerfTest.java42 mContext.sendBroadcast(intent); in manifestBroadcastRunning()
58 mContext.sendBroadcast(intent); in manifestBroadcastNotRunning()
76 mContext.sendBroadcast(intent); in registeredBroadcast()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java227 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/
DBatterySaverUtilsTest.java73 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/services/tests/servicestests/src/com/android/server/
DCachedDeviceStateServiceTest.java105 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in correctlyReportsScreenInteractive()
108 mContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_ON)); in correctlyReportsScreenInteractive()
130 mContext.sendBroadcast(intentPluggedIn); in correctlyReportsCharging()
135 mContext.sendBroadcast(intentUnplugged); in correctlyReportsCharging()
165 mContext.sendBroadcast(intentPluggedIn); in correctlyTracksTimeOnBattery()
/frameworks/base/core/tests/coretests/src/android/content/
DBrickDeniedTest.java30 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); in testBrick()
31 getContext().sendBroadcast(new Intent("android.intent.action.BRICK")); in testBrick()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java281 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts()
299 verify(mContext, times(2 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts()
338 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testNewSms()
352 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumber_noBroadcastsSent()
358 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifyDataSmsIntentBroadcasts()
448 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testInjectSms()
524 verify(mContext, times(0)).sendBroadcast(any(Intent.class)); in testMultiPartSmsWithIncompleteWAP()
584 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testMultiPartSms()
600 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testMultiPartSms()
651 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testMultiPartIncompleteSms()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java74 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/core/java/com/android/server/incident/
DPendingReports.java197 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/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java80 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/
DMediaStoreSaver.java80 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/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java257 public void sendBroadcast(Intent intent) { in sendBroadcast() method in DpmMockContext
258 spiedContext.sendBroadcast(intent); in sendBroadcast()
262 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in DpmMockContext
263 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast()
278 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in DpmMockContext
279 spiedContext.sendBroadcast(intent, receiverPermission, options); in sendBroadcast()
283 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in DpmMockContext
284 spiedContext.sendBroadcast(intent, receiverPermission, appOp); in sendBroadcast()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java376 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/
DUiccStateChangedLauncherTest.java112 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
123 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
130 verify(mContext, times(broadcast_count)).sendBroadcast(any(Intent.class)); in testProvisioningPackageSet()
138 verify(mContext, times(broadcast_count)).sendBroadcast(intentArgumentCaptor.capture()); in testProvisioningPackageSet()
/frameworks/base/services/tests/servicestests/test-apps/JobTestApp/src/com/android/servicestests/apps/jobtestapp/
DTestJobService.java38 sendBroadcast(reportJobStartIntent); in onStartJob()
47 sendBroadcast(reportJobStopIntent); in onStopJob()
/frameworks/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/
DSuspendTestActivity.java47 sendBroadcast(reportStart); in onStart()
56 sendBroadcast(reportStop); in onStop()
/frameworks/base/core/java/com/android/internal/app/
DDumpHeapActivity.java107 sendBroadcast(new Intent(ACTION_DELETE_DUMPHEAP)); in onCreate()
133 sendBroadcast(broadcast); in scheduleDelete()
141 sendBroadcast(new Intent(ACTION_DELETE_DUMPHEAP)); in onStop()

123456