/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 140 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect() 144 receiverUnderTest.onReceive(mContext, in testSingleDeviceConnectAndDisconnect() 156 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 159 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 162 receiverUnderTest.onReceive(mContext, in testAddDeviceFailsWhenServicesAreNull() 172 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 175 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 178 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 185 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() 188 receiverUnderTest.onReceive(mContext, in testMultiDeviceConnectAndDisconnect() [all …]
|
/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/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/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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastReceiverTest.java | 135 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChanged() 147 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionCarrierConfigChangedOnRebroadcast() 159 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionBootCompleted() 165 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_cellbroadcastStartConfigAction() 176 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 181 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 185 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionDefaultSmsSubscriptionChanged() 195 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_actionSmsEmergencyCbReceived() 206 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsCbReceivedAction() 217 mCellBroadcastReceiver.onReceive(mContext, mIntent); in testOnReceive_smsServiceCategoryProgramDataReceivedAction() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageBroadcastReceiverTest.java | 65 mBatteryUsageBroadcastReceiver.onReceive(mContext, new Intent("invalid intent")); in onReceive_invalidIntent_notStartService() 79 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_aospNotFullCharged_notFetchUsageData() 99 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_aospNearBooting_notFetchUsageData() 118 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_aospWrongAction_notFetchUsageData() 137 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_aospNormal_fetchUsageData() 153 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_pixelNotFullCharged_notFetchUsageData() 173 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_pixelNearBooting_fetchUsageData() 192 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_pixelWrongAction_notFetchUsageData() 211 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_pixelNormal_fetchUsageData() 226 mBatteryUsageBroadcastReceiver.onReceive(mContext, in onReceive_clearCacheIntentInDebugMode_clearBatteryCacheData() [all …]
|
D | BootBroadcastReceiverTest.java | 81 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_BOOT_COMPLETED)); in onReceive_withWorkProfile_notRefreshesJob() 95 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_BOOT_COMPLETED)); in onReceive_withBootCompletedIntent_refreshesJob() 107 mReceiver.onReceive( in onReceive_withSetupWizardIntent_refreshesJob() 114 mReceiver.onReceive( in onReceive_withRecheckIntent_refreshesJob() 121 mReceiver.onReceive(mContext, new Intent("invalid intent action")); in onReceive_unexpectedIntent_notRefreshesJob() 127 mReceiver.onReceive(mContext, /*intent=*/ null); in onReceive_nullIntent_notRefreshesJob() 134 mReceiver.onReceive(mContext, new Intent(Intent.ACTION_TIME_CHANGED)); in onReceive_withTimeChangedIntent_clearsAllDataAndRefreshesJob()
|
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/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementReceiverTest.java | 133 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_dataReset() 145 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_simPinLockedThenLoaded() 155 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 0)); in onReceive_simChanged_simPinLockedThenLoaded() 165 mReceiver.onReceive( in onReceive_theSameSim_dataNotReset() 177 mReceiver.onReceive( in onReceive_differentSlot_dataNotReset() 189 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(SUB_ID, /* slotId= */ 1)); in onReceive_simChangedAndDifferentSlotId_dataReset() 198 mReceiver.onReceive( in onReceive_isSystemUser_jobScheduled() 208 receiver.onReceive( in onReceive_notSystemUser_noJobScheduled() 219 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_deviceBootUp_jobScheduled() 229 mReceiver.onReceive(mContext, getCarrierConfigChangedIntent(LAST_SUB_ID, /* slotId= */ 0)); in onReceive_bootCompleteInvalidVers_noJobScheduled() [all …]
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/common/ |
D | BootCompletedReceiverTest.java | 88 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfDisabled() 99 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfNoPackages() 115 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfNoPackagesMatchingAdServices() 128 mReceiver.onReceive(mContext, null); in testReceiverResendsBroadcast() 140 mReceiver.onReceive(mContext, null); in testReceiverDisablesItselfOnTPlusIfAdServicesDisabled() 160 mReceiver.onReceive(mContext, null); in testReceiverDoesNotDisableItselfOnTPlusIfAdServicesEnabled() 173 mReceiver.onReceive(mContext, null); in testReceiverShouldNotDisableItselfOnSMinus() 187 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfFingerprintExcludedExactly() 204 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfFingerprintExcludedPrefix() 216 mReceiver.onReceive(mContext, null); in testReceiverSkipsBroadcastIfFingerprintExcludedTrim() [all …]
|
/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/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/unit/src/com/android/settings/safetycenter/ |
D | SafetySourceBroadcastReceiverTest.java | 91 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsDisabled_doesNotSetData() 107 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoIntentAction_doesNotSetData() 121 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNullSourceIds_doesNotSetData() 136 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoSourceIds_doesNotSetData() 152 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_whenSafetyCenterIsEnabled_withNoBroadcastId_doesNotSetData() 169 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_setsRefreshEvent() 192 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withLockscreenSourceId_setsLockscreenData() 211 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onRefresh_withBiometricsSourceId_setsBiometricData() 224 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onBootCompleted_setsBootCompleteEvent() 239 new SafetySourceBroadcastReceiver().onReceive(mApplicationContext, intent); in onReceive_onBootCompleted_sendsBiometricAndLockscreenData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryBroadcastReceiverTest.java | 84 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryLevelChanged_dataUpdated() 97 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryHealthChanged_dataUpdated() 108 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_chargingStatusChanged_dataUpdated() 119 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryNotPresent_shouldShowHelpMessage() 126 mBatteryBroadcastReceiver.onReceive(mContext, in onReceive_powerSaveModeChanged_listenerInvoked() 140 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryDataNotChanged_listenerNotInvoked() 153 mBatteryBroadcastReceiver.onReceive(mContext, in onReceive_dockDefenderBypassed_listenerInvoked() 161 mBatteryBroadcastReceiver.onReceive(mContext, in onReceive_usbPortComplianceChanged_listenerInvoked()
|
D | BatterySettingsMigrateCheckerTest.java | 96 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_invalidScheduledLevel_resetScheduledValue() 107 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_validScheduledLevel_notResetScheduledValue() 117 mBatterySettingsMigrateChecker.onReceive(mContext, BOOT_COMPLETED_INTENT); in onReceive_validSpecialScheduledLevel_notResetScheduledValue() 127 mBatterySettingsMigrateChecker.onReceive(mContext, null); in onReceive_nullIntnt_noAction() 137 mBatterySettingsMigrateChecker.onReceive(mContext, new Intent()); in onReceive_invalidIntent_noAction() 148 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 | 114 mReceiver.onReceive(mContext, intent); in onReceive_withActionDeviceSelected_callsStartTransfer() 126 mReceiver.onReceive(mContext, intent); in onReceive_withActionIncomingFileConfirm_startsIncomingFileConfirmActivity() 136 mReceiver.onReceive(mContext, intent); in onReceive_withActionAccept_updatesContents() 148 mReceiver.onReceive(mContext, intent); in onReceive_withActionDecline_updatesContents() 162 mReceiver.onReceive(mContext, intent); in onReceive_withActionOutboundTransfer_startsTransferHistoryActivity() 174 mReceiver.onReceive(mContext, intent); in onReceive_withActionInboundTransfer_startsTransferHistoryActivity() 184 mReceiver.onReceive(mContext, intent); in onReceive_withActionOpenReceivedFile_startsTransferHistoryActivity() 209 mReceiver.onReceive(mContext, intent); in onReceive_withActionHide_contentUpdate() 220 mReceiver.onReceive(mContext, intent); in onReceive_withActionCompleteHide_contentUpdate() 264 mReceiver.onReceive(mContext, intent); in onReceive_withActionTransferCompletedAndHandoverInitiated_contextSendBroadcast() [all …]
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/helpers/nfc/ |
D | NfcReceiver.java | 47 void onReceive(String message); in onReceive() method 60 public void onReceive(Context context, Intent intent) { in NfcReceiver() 77 public void onReceive(Context context, Intent intent) { in NfcReceiver() 79 clientReceiver.onReceive(context, intent); in NfcReceiver() 116 callback.onReceive(new String(msg.getRecords()[0].getPayload())); in processIntent()
|
/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/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/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/ |
D | SafetyCenterReceiverTest.kt | 154 safetyCenterReceiver.onReceive(application, Intent(ACTION_SAFETY_CENTER_ENABLED_CHANGED)) in <lambda>() 165 safetyCenterReceiver.onReceive(application, Intent(ACTION_SAFETY_CENTER_ENABLED_CHANGED)) in <lambda>() 176 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 190 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 202 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 214 safetyCenterReceiver.onReceive(application, intent) in <lambda>() 226 safetyCenterReceiver.onReceive(application, intent) in <lambda>()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigratorPackageChangesReceiverTest.java | 95 mMigratorPackageChangesReceiver.onReceive( in testPackageAdded_callsOnPackageInstalledOrChanged() 104 mMigratorPackageChangesReceiver.onReceive( in testPackageChanged_callsOnPackageInstalledOrChanged() 113 mMigratorPackageChangesReceiver.onReceive( in testPackageRemoved_callsOnPackageRemoved() 122 mMigratorPackageChangesReceiver.onReceive(mContext, mIntent); in testOnReceive_nullPackage_noMigrationStateManagerCall() 129 mMigratorPackageChangesReceiver.onReceive( in testOnReceive_nullUserHandle_noMigrationStateManagerCall() 138 mMigratorPackageChangesReceiver.onReceive( in testOnReceive_notAForegroundUser_noMigrationStateManagerCall()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/ |
D | PermissionPackageChangesOrchestratorTest.java | 94 mOrchestrator.onReceive(mContext, buildPackageIntent(Intent.ACTION_PACKAGE_ADDED)); in testPackageAdded_callsTrackerToUpdateState_noGrantTimeOrPermsCalls() 106 mOrchestrator.onReceive(mContext, buildPackageIntent(Intent.ACTION_PACKAGE_CHANGED)); in testPackageChanged_intentWasRemoved_revokesPerms() 115 mOrchestrator.onReceive( in testPackageRemoved_resetsGrantTime() 124 mOrchestrator.onReceive( in testPackageRemoved_removesFromPriorityList() 133 mOrchestrator.onReceive( in testPackageReplaced_noGrantTimeResetsOrPermsRevokes() 145 mOrchestrator.onReceive( in testPackageReplaced_intentNotSupported_revokesPerms()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | UsbStylusBroadcastReceiverTest.java | 66 mReceiver.onReceive(mContext, intent); in onReceive_usbDeviceAttachedStylus_invokeCallback() 80 mReceiver.onReceive(mContext, intent); in onReceive_usbDeviceDetachedStylus_invokeCallback() 94 mReceiver.onReceive(mContext, intent); in onReceive_usbDeviceAttachedNotStylus_doesNotInvokeCallback() 108 mReceiver.onReceive(mContext, intent); in onReceive_usbDeviceStateStylus_invokeCallback() 122 mReceiver.onReceive(mContext, intent); in onReceive_usbDeviceStateNotStylus_doesNotInvokeCallback()
|