/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | GarbageCollectionHelperTest.java | 60 }).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/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/ |
D | VehicleHardKeysHelperImpl.java | 79 executeShellCommand("input keyevent KEYCODE_CALL"); in pressRecieveCallKey() 84 String cmd = executeShellCommand("input keyevent KEYCODE_ENDCALL"); in pressEndCallKey() 89 String cmd = executeShellCommand("input keyevent KEYCODE_MEDIA_NEXT"); in pressMediaNextTrackKey() 94 String cmd = executeShellCommand("input keyevent KEYCODE_MEDIA_PREVIOUS"); in pressMediaPreviousTrackKey() 99 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_UP"); in tuneVolumeUpKey() 104 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_DOWN"); in tuneVolumeDownKey() 109 String cmd = executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_UP"); in pressBrightnessUpKey() 114 String cmd = executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_DOWN"); in pressBrightnessDownKey() 124 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_MUTE"); in tuneMuteKey() 170 String res = executeShellCommand(cmd); in getCurrentVolumeLevel() [all …]
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | HelperTestUtility.java | 61 public static String executeShellCommand(String cmd) { in executeShellCommand() method in HelperTestUtility 63 return getUiDevice().executeShellCommand(cmd); in executeShellCommand() 74 executeShellCommand(CLEAR_CACHE_CMD); in clearCache() 84 executeShellCommand(killCmd); in clearApp() 92 executeShellCommand(String.format(KEYEVENT_CMD_TEMPLATE, keyCode)); in sendKeyCode() 100 executeShellCommand(String.format(LAUNCH_APP_CMD_TEMPLATE, pkgName)); in launchPackageViaAdb() 119 executeShellCommand(UNLOCK_CMD); in wakeUpAndUnlock()
|
D | CrashHelperTest.java | 116 HelperTestUtility.executeShellCommand(START_APP); in testCrashMetric() 135 HelperTestUtility.executeShellCommand(START_APP); in testNativeCrashMetric() 154 HelperTestUtility.executeShellCommand(START_APP); in testAnrMetric() 174 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric() 178 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric() 182 HelperTestUtility.executeShellCommand(START_APP); in testMultipleCrashMetric()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | DisableAutofillRule.java | 39 String result = uiDevice.executeShellCommand("settings get secure autofill_service"); in starting() 43 uiDevice.executeShellCommand("settings put secure autofill_service null"); in starting() 53 .executeShellCommand( in finished()
|
D | IorapCompilationRule.java | 86 String result = executeShellCommand("whoami"); in checkIfRoot() 98 executeShellCommand(String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage() 121 executeShellCommand(String.format("setprop iorapd.perfetto.enable %b", enable)); in toggleIorapStatus() 122 executeShellCommand(String.format("setprop iorapd.readahead.enable %b", enable)); in toggleIorapStatus() 123 executeShellCommand(String.format( in toggleIorapStatus() 125 executeShellCommand(String.format("dumpsys iorapd --refresh-properties")); in toggleIorapStatus() 155 executeShellCommand(String.format(IORAP_COMPILE_CMD, appPkgName)); in compileAppForIorap() 180 String output = executeShellCommand(IORAP_DUMPSYS_CMD); in waitForIorapCompiled()
|
D | RemoveAppFromStackRule.java | 64 executeShellCommand("dumpsys activity activities")); in starting() 66 executeShellCommand("am stack remove " + appActivityMatcher.group(1)); in starting()
|
D | TestWatcher.java | 95 protected String executeShellCommand(String cmd) { 98 return getUiDevice().executeShellCommand(cmd);
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | CompilationFilterRuleTest.java | 69 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() 110 protected String executeShellCommand(String cmd) { in testMultipleAppsToCompile() 111 super.executeShellCommand(cmd); in testMultipleAppsToCompile() 136 protected String executeShellCommand(String cmd) { in testMultipleAppsToCompileInSpeedProfile() 137 super.executeShellCommand(cmd); in testMultipleAppsToCompileInSpeedProfile() 169 protected String executeShellCommand(String cmd) { in executeShellCommand() method in CompilationFilterRuleTest.TestableCompilationFilterRule
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BackupUtils.java | 60 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() method in BackupUtils 63 StreamUtil.drainAndClose(new InputStreamReader(executeShellCommand(command))); in executeShellCommandSync() 67 return StreamUtil.readInputStream(executeShellCommand(command)); in getShellCommandOutput() 156 return executeShellCommand("bmgr backupnow " + packageName); in backupNow() 164 return executeShellCommand( in backupNowForUser() 224 return executeShellCommand(String.format("bmgr restore %s %s", token, packageName)); in restore() 233 return executeShellCommand( in restoreForUser() 263 InputStream in = executeShellCommand(command); in executeShellCommandAndReturnOutput() 277 String output = getLineString(executeShellCommand("bmgr enabled")); in enableBackup() 285 executeShellCommand("bmgr enable " + enable); in enableBackup() [all …]
|
D | LogcatInspector.java | 25 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() method in LogcatInspector 35 executeShellCommand("log -t " + tag + " " + uniqueString); in mark() 100 InputStream logcatStream = executeShellCommand("logcat -v brief -d " + filterSpec); in numberOfLogcatStringsFound()
|
/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/ |
D | CommandsHelper.java | 78 public String executeShellCommand(String command) { in executeShellCommand() method in CommandsHelper 80 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand() 97 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput() 107 return getInstance().executeShellCommand(command); in execute()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | ScreenRecordCollectorTest.java | 94 doReturn("1234").when(mDevice).executeShellCommand(eq("pidof screenrecord")); in initListener() 95 doReturn("").when(mDevice).executeShellCommand(not(eq("pidof screenrecord"))); in initListener() 117 verify(mDevice, times(i)).executeShellCommand(matches("screenrecord .*video.mp4")); in testScreenRecord() 120 .executeShellCommand( in testScreenRecord() 131 verify(mDevice, times(i)).executeShellCommand(eq("pidof screenrecord")); in testScreenRecord() 132 verify(mDevice, times(i)).executeShellCommand(matches("kill -2 1234")); in testScreenRecord() 179 .executeShellCommand(matches("^.*[^1]-video.*.mp4$")); in testScreenRecord_multipleTests() 184 .executeShellCommand(endsWith(String.format("%d-video.mp4", i + 1))); in testScreenRecord_multipleTests() 189 .executeShellCommand(endsWith(String.format("%d-video%d.mp4", i + 1, p))); in testScreenRecord_multipleTests()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | MemhogHelper.java | 58 uiDevice.executeShellCommand(String.format(CHMOD_CMD, MEMHOG_FILE_PATH)); in startMemhog() 59 uiDevice.executeShellCommand( in startMemhog() 93 mUiDevice.executeShellCommand(MEMHOG_STOP_CMD); in stopMemhog() 117 String memhogProcId = mUiDevice.executeShellCommand(MEMHOG_PROC_ID_CMD); in isMemhogRunning()
|
D | GarbageCollectionHelper.java | 80 String pidofOutput = mUiDevice.executeShellCommand( in garbageCollect() 83 mUiDevice.executeShellCommand(String.format(GC_CMD, pidofOutput)); in garbageCollect()
|
/platform_testing/libraries/tradefed-python-lib/tradefed_py/ |
D | android_device.py | 31 def executeShellCommand(self, cmd): member in AndroidTestDevice 45 out = self.executeShellCommand('getprop %s' % name)
|
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/ |
D | AutoNotificationHelperImpl.java | 43 executeShellCommand( in open() 84 executeShellCommand(getApplicationConfig(AutoConfigConstants.OPEN_NOTIFICATIONS_COMMAND)); in checkNotificationExists() 111 executeShellCommand(getApplicationConfig(AutoConfigConstants.OPEN_NOTIFICATIONS_COMMAND)); in removeNotification() 129 executeShellCommand(getApplicationConfig(AutoConfigConstants.OPEN_NOTIFICATIONS_COMMAND)); in scrollThroughNotifications()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 315 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onReset() 327 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg1")); in testCollect_delayExceptions_onReset() 329 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg2")); in testCollect_delayExceptions_onReset() 331 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg3")); in testCollect_delayExceptions_onReset() 343 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onGet() 356 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg1")); in testCollect_delayExceptions_onGet() 358 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg2")); in testCollect_delayExceptions_onGet() 360 .executeShellCommand(String.format(GFXINFO_COMMAND_RESET, "pkg3")); in testCollect_delayExceptions_onGet() 362 .executeShellCommand(String.format(GFXINFO_COMMAND_GET, "pkg1")); in testCollect_delayExceptions_onGet() 364 .executeShellCommand(String.format(GFXINFO_COMMAND_GET, "pkg2")); in testCollect_delayExceptions_onGet() [all …]
|
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/ |
D | PerfettoHelper.java | 95 String output = mUIDevice.executeShellCommand(String.format(REMOVE_CMD, in startCollecting() 108 String startOutput = mUIDevice.executeShellCommand(perfettoCmd); in startCollecting() 161 String stopOutput = mUIDevice.executeShellCommand(PERFETTO_STOP_CMD); in stopPerfetto() 185 String perfettoProcId = mUIDevice.executeShellCommand(PERFETTO_PROC_ID_CMD); in isPerfettoRunning() 221 String moveResult = mUIDevice.executeShellCommand(String.format( in copyFileOutput()
|
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/ |
D | PwrStatsUtilHelper.java | 63 output = executeShellCommand("pwrstats_util -d " + mLogFile.getAbsolutePath()); in startCollecting() 79 executeShellCommand("kill -INT " + mUtilPid); in stopCollecting() 102 protected String executeShellCommand(String command) throws IOException { in executeShellCommand() method in PwrStatsUtilHelper 108 return mDevice.executeShellCommand(command); in executeShellCommand()
|
/platform_testing/libraries/collectors-helper/simpleperf/src/com/android/helpers/ |
D | SimpleperfHelper.java | 78 String startOutput = uiDevice.executeShellCommand(startCommand); in startCollecting() 142 String stopOutput = mUiDevice.executeShellCommand(SIMPLEPERF_STOP_CMD); in stopSimpleperf() 165 String simpleperfProcId = mUiDevice.executeShellCommand(SIMPLEPERF_PROC_ID_CMD); in isSimpleperfRunning() 203 mUiDevice.executeShellCommand( in copyFileOutput()
|
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/ |
D | PwrStatsUtilHelperTest.java | 57 doReturn(metric_output).when(mHelper).executeShellCommand(matches("kill -INT \\d+")); in successfulRun() 58 doReturn(pid_output).when(mHelper).executeShellCommand(matches("pwrstats_util -d .*")); in successfulRun()
|
/platform_testing/libraries/collectors-helper/simpleperf/test/src/com/android/helpers/tests/ |
D | SimpleperfHelperTest.java | 58 uiDevice.executeShellCommand(String.format(REMOVE_CMD, "/data/local/tmp/perf.data")); in teardown() 91 uiDevice.executeShellCommand( in testSimpleperfSuccess()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | DeviceConfigHelper.java | 31 return device.executeShellCommand(command); in setConfigValue()
|
/platform_testing/tests/automotive/health/mediacenter/src/android/platform/scenario/mediacenter/bluetooth/ |
D | OpenMedia.java | 35 .executeShellCommand( in testOpen()
|