Home
last modified time | relevance | path

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

12345

/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py70 command=[], argument
88 self.command = command
101 self.command, self._raw_stdout, self._raw_stderr,
106 def run(command, argument
135 proc = subprocess.Popen(command,
139 shell=not isinstance(command, list))
151 result = Result(command=command,
161 logging.error("Command %s with %s timeout setting timed out", command,
171 def run_async(command, env=None): argument
189 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/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)
Dlogserial.py105 command = 'udevadm info -q property -n {}'.format(port)
106 property_list = subprocess.check_output(command, shell=True)
139 command = (
146 res = subprocess.check_output(command, shell=True)
306 def write(self, command, wait_time=0.2): argument
314 if command:
316 command += self.terminator
318 self.connection_handle.write(command.encode())
321 logging.info('cmd [{}] sent.'.format(command.strip()))
/tools/test/openhst/
Dstress_test.py199 def __init__(self, name, command, output, events, argument
218 self.command = command
258 logging.info("Restarting process %s", "".join(str(self.command)))
269 self.process = pexpect.spawn(" ".join(self.command), timeout=None)
272 self.process = subprocess.Popen(self.command, stdout=subprocess.PIPE)
418 command = [
421 command.extend(["%s:S" % tag for tag in config.tag_to_suppress])
424 command = [
432 name, command, os.path.join(
443 command = shlex.split(
[all …]
/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/openhst/resources/
Dstress_test.dsp_trigger_sw_rejection.ascii_proto9 command: "shell input keyevent 3"
13 command: "shell input keyevent 26"
17 command: "shell dumpsys battery unplug"
21 command: "shell dumpsys deviceidle force-idle"
30 command: "shell input keyevent 3"
34 command: "shell input keyevent 26"
38 command: "shell dumpsys battery unplug"
42 command: "shell dumpsys deviceidle force-idle"
Dstress_test.dsp_trigger_and_screen_off.ascii_proto11 command: "shell input keyevent 3"
15 command: "shell input keyevent 26"
19 command: "shell dumpsys battery unplug"
23 command: "shell dumpsys deviceidle force-idle"
/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'],
Dnsjail.py49 def run(command, argument
112 command=command,
143 def get_command(command, argument
311 nsjail_command.extend(command)
476 command=args.command.split(),
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcontest.py374 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/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/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_manager_test.py207 command = 'ngo45hke3b4vie3mv5ni93,vfu3j'
208 sl4a_manager._SL4A_ROOT_FIND_PORT_CMD = command
211 self.assertEqual(manager._get_all_ports_command(), command)
222 command = 'ngo45hke3b4vie3mv5ni93,vfu3j'
223 sl4a_manager._SL4A_ROOT_FIND_PORT_CMD = command
226 self.assertEqual(manager._get_all_ports_command(), command)
237 command = 'ngo45hke3b4vie3mv5ni93,vfu3j'
238 sl4a_manager._SL4A_USER_FIND_PORT_CMD = command
241 self.assertEqual(manager._get_all_ports_command(), command)
418 def close(command): argument
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dconnection.py49 self.result.command, self.result.stdout, self.result.stderr)
154 command, argument
200 full_command = 'echo "CONNECTED: %s"; %s' % (identifier, command)
224 result = job.Result(command=result.command,
276 self.run(command, timeout, ignore_status, env, io_encoding,
280 def run_async(self, command, env=None): argument
301 command = '(%s) < /dev/null > /dev/null 2>&1 & echo -n $!' % command
302 result = self.run(command, env=env)
Dformatter.py164 def format_remote_command(self, command, env): argument
186 execution_line = '%s %s;' % (env_str, command)
190 command,
208 remote_command = self.format_remote_command(command, env)
/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)
Dupdate_device_ota_tool.py34 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())
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py142 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/acloud/internal/lib/
Dota_tools.py128 def _ExecuteCommand(*command, **popen_args): argument
143 logger.info("Execute %s", command)
155 proc = subprocess.Popen(command, **popen_args)
157 logger.info("%s stdout: %s", command[0], stdout)
158 logger.info("%s stderr: %s", command[0], stderr)
162 (command[0], proc.returncode))
165 logger.info("Kill %s", command[0])
/tools/acloud/delete/
Ddelete_test.py39 delete_report = report.Report(command="delete")
63 delete_report = report.Report(command="delete")
84 delete_report = report.Report(command="delete")
114 delete_report = report.Report(command="delete")
129 delete_report = report.Report(command="delete")
148 delete_report = report.Report(command="delete")
/tools/test/connectivity/acts/framework/acts/controllers/
Dfastboot.py61 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/controllers/spirent_lib/
Dgss6450.py180 raise GSS6450Error(error=errmsg, command='get_storage_media')
300 raise GSS6450Error(error=errmsg, command='set_rfport_voltage')
318 raise GSS6450Error(error=errmsg, command='set_attenuation')
348 command='set_playback_offset')
372 command='set_storage_media')
381 command='set_storage_media')
/tools/treble/hacksaw/client/
Dcommand.go25 const usage = `Usage: hacksaw <command> <options>
202 command := args[1]
204 switch command {
221 return fmt.Errorf("Command \"%s %s\" not found", command, subcommand)
239 return fmt.Errorf("Command \"%s %s\" not found", command, subcommand)
244 return fmt.Errorf("Command \"%s\" not found", command)
/tools/acloud/public/
Dreport.py104 def __init__(self, command): argument
110 self.command = command
239 command=self.command,
/tools/tradefederation/prebuilts/filegroups/tradefed/
Dtradefed_win.bat73 -XX:-OmitStackTraceInFastThrow %TRADEFED_OPTS% -cp %tf_path% com.android.tradefed.command.Console %*
79 :: check command exist or not
80 :: if command not exist, exit
91 :: get the command result
92 :: usage: call:commandResult "command" result

12345