/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 43 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 45 SystemUtil.runShellCommand(getInstrumentation(), in tearDown() 58 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 60 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 70 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 72 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 82 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff() 84 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AutofillRestrictionsTest.java | 84 runShellCommand("settings put secure --user %d %s %s default", mUserId, USER_SETUP_COMPLETE, in enableService() 88 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); in enableService() 90 runShellCommand("settings put --user %d secure %s %s default", in enableService() 98 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); in disableService() 100 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE); in disableService() 109 actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); in waitForServiceSettingSaved() 111 actual = runShellCommand("settings get --user %d secure %s", mUserId, in waitForServiceSettingSaved()
|
D | BaseDeviceAdminTest.java | 91 protected String runShellCommand(String template, Object...args) { in runShellCommand() method in BaseDeviceAdminTest 95 final String result = SystemUtil.runShellCommand(getInstrumentation(), command); in runShellCommand()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AutofillLoggingTestRule.java | 19 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 56 final String levelBefore = runShellCommand("cmd autofill get log_level"); in apply() 58 runShellCommand("cmd autofill set log_level verbose"); in apply() 68 runShellCommand("cmd autofill set log_level %s", levelBefore); in apply() 91 final String autofillDump = runShellCommand("dumpsys autofill"); 93 final String activityDump = runShellCommand("dumpsys activity top");
|
D | CustomDescriptionWithLinkTestCase.java | 18 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 82 runShellCommand("wm size 1080x1920"); in testTapLink_changeOrientationThenTapBack() 83 runShellCommand("wm density 420"); in testTapLink_changeOrientationThenTapBack() 91 runShellCommand("wm density reset"); in testTapLink_changeOrientationThenTapBack() 92 runShellCommand("wm size reset"); in testTapLink_changeOrientationThenTapBack()
|
D | DuplicateIdActivityTest.java | 21 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 90 runShellCommand("input keyevent KEYCODE_TAB"); in testDoNotRestoreDuplicateAutofillIds() 120 runShellCommand("input keyevent KEYCODE_TAB"); in testDoNotRestoreDuplicateAutofillIds()
|
D | SettingsIntentTest.java | 18 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 54 runShellCommand("am force-stop com.android.settings"); in killSettings()
|
D | AutoFillServiceTestCase.java | 24 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 119 runShellCommand("input keyevent KEYCODE_WAKEUP"); in prepareScreen() 122 runShellCommand("cmd statusbar collapse"); in prepareScreen()
|
D | MultiWindowLoginActivityTest.java | 21 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 75 return runShellCommand("am start %s/%s -f 0x%s", mPackageName, activity, in runAmStartActivity()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 64 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() method in SystemUtil 86 public static String runShellCommand(String cmd) { in runShellCommand() method in SystemUtil 88 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd); in runShellCommand() 99 public static String runShellCommand(String cmd, Predicate<String> resultChecker) { in runShellCommand() method in SystemUtil 100 final String result = runShellCommand(cmd); in runShellCommand() 113 final String result = runShellCommand(cmd); in runShellCommandForNoOutput() 125 final String output = runShellCommand(cmd); in runCommandAndPrintOnLogcat() 139 return TextUtils.extractSection(runShellCommand(cmd), extractionStartRegex, startInclusive, in runCommandAndExtractSection()
|
D | AppStandbyUtils.java | 33 final String result = SystemUtil.runShellCommand( in isAppStandbyEnabled() 61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim(); in isAppStandbyEnabledAtRuntime()
|
D | BatteryUtils.java | 70 () -> SystemUtil.runShellCommand("dumpsys alarm") in enableBatterySaver() 83 () -> SystemUtil.runShellCommand("dumpsys alarm") in enableBatterySaver()
|
D | LocationUtils.java | 35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BatteryConstraintTest.java | 57 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); in setUp() 64 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown() 65 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown() 70 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); in setBatteryState() 72 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); in setBatteryState() 74 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 83 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 89 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState() 101 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyChargingState() 107 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyBatteryNotLowState()
|
D | ConstraintTest.java | 94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation() 117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown() 163 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 166 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 186 return SystemUtil.runShellCommand(getInstrumentation(), in getJobState()
|
/cts/tests/app/src/android/app/cts/ |
D | ApplicationTest.java | 40 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in tearDown() 62 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale() 64 SystemUtil.runShellCommand(getInstrumentation(), PUT_FONT_SCALE_CMD); in toggleFontScale() 66 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD); in toggleFontScale()
|
D | ActivityManagerProcessStateTest.java | 116 final String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in executeShellCmd() 416 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 424 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 428 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 448 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 474 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 492 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 515 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 517 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService() 590 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckStopsService() [all …]
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceProcessController.java | 109 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in denyBackgroundOp() 118 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in allowBackgroundOp() 123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in makeUidIdle() 128 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromWhitelist() 133 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in addToWhitelist() 138 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); in tempWhitelist() 143 SystemUtil.runShellCommand(mInstrumentation, cmd); in removeFromTempWhitelist() 148 SystemUtil.runShellCommand(mInstrumentation, cmd); in setAppOpMode()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/common/ |
D | ShellHelper.java | 38 public static String runShellCommand(@NonNull String template, Object...args) { in runShellCommand() method in ShellHelper 43 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command); in runShellCommand() 61 runShellCommand("input touchscreen tap %d %d", x, y); in tap()
|
D | SettingsHelper.java | 19 import static android.autofillservice.cts.common.ShellHelper.runShellCommand; 45 runShellCommand("settings put %s %s %s default", namespace, key, value); in set() 86 runShellCommand("settings delete %s %s", namespace, key); in delete() 123 return runShellCommand("settings get %s %s", namespace, key); in get()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ConstraintTest.java | 94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation() 117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown() 163 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 166 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setStorageState() 186 return SystemUtil.runShellCommand(getInstrumentation(), in getJobState()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | BatterySavingTestBase.java | 21 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 94 runShellCommand("dumpsys alarm").contains("Force all apps standby: " + expected)); in waitUntilAlarmForceAppStandby() 99 runShellCommand("dumpsys jobscheduler") in waitUntilJobForceAppStandby() 105 runShellCommand("dumpsys activity").contains("mForceBackgroundCheck=" + expected)); in waitUntilForceBackgroundCheck()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | SplitSystemUserTest.java | 31 String curUser = SystemUtil.runShellCommand(getInstrumentation(), "am get-current-user"); in testSplitSystemUserIsDisabled() 38 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(), in testSplitSystemUserIsDisabled()
|
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/ |
D | Utils.java | 69 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground() 72 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground() 78 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground() 81 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | TestUtils.java | 162 runShellCommand("am stack move-task " + id + " 3 true"); in enterMultiWindow() 172 runShellCommand("am stack move-task " + id + " 1 true"); in leaveMultiWindow() 181 final String output = runShellCommand("am stack list"); in getActivityTaskId() 236 private String runShellCommand(String cmd) { in runShellCommand() method in TestUtils 238 return SystemUtil.runShellCommand(mInstrumentation, cmd); in runShellCommand()
|