/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/ |
D | TestUtil.java | 48 private void runShellCommand(String command) { in runShellCommand() method in TestUtil 58 runShellCommand("device_config put adservices global_kill_switch " + false); in overrideKillSwitches() 59 runShellCommand("device_config put adservices topics_kill_switch " + false); in overrideKillSwitches() 61 runShellCommand("device_config put adservices global_kill_switch " + null); in overrideKillSwitches() 62 runShellCommand("device_config put adservices topics_kill_switch " + null); in overrideKillSwitches() 67 runShellCommand("device_config put adservices disable_topics_enrollment_check " + enable); in enableEnrollmentCheck() 72 runShellCommand( in overrideEpochPeriod() 78 runShellCommand( in overridePercentageForRandomTopic() 85 runShellCommand( in forceEpochComputationJob() 91 runShellCommand("setprop debug.adservices.consent_manager_debug_mode " + overrideStr); in overrideConsentManagerDebugMode() [all …]
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/ |
D | SelectAdsFlagRule.java | 79 ShellUtils.runShellCommand( 82 ShellUtils.runShellCommand( 84 ShellUtils.runShellCommand( 98 ShellUtils.runShellCommand("am service-restart-backoff disable " + packageName); 102 ShellUtils.runShellCommand( 105 ShellUtils.runShellCommand( 107 ShellUtils.runShellCommand( 109 ShellUtils.runShellCommand( 115 ShellUtils.runShellCommand( 120 ShellUtils.runShellCommand("device_config set_sync_disabled_for_tests persistent"); [all …]
|
/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/ |
D | ConsentSettingsUiAutomatorTest.java | 59 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 0"); in consentSystemServerOnlyTest() 60 ShellUtils.runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in consentSystemServerOnlyTest() 67 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 1"); in consentPpApiOnlyTest() 68 ShellUtils.runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in consentPpApiOnlyTest() 76 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 2"); in consentSystemServerAndPpApiTest() 77 ShellUtils.runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in consentSystemServerAndPpApiTest() 85 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 0"); in consentSystemServerOnlyDialogsOnTest() 86 ShellUtils.runShellCommand("device_config put adservices ui_dialogs_feature_enabled true"); in consentSystemServerOnlyDialogsOnTest() 93 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 1"); in consentPpApiOnlyDialogsOnTest() 94 ShellUtils.runShellCommand("device_config put adservices ui_dialogs_feature_enabled true"); in consentPpApiOnlyDialogsOnTest() [all …]
|
D | AppConsentSettingsUiAutomatorTest.java | 74 String installMessage = ShellUtils.runShellCommand("pm install -r " + TEST_APP_APK_PATH); in setup() 91 ShellUtils.runShellCommand("pm uninstall --user 0 " + TEST_APP_NAME); in teardown() 135 ShellUtils.runShellCommand( in consentAppSearchOnlyTest() 137 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 3"); in consentAppSearchOnlyTest() 139 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth null"); in consentAppSearchOnlyTest() 146 ShellUtils.runShellCommand( in consentAppSearchOnlyDialogsOnTest() 148 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth 3"); in consentAppSearchOnlyDialogsOnTest() 150 ShellUtils.runShellCommand("device_config put adservices consent_source_of_truth null"); in consentAppSearchOnlyDialogsOnTest() 212 ShellUtils.runShellCommand( in appConsentTest() 214 ShellUtils.runShellCommand( in appConsentTest() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/sandbox/measurement/src/com/android/tests/sandbox/measurement/ |
D | SandboxedMeasurementManagerTest.java | 111 ShellUtils.runShellCommand( in enforceMeasurementEnrollmentCheck() 118 ShellUtils.runShellCommand( in allowSandboxPackageNameAccessMeasurementApis() 123 ShellUtils.runShellCommand( in resetAllowSandboxPackageNameAccessMeasurementApis() 133 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 135 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 137 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 140 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 143 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 146 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 149 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/ui/libs/src/com/android/adservices/tests/ui/libs/ |
D | UiUtils.java | 81 String currentFlagValue = ShellUtils.runShellCommand(shellCmdGetTemplate, flagName); in forceSetFlag() 88 ShellUtils.runShellCommand(shellCmdSetTemplate, flagName, newFlagValue); in forceSetFlag() 92 currentFlagValue = ShellUtils.runShellCommand(shellCmdGetTemplate, flagName); in forceSetFlag() 101 ShellUtils.runShellCommand( in refreshConsentResetToken() 115 ShellUtils.runShellCommand( in disableSchedulingParams() 118 ShellUtils.runShellCommand( in disableSchedulingParams() 188 ShellUtils.runShellCommand("am force-stop com.google.android.adservices.api"); in restartAdservices() 189 ShellUtils.runShellCommand("am force-stop com.android.adservices.api"); in restartAdservices() 193 ShellUtils.runShellCommand( in clearSavedStatus() 196 ShellUtils.runShellCommand( in clearSavedStatus() [all …]
|
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/rootcts/ |
D | DeviceTimeRule.java | 47 ShellUtils.runShellCommand(String.format("date -s @%s", secondsSinceUnixEpoch)); in overrideDeviceTime() 48 ShellUtils.runShellCommand("settings put global auto_time 0"); in overrideDeviceTime() 49 ShellUtils.runShellCommand("am broadcast -a android.intent.action.TIME_SET"); in overrideDeviceTime() 50 Log.d(TAG, "Device time now set to " + ShellUtils.runShellCommand("date")); in overrideDeviceTime() 55 ShellUtils.runShellCommand("settings put global auto_time 1"); in resetDeviceTime() 56 ShellUtils.runShellCommand("am broadcast -a android.intent.action.TIME_SET"); in resetDeviceTime() 57 Log.d(TAG, "Device time now set to " + ShellUtils.runShellCommand("date")); in resetDeviceTime()
|
D | ScheduleCustomAudienceUpdateTest.java | 60 ShellUtils.runShellCommand( in setUp() 66 ShellUtils.runShellCommand( in teardown() 173 ShellUtils.runShellCommand( in testScheduleCustomAudienceUpdate_Disabled_failure() 194 ShellUtils.runShellCommand( in setMinAllowedDelayTimeMinutes() 201 ShellUtils.runShellCommand( in clearAlDebuggableUpdates()
|
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/ |
D | FledgeAppNotAllowedMemoryTest.java | 40 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode false"); in ca_testNoUserConsent() 42 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode true"); in ca_testNoUserConsent() 47 ShellUtils.runShellCommand("device_config put adservices ppapi_app_allow_list \"\""); in ca_testAppNotAllowed() 49 ShellUtils.runShellCommand("device_config delete adservices ppapi_app_allow_list"); in ca_testAppNotAllowed() 54 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode false"); in adSelection_testNoUserConsent() 56 ShellUtils.runShellCommand("setprop debug.adservices.consent_manager_debug_mode true"); in adSelection_testNoUserConsent() 61 ShellUtils.runShellCommand("device_config put adservices ppapi_app_allow_list \"\""); in adSelection_testAppNotAllowed() 63 ShellUtils.runShellCommand("device_config delete adservices ppapi_app_allow_list"); in adSelection_testAppNotAllowed()
|
D | GetAdSelectionDataLatency.java | 728 ShellUtils.runShellCommand( in increaseApiTimeout() 733 ShellUtils.runShellCommand( in resetApiTimeout() 738 ShellUtils.runShellCommand( in increaseMaxCAsPerApp() 740 ShellUtils.runShellCommand( in increaseMaxCAsPerApp() 745 ShellUtils.runShellCommand( in resetMaxCAsPerApp() 747 ShellUtils.runShellCommand( in resetMaxCAsPerApp() 752 ShellUtils.runShellCommand( in increaseMaximumAds() 754 ShellUtils.runShellCommand( in increaseMaximumAds() 759 ShellUtils.runShellCommand( in resetMaximumAds() 761 ShellUtils.runShellCommand( in resetMaximumAds() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | RevokeSelfPermissionTest.java | 34 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 85 SystemUtil.runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpScreen() 86 SystemUtil.runShellCommand("input keyevent 82"); in wakeUpScreen() 87 mOldScreenOffTimeoutValue = SystemUtil.runShellCommand( in wakeUpScreen() 89 mOldSleepTimeoutValue = SystemUtil.runShellCommand("settings get secure sleep_timeout"); in wakeUpScreen() 90 SystemUtil.runShellCommand("settings put system screen_off_timeout -1"); in wakeUpScreen() 91 SystemUtil.runShellCommand("settings put secure sleep_timeout -1"); in wakeUpScreen() 106 runShellCommand("pm uninstall " + APP_PKG_NAME); in uninstallApp() 115 SystemUtil.runShellCommand("settings put system screen_off_timeout " in restoreDeviceForOneTime() 117 SystemUtil.runShellCommand("settings put secure sleep_timeout " + mOldSleepTimeoutValue); in restoreDeviceForOneTime() [all …]
|
D | BaseNotificationListenerCheckTest.java | 22 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 181 runShellCommand(command); in setNotificationListenerServiceAllowed() 255 runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpAndDismissKeyguard() 256 runShellCommand("wm dismiss-keyguard"); in wakeUpAndDismissKeyguard() 269 runShellCommand( in resetPermissionControllerBeforeEachTest() 272 runShellCommand("cmd jobscheduler reset-schedule-quota"); in resetPermissionControllerBeforeEachTest()
|
D | LocationAccessCheckTest.java | 30 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 346 runShellCommand("pm clear --user -2 " + pkg); in clearPackageData() 350 String jobStatus = runShellCommand("cmd jobscheduler get-job-state -u " in isJobReady() 407 runShellCommand("cmd notification allow_listener " + (new ComponentName(sContext, in allowNotificationAccess() 421 runShellCommand("pm uninstall " + TEST_APP_PKG); in uninstallTestApp() 447 runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpAndDismissKeyguard() 448 runShellCommand("wm dismiss-keyguard"); in wakeUpAndDismissKeyguard() 493 runShellCommand( in resetPermissionControllerBeforeEachTest() 496 runShellCommand("cmd jobscheduler reset-schedule-quota"); in resetPermissionControllerBeforeEachTest() 553 runShellCommand("cmd notification disallow_listener " + (new ComponentName(sContext, in disallowNotificationAccess()
|
D | StorageEscalationTest.kt | 62 SystemUtil.runShellCommand("pm uninstall $APP_PACKAGE_NAME --user ALL") in <lambda>() 76 val createUserOutput: String = SystemUtil.runShellCommand("pm create-user secondary") in <lambda>() 86 SystemUtil.runShellCommand("am start-user -w $userId") in <lambda>() 93 SystemUtil.runShellCommand("pm remove-user $userId") in <lambda>()
|
D | OneTimePermissionTest.java | 27 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 104 SystemUtil.runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpScreen() 106 SystemUtil.runShellCommand("input keyevent 82"); in wakeUpScreen() 132 runShellCommand("pm uninstall " + APP_PKG_NAME); in uninstallApp() 133 runShellCommand("pm uninstall " + CUSTOM_CAMERA_PERM_APP_PKG_NAME); in uninstallApp() 222 runShellCommand("am crash " + APP_PKG_NAME); in testStickyServiceMaintainsPermissionOnRestart()
|
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/ |
D | SettingsTestUtil.java | 21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 90 runShellCommand("device_config put adservices ui_dialogs_feature_enabled true"); in measurementDialogTestUtil() 110 runShellCommand("device_config put adservices ui_toggle_speed_bump_enabled false"); in topicsToggleTestUtil() 143 runShellCommand("device_config put adservices ui_toggle_speed_bump_enabled false"); in fledgeToggleTestUtil() 176 runShellCommand("device_config put adservices ui_toggle_speed_bump_enabled false"); in measurementToggleTestUtil() 210 runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in topicsSubtitleTestUtil() 211 runShellCommand("device_config put adservices ui_toggle_speed_bump_enabled false"); in topicsSubtitleTestUtil() 221 runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in appsSubtitleTestUtil() 222 runShellCommand("device_config put adservices ui_toggle_speed_bump_enabled false"); in appsSubtitleTestUtil() 232 runShellCommand("device_config put adservices ui_dialogs_feature_enabled false"); in measurementSubtitleTestUtil() [all …]
|
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/testing/ |
D | TestDeviceHelper.java | 69 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper 71 return runShellCommand(getTestDevice(), cmdFmt, cmdArgs); in runShellCommand() 78 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper 150 String startActivityMsg = runShellCommand("am start -a %s", intent); in startActivity() 164 runShellCommand("am start -W -n %s/.%s", packageName, className); in startActivityWaitUntilCompletion() 169 return runShellCommand("pm enable %s/%s", packageName, className); in enableComponent() 177 return runShellCommand("pm enable --user %d %s/%s", userId, packageName, className); in enableComponent() 184 String receivers = runShellCommand("pm query-receivers --components -a %s", intent); in isActiveReceiver()
|
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/ |
D | MeasurementCompatibleManagerSandboxTest.java | 261 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 263 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 265 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 268 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 271 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 274 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 277 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches() 280 ShellUtils.runShellCommand( in overrideMeasurementKillSwitches()
|
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/ |
D | AppSearchDataMigrationHostTest.java | 25 import static com.android.adservices.shared.testing.TestDeviceHelper.runShellCommand; 206 runShellCommand("am force-stop %s", mAdServicesPackageName); in deletePreExistingData() 209 runShellCommand( in deletePreExistingData() 214 runShellCommand( in deletePreExistingData() 219 runShellCommand("rm -f /data/system/adservices/%d/consent/*", mCurrentUser); in deletePreExistingData() 222 runShellCommand("rm -f /data/system/adservices_topics.db*"); in deletePreExistingData() 245 String result = runShellCommand("sqlite3 /data/system/adservices_topics.db \"%s\"", query); in getBlockedTopics()
|
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/ |
D | DeviceConfigHelper.java | 186 runShellCommand("device_config set_sync_disabled_for_tests %s", value); in setSyncDisabledModeForTest() 194 String value = runShellCommand("device_config get %s %s", mNamespace, name).trim(); in get() 203 String allFlags = runShellCommand("device_config list %s", mNamespace); in get() 288 runShellCommand("device_config put %s %s %s", mNamespace, name, value); in asyncSet() 310 runShellCommand("device_config delete %s %s", mNamespace, name); in asyncDelete() 317 runShellCommand("device_config reset untrusted_clear %s", mNamespace); in clear() 338 String dump = runShellCommand("device_config list %s", mNamespace).trim(); in getAll()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarDevicePolicyManagerTest.java | 18 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 268 runShellCommand("input keyevent KEYCODE_POWER"); in unlockDevice() 269 runShellCommand("input keyevent KEYCODE_WAKEUP"); in unlockDevice() 270 runShellCommand("wm dismiss-keyguard"); in unlockDevice() 275 runShellCommand("locksettings set-pin %d", pin); in setUserPin() 279 runShellCommand("locksettings clear --old %d", oldPin); in resetUserPin() 314 runShellCommand("cmd car_service emulate-driving-state %s", state); in setDpmSafety()
|
/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/ |
D | AbstractAdServicesShellCommandHelper.java | 95 String res = runShellCommand(cmd); in runCommand() 144 protected abstract String runShellCommand(String cmd); in runShellCommand() method in AbstractAdServicesShellCommandHelper 160 String res = runShellCommand(startShellActivity(args)); in runShellCommandRS() 242 String res = runShellCommand(getDumpsysGetResultShellCommand(componentName)); in runGetResultShellCommand() 260 String out = runShellCommand(ADSERVICES_MANAGER_SERVICE_CHECK); in isAdServicesManagerServicePublished() 268 String res = runShellCommand(getDumpsysGetResultShellCommand(componentName)); in checkShellCommandActivityFinished()
|
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/ |
D | ParserConfigOverlayTest.kt | 22 import com.android.compatibility.common.util.SystemUtil.runShellCommand 129 runShellCommand("cmd overlay dump --user 0 state $overlayPackage").lines().first() in getStateForOverlay() 139 runShellCommand("pm install -r --force-sdk --force-queryable $OVERLAY_PATH") in install() 141 runShellCommand("cmd overlay enable --user 0 $OVERLAY_PACKAGE") in install() 148 runShellCommand("pm uninstall $OVERLAY_PACKAGE") in uninstall()
|
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | TestUtils.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 155 String result = runShellCommand(automation, runJobCmd); in runJobAndWaitUntilCompleted() 174 String jobState = runShellCommand(automation, statusCmd).trim(); in awaitJobUntilRequestedState() 194 String jobState = runShellCommand(automation, statusCmd).trim(); in awaitJobUntilRequestedState()
|
/packages/modules/AdServices/adservices/tests/cts/endtoends/topics/appupdate/src/com/android/adservices/tests/cts/topics/appupdate/ |
D | AppUpdateTest.java | 25 import static com.android.compatibility.common.util.ShellUtils.runShellCommand; 289 runShellCommand("pm install --user %d -r %s", mUserId, TEST_APK_PATH); in installTestSampleApp() 295 runShellCommand("pm uninstall --user %d %s", mUserId, TEST_PKG_NAME); in uninstallTestSampleApp() 300 runShellCommand( in forceEpochComputationJob() 307 runShellCommand( in forceMaintenanceJob()
|