Home
last modified time | relevance | path

Searched refs:proc (Results 1 – 25 of 76) sorted by relevance

1234

/tools/repohooks/rh/
Dutils.py155 def _kill_child_process(proc, int_timeout, kill_timeout, cmd, original_handler, argument
172 if proc.returncode is None and proc.pid is not None:
174 while proc.poll_lock_breaker() is None and int_timeout >= 0:
178 proc.terminate()
179 while proc.poll_lock_breaker() is None and kill_timeout >= 0:
183 if proc.poll_lock_breaker() is None:
185 proc.kill()
195 proc.wait_lock_breaker(**kwargs)
379 proc = None
381 proc = _Popen(cmd, cwd=cwd, stdin=stdin, stdout=popen_stdout,
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DProcessMaxMemoryCollector.java79 for (String proc : mProcessNames) { in collect()
80 String dumpResult = device.executeShellCommand("dumpsys meminfo --checkin " + proc); in collect()
103 if (mPssMemoryPerProcess.get(device).get(proc) == null) { in collect()
104 mPssMemoryPerProcess.get(device).put(proc, NumericValues.newBuilder()); in collect()
106 mPssMemoryPerProcess.get(device).get(proc).addNumericValue(pss); in collect()
112 if (mUssMemoryPerProcess.get(device).get(proc) == null) { in collect()
113 mUssMemoryPerProcess.get(device).put(proc, NumericValues.newBuilder()); in collect()
115 mUssMemoryPerProcess.get(device).get(proc).addNumericValue(uss); in collect()
117 if (procPss.getOrDefault(proc, 0L) < pss) { in collect()
118 procPss.put(proc, pss); in collect()
[all …]
/tools/test/connectivity/acts/framework/acts/
Dutils.py41 from acts.libs.proc import job
398 proc = subprocess.Popen(cmd,
402 (out, err) = proc.communicate()
424 def _assert_subprocess_running(proc): argument
433 ret = proc.poll()
435 out, err = proc.communicate()
437 " stdout: %s" % (proc.pid, ret, err, out))
460 proc = subprocess.Popen(cmd,
468 _assert_subprocess_running(proc)
469 return proc
[all …]
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py135 proc = subprocess.Popen(command,
145 (out, err) = proc.communicate(timeout=timeout)
148 proc.kill()
149 proc.wait()
154 exit_status=proc.returncode,
165 if not ignore_status and proc.returncode != 0:
189 proc = subprocess.Popen(command,
195 logging.debug("command %s started with pid %s", command, proc.pid)
196 return proc
/tools/loganalysis/src/com/android/loganalysis/item/
DGfxInfoItem.java83 JSONObject proc = new JSONObject(); in toJson() local
85 proc.put(PID_KEY, pid); in toJson()
86 proc.put(NAME_KEY, getName(pid)); in toJson()
87 proc.put(TOTAL_FRAMES_KEY, getTotalFrames(pid)); in toJson()
88 proc.put(PERCENTILE_90_KEY, getPrecentile90(pid)); in toJson()
89 proc.put(PERCENTILE_95_KEY, getPrecentile95(pid)); in toJson()
90 proc.put(PERCENTILE_99_KEY, getPrecentile99(pid)); in toJson()
91 processes.put(proc); in toJson()
DCompactMemInfoItem.java74 JSONObject proc = new JSONObject(); in toJson() local
76 proc.put(PID_JSON_KEY, pid); in toJson()
77 proc.put(NAME_JSON_KEY, getName(pid)); in toJson()
78 proc.put(PSS_JSON_KEY, getPss(pid)); in toJson()
79 proc.put(SWAP_JSON_KEY, getSwap(pid)); in toJson()
80 proc.put(TYPE_JSON_KEY, getType(pid)); in toJson()
81 proc.put(ACTIVITIES_JSON_KEY, hasActivities(pid)); in toJson()
82 processes.put(proc); in toJson()
DCpuInfoItem.java70 JSONObject proc = new JSONObject(); in toJson() local
72 proc.put(PID_KEY, pid); in toJson()
73 proc.put(PERCENT_KEY, getPercent(pid)); in toJson()
74 proc.put(NAME_KEY, getName(pid)); in toJson()
75 processes.put(proc); in toJson()
/tools/asuite/atest/test_runners/
Dtest_runner_base.py122 def wait_for_subprocess(self, proc): argument
134 self.NAME, proc.pid)
135 signal.signal(signal.SIGINT, self._signal_passer(proc))
136 proc.wait()
137 return proc.returncode
140 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
143 def _signal_passer(self, proc): argument
161 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
Dregression_test_runner.py50 proc = super(RegressionTestRunner, self).run(run_cmds[0],
52 proc.wait()
53 return proc.returncode
/tools/tradefederation/core/atest/test_runners/
Dtest_runner_base.py130 def wait_for_subprocess(self, proc): argument
141 logging.debug('Runner Name: %s, Process ID: %s', self.NAME, proc.pid)
142 signal.signal(signal.SIGINT, self._signal_passer(proc))
143 proc.wait()
144 return proc.returncode
147 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
150 def _signal_passer(self, proc): argument
168 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
Dregression_test_runner.py50 proc = super(RegressionTestRunner, self).run(run_cmds[0],
52 proc.wait()
53 return proc.returncode
/tools/acloud/internal/lib/
Dota_tools.py116 proc = None
130 proc = subprocess.Popen(command, **popen_args)
131 stdout, stderr = proc.communicate()
135 if proc.returncode != 0:
137 (command[0], proc.returncode))
139 if proc and proc.poll() is None:
141 proc.kill()
Dadb_tools.py268 proc = subprocess.Popen(adb_cmd, stdin=subprocess.PIPE,
271 proc.communicate()
272 return proc.returncode
/tools/test/connectivity/acts/framework/acts/controllers/
Dpacket_capture.py28 from acts.libs.proc.process import Process
74 def __init__(self, proc, pcap_fname, pcap_file): argument
76 self.proc = proc
283 def stop_packet_capture(self, proc): argument
290 if val.proc is proc:
296 proc.stop()
Darduino_wifi_dongle.py198 proc = subprocess.Popen(cmd,
201 _, _ = proc.communicate()
202 return_code = proc.returncode
/tools/acloud/create/
Dgoldfish_local_image_local_instance.py204 proc = self._StartEmulatorProcess(emulator_path, instance_dir,
212 self._WaitForEmulatorToStart(adb, proc, boot_timeout_secs)
223 if proc.poll() is None:
485 def _WaitForEmulatorToStart(self, adb, proc, timeout): argument
500 utils.PollAndWait(func=lambda: (proc.poll() is None and
506 if proc.poll() is not None:
508 proc.returncode)
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py29 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
30 (out, err) = proc.communicate()
31 ret = proc.returncode
39 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
40 (out, err) = proc.communicate()
41 ret = proc.returncode
/tools/tradefederation/core/atest/
Datest_utils.py119 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
125 while proc.poll() is None:
126 line = proc.stdout.readline()
144 proc.wait()
145 if proc.returncode != 0:
153 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
Datest.py88 proc = Process(target=task)
89 proc.daemon = not join
90 proc.start()
91 _running_procs.append(proc)
93 for proc in _running_procs:
94 proc.join()
/tools/asuite/atest/
Datest_utils.py138 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
144 while proc.poll() is None:
145 line = proc.stdout.readline().decode('utf-8')
163 proc.wait()
164 if proc.returncode != 0:
172 raise subprocess.CalledProcessError(proc.returncode, cmd, output)
/tools/treble/build/sandbox/
Dnsjail.cfg37 # Mount proc as read/write.
39 dst: "/proc"
40 fstype: "proc"
121 src: "/proc/self/fd"
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceImporterState.kt45 val proc = ProcessModelFragment(tgid, name) in <lambda>() constant
46 modelFragment.processes.add(proc) in <lambda>()
47 val thread = proc.threadFor(tgid, name) in <lambda>()
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/
DSoftApTest.py1106 for proc in [iperf_soft_ap, iperf_fuchsia_client]:
1107 proc.join(timeout=30)
1108 if proc.is_alive():
1109 raise RuntimeError('Failed to join process %s' % proc)
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dnet_test_utils.py263 proc, argument
279 if proc is None:
282 stop_standing_subprocess(proc)
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/
Dconnection.py27 from acts.libs.proc import job
390 tunnel.proc.kill()
391 tunnel.proc.wait()

1234