Home
last modified time | relevance | path

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

12

/development/tools/bugreport/src/com/android/bugreport/bugreport/
DProcessInfo.java28 public int pid; field in ProcessInfo
43 public ProcessInfo(int pid, String cmdLine) { in ProcessInfo() argument
44 this.pid = pid; in ProcessInfo()
/development/tools/bugreport/src/com/android/bugreport/stacks/
DVmTraces.java33 public ProcessSnapshot getProcess(int pid) { in getProcess() argument
35 if (process.pid == pid) { in getProcess()
42 public ThreadSnapshot getThread(int pid, String name) { in getThread() argument
43 final ProcessSnapshot process = getProcess(pid); in getThread()
DProcessSnapshot.java25 public int pid; field in ProcessSnapshot
40 this.pid = that.pid; in ProcessSnapshot()
61 return this.pid - that.pid; in compareTo()
DProcessSnapshotParser.java75 result.pid = Integer.parseInt(beginProcessRe.group(1)); in parse()
129 System.out.println("pid=" + result.pid); in parse()
/development/tools/logblame/
Dlogs.py19 def __init__(self, buf=None, timestamp=None, uid=None, pid=None, tid=None, level=None, argument
24 self.pid = pid
33 self.pid, self.tid, self.level, self.tag, self.text)
40 and self.pid == other.pid
48 logLine = LogLine(self.buf, self.timestamp, self.uid, self.pid, self.tid, self.level,
82 pid = None
129 pid=m.group(3),
135 logLine.process = processes.FindPid(logLine.pid, logLine.uid)
147 pid=m.group(2),
154 logLine.process = processes.FindPid(logLine.pid, logLine.uid)
Dps.py12 def __init__(self, uid, pid, ppid, name): argument
14 self.pid = pid
23 return self.pid
26 return "Process(uid=%s, pid=%s, name=%s)" % (self.uid, self.pid, self.name)
75 def FindPid(self, pid, uid=None): argument
82 result = self._processes.get(pid)
85 result = self._processes.get(pid)
89 result = Process(uid, pid, None, None)
90 self._processes[pid] = result
Dtest_ps.py81 print "pid:", process.pid
/development/scripts/
Dbash_util.bash60 local pid="$(do_adb shell pidof "$name")"
61 if [[ -z "$pid" ]] ; then
64 echo "$pid"
Drunahat31 pid="$(resolve_pid "$1" || usage)"
37 info "Getting heap dump from $pid ..."
38 do_adb shell am dumpheap -g "$pid" "$dev_file"
Dacov-llvm.py104 def _has_handler_sig37(pid): argument
124 pids = [pid.strip() for pid in output.split()]
126 pids = [pid for pid in pids if _has_handler_sig37(pid)]
Dgdbclient.py84 def get_tracer_pid(device, pid): argument
85 if pid is None:
88 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
229 pid = None
236 pid = args.target_pid
239 pid = get_remote_pid(device, args.target_name)
255 assert pid is not None
257 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
260 sys.exit("failed to pull binary for PID {}".format(pid))
266 return (binary_file, pid, run_cmd)
[all …]
Dlldbclient.py84 def get_tracer_pid(device, pid): argument
85 if pid is None:
88 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
229 pid = None
236 pid = args.target_pid
239 pid = get_remote_pid(device, args.target_name)
255 assert pid is not None
257 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
260 sys.exit("failed to pull binary for PID {}".format(pid))
266 return (binary_file, pid, run_cmd)
[all …]
/development/testrunner/
Drun_command.py83 pid = []
105 pid.append(pipe.pid)
132 os.kill(pid[0], signal.SIGKILL)
/development/tools/bugreport/src/com/android/bugreport/inspector/
DDeadlockDetector.java121 public static Set<ProcessSnapshot> detectDeadlocks(VmTraces vmTraces, int pid) { in detectDeadlocks() argument
130 final ProcessSnapshot offendingProcess = vmTraces.getProcess(pid); in detectDeadlocks()
145 System.out.print(" pid=" + offendingProcess.pid + " \"" + offendingThread.name in detectDeadlocks()
198 System.out.print(" pid=" + tr.process.pid + " \"" + tr.thread.name in detectDeadlocks()
211 ProcessSnapshot cloneProcess = results.get(tr.process.pid); in detectDeadlocks()
215 results.put(tr.process.pid, cloneProcess); in detectDeadlocks()
222 System.out.println(" pid=" + lr.process.pid + " " + lr.lock.packageName in detectDeadlocks()
DInspector.java85 markDeadlocks(mBugreport.anr.vmTraces, mBugreport.anr.pid); in inspect()
123 final ProcessInfo pi = makeProcessInfo(process.pid, process.cmdLine); in makeProcessInfo()
134 private ProcessInfo makeProcessInfo(int pid, String cmdLine) { in makeProcessInfo() argument
135 ProcessInfo pi = mBugreport.allKnownProcesses.get(pid); in makeProcessInfo()
137 pi = new ProcessInfo(pid, cmdLine); in makeProcessInfo()
138 mBugreport.allKnownProcesses.put(pid, pi); in makeProcessInfo()
452 if (mBugreport.anr != null && mBugreport.anr.pid == process.pid) { in isProcessInteresting()
555 private void markDeadlocks(VmTraces vmTraces, int pid) { in markDeadlocks() argument
556 final Set<ProcessSnapshot> deadlock = DeadlockDetector.detectDeadlocks(vmTraces, pid); in markDeadlocks()
768 line.process = mBugreport.allKnownProcesses.get(line.pid); in markLogcatProcessesAndThreads()
/development/tools/bugreport/src/com/android/bugreport/cpuinfo/
DCpuUsage.java26 public int pid; field in CpuUsage
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
DMultiClientInputMethod.java64 public void addClient(int clientId, int uid, int pid, in onCreate()
70 mSoftInputWindowManager, clientId, uid, pid, imeDisplayId); in onCreate()
73 + " pid=" + pid + " displayId=" + selfReportedDisplayId in onCreate()
DClientCallbackImpl.java48 SoftInputWindowManager softInputWindowManager, int clientId, int uid, int pid, in ClientCallbackImpl() argument
55 mPid = pid; in ClientCallbackImpl()
/development/python-packages/gdbrunner/
D__init__.py130 pid = int(columns[pid_column])
132 processes[process_name].append(pid)
134 processes[process_name] = [pid]
309 def find_binary(device, pid, sysroot, run_as_cmd=None): argument
311 return find_file(device, "/proc/{}/exe".format(pid), sysroot, run_as_cmd)
/development/tools/bugreport/src/com/android/bugreport/logcat/
DLogcatParser.java76 ll.pid = Integer.parseInt(m.group(9)); in parse()
85 System.out.println("LogLine: time=" + ll.time + " pid=" + ll.pid in parse()
DLogLine.java55 public int pid = -1; field in LogLine
/development/tools/bugreport/src/com/android/bugreport/anr/
DAnr.java33 public int pid; field in Anr
DAnrParser.java80 anr.pid = Integer.parseInt(pidRe.group(1)); in parse()
126 System.out.println(" pid=" + item.pid); in parse()
/development/tools/bugreport/src/com/android/bugreport/html/
DRenderer.java164 hdf.setValue("triage.pid", Integer.toString(anr.pid)); in makeTriageHdf()
167 final ProcessSnapshot offendingProcess = anr.vmTraces.getProcess(anr.pid); in makeTriageHdf()
168 final ThreadSnapshot offendingThread = anr.vmTraces.getThread(anr.pid, "main"); in makeTriageHdf()
175 visited.put(offendingProcess.pid, visitedThreads); in makeTriageHdf()
210 HashSet<Integer> visitedThreads = visited.get(process.pid); in cloneAndFilter()
213 visited.put(process.pid, visitedThreads); in cloneAndFilter()
256 hdf.setValue("pid", Integer.toString(process.pid)); in makeProcessSnapshotHdf()
423 if (process.pid == anr.pid) { in sortProcesses()
/development/apps/Development/src/com/android/development/
DBadBehaviorActivity.java104 public boolean appCrashed(String proc, int pid, String m, String m2, long time, String st) { in appCrashed() argument
108 public int appEarlyNotResponding(String processName, int pid, String annotation) { in appEarlyNotResponding() argument
112 public int appNotResponding(String proc, int pid, String st) { in appNotResponding() argument

12