Home
last modified time | relevance | path

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

12345

/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py26 import cmd
32 class CmdInput(cmd.Cmd):
94 cmd = ""
98 self.log.info(FAILURE.format(cmd, err))
101 cmd = ""
105 self.log.info(FAILURE.format(cmd, err))
108 cmd = ""
112 self.log.info(FAILURE.format(cmd, err))
116 cmd = "Gatt connect over LE"
123 self.log.info(FAILURE.format(cmd, err))
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500.py205 cmd = 'SOURce:LTE:SIGN:CELL:STATe {}'.format(state)
206 self.send_and_recv(cmd)
244 cmd = 'CONFigure:LTE:SIGN:DMODe:UCSPECific {}'.format(state)
245 self.send_and_recv(cmd)
247 def send_and_recv(self, cmd): argument
257 self._send(cmd)
258 if '?' in cmd:
268 cmd = 'ROUTe:LTE:SIGN:SCENario:{}'.format(mimo.value)
269 self.send_and_recv(cmd)
383 cmd = 'CONFigure:LTE:SIGN:CONNection:KRRC {}'.format(state.value)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmg3710a.py153 cmd = "PORT {}".format(sg_number)
154 self.send_command(cmd)
179 cmd = "OUTP{}:MOD {}".format(sg, state)
180 self.send_command(cmd)
205 cmd = "OUTP{} {}".format(sg, state)
206 self.send_command(cmd)
231 cmd = "SOUR{}:FREQ {}".format(sg, freq)
232 self.send_command(cmd)
257 cmd = "SOUR{}:FREQ:OFFS:STAT {}".format(sg, state)
258 self.send_command(cmd)
[all …]
/tools/repohooks/rh/
Dgit.py33 cmd = ['git', 'rev-parse', '--abbrev-ref', 'HEAD']
34 result = rh.utils.run(cmd, capture_output=True)
38 cmd = ['git', 'config', 'branch.%s.remote' % branch]
39 result = rh.utils.run(cmd, capture_output=True)
49 cmd = ['git', 'symbolic-ref', 'HEAD']
50 result = rh.utils.run(cmd, capture_output=True)
56 cmd = ['git', 'config', cfg_option % 'merge']
57 result = rh.utils.run(cmd, capture_output=True)
62 cmd = ['git', 'config', cfg_option % 'remote']
63 result = rh.utils.run(cmd, capture_output=True)
[all …]
Dutils.py73 def cmd(self): member in CompletedProcess
80 return rh.shell.cmd_to_str(self.cmd)
96 def __init__(self, returncode, cmd, stdout=None, stderr=None, msg=None, argument
102 super().__init__(returncode, cmd, stdout)
116 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd)
151 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
192 signum << 8, cmd, msg='Received signal %i' % signum)
258 def run(cmd, redirect_stdout=False, redirect_stderr=False, cwd=None, input=None, argument
351 if isinstance(cmd, str):
354 cmd = ['/bin/bash', '-c', cmd]
[all …]
Dhooks.py240 def _run(cmd, **kwargs): argument
248 return rh.utils.run(cmd, **kwargs)
307 def _fixup_func_caller(cmd, **kwargs): argument
315 result = _run(cmd, **kwargs)
322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
325 _run(cmd, **kwargs),
350 cmd = [bpfmt, '-l'] + options.args((), filtered)
354 result = _run(cmd, input=data)
365 cmd = ([tool, '-', '--root', project.dir] +
367 return _check_cmd('checkpatch.pl', project, commit, cmd,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py210 def send(self, cmd): argument
221 logging.debug(cmd)
223 self.connection_handle.write(cmd)
227 def cmd(self, cmds, wait=None): member in BudsDevice
244 for cmd in cmds:
245 _, result = self._cmd(cmd, wait=wait)
249 def _cmd(self, cmd, wait=None, throw_error=True): argument
272 self.connection_handle.write(cmd)
310 raise DeviceError('Unknown command %s' % cmd)
332 res = self.cmd('GetPSHex 0x2637')
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_client.py98 cmd = [self._binary,
106 job.run(cmd, timeout=10)
109 cmd = [self._binary,
117 job.run(cmd, timeout=10)
123 cmd = [self._binary,
135 job.run(cmd, timeout=600)
140 cmd = [self._binary,
149 job.run(cmd, timeout=10)
182 cmd = [self._binary,
195 cmd = cmd + ['--vm_file', 'default']
[all …]
/tools/treble/hacksaw/client/
Dcommand_test.go30 cmd := NewCommand(bind.NewFakePathBinder(), "")
32 err := cmd.Handle(args)
39 cmd := NewCommand(bind.NewFakePathBinder(), "")
41 err := cmd.Handle(args)
48 cmd := NewCommand(bind.NewFakePathBinder(), "")
50 if err := cmd.Handle(args); err == nil {
56 cmd := NewCommand(bind.NewFakePathBinder(), "")
58 if err := cmd.Handle(args); err == nil {
70 cmd := NewCommand(bind.NewFakePathBinder(), "")
72 if err = cmd.Handle(args); err != nil {
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_adb_test.py41 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
44 MockAdbProxy()._exec_cmd(cmd)
49 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
52 MockAdbProxy()._exec_cmd(cmd)
56 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
58 result = MockAdbProxy()._exec_cmd(cmd)
63 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"SOME_SHELL_CMD"']
65 result = MockAdbProxy()._exec_cmd(cmd, ignore_status=True)
70 cmd = ['adb', '-s', '"SOME_SERIAL"', 'shell', '"grep foo"']
72 result = MockAdbProxy()._exec_cmd(cmd)
[all …]
/tools/acloud/internal/lib/
Dssh.py36 def _SshCallWait(cmd, timeout=None): argument
50 logger.info("Running command \"%s\"", cmd)
51 process = subprocess.Popen(cmd, shell=True, stdin=None,
63 def _SshCall(cmd, timeout=None): argument
77 logger.info("Running command \"%s\"", cmd)
78 process = subprocess.Popen(cmd, shell=True, stdin=None,
90 def _SshLogOutput(cmd, timeout=None, show_output=False): argument
109 cmd = "exec " + cmd
110 logger.info("Running command \"%s\"", cmd)
111 process = subprocess.Popen(cmd, shell=True, stdin=None,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/
Dtshark.py50 cmd = "{} -i {} -w {}".format(self._executable_path, self._interface,
53 cmd = "{} -a duration:{}".format(cmd, duration)
55 cmd = "{} -c {}".format(cmd, packet_count)
57 cmd = "{} {}".format(cmd, additional_args)
58 return cmd
Dtcpdump.py53 cmd = "{} -i {} -w {}".format(self._executable_path, self._interface,
56 cmd = "{} -c {}".format(cmd, packet_count)
58 cmd = "{} {}".format(cmd, additional_args)
59 return cmd
/tools/acloud/public/actions/
Dremote_instance_fvp_device_factory.py59 cmd = ("tar -cf - --lzop -S -C {images_dir} {artifact_files} | "
64 ssh.ShellCmdWithRetry(cmd)
67 cmd = ("tar -cf - --lzop -S -C {model_dir} . | "
71 ssh.ShellCmdWithRetry(cmd)
77 cmd = "{ssh_cmd} -- mkdir -p lib64".format(ssh_cmd=ssh_cmd)
78 ssh.ShellCmdWithRetry(cmd)
90 cmd = ("{ssh_cmd} -- sh -c \"'ANDROID_HOST_OUT=. "
95 ssh.ShellCmdWithRetry(cmd)
/tools/repohooks/tools/
Dpylint.py97 cmd = [pylint]
107 cmd += ['--rcfile', pylintrc]
109 cmd += unknown + opts.files
112 cmd += ['--init-hook', opts.init_hook]
115 os.execvp(cmd[0], cmd)
119 print('%s: unable to run `%s`: %s' % (__file__, cmd[0], e),
122 (__file__, os.path.basename(cmd[0])), file=sys.stderr)
Dclang-format.py72 cmd = [opts.git_clang_format, '--binary', opts.clang_format, '--diff']
74 cmd.extend(['--style', opts.style])
76 cmd.extend(['--extensions', opts.extensions])
78 cmd.extend(['%s^' % opts.commit, opts.commit])
79 cmd.extend(['--'] + opts.files)
83 result = rh.utils.run(cmd, capture_output=True)
/tools/test/connectivity/acts/framework/acts/controllers/
Dabstract_inst.py91 def _send(self, cmd): argument
102 cmd_es = cmd + self._escseq
106 self._logger.debug('Sent %r to %r:%r.', cmd, self._ip_addr,
111 'to instrument.').format(repr(cmd))
117 'to instrument.').format(repr(cmd))
123 'to instrument.').format(repr(cmd), repr(err))
188 def _query(self, cmd): argument
199 self._send(cmd + ';*OPC?')
221 def _query(self, cmd): argument
233 self._ip_addr, cmd)
[all …]
Dadb.py146 def _exec_cmd(self, cmd, ignore_status=False, timeout=DEFAULT_ADB_TIMEOUT): argument
161 if isinstance(cmd, list):
162 cmd = ' '.join(cmd)
163 result = job.run(cmd, ignore_status=True, timeout=timeout)
169 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
172 if ignore_status or (ret == 1 and GREP_REGEX.search(cmd)):
175 raise AdbCommandError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
182 def _exec_cmd_nb(self, cmd, **kwargs): argument
189 return job.run_async(cmd, **kwargs)
Darduino_wifi_dongle.py163 cmd = 'ls %s' % DEV
164 serial_ports = utils.exe_cmd(cmd).decode('utf-8', 'ignore').split('\n')
169 cmd = 'udevadm info %s' % tty_port
170 udev_output = utils.exe_cmd(cmd).decode('utf-8', 'ignore')
193 cmd = arduino + file_path + ' --upload --port ' + self.port
195 cmd = self._update_ino_wifi_network(arduino, file_path, network)
196 self.log.info('Command is %s' % cmd)
197 proc = subprocess.Popen(cmd,
228 cmd = "%s %s --upload --port %s" % (arduino, tmp_file, self.port)
229 return cmd
/tools/treble/hacksaw/cmd/hacksaw/
Dmain.go90 cmd := exec.Command(os.Args[0], os.Args[1:]...)
91 cmd.Stdout = os.Stdout
92 cmd.Stderr = os.Stderr
93 cmd.Env = append(os.Environ(), "HOME="+usr.HomeDir)
94 cmd.SysProcAttr = &syscall.SysProcAttr{
101 if err := cmd.Start(); err != nil {
104 _, err = cmd.Process.Wait()
108 if err = cmd.Process.Release(); err != nil {
/tools/asuite/
Dasuite_run_unittests.py61 cmd = ASUITE_PLUGIN_PATH + GRADLE_TEST
62 cmd_dict.update({cmd : ASUITE_PLUGIN_PATH})
64 for cmd, path in cmd_dict.items():
65 subprocess.check_call(shlex.split(cmd), cwd=path)
86 cmd = "git status --short | egrep ^[ARM] | awk '{print $NF}'"
87 preupload_files = subprocess.check_output(cmd, shell=True,
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiDppTest.py262 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_GEN type=qrcode info=%s" % info
265 cmd += " mac=%s" % mac
268 cmd += " chan=%s" % chan
270 result = device.adb.shell(cmd)
273 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
291 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_GET_URI %s" % uri_id
292 result = device.adb.shell(cmd)
295 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
309 cmd = "wpa_cli -iwlan0 DPP_BOOTSTRAP_REMOVE %s" % uri_id
310 result = device.adb.shell(cmd)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/adb_lib/
Derror.py23 def __init__(self, cmd, stdout, stderr, ret_code): argument
25 self.cmd = cmd
32 ) % (self.cmd, self.ret_code, self.stdout, self.stderr)
/tools/external_updater/
Dgit_utils.py25 def _run(cmd: List[str], cwd: Path) -> str:
27 return subprocess.check_output(cmd, text=True, cwd=cwd)
178 cmd = ['git', 'push', remote_name, 'HEAD:refs/for/master']
180 cmd.extend(['-o', revs])
182 cmd.extend(['-o', 't=' + tag])
184 cmd.extend(['-o', 'l=Verified-1'])
185 _run(cmd, cwd=proj_path)
/tools/platform-compat/java/com/android/class2nonsdklist/
DClass2NonSdkList.java122 CommandLine cmd; in main() local
125 cmd = parser.parse(options, args); in main()
131 if (cmd.hasOption('h')) { in main()
136 String[] jarFiles = cmd.getArgs(); in main()
142 Status status = new Status(cmd.hasOption('d')); in main()
144 if (cmd.hasOption('m')) { in main()
150 cmd.getOptionValue('s', null), in main()
151 cmd.getOptionValue('w', null), in main()
152 cmd.getOptionValue('c', null), in main()

12345