/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | NotificationControllerTest.java | 69 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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 109 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 …]
|
D | DefaultDialerCacheTest.java | 142 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()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ActiveSubscriptionsListenerTest.java | 120 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 121 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 126 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 129 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 134 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 135 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 141 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 148 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 153 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 158 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | TestUtil.java | 43 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged() 54 broadcastReceiver.onReceive(context, intent); in sendNetworkStateChanged() 63 broadcastReceiver.onReceive(context, intent); in sendScanResultsAvailable() 73 broadcastReceiver.onReceive(context, intent); in sendWifiStateChanged() 91 broadcastReceiver.onReceive(context, intent); in sendWifiApStateChanged() 102 broadcastReceiver.onReceive(context, intent); in sendTetherStateChanged() 107 broadcastReceiver.onReceive(context, intent); in sendIdleModeChanged()
|
D | OpenNetworkNotifierTest.java | 400 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_USER_DISMISSED_NOTIFICATION)); in userDismissedNotification_shouldBlacklistNetwork() 426 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in userConnectedNotification_shouldBlacklistNetwork() 501 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in actionConnectToNetwork_notificationNotShowing_doesNothing() 520 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification() 550 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_PICK_WIFI_NETWORK)); in actionPickWifiNetwork_currentRecommendationExists_opensWifiSettings() 609 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in networkConnectionSuccess_wasInConnectingFlow_postsConnectedNotification() 659 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in networkConnectionFailure_wasInConnectingFlow_postsFailedToConnectNotification() 696 mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK)); in connectionFailedCallback_postsFailedToConnectNotification() 727 mBroadcastReceiver.onReceive(mContext, in connectionFailedCallback_postsFailedToConnectNotification()
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 128 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_dataReset() 137 mReceiver.onReceive( in onReceive_theSameSim_dataNotReset() 149 mReceiver.onReceive( in onReceive_differentSlot_dataNotReset() 161 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 1)); in onReceive_simChangedAndDifferentSlotId_dataReset() 172 mReceiver.onReceive( in onReceive_isSystemUser_jobScheduled() 182 mReceiver.onReceive( in onReceive_notSystemUser_noJobScheduled() 193 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_deviceBootUp_jobScheduled() 203 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_bootCompleteInvalidVers_noJobScheduled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SliceBroadcastReceiverTest.java | 101 mReceiver.onReceive(mContext, intent); in onReceive_toggleChanged() 136 mReceiver.onReceive(mContext, intent); in toggleUpdate_synchronously_notifyChange_should_be_called() 159 mReceiver.onReceive(mContext, intent); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 187 mReceiver.onReceive(mContext, intent); in onReceive_sliderChanged() 213 mReceiver.onReceive(mContext, intent); in onReceive_invalidController_throwsException() 223 mReceiver.onReceive(mContext, intent); in sliderOnReceive_noKey_throwsException() 229 mReceiver.onReceive(mContext, intent); in toggleOnReceive_noExtra_illegalStateException() 236 mReceiver.onReceive(mContext, intent); in toggleOnReceive_emptyKey_throwsIllegalStateException() 266 mReceiver.onReceive(mContext, intent); in toggleUpdate_unavailableUriNotified() 304 mReceiver.onReceive(mContext, intent); in sliderUpdate_unavailableUriNotified()
|
D | VolumeSliceHelperTest.java | 156 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamRegistered_shouldNotifyChange() 163 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotRegistered_shouldNotNotifyChange() 173 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotMatched_shouldNotNotifyChange() 184 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_mediaVolumeNotChanged_shouldNotNotifyChange() 196 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_streamVolumeMuted_shouldNotifyChange() 208 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_streamDevicesChanged_shouldNotifyChange() 219 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_primaryMutedChanged_shouldNotifyChangeAll()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/storage/ |
D | FormatActivityFormatReceiverTest.java | 63 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/Settings/tests/robotests/src/com/android/settings/sim/ |
D | SimSelectNotificationTest.java | 165 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_notificationShouldSend() 191 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_NoExtra_notificationShouldNotSend() 204 mSimSelectNotification.onReceive(mContext, intent); in onReceiveEnableMms_MmsDataAlreadyEnabled_notificationShouldNotSend() 213 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_NoExtra_notificationShouldNotSend() 223 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_WithDataPickExtra_shouldStartActivity() 243 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_WithDismissExtra_shouldDismiss() 249 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_WithDismissExtra_shouldDismiss() 269 mSimSelectNotification.onReceive(mContext, intent); in onReceivePrimarySubListChange_DualCdmaWarning_notificationShouldSend()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | NetworkPasswordPreferenceControllerTest.java | 132 mPreferenceController.mNameChangeReceiver.onReceive(mContext, intent); in receiveNameChangeIntent_emptyName_dialogNameRemoved() 146 mPreferenceController.mNameChangeReceiver.onReceive(mContext, intent); in receiveNameChangeIntent_name_dialogNameSet() 159 mPreferenceController.mSecurityChangeReceiver.onReceive(mContext, intent); in receiveSecurityChangeIntent_setUnsecureType_preferenceHidden() 172 mPreferenceController.mSecurityChangeReceiver.onReceive(mContext, intent); in receiveSecurityChangeIntent_setSecureType_preferenceVisible() 188 mPreferenceController.mSecurityChangeReceiver.onReceive(mContext, intent); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected() 192 mPreferenceController.mNameChangeReceiver.onReceive(mContext, intent); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected()
|
D | AddWifiFragmentTest.java | 134 mFragment.mNameChangeReceiver.onReceive(mContext, intent); in receiveNameChangeIntent_emptyName_buttonDisabled() 147 mFragment.mNameChangeReceiver.onReceive(mContext, intent); in receiveNameChangeIntent_name_buttonEnabled() 159 mFragment.mNameChangeReceiver.onReceive(mContext, nameIntent); in receiveSecurityChangeIntent_nameSet_buttonDisabled() 165 mFragment.mSecurityChangeReceiver.onReceive(mContext, securityIntent); in receiveSecurityChangeIntent_nameSet_buttonDisabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiverTest.java | 69 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() 109 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedNcmEnabled_invokesCallback() 124 mReceiver.onReceive(mContext, intent); in onReceive_usbPortStatus_invokeCallback()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | TestingSettingsBroadcastReceiverTest.java | 51 mReceiver.onReceive(mContext, null); in onReceive_nullIntent_shouldNotCrash() 52 mReceiver.onReceive(mContext, intent); in onReceive_nullIntent_shouldNotCrash() 63 mReceiver.onReceive(mContext, intent); in onReceive_wrongIntent_shouldNotStartActivity() 74 mReceiver.onReceive(mContext, intent); in onReceive_correctIntent_shouldStartActivity()
|
D | TetherSettingsTest.java | 215 receiver.onReceive(mockActivity, bluetoothTetheringOn); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOn() 248 receiver.onReceive(mockActivity, bluetoothTetheringOn); in testBluetoothState_updateBluetoothState_bluetoothTetheringStateOff() 300 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsConnected_tetheringPreferenceIsEnabled() 315 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_usbIsDisconnected_tetheringPreferenceIsDisabled() 329 receiver.onReceive(mockActivity, mediaIsShared); in onReceive_mediaIsShared_tetheringPreferenceIsDisabled() 345 receiver.onReceive(mockActivity, usbStateChanged); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled() 346 receiver.onReceive(mockActivity, mediaIsShared); in onReceive_mediaIsUnshared_tetheringPreferenceIsEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryBroadcastReceiverTest.java | 84 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryLevelChanged_dataUpdated() 100 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryHealthChanged_dataUpdated() 114 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryNotPresent_shouldShowHelpMessage() 124 mBatteryBroadcastReceiver.onReceive(mContext, in testOnReceive_powerSaveModeChanged_listenerInvoked() 141 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryDataNotChanged_listenerNotInvoked()
|
D | BatterySaverReceiverTest.java | 54 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pSettingsTest.java | 154 mFragment.mReceiver.onReceive(mContext, intent); in beSearching_getP2pStateEnabledIntent_shouldBeFalse() 167 mFragment.mReceiver.onReceive(mContext, intent); in withEmptyP2pDeviceList_getP2pPeerChangeIntent_connectedDevicesShouldBeZero() 184 mFragment.mReceiver.onReceive(mContext, intent); in lastGroupForm_whenGroupFormInWifiP2pInfoIsFalse_beSetAsFalse() 201 mFragment.mReceiver.onReceive(mContext, intent); in lastGroupForm_whenGroupFormInWifiP2pInfoIsTrue_beSetAsTrue() 230 mFragment.mReceiver.onReceive(mContext, intent); in withNoStage_discoveryChanged_shouldStopSearching() 243 mFragment.mReceiver.onReceive(mContext, intent); in withStartedStage_discoveryChanged_shouldStartSearching() 272 mFragment.mReceiver.onReceive(mContext, intent); in noLastGroupForm_whenP2pDisconnected_shouldStartSearch() 491 mFragment.mReceiver.onReceive(mContext, intent); in p2pThisDeviceChange_shouldRequestDeviceInfoAgain() 500 mFragment.mReceiver.onReceive(mContext, intent); in p2pPersistentGroupChange_shouldRequestGroupInfo()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverTest.java | 135 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged() 146 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast() 158 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted() 164 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction() 174 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 185 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionSmsEmergencyCbReceived() 196 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsCbReceivedAction() 207 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsServiceCategoryProgramDataReceivedAction() 470 mCellBroadcastReceiver.onReceive(mContext, mIntent); in setContext()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 317 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()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/ |
D | AccountsChangedReceiverTests.java | 71 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/manageduser/ |
D | ManagedUserRemovalListenerTest.java | 82 managedUserRemovalListener.onReceive(mContext, ARBITRARY_ACTION_INTENT); in onReceive_arbitraryAction_userProvisioningStateIntact() 92 managedUserRemovalListener.onReceive(mContext, SECONDARY_USER_REMOVED_INTENT); in onReceive_secondaryUserRemovedAction_userProvisioningStateIntact() 102 managedUserRemovalListener.onReceive(mContext, WORK_PROFILE_USER_REMOVED_INTENT); in onReceive_workProfileUserRemovedAction_userProvisioningStateIntact() 112 managedUserRemovalListener.onReceive(mContext, WORK_PROFILE_USER_REMOVED_INTENT); in onReceive_workProfileUserRemovedAction_stateProfileFinalized_userProvisioningStateResets()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardsFragmentTest.java | 117 mFragment.mKeyEventReceiver.onReceive(mContext, intent); in onReceive_homeKey_shouldResetSession() 130 mFragment.mKeyEventReceiver.onReceive(mContext, intent); in onReceive_recentApps_shouldResetSession() 143 mFragment.mKeyEventReceiver.onReceive(mContext, intent); in onReceive_otherKey_shouldNotResetSession() 155 mFragment.mScreenOffReceiver.onReceive(mContext, intent); in onReceive_screenOff_shouldResetSession()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | NfcPreferenceControllerTest.java | 236 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_noExtra_sliceDoesntUpdate() 249 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOn_sliceDoesntUpdate() 262 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_turningOff_sliceDoesntUpdate() 275 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOn_sliceUpdates() 288 receiver.onReceive(mContext, triggerIntent); in ncfSliceWorker_nfcBroadcast_nfcOff_sliceUpdates()
|