/platform_testing/libraries/tradefed-python-lib/tradefed_py/ |
D | adb_handler.py | 26 def exec_adb_command(self, cmd): argument 28 cmd = "{} {}".format(self.adb_cmd, cmd) 29 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 36 def exec_shell_command(self, cmd): argument 38 cmd = '{} shell {}'.format(self.adb_cmd, cmd) 39 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 49 def __init__(self, cmd, stdout, stderr, ret_code): argument 50 self.cmd = cmd [all …]
|
D | android_device.py | 31 def executeShellCommand(self, cmd): argument 40 return self.adb.exec_shell_command(cmd) 55 def __init__(self, cmd, message): argument 56 self.cmd = cmd 61 ) % (self.cmd, self.message)
|
/platform_testing/libraries/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/ |
D | VehicleHardKeysHelperImpl.java | 84 String cmd = executeShellCommand("input keyevent KEYCODE_ENDCALL"); in pressEndCallKey() local 89 String cmd = executeShellCommand("input keyevent KEYCODE_MEDIA_NEXT"); in pressMediaNextTrackKey() local 94 String cmd = executeShellCommand("input keyevent KEYCODE_MEDIA_PREVIOUS"); in pressMediaPreviousTrackKey() local 99 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_UP"); in tuneVolumeUpKey() local 104 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_DOWN"); in tuneVolumeDownKey() local 109 String cmd = executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_UP"); in pressBrightnessUpKey() local 114 String cmd = executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_DOWN"); in pressBrightnessDownKey() local 124 String cmd = executeShellCommand("input keyevent KEYCODE_VOLUME_MUTE"); in tuneMuteKey() local 169 String cmd = "dumpsys car_service"; in getCurrentVolumeLevel() local 170 String res = executeShellCommand(cmd); in getCurrentVolumeLevel()
|
/platform_testing/emu_test/ |
D | run_test.sh | 48 cmd="$ADT_INFRA/emu_test/utils/run_boot_test.sh" 49 run_with_timeout $cmd $DIST_DIR $ORI $API 5400 54 cmd="$ADT_INFRA/emu_test/utils/run_ui_test.sh" 55 run_with_timeout $cmd $DIST_DIR $ORI $API 10800
|
D | run_android_bridge_test.sh | 53 cmd="$ADT_INFRA/emu_test/utils/run_test_android_bridge.sh" 54 run_with_timeout $cmd $DIST_DIR 5400
|
D | run_android_bridge_test.cmd | 43 start %ADT_INFRA%\emu_test\utils\run_test_android_bridge.cmd %DIST_DIR% 59 cmd.exe /c %ANDROID_HOME%\platform-tools\adb.exe kill-server
|
/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() 138 if (cmd.contains("killall -s SIGUSR1")) { in testMultipleAppsToCompileInSpeedProfile() 169 protected String executeShellCommand(String cmd) { in executeShellCommand() argument [all …]
|
D | FinishActivitiesWithoutProcessKillRuleTest.java | 96 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 97 mOperations.add(cmd); in executeShellCommand() 98 if (cmd.equalsIgnoreCase("dumpsys activity activities")) { in executeShellCommand()
|
D | RemoveAppFromStackRuleTest.java | 95 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 96 mOperations.add(cmd); in executeShellCommand() 97 if (cmd.equalsIgnoreCase("dumpsys activity activities")) { in executeShellCommand()
|
D | DropCachesRuleTest.java | 73 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 74 mOperations.add(cmd); in executeShellCommand()
|
D | IorapCompilationRuleTest.java | 173 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 174 mOperations.add(cmd); in executeShellCommand() 176 if (cmd.equals(IorapCompilationRule.IORAP_DUMPSYS_CMD)) { in executeShellCommand()
|
D | KillAppsRuleTest.java | 114 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 115 mOperations.add(cmd); in executeShellCommand()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | TestWatcher.java | 95 protected String executeShellCommand(String cmd) { 97 Log.v(LOG_TAG, String.format("Executing command from %s: %s", this.getClass(), cmd)); 98 return getUiDevice().executeShellCommand(cmd);
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 314 String cmd = String.format(GFXINFO_COMMAND_RESET, "pkg1"); in testCollect_delayExceptions_onReset() local 315 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onReset() 342 String cmd = String.format(GFXINFO_COMMAND_GET, "pkg1"); in testCollect_delayExceptions_onGet() local 343 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onGet() 373 String cmd = String.format(JankCollectionHelper.GFXINFO_COMMAND_RESET, ""); in testFailures_cannotClear() local 374 when(mUiDevice.executeShellCommand(cmd)).thenReturn(""); in testFailures_cannotClear() 386 String cmd = String.format(JankCollectionHelper.GFXINFO_COMMAND_RESET, ""); in testFailures_ioFailure() local 387 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new IOException()); in testFailures_ioFailure() 431 String cmd = String.format(GFXINFO_COMMAND_RESET, pkg.isEmpty() ? "--" : pkg); in mockResetCommand() local 432 when(mUiDevice.executeShellCommand(cmd)).thenReturn(output); in mockResetCommand() [all …]
|
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
D | UiBenchJankTestsHelper.java | 157 String cmd = null; in enableKeyboardIME() local 159 cmd = "ime enable %s"; in enableKeyboardIME() 161 cmd = "ime disable %s"; in enableKeyboardIME() 163 mDevice.executeShellCommand(String.format(cmd, KEYBOARD_SERVICE_NAME)); in enableKeyboardIME()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | DumpsysServiceHelper.java | 88 final String cmd = String.format(DUMPSYS_CMD, serviceName); in runDumpsysCmd() local 90 String res = mUiDevice.executeShellCommand(cmd); in runDumpsysCmd()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/ |
D | Extensions.kt | 42 private fun executeCommand(uiAutomation: UiAutomation, cmd: String): ByteArray { in toActivityName() 43 val fileDescriptor = uiAutomation.executeShellCommand(cmd) in toActivityName()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | HelperTestUtility.java | 61 public static String executeShellCommand(String cmd) { in executeShellCommand() argument 63 return getUiDevice().executeShellCommand(cmd); in executeShellCommand()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | GarbageCollectionHelperTest.java | 53 String cmd = (String) inv.getArguments()[0]; in setUp() local 54 if (cmd.startsWith("pidof package")) { in setUp()
|
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/ |
D | SettingHelperImpl.java | 70 String cmd = in stopSettingsApplication() local 74 executeShellCommand(cmd); in stopSettingsApplication() 403 String cmd = String.format("settings get system %s", setting); in getValue() local 404 String value = executeShellCommand(cmd); in getValue() 411 String cmd = String.format("settings put system %s %d", setting, value); in setValue() local 412 executeShellCommand(cmd); in setValue()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | DumpsysMeminfoHelper.java | 100 final String cmd = String.format(DUMPSYS_MEMINFO_CMD, processName); in getRawDumpsysMeminfo() local 101 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(cmd); in getRawDumpsysMeminfo() 105 Log.e(TAG, "Failed to execute command. " + cmd, e); in getRawDumpsysMeminfo()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | GcaEventLogCollector.java | 172 String cmd = in copyEventLogToSharedStorage() local 174 Log.d(TAG, "Copy command: " + cmd); in copyEventLogToSharedStorage() 175 executeCommandBlocking(cmd); in copyEventLogToSharedStorage()
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
D | WifiStrengthScannerInstrumentation.java | 169 private String executeCommand(String cmd) throws IOException, InterruptedException { in executeCommand() argument 172 ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(cmd); in executeCommand() 181 throw new IOException(String.format("Fails to execute command: %s ", cmd), e); in executeCommand()
|
/platform_testing/libraries/audio-test-harness/proto/ |
D | Android.bp | 65 cmd: FULL_PROTO_CMD, 77 cmd: LITE_PROTO_CMD,
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/ |
D | Android.bp | 35 cmd: "out_dir=$$(dirname $(out)) && assets_dir=\"assets/statsd-configs\" " +
|