Home
last modified time | relevance | path

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

1234

/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java125 public void sendBroadcast(Intent intent) { in sendBroadcast() method in BroadcastInterceptingContext
138 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in BroadcastInterceptingContext
139 sendBroadcast(intent); in sendBroadcast()
144 sendBroadcast(intent); in sendBroadcastMultiplePermissions()
149 sendBroadcast(intent); in sendBroadcastAsUser()
155 sendBroadcast(intent); in sendBroadcastAsUser()
160 sendBroadcast(intent); in sendStickyBroadcast()
165 sendBroadcast(intent); in sendStickyBroadcastAsUser()
170 sendBroadcast(intent); in sendStickyBroadcastAsUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DDemoModeFragment.java154 getContext().sendBroadcast(intent); in startDemoMode()
158 getContext().sendBroadcast(intent); in startDemoMode()
167 getContext().sendBroadcast(intent); in startDemoMode()
171 getContext().sendBroadcast(intent); in startDemoMode()
176 getContext().sendBroadcast(intent); in startDemoMode()
182 getContext().sendBroadcast(intent); in startDemoMode()
186 getContext().sendBroadcast(intent); in startDemoMode()
194 getContext().sendBroadcast(intent); in stopDemoMode()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java190 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts()
199 verify(mContext, times(2 + numPastBroadcasts)).sendBroadcast( in verifySmsIntentBroadcasts()
228 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testNewSms()
245 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumber_noBroadcastsSent()
251 verify(mContext, times(1 + numPastBroadcasts)).sendBroadcast( in verifyDataSmsIntentBroadcasts()
299 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testInjectSms()
395 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testMultiPartSms()
412 verify(mContext, times(2)).sendBroadcast(any(Intent.class)); in testMultiPartSms()
453 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testMultiPartIncompleteSms()
490 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testMultipartSmsFromBlockedNumber_noBroadcastsSent()
[all …]
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java152 mContext.sendBroadcast(mIntent); in testSimAbsent()
173 mContext.sendBroadcast(mIntent); in testSimUnknown()
192 mContext.sendBroadcast(mIntent); in testSimError()
210 mContext.sendBroadcast(mIntent); in testWrongSimState()
234 mContext.sendBroadcast(intentInternalSimStateChanged); in testSimLoaded()
268 mContext.sendBroadcast(intentSimStateChanged); in testSimLoaded()
301 mContext.sendBroadcast(mIntent); in testSimLoadedEmptyOperatorNumeric()
341 mContext.sendBroadcast(mIntent); in testSimLockedWithOutIccId()
376 mContext.sendBroadcast(mIntent); in testSimLockWIthIccId()
DContextFixture.java289 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextFixture.FakeContext
300 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextFixture.FakeContext
302 sendBroadcast(intent); in sendBroadcast()
308 sendBroadcast(intent); in sendOrderedBroadcast()
341 sendBroadcast(intent); in sendBroadcastAsUser()
347 sendBroadcast(intent); in sendBroadcastAsUser()
353 sendBroadcast(intent); in sendBroadcastAsUser()
361 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
374 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
388 sendBroadcast(intent); in sendOrderedBroadcastAsUser()
[all …]
DSmsStorageMonitorTest.java79 verify(mContextFixture.getTestDouble()).sendBroadcast(intentArgumentCaptor.capture()); in testEventIccFull()
94 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus()
107 mContextFixture.getTestDouble().sendBroadcast( in testSmsMemoryStatus()
/frameworks/base/core/tests/coretests/src/android/content/
DBrickDeniedTest.java29 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); in testBrick()
30 getContext().sendBroadcast(new Intent("android.intent.action.BRICK")); in testBrick()
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
DMediaStoreSaver.java73 context.sendBroadcast(new Intent("android.hardware.action.NEW_PICTURE", fileUri)); in MediaStorageScan()
77 context.sendBroadcast(new Intent("com.android.camera.NEW_PICTURE", fileUri)); in MediaStorageScan()
82 context.sendBroadcast(intent); in MediaStorageScan()
/frameworks/rs/java/tests/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/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/base/core/java/com/android/internal/app/
DDumpHeapActivity.java93 sendBroadcast(new Intent(ACTION_DELETE_DUMPHEAP)); in onCreate()
119 sendBroadcast(broadcast); in scheduleDelete()
127 sendBroadcast(new Intent(ACTION_DELETE_DUMPHEAP)); in onStop()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java446 public void sendBroadcast(Intent intent) { in sendBroadcast() method in DpmMockContext
447 spiedContext.sendBroadcast(intent); in sendBroadcast()
451 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in DpmMockContext
452 spiedContext.sendBroadcast(intent, receiverPermission); in sendBroadcast()
461 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in DpmMockContext
462 spiedContext.sendBroadcast(intent, receiverPermission, options); in sendBroadcast()
466 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in DpmMockContext
467 spiedContext.sendBroadcast(intent, receiverPermission, appOp); in sendBroadcast()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/content/
DLocalServiceBroadcaster.java123 mLocalBroadcastManager.sendBroadcast(intent);
141 mLocalBroadcastManager.sendBroadcast(new Intent(ACTION_STARTED)); in onStartCommand()
155 mLocalBroadcastManager.sendBroadcast(new Intent(ACTION_STOPPED)); in onDestroy()
/frameworks/base/core/java/android/content/
DContextWrapper.java420 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextWrapper
421 mBase.sendBroadcast(intent); in sendBroadcast()
425 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextWrapper
426 mBase.sendBroadcast(intent, receiverPermission); in sendBroadcast()
438 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in ContextWrapper
439 mBase.sendBroadcast(intent, receiverPermission, options); in sendBroadcast()
444 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in ContextWrapper
445 mBase.sendBroadcast(intent, receiverPermission, appOp); in sendBroadcast()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java115 boolean sendBroadcast = false; in restoreValue()
129 sendBroadcast = true; in restoreValue()
159 sendBroadcast = false; in restoreValue()
164 if (sendBroadcast) { in restoreValue()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java174 verify(mContext).sendBroadcast(intentArgumentCaptor.capture()); in testNewSms()
182 verify(mContext, times(2)).sendBroadcast(intentArgumentCaptor.capture()); in testNewSms()
207 verify(mContext, never()).sendBroadcast(any(Intent.class)); in testNewSmsFromBlockedNumber_noBroadcastsSent()
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
DSampleTrustAgent.java171 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in sendGrantTrust()
176 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in sendRevokeTrust()
/frameworks/ex/common/java/com/android/common/userhappiness/
DUserHappinessSignals.java57 context.sendBroadcast(i); in userAcceptedImeText()
/frameworks/base/test-runner/src/android/test/mock/
DMockContext.java337 public void sendBroadcast(Intent intent) { in sendBroadcast() method in MockContext
342 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in MockContext
355 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in MockContext
361 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in MockContext
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTests.java189 getContext().sendBroadcast(new Intent(FakeTileService.ACTION_KILL)); in testKillProcess()
307 sendBroadcast(new Intent(TILE_UPDATE_BROADCAST) in sendCallback()
/frameworks/support/core-utils/java/android/support/v4/content/
DLocalBroadcastManager.java200 public boolean sendBroadcast(Intent intent) { in sendBroadcast() method in LocalBroadcastManager
277 if (sendBroadcast(intent)) { in sendBroadcastSync()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DActionSendMultipleConsumerActivity.java54 getApplicationContext().sendBroadcast(customIntent); in onCreate()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java272 public void sendBroadcast(Intent intent) { in sendBroadcast() method in SearchablesTest.MyMockContext
273 mRealContext.sendBroadcast(intent); in sendBroadcast()
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
DWakeLoopService.java96 sendBroadcast(intent); in onDestroy()

1234