OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:executeShellCommand
(Results
26 - 50
of
669
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
BaseDeviceOwnerTest.java
59
protected String
executeShellCommand
(String... command) throws Exception {
60
return mDevice.
executeShellCommand
(String.join(" ", command));
/cts/hostsidetests/incident/src/com/android/server/cts/
ProcStatsProtoTest.java
40
getDevice().
executeShellCommand
("dumpsys procstats --clear");
59
getDevice().
executeShellCommand
(
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
MonkeyTest.java
30
mDevice.
executeShellCommand
(MONKEY_CMD + " -p " + PKGS[0] + " 500");
35
mDevice.
executeShellCommand
("am start -W -a android.intent.action.MAIN "
CategoryTest.java
31
mDevice.
executeShellCommand
(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0);
47
mDevice.
executeShellCommand
(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0);
59
mDevice.
executeShellCommand
(MONKEY_CMD + " -v -p " + PKGS[0]
78
mDevice.
executeShellCommand
(cmd, receiver, MAX_TIMEOUT, TimeUnit.MILLISECONDS, 0);
/cts/hostsidetests/sample/src/android/sample/cts/
SampleHostTest.java
67
device.
executeShellCommand
(CLEAR_COMMAND);
71
device.
executeShellCommand
(START_COMMAND);
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
VtsTraceCollectPreparer.java
108
mEnforcingState = device.
executeShellCommand
("getenforce");
112
device.
executeShellCommand
("setenforce " + SELINUX_PERMISSIVE);
122
device.
executeShellCommand
("setenforce " + mEnforcingState);
170
device.
executeShellCommand
(String.format("rm -rf %s/*vts.profiler.so", VTS_TMP_LIB_DIR_32));
171
device.
executeShellCommand
(String.format("rm -rf %s/*vts.profiler.so", VTS_TMP_LIB_DIR_64));
172
device.
executeShellCommand
(String.format("rm -rf %s/libvts_*.so", VTS_TMP_LIB_DIR_32));
173
device.
executeShellCommand
(String.format("rm -rf %s/libvts_*.so", VTS_TMP_LIB_DIR_64));
174
device.
executeShellCommand
(String.format("rm %s/vts_profiling_configure", VTS_TMP_DIR));
/tools/tradefederation/core/python-lib/tradefed_py/
android_device.py
31
def
executeShellCommand
(self, cmd):
45
out = self.
executeShellCommand
('getprop %s' % name)
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
RemoveSystemAppPreparer.java
48
device.
executeShellCommand
(String.format("rm /system/app/%s", file));
50
device.
executeShellCommand
(String.format("rm /system/priv-app/%s", file));
RestartSystemServerTargetPreparer.java
39
device.
executeShellCommand
("setprop dev.bootcomplete 0");
40
device.
executeShellCommand
(KILL_SERVER_COMMAND);
StopServicesSetup.java
41
device.
executeShellCommand
("stop");
45
device.
executeShellCommand
(String.format("stop %s", service));
DeviceCleaner.java
85
device.
executeShellCommand
("stop");
126
device.
executeShellCommand
("stop");
133
String output = device.
executeShellCommand
("dumpsys power");
139
device.
executeShellCommand
("input keyevent 26");
143
output = device.
executeShellCommand
("dumpsys power");
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
MockDeviceHelper.java
27
* Helper method to build a response to a {@link IDevice#
executeShellCommand
(String,
53
mockDevice.
executeShellCommand
(
56
mockDevice.
executeShellCommand
(
MockTestDeviceHelper.java
30
* {@link ITestDevice#
executeShellCommand
(String, IShellOutputReceiver)} call.
53
mockDevice.
executeShellCommand
(EasyMock.eq(expectedCommand),
56
mockDevice.
executeShellCommand
(EasyMock.<String>anyObject(),
69
* {@link ITestDevice#
executeShellCommand
(String, IShellOutputReceiver, long, TimeUnit, int)}
98
mockDevice.
executeShellCommand
(EasyMock.eq(expectedCommand),
102
mockDevice.
executeShellCommand
(EasyMock.<String> anyObject(),
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
GTestTest.java
136
EasyMock.expect(mMockITestDevice.
executeShellCommand
("ls -l " + testPath1))
139
EasyMock.expect(mMockITestDevice.
executeShellCommand
("ls -l " + testPath2))
143
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test1),
146
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test2),
168
mMockITestDevice.
executeShellCommand
(EasyMock.contains(modulePath),
172
EasyMock.expect(mMockITestDevice.
executeShellCommand
("ls -l " + modulePath))
198
EasyMock.expect(mMockITestDevice.
executeShellCommand
("ls -l " + test1Path))
205
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test1Path),
230
EasyMock.expect(mMockITestDevice.
executeShellCommand
("ls -l " + testPath))
234
mMockITestDevice.
executeShellCommand
(EasyMock.contains(filterString)
[
all
...]
GoogleBenchmarkTestTest.java
101
EasyMock.expect(mMockITestDevice.
executeShellCommand
(EasyMock.contains("chmod")))
103
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test1), EasyMock.same(mMockReceiver),
105
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test2), EasyMock.same(mMockReceiver),
108
mMockITestDevice.
executeShellCommand
(
112
mMockITestDevice.
executeShellCommand
(
117
mMockITestDevice.
executeShellCommand
(
121
mMockITestDevice.
executeShellCommand
(
183
EasyMock.expect(mMockITestDevice.
executeShellCommand
(EasyMock.contains("chmod")))
185
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test1), EasyMock.same(mMockReceiver),
187
mMockITestDevice.
executeShellCommand
(EasyMock.contains(test2), EasyMock.same(mMockReceiver)
[
all
...]
/cts/hostsidetests/security/src/android/security/cts/
SecurityTestCase.java
38
String uptime = getDevice().
executeShellCommand
("cat /proc/uptime");
49
String uptime = getDevice().
executeShellCommand
("cat /proc/uptime");
73
String result = mDevice.
executeShellCommand
("ls -Zl " + driver);
87
String uptime = getDevice().
executeShellCommand
("cat /proc/uptime");
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DeviceAndProfileOwnerTestApi25.java
58
getDevice().
executeShellCommand
("cmd lock_settings clear --old 12345");
60
getDevice().
executeShellCommand
("input keyevent 3");
104
getDevice().
executeShellCommand
(command);
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/
AddWhitelistPackage.java
43
device.
executeShellCommand
(
47
CLog.d(device.
executeShellCommand
("dumpsys deviceidle whitelist"));
54
device.
executeShellCommand
(
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
AtomTestCase.java
157
getDevice().
executeShellCommand
(
160
getDevice().
executeShellCommand
("rm " + remotePath);
164
getDevice().
executeShellCommand
(
468
strUid = getDevice().
executeShellCommand
("id -u");
482
getDevice().
executeShellCommand
("input keyevent KEYCODE_WAKEUP");
483
getDevice().
executeShellCommand
("wm dismiss-keyguard");
487
getDevice().
executeShellCommand
("input keyevent KEYCODE_SLEEP");
491
getDevice().
executeShellCommand
("cmd battery set status " + state);
495
getDevice().
executeShellCommand
("cmd battery unplug");
499
getDevice().
executeShellCommand
("cmd battery set ac 1")
[
all
...]
/cts/hostsidetests/deviceidle/src/com/android/cts/deviceidle/
DeviceIdleWhitelistTest.java
49
getDevice().
executeShellCommand
(RESET_SYS_WHITELIST_COMMAND);
59
getDevice().
executeShellCommand
(RESET_SYS_WHITELIST_COMMAND);
65
getDevice().
executeShellCommand
(DEVICE_IDLE_COMMAND_PREFIX + "-" + packageToRemove);
75
getDevice().
executeShellCommand
(
90
final String output = getDevice().
executeShellCommand
(SHOW_SYS_WHITELIST_COMMAND).trim();
/cts/tests/framework/base/activitymanager/src/android/server/am/
DisplaySizeTest.java
94
executeShellCommand
(startActivityOnTop);
132
return Integer.parseInt(
executeShellCommand
("getprop " + densityProp).trim());
136
executeShellCommand
("wm density " + targetDensity);
139
final String output =
executeShellCommand
("wm density");
146
executeShellCommand
("wm density reset");
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
SystemServerStatusCheckerTest.java
45
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
57
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
59
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
70
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
84
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
Sl4aClientTest.java
73
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD))
76
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD))
90
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD))
92
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD))
105
EasyMock.expect(mMockDevice.
executeShellCommand
(cmd))
107
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD))
109
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD))
128
EasyMock.expect(mMockDevice.
executeShellCommand
(cmd))
130
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD))
133
EasyMock.expect(mMockDevice.
executeShellCommand
(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD)
[
all
...]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
ApplicationVisibilityTest.java
52
getDevice().
executeShellCommand
("settings get global package_verifier_enable");
53
getDevice().
executeShellCommand
("settings put global package_verifier_enable 0");
60
getDevice().
executeShellCommand
("settings put global package_verifier_enable "
80
getDevice().
executeShellCommand
(grantCmd);
140
getDevice().
executeShellCommand
(grantCmd);
190
getDevice().
executeShellCommand
(grantCmd);
250
getDevice().
executeShellCommand
(grantCmd);
PrivilegedUpdateTests.java
84
getDevice().
executeShellCommand
("pm enable " + SHIM_PKG);
93
getDevice().
executeShellCommand
("pm enable " + SHIM_PKG);
128
getDevice().
executeShellCommand
("pm enable " + SHIM_PKG);
130
getDevice().
executeShellCommand
("pm disable-user " + SHIM_PKG);
140
getDevice().
executeShellCommand
("pm enable " + SHIM_PKG);
145
getDevice().
executeShellCommand
("pm disable-user " + SHIM_PKG);
147
getDevice().
executeShellCommand
("pm enable " + SHIM_PKG);
Completed in 732 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>