Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 55) sorted by relevance

123

/tools/loganalysis/src/com/android/loganalysis/item/
DGfxInfoItem.java82 for (int pid : getPids()) { in toJson()
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()
121 int pid, in addRow() argument
135 mRows.put(pid, row); in addRow()
141 public String getName(int pid) { in getName() argument
[all …]
DCompactMemInfoItem.java73 for(int pid : getPids()) { in toJson()
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()
110 private Map<String, Object> get(int pid) { in get() argument
111 return mPids.get(pid); in get()
117 public void addPid(int pid, String name, String type, long pss, long swap, boolean activities) { in addPid() argument
[all …]
DProcrankItem.java80 public void addProcrankLine(int pid, String processName, int vss, int rss, int pss, int uss) { in addProcrankLine() argument
81 mProcrankLines.put(pid, new ProcrankValue(processName, vss, rss, pss, uss)); in addProcrankLine()
94 public String getProcessName(int pid) { in getProcessName() argument
95 if (!mProcrankLines.containsKey(pid)) { in getProcessName()
99 return mProcrankLines.get(pid).mProcessName; in getProcessName()
105 public Integer getVss(int pid) { in getVss() argument
106 if (!mProcrankLines.containsKey(pid)) { in getVss()
110 return mProcrankLines.get(pid).mVss; in getVss()
116 public Integer getRss(int pid) { in getRss() argument
117 if (!mProcrankLines.containsKey(pid)) { in getRss()
[all …]
DCpuInfoItem.java69 for (int pid : getPids()) { in toJson()
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()
103 public void addRow(int pid, double percent, String name) { in addRow() argument
107 mRows.put(pid, row); in addRow()
113 public double getPercent(int pid) { in getPercent() argument
114 return mRows.get(pid).percent; in getPercent()
120 public String getName(int pid) { in getName() argument
121 return mRows.get(pid).name; in getName()
/tools/loganalysis/src/com/android/loganalysis/parser/
DLogcatParser.java108 public LogcatData(Integer pid, Integer tid, Date time, String level, String tag, in LogcatData() argument
110 mPid = pid; in LogcatData()
223 Integer pid = null; in parseLine() local
234 pid = Integer.parseInt(m.group(2)); in parseLine()
243 pid = Integer.parseInt(tm.group(4)); in parseLine()
272 mPids.put(pid, name); in parseLine()
279 String key = encodeLine(pid, tid, level, tag); in parseLine()
282 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine()
283 mPreambleUtil.getIdTail(pid)); in parseLine()
296 String key = encodeLine(pid, tid, level, tag); in parseLine()
[all …]
DGfxInfoParser.java63 Integer pid = null; in parse() local
77 pid = Integer.parseInt(m.group(1)); in parse()
113 && pid != null in parse()
121 pid, in parse()
130 pid = null; in parse()
/tools/test/connectivity/acts/framework/acts/
Dutils.py437 " stdout: %s" % (proc.pid, ret, err, out))
483 pid = proc.pid
484 logging.debug("Stop standing subprocess %d", pid)
487 os.killpg(pid, kill_signal)
1022 pid = job.run('pgrep -f %s' % command_regex).stdout
1024 if pid:
1025 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1031 pid = job.run('pidof %s' % process, ignore_status=True).stdout
1033 if pid:
1034 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
[all …]
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/
DSliceQueries.kt47 constructor(pid : Int, type : String, value : String?) {
48 Exception("Unable to find slice. PID = $pid, Type = $type" +
52 … constructor(pid : Int, type : String, value : String?, lowerBound : Double, upperBound : Double) {
53 Exception("Unable to find slice. PID = $pid, Type = $type" +
59 constructor (pid : Int, pattern : Regex) {
60 Exception("Unable to find slice. PID = $pid, Pattern = $pattern")
63 constructor (pid : Int, pattern : Regex, lowerBound : Double, upperBound : Double) {
64 Exception("Unable to find slice. PID = $pid, Pattern = $pattern" +
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py211 for pid in pids:
213 self.signal(pid, sig)
220 pids = [pid for pid in pids if self.is_alive(pid)]
225 def signal(self, pid, sig): argument
236 self.run('kill -%d %d' % (sig, pid))
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceImporterState.kt76 fun threadFor(pid: Int, tgid: Int = InvalidId, task: String? = null): ThreadModelFragment { in <lambda>()
77 var thread = pidMap[pid] in <lambda>()
78 val processName = if (tgid == pid) task else null in <lambda>()
86 thread = process.threadFor(pid, task) in <lambda>()
88 pidMap.put(pid, thread) in <lambda>()
92 fun threadFor(line: FtraceLine) = threadFor(line.pid, line.tgid, line.task) in <lambda>()
93 fun threadFor(event: FtraceEvent) = threadFor(event.pid, event.tgid, event.task) in <lambda>()
DFtraceLine.kt50 val pid get() = _pid constant
56 private fun set(taskName: String?, pid: Int, tgid: Int, cpu: Int, timestamp: Double, in set()
59 _pid = pid in set()
133 val pid = readInt() in parseLine() constant
153 ftraceLine.set(if (taskName === NullTaskName) null else taskName, pid, tgid, cpu, in parseLine()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceLineTest.kt34 assertEquals(7100, line.pid) in <lambda>()
50 assertEquals(2692, line.pid) in <lambda>()
67 assertEquals(7100, line.pid) in <lambda>()
83 assertEquals(647, line.pid) in <lambda>()
97 assertEquals(5675, line.pid) in <lambda>()
112 assertEquals(56751, line.pid) in <lambda>()
127 assertEquals(9729, line.pid) in <lambda>()
DFtraceEventTest.kt32 assertEquals(7100, event.pid) in testParseLineComplete()
46 assertEquals(2692, event.pid) in testParseLineUnknownTgid()
58 assertEquals(7100, event.pid) in testParseLineNoTgid()
77 assertEquals(647, event.pid) in testParseLineLegacy()
/tools/test/connectivity/acts_tests/tests/google/bt/
DBtKillProcessTest.py35 pid = self.dut.adb.shell("ps | grep com.android.bluetooth")
36 if not pid:
38 return (re.findall("\d+\W", pid)[0])
69 pid = self._get_bt_pid()
70 if not pid:
73 self.dut.adb.shell("kill -9 {}".format(pid))
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_server.py350 def _get_port_from_ss_output(ss_output, pid): argument
351 pid = str(pid)
354 if pid in line:
409 self._iperf_process.pid))
728 job.run('kill -9 {}'.format(self._iperf_process.pid))
Dnative_android_device.py100 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
101 while (pid):
102 self.adb.shell("kill {}".format(pid))
103 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
/tools/asuite/atest/test_runners/
Dtest_runner_base.py106 logging.debug('Killing subproc: %s', subproc.pid)
107 os.killpg(os.getpgid(subproc.pid), signal.SIGINT)
134 self.NAME, proc.pid)
140 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
161 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
/tools/tradefederation/core/atest/test_runners/
Dtest_runner_base.py114 logging.debug('Killing subproc: %s', subproc.pid)
115 os.killpg(os.getpgid(subproc.pid), signal.SIGINT)
141 logging.debug('Runner Name: %s, Process ID: %s', self.NAME, proc.pid)
147 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
168 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
/tools/tradefederation/core/src/com/android/tradefed/util/
DJavaCodeCoverageFlusher.java100 String pid = mDevice.getProcessPid(processName); in resetCoverage() local
102 if (pid != null) { in resetCoverage()
130 String pid = mDevice.getProcessPid(processName); in forceCoverageFlush() local
132 if (pid != null) { in forceCoverageFlush()
133 String outputPath = String.format("/data/misc/trace/%s-%s.ec", processName, pid); in forceCoverageFlush()
DNativeCodeCoverageFlusher.java72 String pid = mDevice.getProcessPid(processName); in forceCoverageFlush() local
73 if (pid == null) { in forceCoverageFlush()
76 pidString.add(pid); in forceCoverageFlush()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/
DTraceMarkerEvent.kt24 state.threadFor(event.pid, tgid, event.task).slicesBuilder.beginSlice { in <lambda>()
33 state.threadFor(event.pid, event.tgid, event.task).slicesBuilder.endSlice { in import()
41 state.threadFor(event.pid, tgid, event.task).process in import()
50 .openAsyncSlice(event.pid, name, cookie, event.timestamp) in import()
57 .closeAsyncSlice(event.pid, name, cookie, event.timestamp) in import()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
DProcessInfo.java34 public ProcessInfo(String user, int pid, String name) { in ProcessInfo() argument
36 mPid = pid; in ProcessInfo()
49 public ProcessInfo(String user, int pid, String name, long startTime) { in ProcessInfo() argument
51 mPid = pid; in ProcessInfo()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DAsyncSlicesBuilder.kt40 fun openAsyncSlice(pid: Int, name: String, cookie: Int, startTime: Double) { in openAsyncSlice()
42 true, pid, InvalidId) in openAsyncSlice()
45 fun closeAsyncSlice(pid: Int, name: String, cookie: Int, endTime: Double) { in closeAsyncSlice()
49 slice.endThreadId = pid in closeAsyncSlice()
DProcessModelFragment.kt48 fun threadFor(pid: Int, name: String? = null): ThreadModelFragment { in <lambda>()
49 var thread = _threads[pid] in <lambda>()
51 thread = ThreadModelFragment(pid, this, name) in <lambda>()
52 _threads.put(pid, thread) in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerFileDescriptorChecker.java51 Integer pid = getIntegerFromCommand(device, "pidof system_server"); in postExecutionCheck() local
52 if (pid == null) { in postExecutionCheck()
57 Integer fds = getIntegerFromCommand(device, "su root ls /proc/" + pid + "/fd | wc -w"); in postExecutionCheck()

123