/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandTest.java | 42 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withAssignedAttemptId() local 44 assertEquals(REQUEST_ID, command.getRequestId()); in testFromJson_withAssignedAttemptId() 45 assertEquals(COMMAND_ID, command.getCommandId()); in testFromJson_withAssignedAttemptId() 46 assertEquals(TASK_ID, command.getTaskId()); in testFromJson_withAssignedAttemptId() 47 assertEquals(COMMAND_LINE, command.getCommandLine()); in testFromJson_withAssignedAttemptId() 48 assertEquals("attempt_id", command.getAttemptId()); in testFromJson_withAssignedAttemptId() 55 ClusterCommand command = ClusterCommand.fromJson(json); in testFromJson_withoutAssignedAttemptId() local 57 assertEquals(REQUEST_ID, command.getRequestId()); in testFromJson_withoutAssignedAttemptId() 58 assertEquals(COMMAND_ID, command.getCommandId()); in testFromJson_withoutAssignedAttemptId() 59 assertEquals(TASK_ID, command.getTaskId()); in testFromJson_withoutAssignedAttemptId() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | LaunchCvdHelper.java | 46 List<String> command = new ArrayList<>(); in createSimpleDeviceCommand() local 47 command.add("sudo -u " + username); in createSimpleDeviceCommand() 48 command.add("/home/" + username + "/bin/launch_cvd"); in createSimpleDeviceCommand() 49 command.add("-data_policy"); in createSimpleDeviceCommand() 51 command.add("always_create"); in createSimpleDeviceCommand() 53 command.add("create_if_missing"); in createSimpleDeviceCommand() 56 command.add("-blank_data_image_mb"); in createSimpleDeviceCommand() 58 command.add("8000"); in createSimpleDeviceCommand() 60 command.add("-daemon"); in createSimpleDeviceCommand() 62 return command; in createSimpleDeviceCommand()
|
D | RemoteSshUtil.java | 48 String... command) { in remoteSshCommandExec() argument 55 command); in remoteSshCommandExec() 75 String... command) { in remoteSshCommandExec() argument 77 remoteInstance, options, runUtil, timeoutMs, null, null, command); in remoteSshCommandExec()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 161 List<String> command = new ArrayList<>(); in copy() local 163 command.add(GSUTIL); in copy() 166 command.add(FLAG_PARALLEL); in copy() 169 command.add(CMD_COPY); in copy() 172 command.add(FLAG_RECURSIVE); in copy() 176 command.add(FLAG_NO_CLOBBER); in copy() 179 command.add(source); in copy() 180 command.add(dest); in copy() 182 String[] commandAsStr = command.toArray(new String[0]); in copy() 271 List<String> command = new ArrayList<>(); in makeBucket() local [all …]
|
D | SimplePerfUtil.java | 93 public SimplePerfResult executeCommand(String command) throws DeviceNotAvailableException { in executeCommand() argument 94 String output = mDevice.executeShellCommand(commandStringPreparer(command)); in executeCommand() 109 public void executeCommand(String command, IShellOutputReceiver receiver) in executeCommand() argument 111 mDevice.executeShellCommand(commandStringPreparer(command), receiver); in executeCommand() 131 public void executeCommand(String command, IShellOutputReceiver receiver, in executeCommand() argument 134 mDevice.executeShellCommand(commandStringPreparer(command), receiver, in executeCommand() 138 protected String commandStringPreparer(String command) { in commandStringPreparer() argument 139 if (command == null) { in commandStringPreparer() 140 command = ""; in commandStringPreparer() 142 return commandPrependPreparer().toString() + command; in commandStringPreparer()
|
D | CircularAtraceUtil.java | 70 String command = String.format(ATRACE_START_CMD, bufferSizeMB * KB_IN_MB, tagsString); in startTrace() local 71 CLog.d("Starting circular atrace utility with command: %s", command); in startTrace() 72 device.executeShellCommand(command); in startTrace() 91 String command = String.format(ATRACE_STOP_CMD, bufferSizeKB, DEVICE_FILE); in endTrace() local 92 CLog.d("Ending atrace utility with command: %s", command); in endTrace() 93 device.executeShellCommand(command); in endTrace()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | IRunUtil.java | 107 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() argument 121 final long timeout, OutputStream stdout, OutputStream stderr, final String... command); in runTimedCmd() argument 134 int attempts, final String... command); in runTimedCmdRetry() argument 145 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() argument 159 int attempts, final String... command); in runTimedCmdSilentlyRetry() argument 170 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() argument 181 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput() argument 194 long timeout, @Nullable File inputRedirect, String... command); in runTimedCmdWithInputRedirect() argument 205 public Process runCmdInBackground(String... command) throws IOException; in runCmdInBackground() argument 217 public Process runCmdInBackground(Redirect redirect, final String... command) in runCmdInBackground() argument [all …]
|
D | RunUtil.java | 20 import com.android.tradefed.command.CommandInterrupter; 145 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() argument 146 return runTimedCmd(timeout, null, null, command); in runTimedCmd() 154 OutputStream stderr, final String... command) { in runTimedCmd() argument 155 RunnableResult osRunnable = createRunnableResult(stdout, stderr, command); in runTimedCmd() 168 OutputStream stdout, OutputStream stderr, String... command) { in createRunnableResult() argument 171 createProcessBuilder(command), in createRunnableResult() 181 long timeout, long retryInterval, int attempts, String... command) { in runTimedCmdRetry() argument 185 result = runTimedCmd(timeout, command); in runTimedCmdRetry() 195 private synchronized ProcessBuilder createProcessBuilder(String... command) { in createProcessBuilder() argument [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 76 command=[], argument 94 self.command = command 107 self.command, self._raw_stdout, self._raw_stderr, 112 def run(command, argument 142 command, 146 shell=not isinstance(command, list)) 159 command=command, 169 logging.error("Command %s with %s timeout setting timed out", command, 179 def run_async(command, env=None): argument 198 command, [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | b29_lib.py | 110 command = '--serial={}'.format(self.port) 111 debug_bridge_process = self._send_command(command=command) 144 def _send_command(self, command): argument 152 '{} {} {}'.format(DEBUG_BRIDGE, '--rpc_port=-1', command), 170 command = '--serial=%s --debug_spi=dfu --sqif_partition=8' % self.port 171 debug_bridge_process = self._send_command(command=command) 192 command = '--serial={} --ping={}'.format(self.port, component) 193 debug_bridge_process = self._send_command(command=command) 213 command = '--serial={} --charger_reset'.format(self.port) 214 reset_charger_process = self._send_command(command=command)
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/ |
D | ota_tool_factory.py | 21 AdbSideloadOtaTool.__name__: lambda command: AdbSideloadOtaTool(command), 22 UpdateDeviceOtaTool.__name__: lambda command: UpdateDeviceOtaTool(command), 27 def create(ota_tool_class, command): argument 49 new_update_tool = _CONSTRUCTORS[ota_tool_class](command)
|
D | update_device_ota_tool.py | 34 def __init__(self, command): argument 35 super(UpdateDeviceOtaTool, self).__init__(command) 38 utils.unzip_maintain_permissions(self.command, self.unzip_path) 40 self.command = os.path.join(self.unzip_path, 'update_device.py') 46 self.command, ota_runner.serial, ota_runner.get_ota_package())
|
D | ota_tool.py | 25 def __init__(self, command): argument 31 self.command = command
|
/tools/test/connectivity/acts/framework/tests/libs/ota/ota_tools/ |
D | ota_tool_factory_test.py | 22 def __init__(self, command): argument 23 self.command = command 32 MockOtaTool.__name__: lambda command: MockOtaTool(command), 45 MockOtaTool.__name__: lambda command: MockOtaTool(command),
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner_factory.py | 78 command = DEFAULT_OTA_COMMAND 80 command = config[ota_tool_class_name] 81 if type(command) is list: 83 if len(command) == 1: 84 command = command[0] 99 command) 106 command=DEFAULT_OTA_COMMAND, argument 123 ota_tool = ota_tool_factory.create(ota_tool_class_name, command)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | RunCommandTargetPreparerTest.java | 71 final String command = "mkdir test"; in testSetUp() local 73 setter.setOptionValue("run-command", command); in testSetUp() 77 EasyMock.expect(mMockDevice.executeShellV2Command(EasyMock.eq(command))).andReturn(res); in testSetUp() 89 final String command = "mkdir test"; in testSetUp_withTimeout() local 91 setter.setOptionValue("run-command", command); in testSetUp_withTimeout() 98 EasyMock.eq(command), in testSetUp_withTimeout() 115 final String command = "mkdir test"; in testDisabled() local 117 setter.setOptionValue("run-command", command); in testDisabled() 130 final String command = "mkdir test"; in testTearDown() local 132 setter.setOptionValue("teardown-command", command); in testTearDown() [all …]
|
/tools/treble/build/sandbox/ |
D | nsjail_test.py | 34 command=['/bin/bash'], 55 command=['/bin/bash'], 67 command=['/bin/bash'], 83 command=['/bin/bash'], 91 command=['/bin/bash'], 113 command=['/bin/bash'], 134 command=['/bin/bash'], 155 command=['/bin/bash'],
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | RunHostCommandTargetPreparer.java | 197 for (final String command : commands) { in runCommandList() 199 getRunUtil().runTimedCmd(mTimeout.toMillis(), command.split("\\s+")); in runCommandList() 204 command, result.getStdout()); in runCommandList() 210 command, result.getStdout(), result.getStderr()), in runCommandList() 214 String.format("Command %s timed out.", command), in runCommandList() 218 String.format("Exception occurred when running command %s.", command), in runCommandList() 233 String command = bgCommands.get(i); in runBgCommandList() local 234 CLog.d("About to run host background command: %s", command); in runBgCommandList() 238 Arrays.asList(command.split("\\s+")), in runBgCommandList() 241 CLog.e("Failed to run command: %s", command); in runBgCommandList() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | SimplePerfUtilTest.java | 46 String command = "ls -l"; in testCommandStringPreparerWithoutParams() local 47 String fullCommand = spu.commandStringPreparer(command); in testCommandStringPreparerWithoutParams() 48 Assert.assertEquals("simpleperf stat " + command, fullCommand); in testCommandStringPreparerWithoutParams() 53 String command = "sleep 10"; in testCommandStringPreparerWithParams() local 60 String fullCommand = spu.commandStringPreparer(command); in testCommandStringPreparerWithParams() 61 Assert.assertEquals("simpleperf record -e cpu-cycles:k --no-inherit perf.data " + command, in testCommandStringPreparerWithParams()
|
/tools/test/connectivity/acts/tests/google/bt/ |
D | relay_tool.py | 142 if args.command: 143 if args.command[0] not in func_names: 145 (repr(args.command[0]), repr(func_names)), file=sys.stderr) 148 func = getattr(relay_device, args.command[0]) 150 ret = func(*args.command[1:]) 160 args.command[0], file=sys.stderr) 161 print_docstring(relay_device, args.command[0])
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | EmmcPerformanceTest.java | 146 String command = in runSequentialRead() local 149 runTest(SEQUENTIAL_READ_KEY, command, TestType.DD, true, iterations, listener, metrics); in runSequentialRead() 156 String command = in runSequentialWrite() local 159 runTest(SEQUENTIAL_WRITE_KEY, command, TestType.DD, false, iterations, listener, metrics); in runSequentialWrite() 167 String command = in runRandomRead() local 173 runTest(RANDOM_READ_KEY, command, TestType.RANDOM, true, iterations, listener, metrics); in runRandomRead() 180 String command = in runRandomWrite() local 186 runTest(RANDOM_WRITE_KEY, command, TestType.RANDOM, false, iterations, listener, metrics); in runRandomWrite() 203 String command, in runTest() argument 225 kbps = runDdIteration(command, simpleperfMetricsMap); in runTest() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | fastboot.py | 61 command = ' '.join((self.fastboot_str, name, arg_str)) 63 result = self.connection.run(command, 67 result = job.run(command, ignore_status=True, timeout=timeout) 71 if "getvar" in command: 77 cmd=command, stdout=out, stderr=err, ret_code=ret)
|
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/adb_commands/ |
D | goog.py | 17 from acts.test_utils.instrumentation.device.command.adb_command_types \ 19 from acts.test_utils.instrumentation.device.command.adb_command_types \ 21 from acts.test_utils.instrumentation.device.command.adb_command_types \
|
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/ |
D | contest.py | 374 command = data.decode() 377 command = re.sub('\r?\n$', '', command) 380 "client: {}".format(command)) 382 if command == self.AUTOMATION_DUT_ON: 388 elif command == self.AUTOMATION_DUT_OFF: 393 elif command.startswith(self.NOTIFICATION_TESTPLAN_START): 396 elif command.startswith(self.NOTIFICATION_TESTCASE_START): 399 elif command.startswith(self.NOTIFICATION_TESCASE_END): 402 elif command.startswith(self.NOTIFICATION_TESTPLAN_END): 406 self.log.error('Unhandled automation command: ' + command)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | ConsoleTest.java | 16 package com.android.tradefed.command; 24 import com.android.tradefed.command.Console.CaptureList; 217 String[] command = new String[] {"run", "command", "--arg", "value", "config.xml"}; in testRunCommand() local 226 Runnable runnable = trie.retrieve(captures, command); in testRunCommand() 227 assertNotNull(String.format("Console didn't match input %s", Arrays.toString(command)), in testRunCommand() 237 String[] command = new String[] {"run", "--arg", "value", "config.xml"}; in testRunCommand_shortcut() local 246 Runnable runnable = trie.retrieve(captures, command); in testRunCommand_shortcut() 247 assertNotNull(String.format("Console didn't match input %s", Arrays.toString(command)), in testRunCommand_shortcut() 260 String[] command = new String[] {"run", "command", "command", "--arg", "value", in testRunCommand_startsWithCommand() local 270 Runnable runnable = trie.retrieve(captures, command); in testRunCommand_startsWithCommand() [all …]
|