Home
last modified time | relevance | path

Searched refs:onReceive (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothDeviceManagerTest.java109 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect()
112 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect()
123 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull()
125 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull()
134 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect()
136 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect()
138 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect()
140 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect()
143 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect()
151 receiverUnderTest.onReceive(mContext, in testHearingAidDedup()
[all …]
DDefaultDialerCacheTest.java142 mPackageChangeReceiver.onReceive(mContext, packageChangeIntent); in testDialer1PackageChanged()
159 mPackageChangeReceiver.onReceive(mContext, packageChangeIntent); in testRandomOtherPackageChanged()
173 mUserRemovedReceiver.onReceive(mContext, userRemovalIntent); in testUserRemoved()
193 mPackageChangeReceiver.onReceive(mContext, packageChangeIntent); in testPackageRemovedWithoutReplace()
209 mPackageChangeReceiver.onReceive(mContext, packageChangeIntent); in testPackageAdded()
226 mPackageChangeReceiver.onReceive(mContext, packageChangeIntent); in testPackageRemovedWithReplace()
DNewOutgoingCallIntentBroadcasterTest.java200 result.receiver.onReceive(mContext, result.intent); in testAlreadyDisconnectedCall()
338 result.receiver.onReceive(mContext, result.intent); in testUnmodifiedRegularCall()
354 result.receiver.onReceive(mContext, result.intent); in testUnmodifiedSipCall()
376 result.receiver.onReceive(mContext, result.intent); in testCallWithGatewayInfo()
391 result.receiver.onReceive(mContext, result.intent); in testCallNumberModifiedToNull()
411 result.receiver.onReceive(mContext, result.intent); in testCallNumberModifiedToNullWithLongCustomTimeout()
430 result.receiver.onReceive(mContext, result.intent);
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java69 mController.onReceive(mContext, in testShouldShowNotificationFirstTime()
73 mController.onReceive(mContext, in testShouldShowNotificationFirstTime()
82 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
85 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
93 mController.onReceive(mContext, in testNotificationNotShownIfShownTooManyTimes()
102 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
105 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
113 mController.onReceive(mContext, in testNotificationNotShownIfDismissedTooManyTimes()
120 mController.onReceive(mContext, in testDismissNotificationDelay()
123 mController.onReceive(mContext, in testDismissNotificationDelay()
[all …]
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DPreprocessingManagerTest.java78 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in setupBaseActivityAndLayout()
97 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in addCallStateListener_preCall_triggerChanges()
106 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in addCallStateListener_midCall_triggerChanges()
117 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in addCallStateListener_postCall_triggerChanges()
121 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in addCallStateListener_postCall_triggerChanges()
142 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in removeCallStateListener_midCall_triggerChanges()
150 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in removeCallStateListener_midCall_triggerChanges()
164 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in multipleCallStateListeners_triggeredAppropriately()
174 mPreprocessingManager.mIntentReceiver.onReceive(mContext, intent); in multipleCallStateListeners_triggeredAppropriately()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBroadcastReceiverTest.java112 mReceiver.onReceive(mContext, intent); in onReceive_toggleChanged()
144 mReceiver.onReceive(mContext, intent); in toggleUpdate_synchronously_notifyChange_should_be_called()
178 mReceiver.onReceive(mContext, intent); in toggleUpdate_asynchronously_notifyChange_should_not_be_called()
210 mReceiver.onReceive(mContext, intent); in onReceive_sliderChanged()
236 mReceiver.onReceive(mContext, intent); in onReceive_invalidController_throwsException()
246 mReceiver.onReceive(mContext, intent); in sliderOnReceive_noKey_throwsException()
252 mReceiver.onReceive(mContext, intent); in toggleOnReceive_noExtra_illegalStateException()
259 mReceiver.onReceive(mContext, intent); in toggleOnReceive_emptyKey_throwsIllegalStateException()
287 mReceiver.onReceive(mContext, intent); in toggleUpdate_unavailableUriNotified()
328 mReceiver.onReceive(mContext, intent); in sliderUpdate_unavailableUriNotified()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/
DFormatActivityFormatReceiverTest.java63 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_successResumed()
79 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_successNotResumed()
95 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_failure()
112 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPrivate_wrongDisk()
128 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPublic_success()
143 new FormatActivity.FormatReceiver(mActivity).onReceive(mActivity, intent); in testFormatAsPublic_wrongDisk()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java317 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in a2dpConnected()
328 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in a2dpDisconnected()
337 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in a2dpActiveDeviceChanged()
348 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in headsetConnected()
359 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in headsetDisconnected()
368 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in headsetActiveDeviceChanged()
377 mActiveDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in hearingAidActiveDeviceChanged()
DPhonePolicyTest.java127 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testProcessInitProfilePriorities()
164 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testAdapterOnAutoConnect()
204 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testDisconnectNoAutoConnect()
219 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testDisconnectNoAutoConnect()
237 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testDisconnectNoAutoConnect()
627 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testNoReconnectOnNoConnect()
683 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testNoReconnectOnNoConnect_MultiDevice()
758 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in testNoSupportedUuids()
788 mPhonePolicy.getBroadcastReceiver().onReceive(null /* context */, intent); in updateProfileConnectionStateHelper()
DSilenceDeviceManagerTest.java177 mSilenceDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in a2dpConnected()
189 mSilenceDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in a2dpDisconnected()
201 mSilenceDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in headsetConnected()
213 mSilenceDeviceManager.getBroadcastReceiver().onReceive(mContext, intent); in headsetDisconnected()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java131 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionMarkAsRead()
141 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged()
150 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction()
160 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged()
171 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionSmsEmergencyCbReceived()
182 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsCbReceivedAction()
193 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsServiceCategoryProgramDataReceivedAction()
423 mCellBroadcastReceiver.onReceive(mContext, mIntent); in setContext()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java69 receiverCaptor.getValue().onReceive(mContext, in testStartListening()
77 receiverCaptor.getValue().onReceive(mContext, in testStartListening()
98 receiverCaptor.getValue().onReceive(mContext, in testStopListening()
106 receiverCaptor.getValue().onReceive(mContext, in testStopListening()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
DAccountsChangedReceiverTests.java71 reciever.onReceive(getContext(), new Intent("some-random-action")); in testUnknownIntent()
85 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); in testAccountRemoved()
99 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); in testAccountRemoved_noAccounts()
113 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); in testAccountNotRemoved()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiverTest.java69 mReceiver.onReceive(mContext, intent); in onReceive_usbConnected_invokeCallback()
81 mReceiver.onReceive(mContext, intent); in onReceive_usbDisconnected_invokeCallback()
95 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedMtpEnabled_invokeCallback()
110 mReceiver.onReceive(mContext, intent); in onReceive_usbPortStatus_invokeCallback()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sim/
DSimSelectNotificationTest.java147 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_notificationShouldSend()
173 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_NoExtra_notificationShouldNotSend()
186 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_MmsDataAlreadyEnabled_notificationShouldNotSend()
195 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_NoExtra_notificationShouldNotSend()
207 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java231 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate()
243 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate()
255 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate()
267 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates()
279 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOff_sliceUpdates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverReceiverTest.java54 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_devicePluggedIn_pluggedInTrue()
64 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()
73 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_powerSaveModeChanged_invokeCallback()
DBatteryBroadcastReceiverTest.java85 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryLevelChanged_dataUpdated()
100 mBatteryBroadcastReceiver.onReceive(mContext, in testOnReceive_powerSaveModeChanged_listenerInvoked()
118 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryDataNotChanged_listenerNotInvoked()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDownloadPackageTaskTest.java144 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testDownloadFailed()
163 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testDownloadSucceeded()
183 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testSendBroadcastTwice()
184 receiver.onReceive(mContext, new Intent(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); in testSendBroadcastTwice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java222 receiver.onReceive(mContext, turningOff); in bluetoothTurnsOff_switchTurnsOff()
225 receiver.onReceive(mContext, off); in bluetoothTurnsOff_switchTurnsOff()
245 receiver.onReceive(mContext, turningOn); in bluetoothTurnsOn_switchTurnsOn()
248 receiver.onReceive(mContext, on); in bluetoothTurnsOn_switchTurnsOn()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkUpdateManager.java177 void onReceive(); in onReceive() method
194 public void onReceive(Context context, Intent intent) { in onReceive() method in MobileNetworkUpdateManager.PhoneChangeReceiver
196 mOnChangeAction.onReceive(); in onReceive()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/
DBaseTvInputServiceTest.java125 tvInputService.broadcastReceiver.onReceive( in testReceiver_actionEnabledChanged()
134 tvInputService.broadcastReceiver.onReceive( in testReceiver_actionBlockedChanged()
143 tvInputService.broadcastReceiver.onReceive( in testReceiver_invalidAction()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DBroadcastMonitor.java56 public void onReceive(Context context, Intent intent) { in onReceive() method in BroadcastMonitor
58 mReceiver.onReceive(context, intent); in onReceive()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DChooseAccountPreferenceControllerTest.java159 mController.getAuthenticatorHelper().onReceive(application, null); in refreshUi_doesNotHaveAuthoritiesInFilter_shouldNotBeShown()
180 mController.getAuthenticatorHelper().onReceive(application, null); in refreshUi_hasAuthoritiesInFilter_shouldBeShown()
200 mController.getAuthenticatorHelper().onReceive(application, null); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java213 public void onReceive(Context context, Intent intent) { in onReceive() method in BluetoothMonitor.MapDeviceMonitor
258 public void onReceive(Context context, Intent intent) { in onReceive() method in BluetoothMonitor.BluetoothMapReceiver
298 public void onReceive(Context context, Intent intent) { in onReceive() method in BluetoothMonitor.BluetoothSdpReceiver

12345678910>>...28