Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/
DBroadcastInterceptingContext.java124 public void sendBroadcast(Intent intent) { in sendBroadcast() method in BroadcastInterceptingContext
137 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in BroadcastInterceptingContext
138 sendBroadcast(intent); in sendBroadcast()
143 sendBroadcast(intent); in sendBroadcastAsUser()
149 sendBroadcast(intent); in sendBroadcastAsUser()
154 sendBroadcast(intent); in sendStickyBroadcast()
159 sendBroadcast(intent); in sendStickyBroadcastAsUser()
DNetworkStatsServiceTest.java194 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testNetworkStatsWifi()
210 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testNetworkStatsWifi()
227 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testNetworkStatsWifi()
248 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testStatsRebootPersist()
274 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testStatsRebootPersist()
289 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SHUTDOWN)); in testStatsRebootPersist()
339 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testStatsBucketResize()
352 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testStatsBucketResize()
370 mServiceContext.sendBroadcast(new Intent(ACTION_NETWORK_STATS_POLL)); in testStatsBucketResize()
391 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testUidStatsAcrossNetworks()
[all …]
DNetworkPolicyManagerServiceTest.java339 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_OFF)); in testScreenChangesRules()
349 mServiceContext.sendBroadcast(new Intent(Intent.ACTION_SCREEN_ON)); in testScreenChangesRules()
600 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testNetworkPolicyAppliedCycleLastMonth()
650 mServiceContext.sendBroadcast(intent); in testUidRemovedPolicyCleared()
711 mServiceContext.sendBroadcast(new Intent(CONNECTIVITY_ACTION_IMMEDIATE)); in testOverWarningLimitNotification()
/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/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/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()
DLaunchpadActivity.java253 sendBroadcast(makeBroadcastIntent(BROADCAST_REGISTERED)); in onResume()
256 sendBroadcast(makeBroadcastIntent(BROADCAST_LOCAL)); in onResume()
259 sendBroadcast(makeBroadcastIntent(BROADCAST_REMOTE)); in onResume()
/frameworks/base/core/java/com/android/internal/os/storage/
DExternalStorageFormatter.java143 sendBroadcast(intent); in fail()
190 sendBroadcast(intent); in updateProgressState()
202 sendBroadcast(intent); in updateProgressState()
/frameworks/base/core/java/android/content/
DContextWrapper.java376 public void sendBroadcast(Intent intent) { in sendBroadcast() method in ContextWrapper
377 mBase.sendBroadcast(intent); in sendBroadcast()
381 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in ContextWrapper
382 mBase.sendBroadcast(intent, receiverPermission); in sendBroadcast()
387 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in ContextWrapper
388 mBase.sendBroadcast(intent, receiverPermission, appOp); in sendBroadcast()
DContext.java1394 public abstract void sendBroadcast(Intent intent); in sendBroadcast() method in Context
1420 public abstract void sendBroadcast(Intent intent, in sendBroadcast() method in Context
1428 public abstract void sendBroadcast(Intent intent, in sendBroadcast() method in Context
/frameworks/ex/common/java/com/android/common/userhappiness/
DUserHappinessSignals.java57 context.sendBroadcast(i); in userAcceptedImeText()
/frameworks/base/packages/Keyguard/test/SampleTrustAgent/src/com/android/trustagent/test/
DSampleTrustAgent.java163 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in sendGrantTrust()
168 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in sendRevokeTrust()
/frameworks/support/v4/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/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
DWakeLoopService.java96 sendBroadcast(intent); in onDestroy()
/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/test-runner/src/android/test/mock/
DMockContext.java310 public void sendBroadcast(Intent intent) { in sendBroadcast() method in MockContext
315 public void sendBroadcast(Intent intent, String receiverPermission) { in sendBroadcast() method in MockContext
321 public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { in sendBroadcast() method in MockContext
/frameworks/base/docs/html/training/run-background-service/
Dreport-status.jd52 {@link android.support.v4.content.LocalBroadcastManager#sendBroadcast
53 LocalBroadcastManager.sendBroadcast()}. This sends the {@link android.content.Intent} to any
84 LocalBroadcastManager.getInstance(this).sendBroadcast(localIntent);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsStorageMonitor.java148 mContext.sendBroadcast(intent, android.Manifest.permission.RECEIVE_SMS); in handleIccFull()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java93 public void sendBroadcast(Intent intent) { in sendBroadcast() method in IsolatedContext
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSecureCameraLaunchManager.java179 mContext.sendBroadcast(intent); in onSwipingStarted()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java504 mContext.sendBroadcast(intent); in broadcastCatCmdIntent()
517 mContext.sendBroadcast(intent); in handleSessionEnd()
871 mContext.sendBroadcast(intent); in broadcastCardStateAndIccRefreshResp()
880 mContext.sendBroadcast(intent); in broadcastAlphaMessage()
/frameworks/base/docs/html/guide/topics/security/
Dpermissions.jd146 android.content.Context#sendBroadcast} method checks permissions as data is
320 {@link android.content.Context#sendBroadcast Context.sendBroadcast()} returns,
330 {@link android.content.Context#sendBroadcast(Intent, String) Context.sendBroadcast()}
367 android.content.Context#sendBroadcast(android.content.Intent,String)
368 Context.sendBroadcast()} with a
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java171 sendBroadcast(intent); in done()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipService.java101 context.sendBroadcast(new Intent(SipManager.ACTION_SIP_SERVICE_UP)); in start()
328 mContext.sendBroadcast(intent); in notifyProfileAdded()
338 mContext.sendBroadcast(intent); in notifyProfileRemoved()
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java190 mContext.sendBroadcast(i); in sendIntent()

123