/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | CompilationFilterRuleTest.java | 52 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 …]
|
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 | 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 | DropCachesRuleTest.java | 87 protected String executeShellCommand(String cmd) { in executeShellCommand() argument 88 mOperations.add(cmd); in executeShellCommand()
|
D | KillAppsRuleTest.java | 149 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/ |
D | CommandUtil.java | 39 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()
|
D | RootcanalUtils.java | 208 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()
|
D | SystemUtil.java | 81 String cmd = String.format("settings delete %s %s", namespace, key); 82 CommandResult res = CommandUtil.runAndCheck(device, cmd);
|
D | ProcessUtil.java | 441 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/ |
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
|
/platform_testing/host_runners/utils/src/com/android/runner/utils/ |
D | NohupCommandHelper.java | 43 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/ |
D | ArtifactSaver.java | 155 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()
|
D | DittoBenchRule.java | 41 String cmd = mDittoBenchPath + " " + mDittoConfigPath + " --log=logcat &"; in starting() local 44 mOutputFd = uiAutomation.executeShellCommand(cmd); in starting()
|
D | TestWatcher.java | 109 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/ |
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 | BugReportDurationHelper.java | 299 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()
|
D | DumpsysServiceHelper.java | 88 final String cmd = String.format(DUMPSYS_CMD, serviceName); in runDumpsysCmd() local 90 String res = mUiDevice.executeShellCommand(cmd); in runDumpsysCmd()
|
D | TimeInStateHelper.java | 65 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/ |
D | JankCollectionHelperTest.java | 415 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/ |
D | android_wifi_utils.py | 77 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/ |
D | Utils.kt | 48 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/ |
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/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()
|