Home
last modified time | relevance | path

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

/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java61 public String executeShellCommand(String command) { in executeShellCommand() method in CommandsHelper
63 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
80 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput()
90 return getInstance().executeShellCommand(command); in execute()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java70 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openDialFacet()
86 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openMapsFacet()
92 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openHomeFacet()
98 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openApp()
/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/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DLatencyTests.java106 mDevice.executeShellCommand(FINGERPRINT_WAKE_FAKE_COMMAND); in testFingerprintWakeAndUnlock()
124 mDevice.executeShellCommand(TURN_ON_SCREEN_COMMAND); in testScreenTurnOn()
167 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testAppToRecents()
DAppTransitionTests.java184 .executeShellCommand(DROP_CACHE_SCRIPT); in testColdLaunchFromLauncher()
204 .executeShellCommand(DROP_CACHE_SCRIPT); in testColdLaunchFromLauncher()
415 .executeShellCommand(DROP_CACHE_SCRIPT); in cleanTestApps()
518 .executeShellCommand(launchCmd); in run()
584 getInstrumentation().getUiAutomation().executeShellCommand( in closeApps()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java206 mDevice.executeShellCommand(command); in unlockScreen()
211 mDevice.executeShellCommand(command); in unlockScreen()
241 mCommandsHelper.executeShellCommand(String.format(SET_PIN_COMMAND, passcode)); in setScreenLockViaShell()
244 mCommandsHelper.executeShellCommand(String.format(SET_PASSWORD_COMMAND, passcode)); in setScreenLockViaShell()
247 mCommandsHelper.executeShellCommand(String.format(SET_PATTERN_COMMAND, passcode)); in setScreenLockViaShell()
258 mCommandsHelper.executeShellCommand(String.format(CLEAR_COMMAND, pwd)); in removeScreenLockViaShell()
DOverviewHelper.java138 mCommandsHelper.executeShellCommand("am force-stop " + pkg); in forceStopPackages()
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
/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/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java149 .executeShellCommand(ATRACE_START)); in testAppLaunchPerformance()
175 getInstrumentation().getUiAutomation().executeShellCommand(ATRACE_DUMP); in testAppLaunchPerformance()
196 … getInstrumentation().getUiAutomation().executeShellCommand(ATRACE_STOP)); in testAppLaunchPerformance()
202 getInstrumentation().getUiAutomation().executeShellCommand( in testAppLaunchPerformance()
/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()
DFilesystemUtil.java56 ParcelFileDescriptor pfd = instr.getUiAutomation().executeShellCommand(command); in saveProcessOutput()
DAuptTestRunner.java349 AuptTestRunner.this.getUiAutomation().executeShellCommand(
354 AuptTestRunner.this.getUiAutomation().executeShellCommand(
692 AuptTestRunner.this.getUiAutomation().executeShellCommand(command);
/platform_testing/utils/dpad/src/android/platform/test/utils/
DDPadUtil.java142 mDevice.executeShellCommand(String.format("input keyevent --longpress %d", keyCode)); in longPressKeyCode()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java245 mDevice.executeShellCommand(DISABLE_COMMAND + GMAIL_PACKAGE_NAME); in blockNotifications()
249 mDevice.executeShellCommand(ENABLE_COMMAND + GMAIL_PACKAGE_NAME); in unblockNotifications()
666 mDevice.executeShellCommand(PULSE_COMMAND); in testAmbientWakeUp()
802 mDevice.executeShellCommand(command); in testPinAppearance()
821 mDevice.executeShellCommand("am force-stop " + SETTINGS_PACKAGE); in afterLaunchSettingsLoop()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java163 mDevice.executeShellCommand(String.format(cmd, KEYBOARD_SERVICE_NAME)); in enableKeyboardIME()
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/
DWifiStrengthScannerInstrumentation.java172 ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(cmd); in executeCommand()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java95 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand("pm list permissions -g -d"); in populateDangerousPermissionGroupInfo()
346 mUiAutomation.executeShellCommand(command); in grantOrRevokePermissionViaAdb()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java166 mInst.getUiAutomation().executeShellCommand(command); in executeAdbCommand()