Home
last modified time | relevance | path

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

/platform_testing/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/
DExternalStorageHelper.java118 public String executeShellCommand(String command) { in executeShellCommand() method in ExternalStorageHelper
119 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(command); in executeShellCommand()
144 executeShellCommand(String.format("dd if=/dev/zero of=%s/%s bs=1024 count=%d", in fillInStorage()
156 return Boolean.parseBoolean(executeShellCommand("sm has-adoptable").trim()); in hasAdoptable()
163 disks = executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk()
174 return (null != executeShellCommand("sm list-volumes public")); in hasPublicVolume()
189 if (null != (lines = executeShellCommand("sm list-volumes " + volType).split("\n"))) { in getAdoptionVolumeInfo()
204 executeShellCommand(String.format("sm partition %s %s", getAdoptionDisk(), type)); in partitionDisk()
207 executeShellCommand("sm forget all"); in partitionDisk()
208 executeShellCommand(String.format("sm partition %s %s", getAdoptionDisk(), type)); in partitionDisk()
[all …]
DAdoptableStorageTests.java195 storageHelper.executeShellCommand("pm move-package " + storageHelper.SETTINGS_PKG + " " in testTransferSystemApp()
204 storageHelper.executeShellCommand(String.format("sm partition %s %s", in tearDown()
207 storageHelper.executeShellCommand("sm forget all"); in tearDown()
DPortableStorageTests.java56 storageHelper.executeShellCommand(String.format( in testAdoptAsPortableViaUI()
60 storageHelper.executeShellCommand(String.format("sm forget all")); in testAdoptAsPortableViaUI()
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java192 executeShellCommand("pm clear " + TEST_PKG_NAME); in tearDown()
193 executeShellCommand("pm clear " + YOUTUBE_PKG_NAME); in tearDown()
194 executeShellCommand("pm set-app-link " + TEST_PKG_NAME + " undefined"); in tearDown()
195 executeShellCommand("pm set-app-link " + YOUTUBE_PKG_NAME + " always"); in tearDown()
204 String out = executeShellCommand(String.format( in openLink()
238 return executeShellCommand(String.format("pm get-app-link %s", pkgName)); in getAppLink()
243 executeShellCommand(String.format("pm set-app-link %s %s", pkgName, valueToBeSet)); in setAppLink()
247 private String executeShellCommand(String command) { in executeShellCommand() method in AppLinkTests
251 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(command); in executeShellCommand()
/platform_testing/tests/androidbvt/src/com/android/androidbvt/
DSysUIMultiUserTests.java67 cmdOut = mABvtHelper.executeShellCommand("pm list users"); in testMultiUserCreate()
71 cmdOut = mABvtHelper.executeShellCommand("pm create-user test"); in testMultiUserCreate()
86 cmdOut = mABvtHelper.executeShellCommand("pm list users"); in testMultiUserCreate()
120 cmdOut = mABvtHelper.executeShellCommand("pm remove-user " + secondUserId); in testMultiUserCreate()
DSysUIMultiWindowTests.java74 List<String> cmdOut = mABvtHelper.executeShellCommand("am stack list"); in testLaunchInMultiwindow()
85 mUiAutomation.executeShellCommand( in testLaunchInMultiwindow()
105 mUiAutomation.executeShellCommand( in testLaunchInMultiwindow()
DAndroidBvtHelper.java95 public List<String> executeShellCommand(String cmd) { in executeShellCommand() method in AndroidBvtHelper
100 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in executeShellCommand()
153 executeShellCommand(cmd); in removeDir()
DPlayStoreDownloadTests.java97 mABvtHelper.executeShellCommand(cmd); in uninstallFromPlayStore()
DSysBugReportTests.java95 results = mABvtHelper.executeShellCommand(BUGREPORT_CHECK); in isBugReportGenerated()
DSysUILockScreenTests.java182 mDevice.executeShellCommand(command); in unlockScreen()
/platform_testing/tests/jank/ime_wear/src/com/android/wearable/ime/janktests/
DIMEJankTestsHelper.java175 mDevice.executeShellCommand(String.format(ENABLE_IME_CMD, KEYBOARD_ID)); in activateIMEKeyboard()
176 mDevice.executeShellCommand(String.format(SET_IME_CMD, KEYBOARD_ID)); in activateIMEKeyboard()
185 mDevice.executeShellCommand(String.format(ENABLE_IME_CMD, HANDWRITING_ID)); in activateIMEHandwriting()
186 mDevice.executeShellCommand(String.format(SET_IME_CMD, HANDWRITING_ID)); in activateIMEHandwriting()
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/
DPowerPerfTest.java49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf()
/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/
DGraphicsStatsMonitor.java190 executeShellCommand(String.format("dumpsys gfxinfo %s reset", stat.packageName)); in clearGraphicsStats()
202 BufferedReader stream = executeShellCommand("dumpsys graphicsstats"); in gatherGraphicsStats()
295 public BufferedReader executeShellCommand (String command) { in executeShellCommand() method in GraphicsStatsMonitor
296 ParcelFileDescriptor stdout = getUiAutomation().executeShellCommand(command); in executeShellCommand()
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()
DDataCollector.java329 mInstrumentation.getUiAutomation().executeShellCommand(command); in saveProcessOutput()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java137 mDevice.executeShellCommand("am force-stop " + pkg); in forceStopPackages()
193 mDevice.executeShellCommand(DISABLE_COMMAND + GMAIL_PACKAGE_NAME); in blockNotifications()
197 mDevice.executeShellCommand(ENABLE_COMMAND + GMAIL_PACKAGE_NAME); in unblockNotifications()
/platform_testing/libraries/chrome-app-helper/src/android/platform/test/helpers/
DChromeHelperImpl.java61 mDevice.executeShellCommand("getprop dev.chrome.package"); in getPackage()
83 mDevice.executeShellCommand("getprop dev.chrome.name"); in getLauncherName()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DPermissionHelper.java77 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand("pm list permissions -g -d"); in populateDangerousPermissionGroupInfo()
326 mUiAutomation.executeShellCommand(command); in grantOrRevokePermissionViaAdb()
417 mUiAutomation.executeShellCommand(String.format("pm clear %s", packageName)); in cleanPackage()
/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/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java153 mInst.getUiAutomation().executeShellCommand(command); in executeAdbCommand()