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

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/provider/src/android/provider/cts/
ProviderTestUtils.java 45 executeShellCommand(command, uiAutomation);
48 static String executeShellCommand(String command, UiAutomation uiAutomation)
50 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString());
68 String output = executeShellCommand("bmgr transport " + transport, uiAutomation);
81 String output = executeShellCommand("bmgr enabled", uiAutomation);
90 executeShellCommand("bmgr enable " + enable, uiAutomation);
96 String output = executeShellCommand("bmgr list transports", uiAutomation);
109 executeShellCommand("bmgr backupnow " + packageName, uiAutomation);
114 executeShellCommand("bmgr restore 1 " + packageName, uiAutomation);
120 executeShellCommand("bmgr wipe " + backupTransport + " " + packageName, uiAutomation)
    [all...]
  /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
StorageHostTest.java 62 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS
93 getDevice().executeShellCommand("sync");
177 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0");
178 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0");
179 getDevice().executeShellCommand("svc data disable");
180 getDevice().executeShellCommand("svc wifi disable");
185 getDevice().executeShellCommand("pm trim-caches 4096G");
188 getDevice().executeShellCommand("pm trim-caches 4096G");
192 getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes");
193 getDevice().executeShellCommand("settings delete global sys_storage_cache_max_bytes")
    [all...]
AdoptableHostTest.java 61 getDevice().executeShellCommand("sm set-virtual-disk true");
70 getDevice().executeShellCommand("sm set-virtual-disk false");
107 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private"));
111 assertSuccess(getDevice().executeShellCommand(
118 getDevice().executeShellCommand("sm unmount " + vol.volId);
119 getDevice().executeShellCommand("sm mount " + vol.volId);
125 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal"));
131 getDevice().executeShellCommand("sm partition " + diskId + " public");
148 .executeShellCommand("sm get-primary-storage-uuid").trim();
169 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private"))
    [all...]
  /cts/hostsidetests/security/src/android/security/cts/
AdbUtils.java 46 return device.executeShellCommand(command);
57 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName);
58 return device.executeShellCommand("/data/local/tmp/" + pocName);
70 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName);
72 device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout, TimeUnit.SECONDS, 0);
86 device.executeShellCommand("chmod +x /data/local/tmp/" + pocName);
88 device.executeShellCommand("/data/local/tmp/" + pocName, receiver, timeout,
100 device.executeShellCommand("setprop libc.debug.malloc.program " + processName);
101 device.executeShellCommand("setprop libc.debug.malloc.options \"backtrace guard\"");
110 String cmdOut = device.executeShellCommand("ps -A | grep '[^]]" + processName + "'")
    [all...]
Poc17_04.java 30 getDevice().executeShellCommand("chmod +x /data/local/tmp/CVE-2017-0553");
  /test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/
VtsHalTraceCollector.java 56 device.executeShellCommand("setenforce 0");
58 device.executeShellCommand(String.format("rm -rf %s/*.vts.trace", VTS_TMP_DIR));
59 device.executeShellCommand("chmod 777 " + VTS_TMP_DIR);
60 device.executeShellCommand("chmod 777 " + VTS_TMP_LIB_DIR_32);
61 device.executeShellCommand("chmod 777 " + VTS_TMP_LIB_DIR_64);
62 device.executeShellCommand(
81 device.executeShellCommand(
84 device.executeShellCommand(String.format("rm -rf %s/*.vts.trace", VTS_TMP_DIR));
111 String out = device.executeShellCommand(String.format("ls %s/*.vts.trace", VTS_TMP_DIR));
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DeviceSetupFuncTest.java 68 getDevice().executeShellCommand("setprop ro.audio.silent 0");
70 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1"));
71 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1"));
72 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1"));
74 assertTrue(getDevice().executeShellCommand("id").contains("root"));
DefaultTestsZipInstallerFuncTest.java 36 getDevice().executeShellCommand("stop");
StopServicesSetupTest.java 48 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null);
73 EasyMock.expect(mMockDevice.executeShellCommand("stop")).andReturn(null);
74 EasyMock.expect(mMockDevice.executeShellCommand("stop service1")).andReturn(null);
75 EasyMock.expect(mMockDevice.executeShellCommand("stop service2")).andReturn(null);
RestartSystemServerTargetPreparerTest.java 47 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0"))
50 mMockDevice.executeShellCommand(
65 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0"))
68 mMockDevice.executeShellCommand(
86 EasyMock.expect(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0"))
89 mMockDevice.executeShellCommand(
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
VerbosityTest.java 22 String v0 = mDevice.executeShellCommand(MONKEY_CMD + " -s 1337 -p " + PKGS[0] + " 500");
29 String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500");
36 String v2 = mDevice.executeShellCommand(MONKEY_CMD + " -v -v -p " + PKGS[0] + " 500");
SeedTest.java 25 String out1 = mDevice.executeShellCommand(cmd1);
26 String out2 = mDevice.executeShellCommand(cmd1);
32 String out3 = mDevice.executeShellCommand(cmd2);
33 String out4 = mDevice.executeShellCommand(cmd2);
  /cts/tests/tests/database/src/android/database/sqlite/cts/
DatabaseTestUtils.java 46 return executeShellCommand("dumpsys dbinfo " + ctx.getPackageName());
49 static String executeShellCommand(String cmd) throws Exception {
51 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd);
  /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
UserActivityEmulator.java 33 final String output = mDevice.executeShellCommand("wm size");
40 mDevice.executeShellCommand(String.format("input tap %d %d", mWidth / 2, mHeight / 2));
  /test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
SettingsPreparerTest.java 56 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once();
63 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n3\n").once();
73 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once();
85 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once();
100 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n");
107 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_8)).andReturn("\n");
120 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_GET)).andReturn("\n0\n").once();
121 EasyMock.expect(mMockDevice.executeShellCommand(SHELL_CMD_PUT_7)).andReturn("\n");
  /test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
CmdUtilTest.java 54 doReturn("").when(mDevice).executeShellCommand(TEST_CMD);
60 when(mDevice.executeShellCommand(TEST_CMD)).thenReturn("something").thenReturn("");
66 doReturn("something").when(mDevice).executeShellCommand(TEST_CMD);
72 doReturn("").when(mDevice).executeShellCommand(TEST_CMD);
74 verify(mDevice, times(1)).executeShellCommand(eq(RUN_CMD));
79 when(mDevice.executeShellCommand(TEST_CMD)).thenReturn("something").thenReturn("");
81 verify(mDevice, times(2)).executeShellCommand(eq(RUN_CMD));
86 doReturn("something").when(mDevice).executeShellCommand(TEST_CMD);
88 verify(mDevice, times(mCmdUtil.MAX_RETRY_COUNT)).executeShellCommand(eq(RUN_CMD));
93 doReturn("").when(mDevice).executeShellCommand(TEST_CMD)
    [all...]
  /cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/
TrustedVoiceHostTest.java 99 getDevice().executeShellCommand(SLEEP_COMMAND);
101 getDevice().executeShellCommand(START_COMMAND);
128 getDevice().executeShellCommand(AWAKE_COMMAND);
129 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND);
  /platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
CommandsHelper.java 76 public String executeShellCommand(String command) {
78 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command);
95 return Arrays.asList(executeShellCommand(command).split(separatorChars));
99 * Convenience version of {@link #executeShellCommand} for use without having a reference to
105 return getInstance().executeShellCommand(command);
  /test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
ShellCommandUtil.java 28 device.executeShellCommand(command);
  /packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
TestUtils.java 40 uiAutomation.executeShellCommand("dumpsys battery unplug");
41 uiAutomation.executeShellCommand("dumpsys batterystats enable pretend-screen-off");
42 uiAutomation.executeShellCommand("dumpsys batterystats --reset");
53 uiAutomation.executeShellCommand("dumpsys battery reset");
54 uiAutomation.executeShellCommand("dumpsys batterystats disable pretend-screen-off");
  /cts/hostsidetests/usage/src/android/app/usage/cts/
AppIdleHostTest.java 65 String result = mDevice.executeShellCommand(String.format("am get-inactive %s", appPackage));
75 mDevice.executeShellCommand(String.format("settings put global %s \"%s\"",
84 String result = mDevice.executeShellCommand(String.format("settings get global %s",
95 mDevice.executeShellCommand(
103 mDevice.executeShellCommand(
124 mDevice.executeShellCommand(
129 final String result = mDevice.executeShellCommand(
135 String bucketString = mDevice.executeShellCommand(
161 mDevice.executeShellCommand(command);
  /cts/hostsidetests/harmfulappwarning/src/android/harmfulappwarning/cts/
HarmfulAppWarningTest.java 94 String warning = getDevice().executeShellCommand(GET_HARMFUL_APP_WARNING_COMMAND);
99 String warning = getDevice().executeShellCommand(GET_HARMFUL_APP_WARNING_COMMAND);
131 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND);
143 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND);
153 mDevice.executeShellCommand(SET_HARMFUL_APP_WARNING_COMMAND);
160 return getDevice().executeShellCommand("pm list features").contains(featureName);
  /tools/tradefederation/core/tests/src/com/android/tradefed/util/
AppVersionFetcherTest.java 47 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD))
58 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD))
69 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD))
82 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD))
93 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_CODE_CMD))
108 EasyMock.expect(mMockDevice.executeShellCommand(VERSION_NAME_CMD))
  /cts/hostsidetests/incident/src/com/android/server/cts/
