/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | BackupUtilsTest.java | 56 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 58 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 60 } else if (command.equals("bmgr enable true")) { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue() 75 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 77 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 79 } else if (command.equals("bmgr enable true")) { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse() 94 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 96 if (command.equals("bmgr enabled")) { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 98 } else if (command.equals("bmgr enable false")) { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue() 113 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse() [all …]
|
/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/ |
D | CommandsHelper.java | 78 public String executeShellCommand(String command) { in executeShellCommand() argument 80 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand() 84 command, e.getMessage())); in executeShellCommand() 95 public List<String> executeShellCommandAndSplitOutput(String command, in executeShellCommandAndSplitOutput() argument 97 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput() 106 public static String execute(String command) { in execute() argument 107 return getInstance().executeShellCommand(command); in execute() 116 public static List<String> executeAndSplitLines(String command) { in executeAndSplitLines() argument 117 return getInstance().executeShellCommandAndSplitOutput(command, LINE_SEPARATORS); in executeAndSplitLines()
|
/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | PermissionInstrumentation.java | 35 String command = arguments.getString(PARAM_COMMAND); in onCreate() local 36 if (command == null) { in onCreate() 39 if (COMMAND_DUMP.equals(command)) { in onCreate() 41 } else if (COMMAND_GRANTALL.equals(command)) { in onCreate() 45 String.format("unrecognized command \"%s\"", command)); in onCreate()
|
/platform_testing/host_runners/power/src/com/android/power/ |
D | PowerRunner.java | 153 List<String> command = new ArrayList<String>(); in prepareInstrumentationCommand() local 154 command.add("am instrument -w -r"); in prepareInstrumentationCommand() 155 command.add("-f " + INSTRUMENTATION_RESULTS_FILE_PATH + "/output.proto --no-logcat"); in prepareInstrumentationCommand() 156 command.add("-w -r -e class"); in prepareInstrumentationCommand() 157 command.add(getClassName()); in prepareInstrumentationCommand() 159 command.add("-e"); in prepareInstrumentationCommand() 160 command.add(argEntry.getKey()); in prepareInstrumentationCommand() 161 command.add(argEntry.getValue()); in prepareInstrumentationCommand() 165 command.add("-e time-to-keep-device-disconnected"); in prepareInstrumentationCommand() 166 command.add(String.valueOf(timeToKeepDeviceDisconnected)); in prepareInstrumentationCommand() [all …]
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | FilesystemUtil.java | 41 public static void saveProcessOutput(Instrumentation instr, String command, File file) in saveProcessOutput() argument 44 command, file.getAbsolutePath())); in saveProcessOutput() 47 saveProcessOutput(instr, command, out); in saveProcessOutput() 52 public static void saveProcessOutput(Instrumentation instr, String command, OutputStream out) in saveProcessOutput() argument 56 ParcelFileDescriptor pfd = instr.getUiAutomation().executeShellCommand(command); in saveProcessOutput() 61 Process process = Runtime.getRuntime().exec(command); in saveProcessOutput() 68 throw new IOException("Thread interrupted waiting for command: " + command); in saveProcessOutput() 73 throw new IOException("Failed to save output of command: " + command); in saveProcessOutput()
|
D | LogGenerator.java | 41 String command, in saveLog() argument 45 command, in saveLog()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/events/ |
D | EventLogMonitor.kt | 54 val command = in doStop() constant 57 Log.d(LOG_TAG, "Running '$command'") in doStop() 58 val eventLogString = executeShellCommand(command) in doStop()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | PowerTestRunListener.java | 55 String command = "cable_breaker -a break:" + maxTimeout + " -w -"; in disconnectDeviceFromHost() local 56 Log.i(TAG, "Running command to disconnect using cable breaker: " + command); in disconnectDeviceFromHost() 57 getInstrumentation().getUiAutomation().executeShellCommand(command); in disconnectDeviceFromHost()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | DeviceConfigHelper.java | 30 String command = String.format("device_config put %s %s %s", namespace, setting, value); in setConfigValue() local 31 return device.executeShellCommand(command); in setConfigValue()
|
/platform_testing/libraries/sts-common-util/device-side/src/com/android/sts/common/ |
D | DumpsysUtils.java | 36 public static String getRawDumpsys(String command) { in getRawDumpsys() argument 38 if (command == null) { in getRawDumpsys() 43 return runShellCommand(String.format("dumpsys %s", command)).trim(); in getRawDumpsys()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | SysuiDemoModeRule.kt | 55 private fun sendDemoModeBroadcast(command: String) { in sendDemoModeBroadcast() 57 intent.putExtra("command", command) in sendDemoModeBroadcast()
|
D | InputDeviceRule.kt | 177 private fun writeCommand(command: String) { in <lambda>() 178 writeCommand(command.toByteArray()) in <lambda>() 181 private fun writeCommand(command: ByteArray) { in <lambda>() 182 outputStream.write(command) in <lambda>()
|
D | EnsureDeviceSettingsRule.kt | 73 val command = setupErrors.map { it.adbCommandToFixIt }.joinToString("; \\\n") in throwSetupErrors() constant
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | JankCollectionHelper.java | 275 String command = String.format(GFXINFO_COMMAND_RESET, "--"); in clearGfxInfo() local 276 String output = getDevice().executeShellCommand(command); in clearGfxInfo() 281 String command = String.format(GFXINFO_COMMAND_RESET, pkg); in clearGfxInfo() local 282 String output = getDevice().executeShellCommand(command); in clearGfxInfo() 302 String command = String.format(GFXINFO_COMMAND_GET, pkg); in getGfxInfoMetrics() local 303 String output = getDevice().executeShellCommand(command); in getGfxInfoMetrics()
|
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | DeviceHelpers.kt | 274 fun UiDevice.shell(command: String): String = DeviceHelpers.shell(command) in shell() 286 fun shell(command: String): String { in shell() 287 trace("Executing shell command: $command") { in shell() 288 Log.d(TAG, "Executing Shell Command: $command at ${uptimeMillis()}ms") in shell() 290 uiDevice.executeShellCommand(command) in shell()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | BackupUtils.java | 67 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() argument 69 public void executeShellCommandSync(String command) throws IOException { in executeShellCommandSync() argument 70 StreamUtil.drainAndClose(new InputStreamReader(executeShellCommand(command))); in executeShellCommandSync() 73 public String getShellCommandOutput(String command) throws IOException { in getShellCommandOutput() argument 74 InputStream inputStream = executeShellCommand(command); in getShellCommandOutput() 272 public String executeShellCommandAndReturnOutput(String command) throws IOException { in executeShellCommandAndReturnOutput() argument 273 InputStream in = executeShellCommand(command); in executeShellCommandAndReturnOutput()
|
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/ |
D | PwrStatsUtilHelper.java | 102 protected String executeShellCommand(String command) throws IOException { in executeShellCommand() argument 107 Log.i(LOG_TAG, "Running '" + command + "'"); in executeShellCommand() 108 return mDevice.executeShellCommand(command); in executeShellCommand()
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 125 public static byte[] executeCommandBlocking(String command, Instrumentation instr) { in executeCommandBlocking() argument 127 .executeShellCommand(command)); in executeCommandBlocking() 138 Log.e(TAG, "Error executing: " + command, e); in executeCommandBlocking()
|
/platform_testing/libraries/motion/golden_updater/ |
D | watch_local_tests.py | 367 command = f"find /data/user/0/ -type f -name {marker_name}" 369 files = self.run_adb_command(["shell", command]).splitlines() 432 command = f"find {remote_dir} -type f \\( -name *.json -o -name *.textproto \\)" 434 files = self.run_adb_command(["shell", command]).splitlines() 531 command = ["adb"] 532 command += ["-s", self.adb_serial] 533 command += args 534 return subprocess.run(command, check=True, capture_output=True).stdout.decode(
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/ |
D | FlickerBuilder.kt | 70 fun transitions(command: FlickerTestData.() -> Unit): FlickerBuilder = apply { in <lambda>() 74 transitionCommands.add(command) in <lambda>()
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | UserUtils.java | 199 String command = in withUser() local 211 final CommandResult output = mDevice.executeShellV2Command(command); in withUser()
|
/platform_testing/libraries/collectors-helper/generic/src/com/android/helpers/ |
D | GenericExecutableCollectorHelper.java | 157 public String executeShellCommand(String command) throws IOException { in executeShellCommand() argument 158 return mUiDevice.executeShellCommand(command); in executeShellCommand()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | PinnerHelper.java | 179 public String executeShellCommand(String command) throws IOException { in executeShellCommand() argument 181 .executeShellCommand(command); in executeShellCommand()
|
D | MemLeaksHelper.java | 210 public String executeShellCommand(String command) throws IOException { in executeShellCommand() argument 211 return mUiDevice.executeShellCommand(command); in executeShellCommand()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | CommonUtils.java | 94 public static String executeShellCommand(String command) { in executeShellCommand() argument 95 Log.d(TAG, format("Executing Shell Command: %s", command)); in executeShellCommand() 97 String out = getUiDevice().executeShellCommand(command); in executeShellCommand()
|