Home
last modified time | relevance | path

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

1234567891011

/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendTestMessages.java430 private static void sendBroadcast(Activity activity, int serialNumber, int category, in sendBroadcast() method in SendTestMessages
442 sendBroadcast(activity, serialNumber, category, gsm7BitTest); in testSendMessage7bit()
447 sendBroadcast(activity, serialNumber, category, gsm7BitTestUmts); in testSendMessage7bitUmts()
452 sendBroadcast(activity, serialNumber, category, gsm7BitTestNoPadding); in testSendMessage7bitNoPadding()
457 sendBroadcast(activity, serialNumber, category, gsm7BitTestNoPaddingUmts); in testSendMessage7bitNoPaddingUmts()
475 sendBroadcast(activity, serialNumber, category, gsm7BitTestMultipageUmts); in testSendMessage7bitMultipageUmts()
480 sendBroadcast(activity, serialNumber, category, gsm7BitTestWithLanguage); in testSendMessage7bitWithLanguage()
485 sendBroadcast(activity, serialNumber, category, gsm7BitTestWithLanguageInBody); in testSendMessage7bitWithLanguageInBody()
490 sendBroadcast(activity, serialNumber, category, gsm7BitTestWithLanguageInBodyUmts); in testSendMessage7bitWithLanguageInBodyUmts()
495 sendBroadcast(activity, serialNumber, category, gsmUcs2Test); in testSendMessageUcs2()
[all …]
DSendGsmCmasMessages.java58 private static void sendBroadcast(Activity activity, SmsCbMessage cbMessage) { in sendBroadcast() method in SendGsmCmasMessages
83 sendBroadcast(activity, cbMessage); in testSendCmasPresAlert()
102 sendBroadcast(activity, cbMessage); in testSendCmasExtremeAlert()
121 sendBroadcast(activity, cbMessage); in testSendCmasSevereAlert()
140 sendBroadcast(activity, cbMessage); in testSendCmasAmberAlert()
159 sendBroadcast(activity, cbMessage); in testSendCmasMonthlyTest()
178 sendBroadcast(activity, cbMessage); in testSendCmasExerciseTest()
196 sendBroadcast(activity, cbMessage); in testSendPublicSafetyMessagesAlert()
214 sendBroadcast(activity, cbMessage); in testSendStateLocalTestAlert()
DSendCdmaCmasMessages.java53 private static void sendBroadcast(Activity activity, SmsCbMessage cbMessage) { in sendBroadcast() method in SendCdmaCmasMessages
70 sendBroadcast(activity, cbMessage); in testSendCmasPresAlert()
80 sendBroadcast(activity, cbMessage); in testSendCmasExtremeAlert()
90 sendBroadcast(activity, cbMessage); in testSendCmasSevereAlert()
100 sendBroadcast(activity, cbMessage); in testSendCmasAmberAlert()
110 sendBroadcast(activity, cbMessage); in testSendCmasMonthlyTest()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java75 verify(mAdapterService).sendBroadcast(any(), anyString(), any()); in testSendUuidIntent()
88 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testUpdateBatteryLevel_normalSequence()
100 verify(mAdapterService).sendBroadcast(any(), anyString(), any()); in testUpdateBatteryLevel_normalSequence()
105 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testUpdateBatteryLevel_normalSequence()
126 verify(mAdapterService, never()).sendBroadcast(any(), anyString(), any()); in testUpdateBatteryLevel_errorNegativeValue()
143 verify(mAdapterService, never()).sendBroadcast(any(), anyString(), any()); in testUpdateBatteryLevel_errorTooLargeValue()
172 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
186 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
198 verify(mAdapterService, times(2)).sendBroadcast(any(), anyString(), in testResetBatteryLevel_testResetAfterUpdate()
203 verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java141 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(MockitoHamcrest in testIncomingPriorityReject()
173 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument1 in testIncomingPriorityAccept()
192 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
219 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument1 in testIncomingTimeout()
233 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testIncomingTimeout()
264 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument in testInBandRingtone()
277 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(2)).sendBroadcast( in testInBandRingtone()
293 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone()
306 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone()
320 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(3)).sendBroadcast( in testInBandRingtone()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DTimeChangeListenerMixinTest.java66 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_TICK)); in onResume_shouldRegisterIntentFilter()
67 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_CHANGED) in onResume_shouldRegisterIntentFilter()
69 mContext.sendBroadcast(new Intent(Intent.ACTION_TIMEZONE_CHANGED)); in onResume_shouldRegisterIntentFilter()
78 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_TICK)); in onPause_shouldUnregisterIntentFilter()
79 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_CHANGED) in onPause_shouldUnregisterIntentFilter()
81 mContext.sendBroadcast(new Intent(Intent.ACTION_TIMEZONE_CHANGED)); in onPause_shouldUnregisterIntentFilter()
/packages/modules/Connectivity/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()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java178 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectingToDisconnected()
199 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectingToConnected()
221 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testStateTransitionFromConnectedWithMasDisconnected()
229 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(4)).sendBroadcast( in testStateTransitionFromConnectedWithMasDisconnected()
250 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testReceiveEmptyEvent()
274 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testSetMessageStatus()
300 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testDisconnect()
307 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(4)).sendBroadcast( in testDisconnect()
326 timeout(ASYNC_CALL_TIMEOUT_MILLIS).times(2)).sendBroadcast( in testDisconnectTimeout()
333 after(DISCONNECT_TIMEOUT / 2).times(3)).sendBroadcast( in testDisconnectTimeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioStateMachineTest.java128 verify(mLeAudioService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
151 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept()
170 verify(mLeAudioService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
193 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout()
206 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testOutgoingTimeout()
236 verify(mLeAudioService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout()
249 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testIncomingTimeout()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java131 verify(mHearingAidService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
154 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept()
173 verify(mHearingAidService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
197 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout()
210 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testOutgoingTimeout()
242 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingTimeout()
255 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testIncomingTimeout()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpStateMachineTest.java152 verify(mA2dpService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
175 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingPriorityAccept()
195 verify(mA2dpService, timeout(TIMEOUT_MS).times(3)).sendBroadcast(intentArgument2.capture(), in testIncomingPriorityAccept()
222 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testOutgoingTimeout()
234 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testOutgoingTimeout()
262 verify(mA2dpService, timeout(TIMEOUT_MS).times(1)).sendBroadcast(intentArgument1.capture(), in testIncomingTimeout()
274 2)).sendBroadcast(intentArgument2.capture(), anyString(), in testIncomingTimeout()
346 verify(mA2dpService, timeout(TIMEOUT_MS).times(2)).sendBroadcast(intentArgument2.capture(), in testProcessCodecConfigEventCase()
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/
DShowBlockReportSpamDialogNotifier.java47 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in notifyShowDialogToBlockNumberAndOptionallyReportSpam()
60 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in notifyShowDialogToBlockNumber()
73 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in notifyShowDialogToReportNotSpam()
86 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in notifyShowDialogToUnblockNumber()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetConfirmFragmentTest.java114 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_sendsResetIntent()
132 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_resetEsimFalse_resetIntentReflectsChoice()
144 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_pdbManagerNull_sendsResetIntent()
165 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
187 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
218 verify(mMockActivity).sendBroadcast(argumentCaptor.capture()); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java78 public void sendBroadcast(Intent intent) { in sendBroadcast() method in RealSystemFacade
79 mContext.sendBroadcast(intent); in sendBroadcast()
83 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { in sendBroadcast() method in RealSystemFacade
84 mContext.sendBroadcast(intent, receiverPermission, options); in sendBroadcast()
DSystemFacade.java58 public void sendBroadcast(Intent intent); in sendBroadcast() method
63 public void sendBroadcast(Intent intent, String receiverPermission, Bundle options); in sendBroadcast() method
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/voicerecognition/
DConnectedDeviceVoiceRecognitionNotifierTest.java81 mContext.sendBroadcast(intent, BLUETOOTH_PERM); in testReceiveIntent_started_showToast()
99 mContext.sendBroadcast(intent, BLUETOOTH_PERM); in testReceiveIntent_invalidExtra_noToast()
113 mContext.sendBroadcast(intent, BLUETOOTH_PERM); in testReceiveIntent_noExtra_noToast()
127 mContext.sendBroadcast(intent, BLUETOOTH_PERM); in testReceiveIntent_invalidIntent_noToast()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DSideChannel.java44 context.sendBroadcast(intent); in triggerCleanup()
51 context.sendBroadcast(intent); in requestSpuriousTempFiles()
58 context.sendBroadcast(intent); in delayDownloads()
/packages/services/Telecomm/src/com/android/server/telecom/ui/
DConfirmCallDialogActivity.java61 sendBroadcast(proceedWithCall); in showDialog()
74 sendBroadcast(cancelCall); in showDialog()
87 sendBroadcast(cancelCall); in showDialog()
/packages/apps/Nfc/src/com/android/nfc/handover/
DConfirmConnectActivity.java58 sendBroadcast(allowIntent); in onCreate()
69 sendBroadcast(denyIntent); in onCreate()
89 sendBroadcast(denyIntent); in onDestroy()
/packages/services/Telephony/tests/src/com/android/phone/
DRcsProvisioningMonitorTest.java316 verify(mPhone, times(3)).sendBroadcast(captorIntent.capture(), any()); in testInitWithSavedConfig()
330 verify(mPhone, times(3)).sendBroadcast(captorIntent.capture(), any()); in testInitWithoutSavedConfig()
349 verify(mPhone, times(3)).sendBroadcast(captorIntent.capture(), any()); in testSubInfoChanged()
411 verify(mPhone, atLeastOnce()).sendBroadcast(captorIntent.capture(), any()); in testCarrierConfigChanged()
424 verify(mPhone, atLeastOnce()).sendBroadcast(captorIntent.capture(), any()); in testCarrierConfigChanged()
438 verify(mPhone, atLeastOnce()).sendBroadcast(captorIntent.capture(), any()); in testCarrierConfigChanged()
584 verify(mPhone, times(3)).sendBroadcast(any(), any()); in testSendBroadcastWhenDmaChanged()
589 verify(mPhone, times(6)).sendBroadcast(any(), any()); in testSendBroadcastWhenDmaChanged()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallNotificationReceiver.java137 LocalBroadcastManager.getInstance(context).sendBroadcast( in hangupCalls()
145 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in sendUpgradeRequest()
150 LocalBroadcastManager.getInstance(context).sendBroadcast(intent); in remoteRttUpgrade()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java336 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in setAlias()
415 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in sendUuidIntent()
501 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in sendBatteryLevelChangedBroadcast()
558 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in devicePropertyChangedCallback()
582 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in devicePropertyChangedCallback()
683 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in aclStateChangeCallback()
716 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in aclStateChangeCallback()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DCarIdlenessTrackerWrapper.java39 context.sendBroadcast(i); in sendBroadcastToEnterGarageMode()
46 context.sendBroadcast(i); in sendBroadcastToExitGarageMode()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java147 mTargetContext.sendBroadcast(RequestPinItemActivity.getCommandIntent( in runTest()
152 mTargetContext.sendBroadcast(command); in runTest()
156 mTargetContext.sendBroadcast(RequestPinItemActivity.getCommandIntent( in runTest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DAbnormalRingerConditionControllerBaseTest.java60 mContext.sendBroadcast(broadcast1); in startMonitor_shouldMonitorRingerStateChangeBroadcast()
63 mContext.sendBroadcast(broadcast2); in startMonitor_shouldMonitorRingerStateChangeBroadcast()

1234567891011