Home
last modified time | relevance | path

Searched refs:runShellCommand (Results 1 – 25 of 146) sorted by relevance

123456

/packages/modules/AdServices/adservices/tests/jetpack/src/com/android/adservices/
DTestUtil.java48 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/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkShellCommandTest.java117 private void runShellCommand(String... args) { in runShellCommand() method in ThreadNetworkShellCommandTest
130 runShellCommand("get-country-code"); in getCountryCode_testingPermissionIsChecked()
141 runShellCommand("get-country-code"); in getCountryCode_currentCountryCodePrinted()
148 runShellCommand("force-country-code", "enabled", "US"); in forceSetCountryCodeEnabled_testingPermissionIsChecked()
157 runShellCommand("force-country-code", "enabled", "US"); in forceSetCountryCodeEnabled_countryCodeIsOverridden()
164 runShellCommand("force-country-code", "disabled"); in forceSetCountryCodeDisabled_overriddenCountryCodeIsCleared()
171 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_testingPermissionIsChecked()
184 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_serviceThrows_failed()
194 runShellCommand("force-stop-ot-daemon", "enabled"); in forceStopOtDaemon_serviceApiTimeout_failedWithTimeoutError()
205 runShellCommand("join", DEFAULT_ACTIVE_DATASET_TLVS); in join_controllerServiceJoinIsCalled()
[all …]
/packages/modules/OnDevicePersonalization/tests/cts/sandbox/ondevicepersonalization/src/com/android/tests/sandbox/ondevicepersonalization/
DSandboxOnDevicePersonalizationManagerTest.java75 ShellUtils.runShellCommand( in setUp()
79 ShellUtils.runShellCommand( in setUp()
83 ShellUtils.runShellCommand( in setUp()
87 ShellUtils.runShellCommand( in setUp()
93 ShellUtils.runShellCommand( in setUp()
103 ShellUtils.runShellCommand( in reset()
106 ShellUtils.runShellCommand( in reset()
109 ShellUtils.runShellCommand( in reset()
112 ShellUtils.runShellCommand( in reset()
115 ShellUtils.runShellCommand( in reset()
[all …]
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DFledgeAppNotAllowedMemoryTest.java40 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()
DGetAdSelectionDataLatency.java696 ShellUtils.runShellCommand( in increaseApiTimeout()
701 ShellUtils.runShellCommand( in resetApiTimeout()
706 ShellUtils.runShellCommand( in increaseMaxCAsPerApp()
708 ShellUtils.runShellCommand( in increaseMaxCAsPerApp()
713 ShellUtils.runShellCommand( in resetMaxCAsPerApp()
715 ShellUtils.runShellCommand( in resetMaxCAsPerApp()
720 ShellUtils.runShellCommand( in increaseMaximumAds()
722 ShellUtils.runShellCommand( in increaseMaximumAds()
727 ShellUtils.runShellCommand( in resetMaximumAds()
729 ShellUtils.runShellCommand( in resetMaximumAds()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokeSelfPermissionTest.java34 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 …]
DBaseNotificationListenerCheckTest.java22 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()
DOneTimePermissionTest.java27 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()
DStorageEscalationTest.kt62 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>()
DPermissionGroupChange.java23 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
73 runShellCommand("pm uninstall " + APP_PKG_NAME); in uninstallAndWakeUpScreen()
74 SystemUtil.runShellCommand("input keyevent KEYCODE_WAKEUP"); in uninstallAndWakeUpScreen()
167 runShellCommand("pm uninstall android.permission.cts.appthatrequestpermission"); in uninstallTestApp()
DLocationAccessCheckTest.java30 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
351 runShellCommand("pm clear --user -2 " + pkg); in clearPackageData()
355 String jobStatus = runShellCommand("cmd jobscheduler get-job-state -u " in isJobReady()
418 runShellCommand("pm uninstall " + TEST_APP_PKG); in uninstallTestApp()
444 runShellCommand("input keyevent KEYCODE_WAKEUP"); in wakeUpAndDismissKeyguard()
445 runShellCommand("wm dismiss-keyguard"); in wakeUpAndDismissKeyguard()
498 runShellCommand( in resetPermissionControllerBeforeEachTest()
501 runShellCommand("cmd jobscheduler reset-schedule-quota"); in resetPermissionControllerBeforeEachTest()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/device/
DAbstractDeviceGatewayTest.java34 assertThrows(NullPointerException.class, () -> mDeviceGateway.runShellCommand(null)); in testRunShellCommand_nullArgs()
41 () -> mDeviceGateway.runShellCommand("whatever")); in testRunShellCommand_realRunShellCommandReturned_null()
48 String result = mDeviceGateway.runShellCommand("%s %s", "I", "am"); in testRunShellCommand_withFormatting_noErr()
57 String result = mDeviceGateway.runShellCommand("I am"); in testRunShellCommand_noFormatting_noErr()
71 () -> mDeviceGateway.runShellCommand("%s %s", "annoyed", "grunt")); in testRunShellCommand_withFormatting_errOnly()
86 () -> mDeviceGateway.runShellCommand("annoyed grunt")); in testRunShellCommand_noFormatting_errOnly()
102 () -> mDeviceGateway.runShellCommand("%s %s", "annoyed", "grunt")); in testRunShellCommand_withFormatting_outAndErr()
118 () -> mDeviceGateway.runShellCommand("annoyed grunt")); in testRunShellCommand_noFormatting_outAndErr()
/packages/modules/AdServices/shared/testing-libraries/host-side/java/com/android/adservices/shared/testing/
DTestDeviceHelper.java71 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper
73 return runShellCommand(getTestDevice(), cmdFmt, cmdArgs); in runShellCommand()
80 public static String runShellCommand( in runShellCommand() method in TestDeviceHelper
152 String startActivityMsg = runShellCommand("am start -a %s", intent); in startActivity()
166 runShellCommand("am start -W -n %s/.%s", packageName, className); in startActivityWaitUntilCompletion()
171 return runShellCommand("pm enable %s/%s", packageName, className); in enableComponent()
179 return runShellCommand("pm enable --user %d %s/%s", userId, packageName, className); in enableComponent()
186 String receivers = runShellCommand("pm query-receivers --components -a %s", intent); in isActiveReceiver()
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DAppSearchDataMigrationHostTest.java28 import static com.android.adservices.shared.testing.TestDeviceHelper.runShellCommand;
176 runShellCommand("am force-stop %s", mAdServicesPackageName); in testAppSearchConsentMigration()
178 runShellCommand( in testAppSearchConsentMigration()
222 runShellCommand("am force-stop %s", mAdServicesPackageName); in deletePreExistingData()
225 runShellCommand( in deletePreExistingData()
230 runShellCommand( in deletePreExistingData()
235 runShellCommand("rm -f /data/system/adservices/%d/consent/*", mCurrentUser); in deletePreExistingData()
238 runShellCommand("rm -f /data/system/adservices_topics.db*"); in deletePreExistingData()
261 String result = runShellCommand("sqlite3 /data/system/adservices_topics.db \"%s\"", query); in getBlockedTopics()
/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/testing/
DDeviceConfigHelper.java191 runShellCommand("device_config set_sync_disabled_for_tests %s", value); in setSyncDisabledModeForTest()
201 String value = runShellCommand("device_config get_sync_disabled_for_tests").trim(); in getSyncDisabledModeForTest()
206 String value = runShellCommand("device_config is_sync_disabled_for_tests").trim(); in getSyncDisabledModeForTest()
222 String value = runShellCommand("device_config get %s %s", mNamespace, name).trim(); in get()
231 String allFlags = runShellCommand("device_config list %s", mNamespace); in get()
316 runShellCommand("device_config put %s %s %s", mNamespace, name, value); in asyncSet()
338 runShellCommand("device_config delete %s %s", mNamespace, name); in asyncDelete()
352 runShellCommand("device_config reset untrusted_clear %s", mNamespace); in clear()
373 String dump = runShellCommand("device_config list %s", mNamespace).trim(); in getAll()
/packages/services/Car/tests/CarHiddenApiTest/src/android/car/hiddenapitest/
DCarDevicePolicyManagerTest.java18 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/
DAbstractAdServicesShellCommandHelper.java95 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/AdServices/adservices/tests/cts/endtoends/topics/appupdate/src/com/android/adservices/tests/cts/topics/appupdate/
DAppUpdateTest.java25 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
289 runShellCommand("pm install --user %d -r %s", mUserId, TEST_APK_PATH); in installTestSampleApp()
294 runShellCommand("pm uninstall --user %d %s", mUserId, TEST_PKG_NAME); in uninstallTestSampleApp()
299 runShellCommand( in forceEpochComputationJob()
306 runShellCommand( in forceMaintenanceJob()
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParserConfigOverlayTest.kt23 import com.android.compatibility.common.util.SystemUtil.runShellCommand
131 runShellCommand("cmd overlay dump --user $uid state $overlayPackage") in getStateForOverlay()
144 runShellCommand("pm install -r --force-sdk --force-queryable $OVERLAY_PATH") in install()
146 runShellCommand("cmd overlay enable --user $uid $OVERLAY_PACKAGE") in install()
153 runShellCommand("pm uninstall $OVERLAY_PACKAGE") in uninstall()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdservicesTestHelper.java91 ShellUtils.runShellCommand( in killAdservicesProcess()
119 ShellUtils.runShellCommand("%s %s", FORCE_KILL_PROCESS_COMMAND, adservicesPackageName); in killAdservicesProcess()
213 ShellUtils.runShellCommand("pm install --user %d -r %s", currentUserId, apkPath); in installTestApp()
221 ShellUtils.runShellCommand("pm uninstall --user %d %s", currentUserId, apkName); in uninstallTestApp()
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DRequestSurfacePackageTests.java92 ShellUtils.runShellCommand( in setUp()
96 ShellUtils.runShellCommand( in setUp()
101 ShellUtils.runShellCommand( in setUp()
112 ShellUtils.runShellCommand( in reset()
117 ShellUtils.runShellCommand( in reset()
119 ShellUtils.runShellCommand( in reset()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DTestUtils.java19 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
158 String result = runShellCommand(automation, runJobCmd); in runJobAndWaitUntilCompleted()
177 String jobState = runShellCommand(automation, statusCmd).trim(); in awaitJobUntilRequestedState()
197 String jobState = runShellCommand(automation, statusCmd).trim(); in awaitJobUntilRequestedState()
DPermissionUtils.java41 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
132 runShellCommand("pm uninstall " + packageName); in uninstallApp()
274 runShellCommand("pm clear --user " + sContext.getUserId() + " " + packageName); in clearAppState()
371 runShellCommand("cmd jobscheduler reset-execution-quota -u " in resetPermissionControllerJob()
373 runShellCommand("cmd jobscheduler reset-schedule-quota"); in resetPermissionControllerJob()
391 jobStatus = runShellCommand(automation, cmd).trim(); in scheduleJob()
/packages/services/Car/tests/CarExtendedApiTest/src/android/car/extendedapitest/testbase/
DCarApiTestBase.java19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
194 runShellCommand("cmd car_service set-start-bg-users-on-garage-mode false"); in suspendToRamAndResume()
198 runShellCommand("logcat -b all -c"); in suspendToRamAndResume()
201 runShellCommand("cmd car_service suspend --simulate --skip-garagemode " in suspendToRamAndResume()
211 runShellCommand("cmd car_service set-start-bg-users-on-garage-mode true"); in suspendToRamAndResume()
/packages/modules/ExtServices/java/tests/hosttests/src/android/ext/services/hosttests/
DAdServicesFilesCleanupBootCompleteReceiverHostTest.java23 import static com.android.adservices.shared.testing.TestDeviceHelper.runShellCommand;
259 String apexVersion = runShellCommand( in logDeviceMetadata()
261 String apkVersion = runShellCommand( in logDeviceMetadata()
263 String privAppName = runShellCommand( in logDeviceMetadata()
276 runShellCommand("touch %s", fullPath); in createFile()

123456