HomeSort by relevance Sort by last modified time
    Searched defs:runShellCommand (Results 1 - 20 of 20) sorted by null

  /cts/common/device-side/util/src/com/android/compatibility/common/util/
LocationUtils.java 35 SystemUtil.runShellCommand(instrumentation, command.toString());
SystemUtil.java 64 public static String runShellCommand(Instrumentation instrumentation, String cmd)
84 * Simpler version of {@link #runShellCommand(Instrumentation, String)}.
86 public static String runShellCommand(String cmd) {
88 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd);
96 * Same as {@link #runShellCommand(String)}, with optionally
99 public static String runShellCommand(String cmd, Predicate<String> resultChecker) {
100 final String result = runShellCommand(cmd);
110 * Same as {@link #runShellCommand(String)}, but fails if the output is not empty.
113 final String result = runShellCommand(cmd);
125 final String output = runShellCommand(cmd)
    [all...]
  /cts/tests/autofillservice/src/android/autofillservice/cts/common/
ShellHelper.java 38 public static String runShellCommand(@NonNull String template, Object...args) {
40 Log.d(TAG, "runShellCommand(): " + command);
43 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command);
61 runShellCommand("input touchscreen tap %d %d", x, y);
  /frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
Utils.java 32 runShellCommand("am wait-for-broadcast-idle");
38 public static String runShellCommand(String cmd) {
  /packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
ShellCommandRule.java 46 public static void runShellCommand(String command) throws IOException {
67 runShellCommand(mCmd);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
BaseDeviceAdminTest.java 91 protected String runShellCommand(String template, Object...args) {
93 Log.d(mTag, "runShellCommand(): " + command);
95 final String result = SystemUtil.runShellCommand(getInstrumentation(), command);
  /cts/tests/tests/slice/src/android/slice/cts/
SliceManagerTest.java 165 for (String s : runShellCommand("cmd shortcut get-default-launcher")) {
173 public static ArrayList<String> runShellCommand(String command) throws Exception {
  /packages/apps/Settings/tests/unit/src/com/android/settings/print/
PrintJobSettingsActivityTest.java 67 public static void runShellCommand(@NonNull String cmd) throws IOException {
88 runShellCommand("input keyevent KEYCODE_WAKEUP");
  /cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
AppWidgetTest.java 121 private ArrayList<String> runShellCommand(String command) throws Exception {
167 runShellCommand(GRANT_BIND_APP_WIDGET_PERMISSION_COMMAND);
  /cts/tests/tests/appwidget/src/android/appwidget/cts/
AppWidgetTestCase.java 159 public ArrayList<String> runShellCommand(String command) throws Exception {
  /cts/tests/tests/preference2/src/android/preference2/cts/
TestUtils.java 162 runShellCommand("am stack move-task " + id + " 3 true");
172 runShellCommand("am stack move-task " + id + " 1 true");
181 final String output = runShellCommand("am stack list");
236 private String runShellCommand(String cmd) {
238 return SystemUtil.runShellCommand(mInstrumentation, cmd);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
SysuiTestCase.java 92 protected void runShellCommand(String command) throws IOException {
  /cts/tests/app/src/android/app/cts/android/app/cts/tools/
ServiceProcessController.java 77 Log.d("XXXX", SystemUtil.runShellCommand(getInstrumentation(), "dumpsys package "
109 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
118 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
123 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
128 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
133 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
138 String result = SystemUtil.runShellCommand(mInstrumentation, cmd);
143 SystemUtil.runShellCommand(mInstrumentation, cmd);
148 SystemUtil.runShellCommand(mInstrumentation, cmd);
  /cts/tests/tests/display/src/android/display/cts/
BrightnessTest.java 376 return Integer.parseInt(runShellCommand("settings get system " + setting));
380 runShellCommand("settings put system " + setting + " " + Integer.toString(value));
393 private String runShellCommand(String cmd) {
  /cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
BasePackageInstallTest.java 217 runShellCommand("pm uninstall " + TEST_APP_PKG);
220 public ArrayList<String> runShellCommand(String command) throws Exception {
  /frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
BackgroundDexOptServiceIntegrationTests.java 142 private static String runShellCommand(String cmd) throws IOException {
169 return runShellCommand(cmd).split("\n");
201 runShellCommand(cmd);
212 runShellCommand("cmd package bg-dexopt-job " + PACKAGE_NAME);
240 runShellCommand("df -h /data");
245 runShellCommand(String.format("cmd package compile -f -m %s %s", filter, pkg));
  /cts/tests/tests/widget/src/android/widget/cts/
RemoteViewsWidgetTest.java 222 SystemUtil.runShellCommand(mInstrumentation, GRANT_BIND_APP_WIDGET_PERMISSION_COMMAND);
232 SystemUtil.runShellCommand(mInstrumentation, REVOKE_BIND_APP_WIDGET_PERMISSION_COMMAND);
  /cts/tests/autofillservice/src/android/autofillservice/cts/
Helper.java 21 import static android.autofillservice.cts.common.ShellHelper.runShellCommand;
187 Log.i(TAG, "dumpsys autofill\n\n" + runShellCommand("dumpsys autofill"));
713 runShellCommand(ACCELLEROMETER_CHANGE, 0);
721 runShellCommand(ACCELLEROMETER_CHANGE, 1);
728 return Integer.parseInt(runShellCommand("cmd autofill get max_partitions"));
735 runShellCommand("cmd autofill set max_partitions %d", value);
764 return runShellCommand("cmd autofill get log_level");
771 runShellCommand("cmd autofill set log_level %s", level);
818 final String result = runShellCommand(CMD_LIST_SESSIONS);
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
ConnectivityManagerTest.java 27 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
    [all...]
  /cts/tests/tests/print/printTestUtilLib/src/android/print/test/
BasePrintTest.java 180 SystemUtil.runShellCommand(getInstrumentation(), disableImeCommand);
187 SystemUtil.runShellCommand(getInstrumentation(), enableImeCommand);
227 sDisabledPrintServicesBefore = SystemUtil.runShellCommand(instrumentation,
246 SystemUtil.runShellCommand(instrumentation, "settings put secure "
254 SystemUtil.runShellCommand(getInstrumentation(),
327 SystemUtil.runShellCommand(instrumentation, "settings put secure "
777 SystemUtil.runShellCommand(instrumentation, "input keyevent KEYCODE_WAKEUP");
803 SystemUtil.runShellCommand(getInstrumentation(), String.format(
    [all...]

Completed in 624 milliseconds