Home
last modified time | relevance | path

Searched refs:subprocess (Results 1 – 25 of 47) sorted by relevance

12

/system/core/adb/
Dtest_adb.py29 import subprocess
109 output = subprocess.check_output(["adb", "connect", serial])
117 subprocess.Popen(["adb", "disconnect", serial],
118 stdout=subprocess.PIPE,
119 stderr=subprocess.PIPE).communicate()
131 subprocess.check_output(["adb", "-P", str(port), "kill-server"],
132 stderr=subprocess.STDOUT)
144 proc = subprocess.Popen(["adb", "-L", "tcp:localhost:{}".format(port),
162 out = subprocess.check_output(
163 ["adb", "help"], stderr=subprocess.STDOUT)
[all …]
Dtest_device.py31 import subprocess
97 with self.assertRaises(subprocess.CalledProcessError):
263 proc = subprocess.Popen(
265 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
266 stderr=subprocess.PIPE)
342 terminal = subprocess.Popen(
344 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
347 non_terminal = subprocess.Popen(
348 test_cmd, stdin=subprocess.PIPE,
349 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
[all …]
Dbenchmark_device.py20 import subprocess
74 subprocess.check_call(cmd, stdin=tmpfile)
90 subprocess.check_call(cmd, stdout=devnull)
/system/timezone/
Dupdate-tzdata.py24 import subprocess
59 subprocess.check_call(['make', '-C', extracted_iana_data_dir, 'NDATA=', zic_input_file_name])
142 subprocess.check_call(['make', '-C', zic_build_dir, 'zic'])
159 subprocess.check_call(zic_cmd)
165 subprocess.check_call(['make', '-C', android_build_top, '-j30', 'zone_compactor'])
174 subprocess.check_call(['java', '-jar', jar_file,
184 subprocess.check_call(['make', '-C', android_build_top, '-j30', 'tzlookup_generator'])
188 subprocess.check_call(['java', '-jar', jar_file,
206 subprocess.check_call([create_distro_script,
217 subprocess.check_call([update_test_files_script], cwd=testing_data_dir)
Ddownload-iana-data.py24 import subprocess
42 subprocess.check_call(['gpg', '--trusted-key=ED97E90E62AA7E34', '--verify',
44 except subprocess.CalledProcessError as err:
/system/bt/tools/scripts/
Ddump_metrics_ascii.py19 import subprocess
61 if subprocess.call(protoc_command, stderr=subprocess.STDOUT) != 0:
99 p = subprocess.Popen("adb shell dumpsys bluetooth_manager --proto-bin",
100 shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
101 stdin=subprocess.PIPE)
/system/extras/verity/fec/tests/
Dfec.py19 import subprocess
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
49 return subprocess.call([ "fec", "--decode", image, fec, output ])
52 return subprocess.call([ "cmp", "-s", a, b ])
56 if subprocess.call([ "simg2img", image, output]) != 0:
/system/core/adb/daemon/
Dshell_service.cpp166 static bool StartThread(std::unique_ptr<Subprocess> subprocess,
476 bool Subprocess::StartThread(std::unique_ptr<Subprocess> subprocess, std::string* error) { in StartThread() argument
477 Subprocess* raw = subprocess.release(); in StartThread()
518 Subprocess* subprocess = reinterpret_cast<Subprocess*>(userdata); in ThreadHandler() local
520 adb_thread_setname(android::base::StringPrintf("shell svc %d", subprocess->pid())); in ThreadHandler()
522 D("passing data streams for PID %d", subprocess->pid()); in ThreadHandler()
523 subprocess->PassDataStreams(); in ThreadHandler()
525 D("deleting Subprocess for PID %d", subprocess->pid()); in ThreadHandler()
526 delete subprocess; in ThreadHandler()
825 auto subprocess = std::make_unique<Subprocess>(std::move(name), terminal_type, type, protocol, in StartSubprocess() local
[all …]
/system/bt/build/toolchain/clang/
Dget_clang_suffix.py2 import subprocess
19 clang_version_out = subprocess.Popen([clang_path, "--version"],
20 stdout=subprocess.PIPE).communicate()[0]
/system/sepolicy/tools/
Dpost_process_mac_perms30 import subprocess
45 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
46 stderr=subprocess.PIPE)
/system/extras/simpleperf/scripts/
Dutils.py28 import subprocess
123 subproc = subprocess.Popen([executable, option], stdout=subprocess.PIPE,
124 stderr=subprocess.PIPE)
239 returncode = subprocess.call(adb_args, stdout=stdout_fh)
242 subproc = subprocess.Popen(adb_args, stdout=subprocess.PIPE)
350 subprocess.check_call(['open', report_path])
352 except subprocess.CalledProcessError:
503 subproc = subprocess.Popen([self.addr2line_path, option, '-e', real_path],
504 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
689 subproc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
[all …]
Drun_simpleperf_on_device.py22 import subprocess
34 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
Drun_simpleperf_without_usb_connection.py31 import subprocess
52 subproc = subprocess.Popen([adb.adb_path, 'shell', shell_cmd])
Dreport.py30 import subprocess
292 subprocess.check_call([simpleperf_path, 'report'] + args)
295 subprocess.check_call([simpleperf_path, 'report', '--full-callgraph'] + args +
303 proc = subprocess.Popen(args, stdout=subprocess.PIPE)
/system/tools/aidl/tests/
Dintegration-test.py9 import subprocess
118 p = subprocess.Popen(command, shell=True, close_fds=True,
119 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
123 raise subprocess.CalledProcessError(p.returncode, command)
/system/bt/test/
Drun_host_unit_tests.py17 import subprocess
52 return subprocess.check_output(cmd).strip()
53 except subprocess.CalledProcessError as e:
153 p = subprocess.Popen(build_cmd, cwd=ANDROID_BUILD_TOP, env=os.environ.copy())
193 if subprocess.call(test_cmd) != 0:
215 subprocess.call(cmd)
Dgen_coverage.py23 import subprocess
203 if subprocess.call(test_cmd, shell=True) != 0:
225 if subprocess.call(" ".join(cmd), shell=True) != 0:
262 if subprocess.call(" ".join(cmd), shell=True) != 0:
294 json_str = subprocess.check_output(" ".join(cmd), shell=True)
/system/timezone/distro/tools/
Dcreate-distro.py24 import subprocess
38 subprocess.check_call(['make', '-C', android_build_top, 'create_time_zone_distro',
50 subprocess.check_call(['java', '-cp', classpath,
/system/sepolicy/build/
Dbuild_sepolicy.py19 import subprocess
41 subprocess.check_call(args, **kwargs)
42 except subprocess.CalledProcessError as err:
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py30 import subprocess
586 process = subprocess.Popen(ADB_CMD + ' logcat -b all -v epoch', shell=True,
587 stdout=subprocess.PIPE);
642 process = subprocess.Popen(command, shell=True,
643 stdout=subprocess.PIPE);
696 process = subprocess.Popen(cmd, shell=True,
697 stdout=subprocess.PIPE);
751 original_devices = subprocess.check_output("adb devices", shell=True)
761 current_devices = subprocess.check_output("adb devices", shell=True)
795 return subprocess.call(ADB_CMD + ' ' + cmd, shell=True)
[all …]
/system/extras/pagecache/
Dpagecache.py8 import subprocess
203 adb_output = subprocess.check_output(adb_command, stderr=subprocess.STDOUT,
213 except subprocess.CalledProcessError as error:
395 atrace = subprocess.Popen(trace_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
396 stderr=subprocess.PIPE)
/system/extras/verity/
Dbuild_verity_metadata.py22 import subprocess
32 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
/system/extras/ext4_utils/
Dmkuserimg_mke2fs.py20 import subprocess
39 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
/system/update_engine/scripts/update_payload/
Dtest_utils.py25 import subprocess
102 sign_process = subprocess.Popen(sign_cmd, stdin=subprocess.PIPE,
103 stdout=subprocess.PIPE)
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py31 import subprocess
178 res = subprocess.check_output(['readelf', '-lW', path])
212 except subprocess.CalledProcessError:
238 res = subprocess.check_output(['unwind_symbols', path, offset_hex])
260 except subprocess.CalledProcessError:
489 p = subprocess.Popen(cmd, stderr=err_out)

12