BatteryStatsValidationTest.java 92 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off");
99 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP");
100 getDevice().executeShellCommand("wm dismiss-keyguard");
107 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP");
111 getDevice().executeShellCommand("dumpsys battery unplug");
112 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off");
116 getDevice().executeShellCommand("dumpsys battery unplug");
117 getDevice().executeShellCommand("dumpsys batterystats enable pretend-screen-off");
121 getDevice().executeShellCommand("dumpsys battery reset");
122 getDevice().executeShellCommand("dumpsys batterystats disable pretend-screen-off")
    [all...]
  /cts/hostsidetests/backup/src/android/cts/backup/
BaseBackupHostSideTest.java 72 return getDevice().executeShellCommand("bmgr backupnow " + packageName);
97 return getDevice().executeShellCommand("bmgr restore " + packageName);
175 getDevice().executeShellCommand(String.format(
188 getDevice().executeShellCommand(String.format("bmgr wipe %s %s", LOCAL_TRANSPORT, packageName));
195 getDevice().executeShellCommand(String.format("pm clear %s", packageName));
200 String output = getDevice().executeShellCommand("bmgr enabled");
212 String output = getDevice().executeShellCommand("bmgr list transports");
223 getDevice().executeShellCommand("settings put secure backup_local_transport_parameters "

Completed in 906 milliseconds

1 2 3 4 5 6 7 8 91011>>