Home
last modified time | relevance | path

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

/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
Danalyze_logs.py182 logLine.uid, logLine.pid, logLine.tid, logLine.level, logLine.tag, logLine.text))
187 byPid.add(logLine.pid, logLine)
Dsample.txt118 Setting hasTopUi=true for pid=3812
524 Setting hasTopUi=false for pid=3812
1506 Setting hasTopUi=true for pid=3812
2019 Setting hasTopUi=false for pid=3812
/development/scripts/
Dgdbclient.py37 def get_tracer_pid(device, pid): argument
38 if pid is None:
41 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
117 pid = None
124 pid = args.target_pid
127 pid = get_remote_pid(device, args.target_name)
143 assert pid is not None
145 binary_file, local = gdbrunner.find_binary(device, pid, sysroot,
148 sys.exit("failed to pull binary for PID {}".format(pid))
154 return (binary_file, pid, run_cmd)
[all …]
Dgdbclient95 PID=$(pid --exact $PROCESS_NAME)
/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/python-packages/gdbrunner/
D__init__.py128 pid = int(columns[pid_column])
130 processes[process_name].append(pid)
132 processes[process_name] = [pid]
280 def find_binary(device, pid, sysroot, run_as_cmd=None): argument
282 return find_file(device, "/proc/{}/exe".format(pid), sysroot, run_as_cmd)
/development/tools/bugreport/src/com/android/bugreport/cpuinfo/
DCpuUsage.java26 public int pid; field in CpuUsage
/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
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java117 int pid = getResources().getIdentifier(prefix + "points", "array", getPackageName()); in readModel() local
120 String [] p = getResources().getStringArray(pid); in readModel()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkey.java330 public boolean appCrashed(String processName, int pid, in appCrashed() argument
334 Logger.err.println("// CRASH: " + processName + " (pid " + pid + ")"); in appCrashed()
363 public int appEarlyNotResponding(String processName, int pid, String annotation) { in appEarlyNotResponding() argument
367 public int appNotResponding(String processName, int pid, String processStats) { in appNotResponding() argument
369 Logger.err.println("// NOT RESPONDING: " + processName + " (pid " + pid + ")"); in appNotResponding()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DRemoteService.java412 int pid = mSecondaryService.getPid();
421 Process.killProcess(pid);