Home
last modified time | relevance | path

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

/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/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.java80 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openMediaFacet()
104 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openMapsFacet()
116 CommandsHelper.getInstance(mInstrumentation).executeShellCommand( in openApp()
/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()
DOverviewHelper.java139 mCommandsHelper.executeShellCommand("am force-stop " + pkg); in forceStopPackages()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DLatencyTests.java185 mDevice.executeShellCommand(FINGERPRINT_WAKE_FAKE_COMMAND); in testFingerprintWakeAndUnlock()
215 mDevice.executeShellCommand(TURN_ON_SCREEN_COMMAND); in testScreenTurnOn()
271 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testRotationLatency()
312 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testAppToRecents()
341 mDevice.executeShellCommand(String.format(AM_START_COMMAND_TEMPLATE, in testSettingsSearch()
DAppTransitionTests.java202 .executeShellCommand(DROP_CACHE_SCRIPT); in testColdLaunchFromLauncher()
222 .executeShellCommand(DROP_CACHE_SCRIPT); in testColdLaunchFromLauncher()
476 .executeShellCommand(DROP_CACHE_SCRIPT); in cleanTestApps()
581 .executeShellCommand(launchCmd); in run()
647 getInstrumentation().getUiAutomation().executeShellCommand( in closeApps()
/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/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()
DBaseMetricListener.java246 getInstrumentation().getUiAutomation().executeShellCommand(command)); in executeCommandBlocking()
/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/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java163 mDevice.executeShellCommand(String.format(cmd, KEYBOARD_SERVICE_NAME)); in enableKeyboardIME()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java283 mDevice.executeShellCommand(DISABLE_COMMAND + GMAIL_PACKAGE_NAME); in blockNotifications()
287 mDevice.executeShellCommand(ENABLE_COMMAND + GMAIL_PACKAGE_NAME); in unblockNotifications()
798 mDevice.executeShellCommand(PULSE_COMMAND); in testAmbientWakeUp()
939 mDevice.executeShellCommand(command); in testPinAppearance()
958 mDevice.executeShellCommand("am force-stop " + SETTINGS_PACKAGE); in afterLaunchSettingsLoop()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java106 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand("pm list permissions -g -d"); in populateDangerousPermissionGroupInfo()
350 mUiAutomation.executeShellCommand(command); in grantOrRevokePermissionViaAdb()
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/
DWifiStrengthScannerInstrumentation.java172 ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(cmd); in executeCommand()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java112 mInst.getUiAutomation().executeShellCommand(command); in executeAdbCommand()
DNotificationInteractionTests.java313 mDevice.executeShellCommand(command); in setAppOpsMode()