Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 50) sorted by relevance

12

/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DCompilationFilterRuleTest.java52 protected String executeShellCommand(String cmd) { in testNoAppToCompile()
53 super.executeShellCommand(cmd); in testNoAppToCompile()
71 protected String executeShellCommand(String cmd) { in testSingleAppToCompile()
72 super.executeShellCommand(cmd); in testSingleAppToCompile()
105 protected String executeShellCommand(String cmd) { in testAppToCompile_failCompilationThrows()
106 super.executeShellCommand(cmd); in testAppToCompile_failCompilationThrows()
125 protected String executeShellCommand(String cmd) { in testOneAppToCompile()
126 super.executeShellCommand(cmd); in testOneAppToCompile()
146 protected String executeShellCommand(String cmd) { in testOneAppToCompileMultipleIterations()
147 super.executeShellCommand(cmd); in testOneAppToCompileMultipleIterations()
[all …]
DRemoveAppFromStackRuleTest.java95 protected String executeShellCommand(String cmd) { in executeShellCommand() argument
96 mOperations.add(cmd); in executeShellCommand()
97 if (cmd.equalsIgnoreCase("dumpsys activity activities")) { in executeShellCommand()
DFinishActivitiesWithoutProcessKillRuleTest.java96 protected String executeShellCommand(String cmd) { in executeShellCommand() argument
97 mOperations.add(cmd); in executeShellCommand()
98 if (cmd.equalsIgnoreCase("dumpsys activity activities")) { in executeShellCommand()
DDropCachesRuleTest.java87 protected String executeShellCommand(String cmd) { in executeShellCommand() argument
88 mOperations.add(cmd); in executeShellCommand()
DKillAppsRuleTest.java149 protected String executeShellCommand(String cmd) { in executeShellCommand() argument
150 mOperations.add(cmd); in executeShellCommand()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DCommandUtil.java39 public static CommandResult runAndCheck(ITestDevice device, String cmd) in runAndCheck() argument
41 return runAndCheck(device, cmd, 0); in runAndCheck()
52 public static CommandResult runAndCheck(ITestDevice device, String cmd, int retries) in runAndCheck() argument
59 res = device.executeShellV2Command(cmd); in runAndCheck()
65 cmd, res.getExitCode(), res.getStdout(), res.getStderr()); in runAndCheck()
DRootcanalUtils.java208 List<String> cmd = in enableRootcanal() local
215 RunUtil.getDefault().runCmdInBackground(cmd); in enableRootcanal()
352 ByteBuffer cmd = ByteBuffer.allocate(4 + params.length).order(ByteOrder.LITTLE_ENDIAN); in sendHciCmd() local
354 cmd.put((byte) 0x01).putShort((short) opcode).put((byte) params.length).put(params); in sendHciCmd()
355 sendHciPacket(cmd.array()); in sendHciCmd()
464 public String sendTestChannelCommand(String cmd, String... args) in sendTestChannelCommand() argument
475 msg.write(cmd.length()); in sendTestChannelCommand()
476 msg.write(cmd.getBytes("ASCII")); in sendTestChannelCommand()
DSystemUtil.java81 String cmd = String.format("settings delete %s %s", namespace, key);
82 CommandResult res = CommandUtil.runAndCheck(device, cmd);
DProcessUtil.java441 String cmd = "lsof -p " + pid.toString() + " | grep -o '/.*'";
442 String[] openFiles = CommandUtil.runAndCheck(device, cmd).getStdout().split("\n");
471 String cmd = "pm " + queryCmd + " ";
473 cmd += entry.getKey() + " " + entry.getValue() + " ";
475 CommandResult result = device.executeShellV2Command(cmd);
477 Log.i(LOG_TAG, String.format("Executed cmd: %s \nOutput: %s", cmd, resultString));
/platform_testing/emu_test/
Drun_test.sh48 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
Drun_android_bridge_test.sh53 cmd="$ADT_INFRA/emu_test/utils/run_test_android_bridge.sh"
54 run_with_timeout $cmd $DIST_DIR 5400
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DNohupCommandHelper.java43 public static void executeAdbNohupCommand(ITestDevice device, String cmd, int timeout) in executeAdbNohupCommand() argument
58 builder.append(cmd); in executeAdbNohupCommand()
97 public static void executeAdbNohupCommand(ITestDevice device, String cmd) in executeAdbNohupCommand() argument
99 executeAdbNohupCommand(device, cmd, DEFAULT_TIMEOUT); in executeAdbNohupCommand()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DArtifactSaver.java155 private static void dumpCommandAndOutput(String cmd, OutputStream out) throws IOException { in dumpCommandAndOutput() argument
156 out.write(("\n\n" + cmd + "\n").getBytes()); in dumpCommandAndOutput()
157 dumpCommandOutput(cmd, out); in dumpCommandAndOutput()
160 public static void dumpCommandOutput(String cmd, File out) { in dumpCommandOutput() argument
162 dumpCommandOutput(cmd, buffered); in dumpCommandOutput()
167 private static void dumpCommandOutput(String cmd, OutputStream out) throws IOException { in dumpCommandOutput() argument
172 .executeShellCommand(cmd))) { in dumpCommandOutput()
DDittoBenchRule.java41 String cmd = mDittoBenchPath + " " + mDittoConfigPath + " --log=logcat &"; in starting() local
44 mOutputFd = uiAutomation.executeShellCommand(cmd); in starting()
DTestWatcher.java109 protected String executeShellCommand(String cmd) {
111 Log.v(LOG_TAG, String.format("Executing command from %s: %s", this.getClass(), cmd));
112 return getUiDevice().executeShellCommand(cmd);
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java157 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/
DBugReportDurationHelper.java299 String cmd = String.format(UNZIP_EXTRACT_CMD, archivePath.toString(), entry); in extractAndFilterBugReport() local
300 Log.d(TAG, "The unzip command that will be run is: " + cmd); in extractAndFilterBugReport()
308 automation.executeShellCommand(cmd)); in extractAndFilterBugReport()
344 String cmd = String.format(UNZIP_EXTRACT_CMD, archivePath.toString(), entry); in extractAndFilterDumpstateBoard() local
345 Log.d(TAG, "The unzip command that will be run is: " + cmd); in extractAndFilterDumpstateBoard()
353 automation.executeShellCommand(cmd)); in extractAndFilterDumpstateBoard()
382 String cmd = String.format(UNZIP_CONTENTS_CMD, archivePath.toString()); in dumpBugReportEntries() local
383 Log.d(TAG, "The list-contents command that will be run is: " + cmd); in dumpBugReportEntries()
386 automation.executeShellCommand(cmd)); in dumpBugReportEntries()
DDumpsysServiceHelper.java88 final String cmd = String.format(DUMPSYS_CMD, serviceName); in runDumpsysCmd() local
90 String res = mUiDevice.executeShellCommand(cmd); in runDumpsysCmd()
DTimeInStateHelper.java65 String cmd = String.format(CHECK_FILE_EXIST_CMD, source); in setUp() local
68 result = getDevice().executeShellCommand(cmd); in setUp()
132 String cmd = String.format(READ_FILE_CMD, source); in readFreqStats() local
133 timeInStateData = getDevice().executeShellCommand(cmd); in readFreqStats()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java415 String cmd = String.format(GFXINFO_COMMAND_RESET, "pkg1"); in testCollect_delayExceptions_onReset() local
416 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_delayExceptions_onReset()
443 String cmd = String.format(GFXINFO_COMMAND_GET, "pkg1"); in testCollect_withFailures_stillReportsSuccessfulPackages() local
444 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new RuntimeException()); in testCollect_withFailures_stillReportsSuccessfulPackages()
471 String cmd = String.format(JankCollectionHelper.GFXINFO_COMMAND_RESET, ""); in testFailures_cannotClear() local
472 when(mUiDevice.executeShellCommand(cmd)).thenReturn(""); in testFailures_cannotClear()
484 String cmd = String.format(JankCollectionHelper.GFXINFO_COMMAND_RESET, ""); in testFailures_ioFailure() local
485 when(mUiDevice.executeShellCommand(cmd)).thenThrow(new IOException()); in testFailures_ioFailure()
525 String cmd = String.format(GFXINFO_COMMAND_RESET, pkg.isEmpty() ? "--" : pkg); in mockResetCommand() local
526 when(mUiDevice.executeShellCommand(cmd)).thenReturn(output); in mockResetCommand()
[all …]
/platform_testing/tests/bettertogether/betocq/
Dandroid_wifi_utils.py77 cmd = ['cmd', 'wifi', 'connect-network', f'"{ssid}"']
79 cmd.append(f'"{security or WiFiSecurity.OPEN}"')
81 cmd.extend([f'"{security or WiFiSecurity.WPA2}"', f'"{passphrase}"'])
82 ad.adb.shell(cmd)
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DUtils.kt48 fun executeShellCommand(cmd: String): ByteArray { in executeShellCommand()
49 Log.d(LOG_TAG, "Executing shell command $cmd") in executeShellCommand()
51 val fileDescriptor = uiAutomation.executeShellCommand(cmd) in executeShellCommand()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DHelperTestUtility.java61 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/
DGarbageCollectionHelperTest.java53 String cmd = (String) inv.getArguments()[0]; in setUp() local
54 if (cmd.startsWith("pidof package")) { in setUp()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DGcaEventLogCollector.java172 String cmd = in copyEventLogToSharedStorage() local
174 Log.d(TAG, "Copy command: " + cmd); in copyEventLogToSharedStorage()
175 executeCommandBlocking(cmd); in copyEventLogToSharedStorage()

12