Home
last modified time | relevance | path

Searched refs:executeShellCommand (Results 1 – 25 of 42) sorted by relevance

12

/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DGarbageCollectionHelperTest.java60 }).when(mUiDevice).executeShellCommand(any()); in setUp()
83 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name1"); in testOneAppToGc()
84 inOrder.verify(mUiDevice).executeShellCommand("kill -10 1"); in testOneAppToGc()
96 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name1"); in testMultipleAppsToGc()
97 inOrder.verify(mUiDevice).executeShellCommand("kill -10 1"); in testMultipleAppsToGc()
98 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name2"); in testMultipleAppsToGc()
99 inOrder.verify(mUiDevice).executeShellCommand("kill -10 2"); in testMultipleAppsToGc()
100 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name3"); in testMultipleAppsToGc()
101 inOrder.verify(mUiDevice).executeShellCommand("kill -10 3"); in testMultipleAppsToGc()
113 inOrder.verify(mUiDevice).executeShellCommand("pidof does.not.exist"); in testSkipsGcOnDneApp()
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java59 public static String executeShellCommand(String cmd) { in executeShellCommand() method in HelperTestUtility
61 return getUiDevice().executeShellCommand(cmd); in executeShellCommand()
72 executeShellCommand(CLEAR_CACHE_CMD); in clearCache()
82 executeShellCommand(killCmd); in clearApp()
90 executeShellCommand(String.format(KEYEVENT_CMD_TEMPLATE, keyCode)); in sendKeyCode()
98 executeShellCommand(String.format(LAUNCH_APP_CMD_TEMPLATE, pkgName)); in launchPackageViaAdb()
117 executeShellCommand(UNLOCK_CMD); in wakeUpAndUnlock()
DCrashHelperTest.java112 HelperTestUtility.executeShellCommand(START_APP); in testCrashMetric()
131 HelperTestUtility.executeShellCommand(START_APP); in testNativeCrashMetric()
150 HelperTestUtility.executeShellCommand(START_APP); in testAnrMetric()
170 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric()
174 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric()
178 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric()
/platform_testing/libraries/rule/tests/src/android/platform/test/rule/
DCompilationFilterRuleTest.java69 protected String executeShellCommand(String cmd) { in testAppToCompile_failCompilationThrows()
70 super.executeShellCommand(cmd); in testAppToCompile_failCompilationThrows()
89 protected String executeShellCommand(String cmd) { in testOneAppToCompile()
90 super.executeShellCommand(cmd); in testOneAppToCompile()
109 protected String executeShellCommand(String cmd) { in testMultipleAppsToCompile()
110 super.executeShellCommand(cmd); in testMultipleAppsToCompile()
136 protected String executeShellCommand(String cmd) { in executeShellCommand() method in CompilationFilterRuleTest.TestableCompilationFilterRule
DQuickstepPressureRuleTest.java85 protected String executeShellCommand(String cmd) { in executeShellCommand() method in QuickstepPressureRuleTest.TestableQuickstepPressureRule
DDropCachesRuleTest.java73 protected String executeShellCommand(String cmd) { in executeShellCommand() method in DropCachesRuleTest.TestableDropCachesRule
/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java76 public String executeShellCommand(String command) { in executeShellCommand() method in CommandsHelper
78 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
95 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput()
105 return getInstance().executeShellCommand(command); in execute()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java296 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onReset()
308 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg1")); in testCollect_delayExceptions_onReset()
310 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg2")); in testCollect_delayExceptions_onReset()
312 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg3")); in testCollect_delayExceptions_onReset()
324 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onGet()
337 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg1")); in testCollect_delayExceptions_onGet()
339 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg2")); in testCollect_delayExceptions_onGet()
341 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg3")); in testCollect_delayExceptions_onGet()
343 .executeShellCommand(String.format(GFXINFO_COMMAND_GET, "pkg1")); in testCollect_delayExceptions_onGet()
345 .executeShellCommand(String.format(GFXINFO_COMMAND_GET, "pkg2")); in testCollect_delayExceptions_onGet()
[all …]
/platform_testing/libraries/rule/src/android/platform/test/rule/
DTestWatcher.java50 protected String executeShellCommand(String cmd) { in executeShellCommand() method in TestWatcher
53 return getUiDevice().executeShellCommand(cmd); in executeShellCommand()
DQuickstepPressureRule.java37 executeShellCommand(String.format("am start %s", app)); in starting()
DDropCachesRule.java41 executeShellCommand("echo 3 > /proc/sys/vm/drop_caches"); in starting()
DKillAppsRule.java50 executeShellCommand(String.format("am force-stop %s", app)); in starting()
DCompilationFilterRule.java66 String response = executeShellCommand(String.format(COMPILE_CMD_FORMAT, filter, app)); in starting()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java83 String output = mUIDevice.executeShellCommand(String.format(REMOVE_CMD, in startCollecting()
89 String startOutput = mUIDevice.executeShellCommand(String.format(PERFETTO_START_CMD, in startCollecting()
143 String stopOutput = mUIDevice.executeShellCommand(PERFETTO_STOP_CMD); in stopPerfetto()
167 String perfettoProcId = mUIDevice.executeShellCommand(PERFETTO_PROC_ID_CMD); in isPerfettoRunning()
203 String moveResult = mUIDevice.executeShellCommand(String.format( in copyFileOutput()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DGarbageCollectionHelper.java80 String pidofOutput = mUiDevice.executeShellCommand( in garbageCollect()
83 mUiDevice.executeShellCommand(String.format(GC_CMD, pidofOutput)); in garbageCollect()
DProcessShowmapHelper.java160 String pidofOutput = mUiDevice.executeShellCommand( in sampleMemory()
171 showmapOutput = mUiDevice.executeShellCommand(String.format(SHOWMAP_CMD, pid)); in sampleMemory()
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java204 executeShellCommand("pm clear " + TEST_PKG_NAME); in tearDown()
205 executeShellCommand("pm clear " + YOUTUBE_PKG_NAME); in tearDown()
206 executeShellCommand("pm set-app-link " + TEST_PKG_NAME + " undefined"); in tearDown()
207 executeShellCommand("pm set-app-link " + YOUTUBE_PKG_NAME + " always"); in tearDown()
216 String out = executeShellCommand(String.format( in openLink()
250 return executeShellCommand(String.format("pm get-app-link %s", pkgName)); in getAppLink()
255 executeShellCommand(String.format("pm set-app-link %s %s", pkgName, valueToBeSet)); in setAppLink()
259 private String executeShellCommand(String command) { in executeShellCommand() method in AppLinkTests
263 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(command); in executeShellCommand()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java81 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openMediaFacet()
105 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openMapsFacet()
116 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openAssistantFacet()
124 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in checkApplicationExists()
/platform_testing/libraries/collectors-helper/perfetto/test/src/com/android/helpers/tests/
DPerfettoHelperTest.java59 uiDevice.executeShellCommand(String.format(REMOVE_CMD, "/data/local/tmp/out.pb")); in teardown()
122 String[] fileStats = uiDevice.executeShellCommand(String.format( in testPerfettoSuccess()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DLatencyTests.java184 mDevice.executeShellCommand(FINGERPRINT_WAKE_FAKE_COMMAND); in testFingerprintWakeAndUnlock()
214 mDevice.executeShellCommand(TURN_ON_SCREEN_COMMAND); in testScreenTurnOn()
270 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testRotationLatency()
311 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testAppToRecents()
340 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testSettingsSearch()
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java218 mDevice.executeShellCommand(command); in unlockScreen()
223 mDevice.executeShellCommand(command); in unlockScreen()
253 mCommandsHelper.executeShellCommand(String.format(SET_PIN_COMMAND, passcode)); in setScreenLockViaShell()
256 mCommandsHelper.executeShellCommand(String.format(SET_PASSWORD_COMMAND, passcode)); in setScreenLockViaShell()
259 mCommandsHelper.executeShellCommand(String.format(SET_PATTERN_COMMAND, passcode)); in setScreenLockViaShell()
270 mCommandsHelper.executeShellCommand(String.format(CLEAR_COMMAND, pwd)); in removeScreenLockViaShell()
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java53 cmdHelper.executeShellCommand(String.format("pm clear %s", packageName)); in cleanPackage()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java190 BufferedReader stream = executeShellCommand("ps"); in getRunningAppProcesses()
231 public BufferedReader executeShellCommand (String command) { in executeShellCommand() method in ProcessStatusTracker
232 ParcelFileDescriptor stdout = getUiAutomation().executeShellCommand(command); in executeShellCommand()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBatteryStatsListener.java185 automation.executeShellCommand(CMD_DUMPSYS)); in dumpBatteryStats()
211 automation.executeShellCommand(CMD_DUMPSYS_RESET)); in resetBatteryStats()

12