Home
last modified time | relevance | path

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

12

/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()
DLowMemoryKillerItem.java58 public void setPid(int pid) { in setPid() argument
59 setAttribute(PID, pid); in setPid()
DTracesItem.java61 public void setPid(Integer pid) { in setPid() argument
62 setAttribute(PID, pid); in setPid()
/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()
226 Integer pid = null; in parseLine() local
237 pid = Integer.parseInt(m.group(2)); in parseLine()
246 pid = Integer.parseInt(tm.group(4)); in parseLine()
275 mPids.put(pid, name); in parseLine()
282 String key = encodeLine(pid, tid, level, tag); in parseLine()
285 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine()
286 mPreambleUtil.getIdTail(pid)); in parseLine()
299 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()
DCpuInfoParser.java46 int pid = Integer.parseInt(m.group(2)); in parse() local
49 item.addRow(pid, percent, name); in parse()
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py219 for pid in pids:
221 self.signal(pid, sig)
228 pids = [pid for pid in pids if self.is_alive(pid)]
233 def signal(self, pid, sig): argument
244 self.run('kill -%d %d' % (sig, pid))
/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/asuite/atest/test_runners/
Dtest_runner_base.py113 logging.debug('Killing subproc: %s', subproc.pid)
114 os.killpg(os.getpgid(subproc.pid), signal.SIGINT)
141 self.NAME, proc.pid)
147 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
167 print('Process ID: %s', proc.pid)
169 os.getpgid(proc.pid))
170 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
/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 in trebuchet.importers.ftrace.FtraceLine
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/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/asuite/atest-py2/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/test/connectivity/acts/framework/acts/
Dutils.py442 " stdout: %s" % (proc.pid, ret, err, out))
488 pid = proc.pid
489 logging.debug("Stop standing subprocess %d", pid)
492 os.killpg(pid, kill_signal)
1040 pid = job.run('pgrep -f %s' % command_regex).stdout
1042 if pid:
1043 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
1049 pid = job.run('pidof %s' % process, ignore_status=True).stdout
1051 if pid:
1052 runtime = job.run('ps -o etime= -p "%s"' % pid).stdout
[all …]
/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/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/test/connectivity/acts/framework/acts/controllers/
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)
Diperf_server.py331 def _get_port_from_ss_output(ss_output, pid): argument
332 pid = str(pid)
335 if pid in line:
390 self._iperf_process.pid))
705 job.run('kill -9 {}'.format(self._iperf_process.pid))
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dnative_bt_test_utils.py28 pid = n.adb.shell("pidof -s bluetoothtbd")
29 if not pid:

12