OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:runShellCommand
(Results
1 - 25
of
83
) sorted by null
1
2
3
4
/cts/tests/tests/assist/src/android/assist/cts/
DisableContextTest.java
43
SystemUtil.
runShellCommand
(getInstrumentation(),
45
SystemUtil.
runShellCommand
(getInstrumentation(),
58
SystemUtil.
runShellCommand
(getInstrumentation(),
60
SystemUtil.
runShellCommand
(getInstrumentation(),
70
SystemUtil.
runShellCommand
(getInstrumentation(),
72
SystemUtil.
runShellCommand
(getInstrumentation(),
82
SystemUtil.
runShellCommand
(getInstrumentation(),
84
SystemUtil.
runShellCommand
(getInstrumentation(),
/cts/tests/autofillservice/src/android/autofillservice/cts/
AutofillLoggingTestRule.java
19
import static android.autofillservice.cts.common.ShellHelper.
runShellCommand
;
56
final String levelBefore =
runShellCommand
("cmd autofill get log_level");
58
runShellCommand
("cmd autofill set log_level verbose");
68
runShellCommand
("cmd autofill set log_level %s", levelBefore);
91
final String autofillDump =
runShellCommand
("dumpsys autofill");
93
final String activityDump =
runShellCommand
("dumpsys activity top");
SettingsIntentTest.java
18
import static android.autofillservice.cts.common.ShellHelper.
runShellCommand
;
54
runShellCommand
("am force-stop com.android.settings");
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AutofillRestrictionsTest.java
84
runShellCommand
("settings put secure --user %d %s %s default", mUserId, USER_SETUP_COMPLETE,
88
runShellCommand
("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME);
90
runShellCommand
("settings put --user %d secure %s %s default",
98
runShellCommand
("settings delete secure %s", AUTOFILL_SERVICE);
100
runShellCommand
("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE);
109
actual =
runShellCommand
("settings get secure %s", AUTOFILL_SERVICE);
111
actual =
runShellCommand
("settings get --user %d secure %s", mUserId,
/cts/common/device-side/util/src/com/android/compatibility/common/util/
AppStandbyUtils.java
33
final String result = SystemUtil.
runShellCommand
(
61
SystemUtil.
runShellCommand
("settings get global app_standby_enabled").trim();
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
...]
LocationUtils.java
35
SystemUtil.
runShellCommand
(instrumentation, command.toString());
AmUtils.java
48
final String output = SystemUtil.
runShellCommand
("ps -A -o NAME");
BatteryUtils.java
70
() -> SystemUtil.
runShellCommand
("dumpsys alarm")
83
() -> SystemUtil.
runShellCommand
("dumpsys alarm")
/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/tests/multiuser/src/android/multiuser/cts/
SplitSystemUserTest.java
31
String curUser = SystemUtil.
runShellCommand
(getInstrumentation(), "am get-current-user");
38
String splitEnabledStr = trim(SystemUtil.
runShellCommand
(getInstrumentation(),
/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);
SettingsHelper.java
19
import static android.autofillservice.cts.common.ShellHelper.
runShellCommand
;
45
runShellCommand
("settings put %s %s %s default", namespace, key, value);
86
runShellCommand
("settings delete %s %s", namespace, key);
123
return
runShellCommand
("settings get %s %s", namespace, key);
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
BatteryConstraintTest.java
57
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd jobscheduler monitor-battery on");
64
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd jobscheduler monitor-battery off");
65
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd battery reset");
70
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd battery set ac 1");
72
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd battery unplug");
74
int seq = Integer.parseInt(SystemUtil.
runShellCommand
(getInstrumentation(),
83
curSeq = Integer.parseInt(SystemUtil.
runShellCommand
(getInstrumentation(),
89
curCharging = Boolean.parseBoolean(SystemUtil.
runShellCommand
(getInstrumentation(),
101
boolean curCharging = Boolean.parseBoolean(SystemUtil.
runShellCommand
(getInstrumentation(),
107
boolean curNotLow = Boolean.parseBoolean(SystemUtil.
runShellCommand
(getInstrumentation()
[
all
...]
ConstraintTest.java
94
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd activity set-inactive "
117
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd devicestoragemonitor reset");
163
res = SystemUtil.
runShellCommand
(getInstrumentation(),
166
res = SystemUtil.
runShellCommand
(getInstrumentation(),
175
curSeq = Integer.parseInt(SystemUtil.
runShellCommand
(getInstrumentation(),
186
return SystemUtil.
runShellCommand
(getInstrumentation(),
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
BatterySavingTestBase.java
21
import static com.android.compatibility.common.util.SystemUtil.
runShellCommand
;
94
runShellCommand
("dumpsys alarm").contains("Force all apps standby: " + expected));
99
runShellCommand
("dumpsys jobscheduler")
105
runShellCommand
("dumpsys activity").contains("mForceBackgroundCheck=" + expected));
/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);
/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) {
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
ServiceCrashTest.java
56
SystemUtil.
runShellCommand
(getInstrumentation(),
59
SystemUtil.
runShellCommand
(getInstrumentation(), "settings put global "
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
ShellCommandRule.java
46
public static void
runShellCommand
(String command) throws IOException {
67
runShellCommand
(mCmd);
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
TraceMonitor.java
19
import static com.android.compatibility.common.util.SystemUtil.
runShellCommand
;
63
runShellCommand
(copyCommand);
ScreenRecorder.java
19
import static com.android.compatibility.common.util.SystemUtil.
runShellCommand
;
65
runShellCommand
("killall -s 2 screenrecord");
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
SessionCommitBroadcastTest.java
121
assertTrue(TextUtils.join(" ",
runShellCommand
("am start-user " + userId))
125
assertTrue(TextUtils.join(" ",
runShellCommand
(
131
runShellCommand
("cmd package install-existing --user " +
144
for (String s :
runShellCommand
("cmd shortcut get-default-launcher")) {
153
runShellCommand
("cmd package set-home-activity --user "
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
Utils.java
69
SystemUtil.
runShellCommand
(InstrumentationRegistry.getInstrumentation(),
72
SystemUtil.
runShellCommand
(InstrumentationRegistry.getInstrumentation(),
78
SystemUtil.
runShellCommand
(InstrumentationRegistry.getInstrumentation(),
81
SystemUtil.
runShellCommand
(InstrumentationRegistry.getInstrumentation(),
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
ConstraintTest.java
94
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd activity set-inactive "
117
SystemUtil.
runShellCommand
(getInstrumentation(), "cmd devicestoragemonitor reset");
163
res = SystemUtil.
runShellCommand
(getInstrumentation(),
166
res = SystemUtil.
runShellCommand
(getInstrumentation(),
175
curSeq = Integer.parseInt(SystemUtil.
runShellCommand
(getInstrumentation(),
186
return SystemUtil.
runShellCommand
(getInstrumentation(),
Completed in 757 milliseconds
1
2
3
4