OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:executeShellCommand
(Results
126 - 150
of
669
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DeviceStorageFillerTest.java
51
EasyMock.expect(mMockDevice.
executeShellCommand
("fallocate -l 1000 /p/f"))
79
EasyMock.expect(mMockDevice.
executeShellCommand
("rm -f /p/f")).andReturn(null).once();
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/
JvmtiHostTest.java
107
String abi = device.
executeShellCommand
("getprop ro.product.cpu.abi").replace("\n", "");
126
String pwd = mDevice.
executeShellCommand
("run-as " + mPkg + " pwd");
138
String attachReply = mDevice.
executeShellCommand
(attachCmd);
167
String runAsCp = mDevice.
executeShellCommand
(
174
.
executeShellCommand
("run-as " + mPkg + " chmod a+x " + libInDataData);
185
mDevice.
executeShellCommand
("rm " + libInTmp);
/cts/hostsidetests/theme/src/android/theme/cts/
ThemeHostTest.java
124
if (checkHardwareTypeSkipTest(mDevice.
executeShellCommand
(HARDWARE_TYPE_CMD).trim())) {
140
mDevice.
executeShellCommand
(CLEAR_GENERATED_CMD);
146
if (checkHardwareTypeSkipTest(mDevice.
executeShellCommand
(HARDWARE_TYPE_CMD).trim())) {
221
mDevice.
executeShellCommand
(STOP_CMD);
225
mDevice.
executeShellCommand
(START_CMD, receiver, TEST_RESULT_TIMEOUT,
272
final String output = device.
executeShellCommand
(WM_DENSITY);
/libcore/metrictests/memory/host/src/libcore/heapmetrics/
MetricsRunner.java
53
testDevice.
executeShellCommand
("echo -n ${EXTERNAL_STORAGE}");
124
testDevice.
executeShellCommand
(String.format("mkdir %s", deviceDirectoryName));
138
testDevice.
executeShellCommand
(String.format("rm -r %s", deviceDirectoryName));
160
testDevice.
executeShellCommand
(command);
171
testDevice.
executeShellCommand
("ls " + deviceDirectoryName).split("\\s");
232
String totalPssKbStr = testDevice.
executeShellCommand
(shellCommand);
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
TestDeviceFuncTest.java
129
* Simple normal case test for {@link TestDevice#
executeShellCommand
(String)}.
140
* Verify that a simple {@link TestDevice#
executeShellCommand
(String)} command is successful.
143
final String output = mTestDevice.
executeShellCommand
("ls");
211
mTestDevice.
executeShellCommand
(String.format("rm %s", deviceFilePath));
226
mTestDevice.
executeShellCommand
(String.format("rm %s", deviceFilePath));
251
mTestDevice.
executeShellCommand
(String.format("rm %s", deviceFilePath));
269
mTestDevice.
executeShellCommand
(String.format("rm %s", deviceFilePath));
388
mTestDevice.
executeShellCommand
(String.format("rm %s/testdir", extStore));
389
mTestDevice.
executeShellCommand
(String.format("rm %s/testdir2/foo.txt", extStore));
390
mTestDevice.
executeShellCommand
(String.format("rmdir %s/testdir2", extStore))
[
all
...]
TestDeviceTest.java
410
mMockIDevice.
executeShellCommand
((String)EasyMock.anyObject(),
453
mMockIDevice.
executeShellCommand
((String) EasyMock.anyObject(),
469
* {@link TestDevice#
executeShellCommand
(String, IShellOutputReceiver)}.
477
mMockIDevice.
executeShellCommand
(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver),
480
mTestDevice.
executeShellCommand
(testCommand, mMockReceiver);
485
* {@link TestDevice#
executeShellCommand
(String)}.
494
assertEquals(expectedOutput, mTestDevice.
executeShellCommand
(testCommand));
498
* Test {@link TestDevice#
executeShellCommand
(String, IShellOutputReceiver)} behavior when
506
mMockIDevice.
executeShellCommand
(EasyMock.eq(testCommand), EasyMock.eq(mMockReceiver),
514
mRecoveryTestDevice.
executeShellCommand
(testCommand, mMockReceiver)
[
all
...]
WifiHelperTest.java
41
EasyMock.expect(mMockDevice.
executeShellCommand
(WifiHelper.CHECK_PACKAGE_CMD))
151
EasyMock.expect(mMockDevice.
executeShellCommand
(WifiHelper.CHECK_PACKAGE_CMD))
162
EasyMock.expect(mMockDevice.
executeShellCommand
(WifiHelper.CHECK_PACKAGE_CMD))
175
EasyMock.expect(mMockDevice.
executeShellCommand
(WifiHelper.CHECK_PACKAGE_CMD))
189
EasyMock.expect(mMockDevice.
executeShellCommand
(WifiHelper.CHECK_PACKAGE_CMD))
/cts/tests/framework/base/windowmanager/src/android/server/wm/
CrossAppDragAndDropTests.java
24
import static android.server.am.ActivityManagerTestBase.
executeShellCommand
;
157
executeShellCommand
(AM_FORCE_STOP + mSourcePackageName);
158
executeShellCommand
(AM_FORCE_STOP + mTargetPackageName);
162
executeShellCommand
("logcat -c");
188
executeShellCommand
(AM_FORCE_STOP + SOURCE_PACKAGE_NAME);
189
executeShellCommand
(AM_FORCE_STOP + TARGET_PACKAGE_NAME);
190
executeShellCommand
(AM_FORCE_STOP + TARGET_23_PACKAGE_NAME);
206
executeShellCommand
(getStartCommand(componentName, mode, logtag) + " --windowingMode "
215
executeShellCommand
(getStartCommand(componentName, mode, logtag) + " --windowingMode "
229
executeShellCommand
(getStartCommand(componentName, mode, logtag) + " --windowingMode
[
all
...]
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
PackageManagerHostTestUtils.java
216
String lsResult = mDevice.
executeShellCommand
(String.format("ls %s", destPath));
228
String pkgGrep = mDevice.
executeShellCommand
(String.format("pm path %s", packageName));
414
mDevice.
executeShellCommand
(String.format(command, locValue));
426
String result = mDevice.
executeShellCommand
("pm get-install-location");
448
String result = mDevice.
executeShellCommand
("sm get-primary-storage-uuid");
564
String out = mDevice.
executeShellCommand
(String.format("dumpsys package %s", pkgName));
574
String out = mDevice.
executeShellCommand
(String.format("dumpsys package %s", pkgName));
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
GLBenchmarkTest.java
137
device.
executeShellCommand
(String.format("rm %s", mGlbenchmarkResultXmlPath));
138
device.
executeShellCommand
(String.format("rm %s", mGlbenchmarkAllResultXmlPath));
154
String deviceModel = device.
executeShellCommand
("getprop ro.product.model");
163
device.
executeShellCommand
("am start -a android.intent.action.MAIN "
171
isRunningBenchmark = device.
executeShellCommand
("ps").contains("glbenchmark");
189
device.
executeShellCommand
(String.format("rm %s", mGlbenchmarkResultXmlPath));
190
device.
executeShellCommand
(String.format("rm %s", resultExcelXmlPath));
FioBenchmarkTest.java
791
mTestDevice.
executeShellCommand
("stop");
792
mTestDevice.
executeShellCommand
(String.format("mkdir -p %s", mFioDir));
793
mTestDevice.
executeShellCommand
(String.format("mkdir -p %s", mTmpDir));
794
mTestDevice.
executeShellCommand
(String.format("mkdir -p %s", mInternalTestDir));
795
mTestDevice.
executeShellCommand
(String.format("mkdir -p %s", mMediaTestDir));
797
mTestDevice.
executeShellCommand
(String.format("mkdir -p %s", mExternalTestDir));
801
mTestDevice.
executeShellCommand
(String.format("chmod 755 %s", mFioBin));
812
mTestDevice.
executeShellCommand
(String.format("rm -r %s", mExternalTestDir));
814
mTestDevice.
executeShellCommand
(String.format("rm -r %s", mMediaTestDir));
815
mTestDevice.
executeShellCommand
(String.format("rm -r %s", mInternalTestDir))
[
all
...]
/cts/tests/framework/base/activitymanager/src/android/server/am/
ActivityManagerDisplayTestBase.java
139
executeShellCommand
(WM_SIZE) +
executeShellCommand
(WM_DENSITY));
151
executeShellCommand
(WM_SIZE + " reset");
156
executeShellCommand
(WM_DENSITY + " reset");
161
executeShellCommand
(WM_SIZE + " " + size.getWidth() + "x" + size.getHeight());
165
executeShellCommand
(WM_DENSITY + " " + density);
278
executeShellCommand
(getAmStartCmd(VIRTUAL_DISPLAY_ACTIVITY)
362
executeShellCommand
(createVirtualDisplayCommand.toString());
375
executeShellCommand
(destroyVirtualDisplayCommand);
ActivityManagerPinnedStackTests.java
325
executeShellCommand
("am broadcast -a " + ACTION_ENTER_PIP);
698
executeShellCommand
("am broadcast -a " + ACTION_MOVE_TO_BACK);
717
executeShellCommand
("am broadcast -a " + ACTION_MOVE_TO_BACK);
738
executeShellCommand
("am broadcast -a " + ACTION_MOVE_TO_BACK);
[
all
...]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DirectBootHostTest.java
156
getDevice().
executeShellCommand
("am start -a android.intent.action.MAIN"
169
final String res = getDevice().
executeShellCommand
("sm set-emulate-fbe true");
197
getDevice().
executeShellCommand
("sm set-emulate-fbe false");
217
return getDevice().
executeShellCommand
("sm get-fbe-mode").trim();
223
getDevice().getIDevice().
executeShellCommand
("getprop sys.boot_completed", receiver);
BaseInstallMultiple.java
122
String result = device.
executeShellCommand
(cmd.toString());
153
result = device.
executeShellCommand
(cmd.toString());
162
result = device.
executeShellCommand
(cmd.toString());
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
NotificationListenerTest.java
142
mDevice.
executeShellCommand
(
148
mDevice.
executeShellCommand
(
154
mDevice.
executeShellCommand
(
160
mDevice.
executeShellCommand
(
168
mDevice.
executeShellCommand
("cmd notification "
/tools/tradefederation/core/src/com/android/tradefed/util/
BluetoothUtils.java
74
device.
executeShellCommand
(String.format(BT_INSTR_CMD, command), receiver);
195
device.
executeShellCommand
(BTSNOOP_ENABLE_CMD);
227
device.
executeShellCommand
(BTSNOOP_DISABLE_CMD);
299
device.
executeShellCommand
(String.format("rm %s", fileName));
317
device.
executeShellCommand
(
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
TraceCmdCollectorTest.java
85
mMockDevice.
executeShellCommand
(
93
mMockDevice.
executeShellCommand
(
117
mMockDevice.
executeShellCommand
(
124
mMockDevice.
executeShellCommand
(
150
mMockDevice.
executeShellCommand
(
/cts/hostsidetests/os/src/android/os/cts/
ProcfsHostTests.java
162
String results = mDevice.
executeShellCommand
(START_TEST_APP_COMMAND);
194
String readResult = getDevice().
executeShellCommand
(readCommand + absolutePath);
212
String lsOutput = getDevice().
executeShellCommand
("ls -1 " + taskPath);
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
InstallOverlayTests.java
159
getDevice().
executeShellCommand
("cmd package " + (enabled ? "enable " : "disable ") + pkg);
163
getDevice().
executeShellCommand
("cmd overlay " + (enabled ? "enable " : "disable ") + pkg);
167
return getDevice().
executeShellCommand
("cmd overlay list").contains(pkg);
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
AutoLauncherStrategy.java
80
CommandsHelper.getInstance(mInstrumentation).
executeShellCommand
(
104
CommandsHelper.getInstance(mInstrumentation).
executeShellCommand
(
116
CommandsHelper.getInstance(mInstrumentation).
executeShellCommand
(
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
RootProcessScanner.java
38
String lsOutput = device.
executeShellCommand
("ls -F /proc | grep /$"); // directories only
143
return mDevice.
executeShellCommand
(String.format("cat %s/statm", processDir));
195
return mDevice.
executeShellCommand
(String.format("cat %s/status", processDir));
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
PushFilePreparer.java
172
device.
executeShellCommand
(command);
177
device.
executeShellCommand
(String.format(MEDIA_SCAN_INTENT, mountPoint));
192
device.
executeShellCommand
("rm -r " + devicePath);
RunCommandTargetPreparer.java
97
device.
executeShellCommand
(
101
String output = device.
executeShellCommand
(cmd);
148
String output = device.
executeShellCommand
(cmd);
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DeviceBatteryLevelChecker.java
101
getDevice().
executeShellCommand
("stop");
189
device.
executeShellCommand
("svc power stayon false");
191
device.
executeShellCommand
("settings put system screen_off_timeout 1000");
Completed in 812 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>