Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandTest.java42 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/util/
DGCSBucketUtil.java161 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 …]
DClangProfileIndexer.java58 List<String> command = new ArrayList<>(); in index() local
59 command.add(profileBin.toString()); in index()
60 command.add("merge"); in index()
61 command.add("-sparse"); in index()
72 command.add("-f"); in index()
73 command.add(fileList.getAbsolutePath()); in index()
75 command.addAll(rawProfileFiles); in index()
78 command.add("-o"); in index()
79 command.add(outputFile.getAbsolutePath()); in index()
81 CommandResult result = mRunUtil.runTimedCmd(0, command.toArray(new String[0])); in index()
[all …]
DSimplePerfUtil.java93 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()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DIRunUtil.java120 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd() argument
134 final long timeout, final long idleOutputTimeout, final String... command); in runTimedCmdWithOutputMonitor() argument
153 final String... command); in runTimedCmdWithOutputMonitor() argument
167 final long timeout, OutputStream stdout, OutputStream stderr, final String... command); in runTimedCmd() argument
180 int attempts, final String... command); in runTimedCmdRetry() argument
200 final String... command); in runTimedCmdRetryWithOutputMonitor() argument
211 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently() argument
225 int attempts, final String... command); in runTimedCmdSilentlyRetry() argument
236 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput() argument
247 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput() argument
[all …]
DRunUtil.java21 import com.android.tradefed.command.CommandInterrupter;
175 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd() argument
176 return runTimedCmd(timeout, (OutputStream) null, (OutputStream) null, command); in runTimedCmd()
182 final long timeout, final long idleOutputTimeout, final String... command) { in runTimedCmdWithOutputMonitor() argument
184 timeout, idleOutputTimeout, (OutputStream) null, (OutputStream) null, command); in runTimedCmdWithOutputMonitor()
193 final String... command) { in runTimedCmd() argument
194 return runTimedCmdWithOutputMonitor(timeout, 0, stdout, stderr, command); in runTimedCmd()
204 final String... command) { in runTimedCmdWithOutputMonitor() argument
205 ProcessBuilder processBuilder = createProcessBuilder(command); in runTimedCmdWithOutputMonitor()
233 long timeout, long retryInterval, int attempts, String... command) { in runTimedCmdRetry() argument
[all …]
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py72 command=[], argument
90 self.command = command
103 self.command, self._raw_stdout, self._raw_stderr,
108 def run(command, argument
136 proc = subprocess.Popen(command,
140 shell=not isinstance(command, list))
152 result = Result(command=command,
162 logging.error("Command %s with %s timeout setting timed out", command,
172 def run_async(command, env=None): argument
190 proc = subprocess.Popen(command,
[all …]
Dprocess.py50 def __init__(self, command, **kwargs): argument
58 if not self._use_shell and isinstance(command, str):
59 command = shlex.split(command)
60 self._command = command
234 def __start_process(command, **kwargs): argument
238 'Starting command "%s" with kwargs %s', command, kwargs)
239 return subprocess.Popen(command, **kwargs)
250 command = self._command
252 self._process = self.__start_process(command,
263 command)
[all …]
/tools/test/openhst/resources/
Dstress_test.dsp_trigger_sw_rejection.ascii_proto9 command: "shell 'dumpsys window | grep mCurrentFocus'"
13 command: "shell input keyevent 3"
17 command: "shell input keyevent 26"
21 command: "shell dumpsys battery unplug"
25 command: "shell dumpsys deviceidle force-idle"
34 command: "shell 'dumpsys window | grep mCurrentFocus'"
38 command: "shell input keyevent 3"
42 command: "shell input keyevent 26"
46 command: "shell dumpsys battery unplug"
50 command: "shell dumpsys deviceidle force-idle"
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Db29_lib.py110 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/tradefederation/core/src/com/android/tradefed/targetprep/
DProfileTargetPreparer.java145 String command = "dumpsys user"; in isPrivateProfileSupported() local
146 String dumpsysOutput = device.executeShellCommand(command); in isPrivateProfileSupported()
156 throw commandError("Error reading user service information", command, dumpsysOutput, e, in isPrivateProfileSupported()
162 String command = "dumpsys user"; in isCloneProfileEnabled() local
163 String dumpsysOutput = device.executeShellCommand(command); in isCloneProfileEnabled()
178 command, in isCloneProfileEnabled()
199 String command = ""; in createProfile() local
205 command = in createProfile()
209 command += " --for-testing"; in createProfile()
212 command += " user"; in createProfile()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DMetalavaCommandTest.kt42 fun `Test error handling when invalid command line`() { in Test error handling when invalid command line()
47 val command = in Test error handling when invalid command line() constant
54 command.processThrowCliException(args.toTypedArray()) in Test error handling when invalid command line()
73 assertThrows(IllegalStateException::class.java) { command.common.unsafeTerminal } in Test error handling when invalid command line()
96 val command = in Test error handling when invalid option in an argument file() constant
102 command.subcommands(subCommand) in Test error handling when invalid option in an argument file()
105 command.processThrowCliException(args.toTypedArray()) in Test error handling when invalid option in an argument file()
128 val command = in Test print stack trace() constant
133 command.subcommands(FailCommand()) in Test print stack trace()
135 command.process(args.toTypedArray()) in Test print stack trace()
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/
Dota_runner_factory.py78 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/test/connectivity/acts/framework/tests/libs/ota/ota_tools/
Dota_tool_factory_test.py22 def __init__(self, command): argument
23 self.command = command
32 MockOtaTool.__name__: lambda command: MockOtaTool(command),
45 MockOtaTool.__name__: lambda command: MockOtaTool(command),
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DRunHostCommandTargetPreparer.java254 for (final String command : commands) { in runCommandList()
259 QuotationAwareTokenizer.tokenizeLine(command)); in runCommandList()
264 command, result.getStdout(), result.getStderr()); in runCommandList()
270 command, result.getStdout(), result.getStderr()), in runCommandList()
277 command, result.getStdout(), result.getStderr()), in runCommandList()
285 command, result.getStdout(), result.getStderr()), in runCommandList()
301 String command = bgCommands.get(i); in runBgCommandList() local
302 CLog.d("About to run host background command: %s", command); in runBgCommandList()
306 List.of(QuotationAwareTokenizer.tokenizeLine(command)), in runBgCommandList()
309 CLog.e("Failed to run command: %s", command); in runBgCommandList()
[all …]
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/
Dota_tool_factory.py21 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)
/tools/treble/build/sandbox/
Dnsjail_test.py34 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/javatests/com/android/tradefed/targetprep/
DRunCommandTargetPreparerTest.java83 final String command = "mkdir test"; in testSetUp() local
85 setter.setOptionValue("run-command", command); in testSetUp()
89 when(mMockDevice.executeShellV2Command(Mockito.eq(command))).thenReturn(res); in testSetUp()
93 assertThat(mPreparer.getCommands()).containsExactly(command); in testSetUp()
94 assertThat(mPreparer.getExecutedCommands()).containsExactly(command); in testSetUp()
103 final String command = "mkdir test"; in testSetUp_withTimeout() local
105 setter.setOptionValue("run-command", command); in testSetUp_withTimeout()
111 Mockito.eq(command), in testSetUp_withTimeout()
127 final String command = "mkdir test"; in testDisabled() local
129 setter.setOptionValue("run-command", command); in testDisabled()
[all …]
/tools/asuite/atest/bazel/runner/src/main/protobuf/
Dcommand_line.proto23 // Representation of a Bazel command line.
25 // A title for this command line value, to differentiate it from others.
27 // canonical command lines, and this label would be used to differentiate
31 // A Bazel command line is made of distinct parts. For example,
33 // has the executable "bazel", a startup flag, a command "test", a command
36 // command line should be broken down into these logical sections here.
40 // A section of the Bazel command line.
42 // The name of this section, such as "startup_option" or "command".
46 // Sections with non-options, such as the list of targets or the command,
50 // Startup and command options are lists of options and belong here.
[all …]
/tools/tradefederation/core/tools/content_uploader/
Dtest_uploader.py90 def _verify(self, command: str, has_flags: list[str], no_flags: list[str]):
92 if not flag in command:
95 if flag in command:
111 command = self._upload(artifacts, self.test_dir, dist_dir)
112 self._verify(command, ['-file-path'], ['-zip-path', '-chunk'])
124 command = self._upload(artifacts, self.test_dir, dist_dir)
125 self._verify(command, ['-zip-path'], ['-file-path', '-chunk'])
140 command = self._upload(artifacts, self.test_dir, dist_dir)
141 self._verify(command, ['-file-path', '-chunk'], ['-zip-path'])
155 command = self._upload(artifacts, self.test_dir, dist_dir)
[all …]
/tools/netsim/rust/cli/src/
Drequests.rs297 fn test_command(command: &str, expected_command: Command, expected_grpc_request: GrpcRequest) { in test_command()
298 let command = NetsimArgs::parse_from(command.split_whitespace()).command; in test_command() localVariable
299 assert_eq!(command, expected_command); in test_command()
300 let request = command.get_request(); in test_command()
638 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_all_params_ble() localVariable
662 command, in test_beacon_create_all_params_ble()
694 let command = Command::Beacon(Beacon::Patch(BeaconPatch::Ble(BeaconPatchBle { in test_beacon_patch_all_params_ble() localVariable
718 command, in test_beacon_patch_all_params_ble()
744 let command = Command::Beacon(Beacon::Create(BeaconCreate::Ble(BeaconCreateBle { in test_beacon_create_scan_response() localVariable
761 command, in test_beacon_create_scan_response()
[all …]
Dlib.rs74 command: &mut args::Command, in perform_command()
79 let requests = match command { in perform_command()
81 command.get_requests(&client) in perform_command()
86 _ => vec![command.get_request()], in perform_command()
91 let result = match command { in perform_command()
94 continuous_perform_command(command, &client, req, verbose)?; in perform_command()
98 continuous_perform_command(command, &client, req, verbose)?; in perform_command()
130 if let Err(e) = process_result(command, result, verbose) { in perform_command()
173 command: &args::Command, in continuous_perform_command()
180 process_result(command, Ok(Some(response)), verbose)?; in continuous_perform_command()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DEmmcPerformanceTest.java146 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/tradefederation/core/javatests/com/android/tradefed/util/
DClangProfileIndexerTest.java69 List<String> command = mCommandArgumentCaptor.getCommand(); in testProfileFiles_includesFiles() local
72 assertThat(command) in testProfileFiles_includesFiles()
77 assertThat(command).containsAtLeastElementsIn(profileFiles); in testProfileFiles_includesFiles()
89 List<String> command = mCommandArgumentCaptor.getCommand(); in testLargeProfileCount_usesFile() local
92 assertThat(command.size()).isLessThan(MAX_PROFILE_FILES); in testLargeProfileCount_usesFile()
93 assertThat(command).contains("-f"); in testLargeProfileCount_usesFile()
94 checkListDoesNotContainSuffix(command, ".profraw"); in testLargeProfileCount_usesFile()
105 List<String> command = mCommandArgumentCaptor.getCommand(); in testSingleFailure_usesFailureMode() local
106 assertThat(command).contains("-failure-mode=all"); in testSingleFailure_usesFailureMode()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dssh_library.py45 def run_command_paramiko(self, command: str) -> tuple[str, str, str]:
56 self.log.info('Running command: command:%s', command)
57 stdin, stdout, stderr = self.ssh.exec_command(command, timeout=10)
86 command = self._SSH_KILL_PROCESS_BY_NAME.format(process_name=app)
87 result, _, _ = self.run_command_paramiko(command)
105 command = self._SSH_START_APP_CMD_FORMAT.format(exe_path=location + app)
106 results, err, exit_status = self.run_command_paramiko(command)

12345678910>>...17