/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 | 152 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect() 156 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect() 168 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 171 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 174 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 184 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 187 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 190 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 197 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 200 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() [all …]
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 146 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_dataReset() 157 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_simPinLockedThenLoaded() 167 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_simPinLockedThenLoaded() 176 mReceiver.onReceive( in onReceive_theSameSim_dataNotReset() 188 mReceiver.onReceive( in onReceive_differentSlot_dataNotReset() 200 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 1)); in onReceive_simChangedAndDifferentSlotId_dataReset() 208 mReceiver.onReceive( in onReceive_isSystemUser_jobScheduled() 218 receiver.onReceive( in onReceive_notSystemUser_noJobScheduled() 230 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_deviceBootUp_jobScheduled() 241 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_bootCompleteInvalidVers_noJobScheduled() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | ActiveSubscriptionsListenerTest.java | 121 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 122 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 127 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 130 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 135 mReceiver.onReceive(mContext, INTENT_RADIO_TECHNOLOGY_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 136 mReceiver.onReceive(mContext, INTENT_MULTI_SIM_CONFIG_CHANGED); in start_configChangedIntent_onChangedShouldBeCalled() 142 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 149 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 154 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached() 159 mReceiver.onReceive(mContext, INTENT_CARRIER_CONFIG_CHANGED); in start_carrierConfigChangedIntent_onChangedWhenSubIdBeenCached()
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | QnsTimerTest.java | 91 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in testRegisterTimerForScreenOff() 105 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_ON)); in testRegisterTimerForScreenOn() 150 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in testUpdateTimerTypeToAlarm() 159 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in testTimerExpired() 171 mBroadcastReceiver.onReceive(mContext, new Intent(ACTION_ALARM_TIMER_EXPIRED)); in testTimerExpired() 181 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in testMultipleTimerRegistered() 217 mBroadcastReceiver.onReceive(mContext, new Intent(Intent.ACTION_SCREEN_OFF)); in testCancelOngoingAlarm() 246 mBroadcastReceiver.onReceive( in testAlarmOnLiteIdleModeMinDelay() 258 mBroadcastReceiver.onReceive( in testAlarmOnLiteIdleMode() 270 mBroadcastReceiver.onReceive( in testAlarmOnIdleModeMinDelay() [all …]
|
D | QnsEventDispatcherTest.java | 148 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validCarrierIdIntent); in testOnReceivedCarrierConfigChangedIntent() 157 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, invalidCarrierIdIntent); in testOnReceivedCarrierConfigChangedIntent() 179 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validCarrierIdIntent); in testOnReceivedCarrierConfigChangedIntentWithInvalidSlot() 188 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, invalidCarrierIdIntent); in testOnReceivedCarrierConfigChangedIntentWithInvalidSlot() 207 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent); in testOnSimLoadedStateEvent() 217 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent1); in testOnSimLoadedStateEvent() 236 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent); in testOnSimUnknownStateEvent() 246 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent1); in testOnSimUnknownStateEvent() 265 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent); in testOnSimStateEventWithInvalidSlot() 274 mQnsEventDispatcher.mIntentReceiver.onReceive(mMockContext, validSimCardStateintent1); in testOnSimStateEventWithInvalidSlot() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BootBroadcastReceiverTest.java | 82 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_BOOT_COMPLETED)); in onReceive_withWorkProfile_notRefreshesJob() 97 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_BOOT_COMPLETED)); in onReceive_withBootCompletedIntent_refreshesJob() 108 mReceiver.onReceive( in onReceive_withSetupWizardIntent_refreshesJob() 115 mReceiver.onReceive( in onReceive_withRecheckIntent_refreshesJob() 122 mReceiver.onReceive(mContext, new Intent("invalid intent action")); in onReceive_unexpectedIntent_notRefreshesJob() 128 mReceiver.onReceive(mContext, /* intent= */ null); in onReceive_nullIntent_notRefreshesJob() 139 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_TIME_CHANGED)); in onReceive_withTimeChangedIntentSetEarlierTime_refreshesJob() 153 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_TIME_CHANGED)); in onReceive_withTimeChangedIntentSetLaterTime_clearNoDataAndRefreshesJob() 166 mReceiver.onReceive( in onReceive_withTimeFormatChangedIntent_skipRefreshJob() 185 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_TIMEZONE_CHANGED)); in onReceive_withTimeZoneChangedIntent_clearAllDataAndRefreshesJob()
|
D | BatteryUsageBroadcastReceiverTest.java | 65 mBatteryUsageBroadcastReceiver.onReceive(mContext, new Intent("invalid intent")); in onReceive_invalidIntent_notStartService() 74 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_workProfile_doNothing() 90 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_aospNotFullCharged_notFetchUsageData() 111 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_aospNearBooting_notFetchUsageData() 131 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_aospWrongAction_notFetchUsageData() 151 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_aospNormal_fetchUsageData() 168 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_pixelNotFullCharged_notFetchUsageData() 189 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_pixelNearBooting_fetchUsageData() 209 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_pixelWrongAction_notFetchUsageData() 229 mBatteryUsageBroadcastReceiver.onReceive( in onReceive_pixelNormal_fetchUsageData() [all …]
|
D | PeriodicJobReceiverTest.java | 77 mReceiver.onReceive(mContext, JOB_UPDATE_INTENT); in onReceive_validAction_refreshesJob() 83 mReceiver.onReceive(mContext, new Intent("invalid request update intent")); in onReceive_invalidAction_notRefreshesJob() 89 mReceiver.onReceive(mContext, /* intent= */ null); in onReceive_nullIntent_notRefreshesJob() 98 mReceiver.onReceive(mContext, JOB_UPDATE_INTENT); in onReceive_containsExpiredData_clearsExpiredDataFromDatabase() 109 mReceiver.onReceive(mContext, JOB_UPDATE_INTENT); in onReceive_withoutExpiredData_notClearsExpiredDataFromDatabase() 118 mReceiver.onReceive(mContext, JOB_UPDATE_INTENT); in onReceive_inWorkProfileMode_notRefreshesJob()
|
/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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | VolumeSliceHelperTest.java | 162 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamRegistered_shouldNotifyChange() 169 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotRegistered_shouldNotNotifyChange() 179 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_audioStreamNotMatched_shouldNotNotifyChange() 190 VolumeSliceHelper.onReceive(mContext, mIntent); in onReceive_mediaVolumeNotChanged_shouldNotNotifyChange() 202 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_ringStreamVolumeMuted_shouldNotifySeparateRing() 214 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_ringStreamVolumeMuted_shouldNotifyRing() 226 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_ringStreamVolumeMuted_shouldNotifyBothRings() 239 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_streamVolumeMuted_shouldNotifyChange() 257 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_ringVolumeMuted_shouldNotifyChangeNotificationSlice() 273 VolumeSliceHelper.onReceive(mContext, intent); in onReceive_ringVolumeMuted_shouldNotifyChangeRingSlice() [all …]
|
D | SliceBroadcastReceiverTest.java | 103 mReceiver.onReceive(mContext, intent); in onReceive_toggleChanged() 139 mReceiver.onReceive(mContext, intent); in toggleUpdate_synchronously_notifyChange_should_be_called() 163 mReceiver.onReceive(mContext, intent); in toggleUpdate_asynchronously_notifyChange_should_not_be_called() 192 mReceiver.onReceive(mContext, intent); in onReceive_sliderChanged() 219 mReceiver.onReceive(mContext, intent); in onReceive_invalidController_throwsException() 230 mReceiver.onReceive(mContext, intent); in sliderOnReceive_noKey_throwsException() 237 mReceiver.onReceive(mContext, intent); in toggleOnReceive_noExtra_illegalStateException() 245 mReceiver.onReceive(mContext, intent); in toggleOnReceive_emptyKey_throwsIllegalStateException() 276 mReceiver.onReceive(mContext, intent); in toggleUpdate_unavailableUriNotified() 315 mReceiver.onReceive(mContext, intent); in sliderUpdate_unavailableUriNotified()
|
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/ |
D | DockPackageChangeReceiverTest.kt | 47 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_uidNotSent_noop() 57 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_pkgNotSend_noop() 70 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageRemoved_replacing_noop() 83 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageRemoved_notReplacing_packageRemovedCalled() 96 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageAdded_replacing_noop() 109 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageAdded_notReplacing_packageAddedCalled() 122 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isEnabled_noop() 135 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isDisabled_packageRemovedCalled() 148 dockPackageChangeReceiver.onReceive(contextMock, intentMock) in onReceive_actionPackageChanged_isDisabledForUser_packageRemovedCalled()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/ |
D | SafetySourceBroadcastReceiverTest.java | 95 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsDisabled_doesNotSetData() 111 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoIntentAction_doesNotSetData() 125 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNullSourceIds_doesNotSetData() 140 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoSourceIds_doesNotSetData() 156 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoBroadcastId_doesNotSetData() 173 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_setsRefreshEvent() 196 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withLockscreenSourceId_setsLockscreenData() 215 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withBiometricsSourceId_setsBiometricData() 238 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withPrivateSpaceSourceId_setsPrivateSpaceData() 261 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withPrivateSpaceFeatureDisabled_setsNullData() [all …]
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverTest.java | 148 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged() 160 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast() 172 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted() 178 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction() 189 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 194 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 198 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 208 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionSmsEmergencyCbReceived() 219 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsCbReceivedAction() 230 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsServiceCategoryProgramDataReceivedAction() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryBroadcastReceiverTest.java | 83 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryLevelChanged_dataUpdated() 98 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryHealthChanged_dataUpdated() 110 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_chargingStatusChanged_dataUpdated() 121 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryNotPresent_shouldShowHelpMessage() 128 mBatteryBroadcastReceiver.onReceive( in onReceive_powerSaveModeChanged_listenerInvoked() 142 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryDataNotChanged_listenerNotInvoked() 155 mBatteryBroadcastReceiver.onReceive( in onReceive_dockDefenderBypassed_listenerInvoked() 163 mBatteryBroadcastReceiver.onReceive( in onReceive_usbPortComplianceChanged_listenerInvoked()
|
D | BatterySettingsMigrateCheckerTest.java | 93 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_invalidScheduledLevel_resetScheduledValue() 104 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_validScheduledLevel_notResetScheduledValue() 114 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_validSpecialScheduledLevel_notResetScheduledValue() 124 mBatterySettingsMigrateChecker.onReceive(mContext, null); in onReceive_nullIntnt_noAction() 134 mBatterySettingsMigrateChecker.onReceive(mContext, new Intent()); in onReceive_invalidIntent_noAction() 145 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_nonOwner_noAction()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiverTest.java | 125 .runOnMainSync(() -> mReceiver.onReceive(mContext, intent)); in onReceive_withActionDeviceSelected_callsStartTransfer() 144 mReceiver.onReceive(mContext, intent); in onReceive_withActionIncomingFileConfirm_startsIncomingFileConfirmActivity() 158 mReceiver.onReceive(mContext, intent); in onReceive_withActionAccept_updatesContents() 178 mReceiver.onReceive(mContext, intent); in onReceive_withActionDecline_updatesContents() 205 mReceiver.onReceive(mContext, intent); in onReceive_withActionOutboundTransfer_startsTransferHistoryActivity() 226 mReceiver.onReceive(mContext, intent); in onReceive_withActionInboundTransfer_startsTransferHistoryActivity() 260 mReceiver.onReceive(mContext, intent); in onReceive_withActionHide_contentUpdate() 280 mReceiver.onReceive(mContext, intent); in onReceive_withActionCompleteHide_makeAllVisibilityHidden() 299 mReceiver.onReceive(mContext, intent); in onReceive_withActionHideCompletedInboundTransfer_makesInboundVisibilityHidden() 318 mReceiver.onReceive(mContext, intent); in onReceive_withActionHideCompletedOutboundTransfer_makesOutboundVisibilityHidden() [all …]
|
/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/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiverTest.java | 70 mReceiver.onReceive(mContext, intent); in onReceive_usbConnected_invokeCallback() 83 mReceiver.onReceive(mContext, intent); in onReceive_usbDisconnected_invokeCallback() 98 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedMtpEnabled_invokeCallback() 113 mReceiver.onReceive(mContext, intent); in onReceive_usbConnectedNcmEnabled_invokesCallback() 129 mReceiver.onReceive(mContext, intent); in onReceive_usbPortStatus_invokesCallback() 142 mReceiver.onReceive(mContext, intent); in onReceive_usbConfiguredIsFalse_invokesCallback()
|
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/ |
D | SafetyCenterReceiverTest.kt | 153 safetyCenterReceiver.onReceive(application, Intent(ACTION_SAFETY_CENTER_ENABLED_CHANGED)) in <lambda>() 164 safetyCenterReceiver.onReceive(application, Intent(ACTION_SAFETY_CENTER_ENABLED_CHANGED)) in <lambda>() 175 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 189 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 201 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 213 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 225 safetyCenterReceiver.onReceive(application, intent) in <lambda>()
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AppWidgetsRestoredReceiverTest.kt | 59 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in When AppWidgetsRestoredReceiver gets valid broadcast it sets old and new app widget ids() 82 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in AppWidgetsRestoredReceiver does not set widget ids when Intent action is invalid() 104 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in AppWidgetsRestoredReceiver does not set widget ids when Intent host id is not Launcher() 126 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in AppWidgetsRestoredReceiver does not set ids when new and old ids differ in length() 146 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in AppWidgetsRestoredReceiver does not set widget ids when old ids not set() 166 receiverUnderTest.onReceive(DeviceHelpers.context, intent) in AppWidgetsRestoredReceiver does not set widget ids when new ids not set()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigratorPackageChangesReceiverTest.java | 94 mMigratorPackageChangesReceiver.onReceive( in testPackageAdded_callsOnPackageInstalledOrChanged() 103 mMigratorPackageChangesReceiver.onReceive( in testPackageChanged_callsOnPackageInstalledOrChanged() 112 mMigratorPackageChangesReceiver.onReceive( in testPackageRemoved_callsOnPackageRemoved() 121 mMigratorPackageChangesReceiver.onReceive(mContext, mIntent); in testOnReceive_nullPackage_noMigrationStateManagerCall() 128 mMigratorPackageChangesReceiver.onReceive( in testOnReceive_nullUserHandle_noMigrationStateManagerCall() 137 mMigratorPackageChangesReceiver.onReceive( in testOnReceive_notAForegroundUser_noMigrationStateManagerCall()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | PermissionPackageChangesOrchestratorTest.java | 91 mOrchestrator.onReceive(mContext, buildPackageIntent(Intent.ACTION_PACKAGE_ADDED)); in testPackageAdded_callsTrackerToUpdateState_noGrantTimeOrPermsCalls() 103 mOrchestrator.onReceive(mContext, buildPackageIntent(Intent.ACTION_PACKAGE_CHANGED)); in testPackageChanged_intentWasRemoved_revokesPerms() 112 mOrchestrator.onReceive( in testPackageRemoved_resetsGrantTime() 123 mOrchestrator.onReceive( in testPackageRemoved_removesFromPriorityList_whenNewAggregationOff() 134 mOrchestrator.onReceive( in testPackageReplaced_noGrantTimeResetsOrPermsRevokes() 146 mOrchestrator.onReceive( in testPackageReplaced_intentNotSupported_revokesPerms()
|
/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()
|