OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:executeShellCommand
(Results
51 - 75
of
669
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DeviceAtomTestCase.java
155
String uidLine = getDevice().
executeShellCommand
("cmd package list packages -U "
178
getDevice().
executeShellCommand
(String.format(
184
getDevice().
executeShellCommand
("am set-standby-bucket "
206
getDevice().
executeShellCommand
(
209
getDevice().
executeShellCommand
(
215
getDevice().
executeShellCommand
(
222
getDevice().
executeShellCommand
("dumpsys batterystats --reset");
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
BatteryStatsUserLifecycleTests.java
122
final String dumpsys =
executeShellCommand
("dumpsys batterystats --checkin");
142
executeShellCommand
("dumpsys battery unplug");
143
executeShellCommand
("dumpsys batterystats enable pretend-screen-off");
147
executeShellCommand
("dumpsys battery reset");
148
executeShellCommand
("dumpsys batterystats disable pretend-screen-off");
151
private String
executeShellCommand
(String cmd) throws Exception {
153
InstrumentationRegistry.getInstrumentation()).
executeShellCommand
(cmd);
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
CmdUtil.java
78
String out = device.
executeShellCommand
(cmd);
118
device.
executeShellCommand
(cmd);
141
String out = device.
executeShellCommand
(cmd);
169
device.
executeShellCommand
("stop");
171
device.
executeShellCommand
("start");
186
device.
executeShellCommand
(String.format("getprop %s", name), receiver);
200
device.
executeShellCommand
(String.format("setprop %s %s", name, value));
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
SystemServerFileDescriptorCheckerTest.java
47
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
59
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
62
mMockDevice.
executeShellCommand
(
75
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
78
mMockDevice.
executeShellCommand
(
91
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.eq("pidof system_server")))
94
mMockDevice.
executeShellCommand
(
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
StorageWizardTest.java
59
mDevice.
executeShellCommand
("setprop sys.debug.storage_slow 1");
60
mDevice.
executeShellCommand
("sm set-virtual-disk true");
63
mDevice.
executeShellCommand
("sm partition " + mDisk + " public");
75
mDevice.
executeShellCommand
("setprop sys.debug.storage_slow 0");
76
mDevice.
executeShellCommand
("sm set-virtual-disk false");
77
mDevice.
executeShellCommand
("sm forget all");
150
String disks = mDevice.
executeShellCommand
("sm list-disks adoptable");
153
disks = mDevice.
executeShellCommand
("sm list-disks adoptable");
165
String volumes = mDevice.
executeShellCommand
("sm list-volumes public");
169
volumes = mDevice.
executeShellCommand
("sm list-volumes public")
[
all
...]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DefaultTestsZipInstallerTest.java
106
EasyMock.expect(mMockDevice.
executeShellCommand
("stop")).andReturn("");
107
EasyMock.expect(mMockDevice.
executeShellCommand
("stop installd")).andReturn("");
138
EasyMock.expect(mMockDevice.
executeShellCommand
("stop")).andReturn("");
139
EasyMock.expect(mMockDevice.
executeShellCommand
("stop installd")).andReturn("");
147
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.contains("rm -r data/app")))
157
mMockDevice.
executeShellCommand
(EasyMock.startsWith("chown system.system "
160
mMockDevice.
executeShellCommand
(EasyMock.startsWith("chown system.system "
182
EasyMock.expect(mMockDevice.
executeShellCommand
("stop")).andReturn("");
183
EasyMock.expect(mMockDevice.
executeShellCommand
("stop installd")).andReturn("");
191
EasyMock.expect(mMockDevice.
executeShellCommand
(EasyMock.contains("rm -r data/app"))
[
all
...]
DeviceWiperFuncTest.java
11
getDevice().
executeShellCommand
("rm /data/local/tmp/foo.txt");
/cts/hostsidetests/backup/src/android/cts/backup/
BackupPreparer.java
115
String output = mDevice.
executeShellCommand
("bmgr list transports");
127
String output = mDevice.
executeShellCommand
("bmgr enabled");
136
mDevice.
executeShellCommand
("bmgr enable " + enable);
142
String output = mDevice.
executeShellCommand
("bmgr transport " + transport);
157
String output = mDevice.
executeShellCommand
("dumpsys backup");
179
mDevice.
executeShellCommand
(
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DeviceBatteryLevelCheckerTest.java
92
EasyMock.expect(mFakeTestDevice.
executeShellCommand
("svc power stayon false"))
94
EasyMock.expect(mFakeTestDevice.
executeShellCommand
(
108
EasyMock.expect(mFakeTestDevice.
executeShellCommand
("svc power stayon false"))
110
EasyMock.expect(mFakeTestDevice.
executeShellCommand
(
135
EasyMock.expect(mFakeTestDevice.
executeShellCommand
("svc power stayon false"))
137
EasyMock.expect(mFakeTestDevice.
executeShellCommand
(
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
BluetoothUtilsTest.java
84
when(mMockDevice.
executeShellCommand
(Mockito.anyString())).thenReturn("");
93
when(mMockDevice.
executeShellCommand
(Mockito.anyString())).thenReturn("");
104
when(mMockDevice.
executeShellCommand
(Mockito.anyString())).thenReturn("");
113
when(mMockDevice.
executeShellCommand
(Mockito.anyString())).thenReturn("");
122
when(mMockDevice.
executeShellCommand
(Mockito.anyString()))
131
when(mMockDevice.
executeShellCommand
(Mockito.anyString()))
/cts/hostsidetests/bootstats/src/android/bootstats/cts/
BootStatsHostTest.java
41
getDevice().
executeShellCommand
("logcat --buffer=events --clear");
59
final String log = getDevice().
executeShellCommand
("logcat --buffer=events -d");
86
return "1".equals(getDevice().
executeShellCommand
("getprop sys.boot_completed").trim());
/cts/hostsidetests/systemui/src/android/host/systemui/
BaseTileServiceTest.java
103
getDevice().
executeShellCommand
(cmd);
133
String supported = getDevice().
executeShellCommand
(REQUEST_SUPPORTED);
138
String features = getDevice().
executeShellCommand
("pm list features");
ActiveTileServiceTest.java
52
getDevice().
executeShellCommand
(REQUEST_LISTENING);
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
WorkTabTest.java
50
mDevice.
executeShellCommand
(
57
mDevice.
executeShellCommand
("am start-user " + mProfileUserId);
62
mDevice.
executeShellCommand
("pm remove-user " + mProfileUserId);
/tools/tradefederation/core/prod-tests/tests/src/com/android/monkey/
MonkeyBaseTest.java
68
EasyMock.expect(mockDevice.
executeShellCommand
("cat /proc/uptime")).andReturn(
82
EasyMock.expect(mockDevice.
executeShellCommand
("cat /proc/uptime")).andReturn(
84
EasyMock.expect(mockDevice.
executeShellCommand
("cat /proc/uptime")).andReturn(
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
TraceCmdCollector.java
111
device.
executeShellCommand
("chmod +x " + mTraceCmdBinary, c, 1, TimeUnit.SECONDS, 1);
112
device.
executeShellCommand
(traceCmd.toString(), c, 1, TimeUnit.SECONDS, 1);
132
device.
executeShellCommand
(
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
PackageVisibilityTest.java
54
getDevice().
executeShellCommand
("settings get global package_verifier_enable");
55
getDevice().
executeShellCommand
("settings put global package_verifier_enable 0");
65
getDevice().
executeShellCommand
("settings put global package_verifier_enable "
143
getDevice().
executeShellCommand
(command);
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
RunAsHostTest.java
35
String runAsResult = getDevice().
executeShellCommand
("run-as android.cpptools.app id -u");
/cts/hostsidetests/security/src/android/cts/security/
PerfEventParanoidTest.java
39
String output = mDevice.
executeShellCommand
(cmd);
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
SettingsPreparer.java
97
String currentSettingValue = device.
executeShellCommand
(shellCmdGet).trim();
102
device.
executeShellCommand
(shellCmdPut);
110
device.
executeShellCommand
(shellCmdPut);
115
String currentSettingValue = device.
executeShellCommand
(shellCmdGet).trim();
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
ProcessMaxMemoryCollectorTest.java
76
when(mDevice.
executeShellCommand
(Mockito.eq("dumpsys meminfo --checkin system_server")))
84
verify(mDevice).
executeShellCommand
(Mockito.eq("dumpsys meminfo --checkin system_server"));
94
when(mDevice.
executeShellCommand
(Mockito.eq("dumpsys meminfo --checkin system_server")))
102
verify(mDevice).
executeShellCommand
(Mockito.eq("dumpsys meminfo --checkin system_server"));
TemperatureCollectorTest.java
65
when(mDevice.
executeShellCommand
(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm")))
75
.
executeShellCommand
(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm"));
85
when(mDevice.
executeShellCommand
(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm")))
94
verify(mDevice).
executeShellCommand
(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm"));
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
JvmtiAttachingHostTest.java
82
String pwd = device.
executeShellCommand
("run-as " + pkg + " pwd");
109
device.
executeShellCommand
(setAgentAppCmd);
128
String pwd = device.
executeShellCommand
("run-as " + pkg + " pwd");
146
device.
executeShellCommand
(setAgentAppCmd);
186
String abi = device.
executeShellCommand
("getprop ro.product.cpu.abi").replace("\n", "");
198
device.
executeShellCommand
(attachCmd, NullOutputReceiver.getReceiver(), 10,
221
String runAsCp = device.
executeShellCommand
(
228
.
executeShellCommand
("run-as " + pkg + " chmod a+x " + libInDataData);
239
device.
executeShellCommand
("rm " + libInTmp);
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/
SustainedPerformanceHostTest.java
78
device.
executeShellCommand
("cd " + DHRYSTONE + " ; chmod 777 dhry");
80
String result = device.
executeShellCommand
("echo " + loopCount
166
device.
executeShellCommand
("settings put global airplane_mode_on 1");
167
device.
executeShellCommand
("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true");
178
device.
executeShellCommand
(START_TEST_COMMAND);
205
device.
executeShellCommand
(START_COMMAND_MODE);
211
device.
executeShellCommand
(STOP_COMMAND);
221
device.
executeShellCommand
("settings put global airplane_mode_on 0");
222
device.
executeShellCommand
("am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false");
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
BaseDevicePolicyTest.java
143
mPackageVerifier = getDevice().
executeShellCommand
(
145
getDevice().
executeShellCommand
("settings put global package_verifier_enable 0");
159
executeShellCommand
("input keyevent KEYCODE_HOME");
165
getDevice().
executeShellCommand
("settings put global package_verifier_enable "
190
executeShellCommand
("am force-stop --user " + userId + " " + packageName);
193
protected void
executeShellCommand
(final String command) throws Exception {
195
String commandOutput = getDevice().
executeShellCommand
(command);
213
executeShellCommand
("am switch-user " + userId);
226
String commandOutput = getDevice().
executeShellCommand
(command);
274
+ getDevice().
executeShellCommand
(stopUserCommand))
[
all
...]
Completed in 1362 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>