HomeSort by relevance Sort by last modified time
    Searched refs:runShellCommand (Results 1 - 25 of 136) sorted by null

1 2 3 4 5 6

  /cts/tests/tests/rcs/src/android/telephony/ims/cts/
DefaultSmsAppHelper.java 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
27 runShellCommand(
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ShellUtils.java 19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
39 public static String runShellCommand(@NonNull String template, Object...args) {
41 Log.d(TAG, "runShellCommand(): " + command);
44 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command);
62 runShellCommand("input touchscreen tap %d %d", x, y);
76 runShellCommand("input keyevent " + keyCode);
84 runShellCommand("appops set %s SYSTEM_ALERT_WINDOW %s", packageName, action);
AppStandbyUtils.java 33 final String result = SystemUtil.runShellCommand(
61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim();
SystemUtil.java 68 public static String runShellCommand(Instrumentation instrumentation, String cmd)
88 * Simpler version of {@link #runShellCommand(Instrumentation, String)}.
90 public static String runShellCommand(String cmd) {
92 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd);
100 * Same as {@link #runShellCommand(String)}, with optionally
103 public static String runShellCommand(String cmd, Predicate<String> resultChecker) {
104 final String result = runShellCommand(cmd);
114 * Same as {@link #runShellCommand(String)}, but fails if the output is not empty.
117 final String result = runShellCommand(cmd);
129 final String output = runShellCommand(cmd)
    [all...]
LocationUtils.java 35 SystemUtil.runShellCommand(instrumentation, command.toString());
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
ShellUtils.java 19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
39 public static String runShellCommand(@NonNull String template, Object...args) {
41 Log.d(TAG, "runShellCommand(): " + command);
44 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command);
62 runShellCommand("input touchscreen tap %d %d", x, y);
76 runShellCommand("input keyevent " + keyCode);
84 runShellCommand("appops set %s SYSTEM_ALERT_WINDOW %s", packageName, action);
AppStandbyUtils.java 33 final String result = SystemUtil.runShellCommand(
61 SystemUtil.runShellCommand("settings get global app_standby_enabled").trim();
SystemUtil.java 68 public static String runShellCommand(Instrumentation instrumentation, String cmd)
70 return runShellCommand(instrumentation.getUiAutomation(), cmd);
82 public static String runShellCommand(UiAutomation automation, String cmd)
102 * Simpler version of {@link #runShellCommand(Instrumentation, String)}.
104 public static String runShellCommand(String cmd) {
106 return runShellCommand(InstrumentationRegistry.getInstrumentation(), cmd);
114 * Same as {@link #runShellCommand(String)}, with optionally
117 public static String runShellCommand(String cmd, Predicate<String> resultChecker) {
118 final String result = runShellCommand(cmd);
128 * Same as {@link #runShellCommand(String)}, but fails if the output is not empty
    [all...]
LocationUtils.java 35 SystemUtil.runShellCommand(instrumentation, command.toString());
AmUtils.java 50 final String output = SystemUtil.runShellCommand("ps -A -o NAME");
71 final String value = SystemUtil.runShellCommand("am get-standby-bucket " + packageName);
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AutofillRestrictionsTest.java 86 runShellCommand("settings put secure --user %d %s %d default",
90 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME);
92 runShellCommand("settings put --user %d secure %s %s default",
100 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE);
102 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE);
111 actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE);
113 actual = runShellCommand("settings get --user %d secure %s", mUserId,
ContentCaptureRestrictionsTest.java 74 runShellCommand("settings put secure --user %d %s %d default",
77 runShellCommand("cmd content_capture set temporary-service %d %s %d", mUserId,
85 runShellCommand("cmd content_capture set temporary-service %d", mUserId);
ContentSuggestionsRestrictionsTest.java 86 runShellCommand("cmd content_suggestions set temporary-service %d %s %d", mUserId,
94 runShellCommand("cmd content_suggestions set temporary-service %d", mUserId);
  /cts/tests/autofillservice/src/android/autofillservice/cts/
AutofillLoggingTestRule.java 19 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
58 final String levelBefore = runShellCommand("cmd autofill get log_level");
60 runShellCommand("cmd autofill set log_level verbose");
70 runShellCommand("cmd autofill set log_level %s", levelBefore);
94 final String activityDump = runShellCommand("dumpsys activity top");
  /cts/tests/attentionservice/src/android/attentionservice/cts/
CtsAttentionServiceDeviceTest.java 20 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
141 return runShellCommand("cmd attention getAttentionServiceComponent");
145 return Integer.parseInt(runShellCommand("cmd attention getLastTestCallbackCode"));
156 Boolean isSuccess = runShellCommand("cmd attention call checkAttention")
163 runShellCommand("cmd attention call cancelCheckAttention");
168 return runShellCommand("cmd attention setTestableAttentionService " + service)
173 runShellCommand("cmd attention clearTestableAttentionService");
177 runShellCommand("input keyevent KEYCODE_WAKEUP");
  /cts/tests/app/src/android/app/cts/
ApplicationTest.java 40 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD);
62 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD);
64 SystemUtil.runShellCommand(getInstrumentation(), PUT_FONT_SCALE_CMD);
66 SystemUtil.runShellCommand(getInstrumentation(), ERASE_FONT_SCALE_CMD);
  /cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
ContentCaptureLoggingTestRule.java 22 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
79 final String serviceDump = runShellCommand("dumpsys content_capture");
81 final String activityDump = runShellCommand("dumpsys activity %s --contentcapture",
  /cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
AbstractVoiceInteractionTestCase.java 21 import static com.android.compatibility.common.util.ShellUtils.runShellCommand;
58 runShellCommand("input keyevent KEYCODE_WAKEUP");
61 runShellCommand("wm dismiss-keyguard");
  /cts/tests/JobScheduler/src/android/jobscheduler/cts/
BatteryConstraintTest.java 73 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on");
80 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off");
81 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset");
105 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1");
107 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug");
109 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(),
118 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(),
124 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(),
136 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(),
142 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation()
    [all...]
ConstraintTest.java 90 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive "
111 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset");
114 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset");
130 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set level 90");
131 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set level 91");
166 res = SystemUtil.runShellCommand(getInstrumentation(),
169 res = SystemUtil.runShellCommand(getInstrumentation(),
178 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(),
189 return SystemUtil.runShellCommand(getInstrumentation(),
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
InstallUpdateTest.java 164 SystemUtil.runShellCommand(
174 SystemUtil.runShellCommand(
185 SystemUtil.runShellCommand(plugged ? "cmd battery set ac 1" : "cmd battery unplug");
186 SystemUtil.runShellCommand("cmd battery set -f level " + level);
212 SystemUtil.runShellCommand("dumpsys battery reset");
216 SystemUtil.runShellCommand("settings delete global device_policy_constants");
  /cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
BatterySavingTestBase.java 21 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
93 runShellCommand("dumpsys alarm").contains("Force all apps standby: " + expected));
98 runShellCommand("dumpsys jobscheduler")
104 runShellCommand("dumpsys activity").contains("mForceBackgroundCheck=" + expected));
  /cts/tests/tests/multiuser/src/android/multiuser/cts/
SplitSystemUserTest.java 28 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(),
  /cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/
BaseTestCase.java 37 SystemUtil.runShellCommand("svc wifi enable"); // toggle wifi on.
  /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);

Completed in 431 milliseconds

1 2 3 4 5 6