/system/core/adb/ |
D | test_adb.py | 29 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 …]
|
D | test_device.py | 31 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 …]
|
D | benchmark_device.py | 20 import subprocess 74 subprocess.check_call(cmd, stdin=tmpfile) 90 subprocess.check_call(cmd, stdout=devnull)
|
/system/timezone/ |
D | update-tzdata.py | 24 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)
|
D | download-iana-data.py | 24 import subprocess 42 subprocess.check_call(['gpg', '--trusted-key=ED97E90E62AA7E34', '--verify', 44 except subprocess.CalledProcessError as err:
|
/system/bt/tools/scripts/ |
D | dump_metrics_ascii.py | 19 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/ |
D | fec.py | 19 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/ |
D | shell_service.cpp | 166 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/ |
D | get_clang_suffix.py | 2 import subprocess 19 clang_version_out = subprocess.Popen([clang_path, "--version"], 20 stdout=subprocess.PIPE).communicate()[0]
|
/system/sepolicy/tools/ |
D | post_process_mac_perms | 30 import subprocess 45 p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, 46 stderr=subprocess.PIPE)
|
/system/extras/simpleperf/scripts/ |
D | utils.py | 28 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 …]
|
D | run_simpleperf_on_device.py | 22 import subprocess 34 sys.exit(subprocess.call([adb.adb_path, 'shell', shell_cmd]))
|
D | run_simpleperf_without_usb_connection.py | 31 import subprocess 52 subproc = subprocess.Popen([adb.adb_path, 'shell', shell_cmd])
|
D | report.py | 30 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/ |
D | integration-test.py | 9 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/ |
D | run_host_unit_tests.py | 17 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)
|
D | gen_coverage.py | 23 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/ |
D | create-distro.py | 24 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/ |
D | build_sepolicy.py | 19 import subprocess 41 subprocess.check_call(args, **kwargs) 42 except subprocess.CalledProcessError as err:
|
/system/extras/boottime_tools/bootanalyze/ |
D | bootanalyze.py | 30 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/ |
D | pagecache.py | 8 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/ |
D | build_verity_metadata.py | 22 import subprocess 32 p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
|
/system/extras/ext4_utils/ |
D | mkuserimg_mke2fs.py | 20 import subprocess 39 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
/system/update_engine/scripts/update_payload/ |
D | test_utils.py | 25 import subprocess 102 sign_process = subprocess.Popen(sign_cmd, stdin=subprocess.PIPE, 103 stdout=subprocess.PIPE)
|
/system/extras/perfprofd/scripts/ |
D | perf_proto_stack.py | 31 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)
|