/sdk/emulator/opengl/shared/OpenglOsUtils/ |
D | osProcessUnix.cpp | 96 pid_t pid; in start_process() local 98 pid = fork(); in start_process() 100 if (pid < 0) { in start_process() 101 return pid; in start_process() 103 else if (pid == 0) { in start_process() 125 return pid; in start_process() 154 pid_t pid = waitpid(m_pid,&ret,0); in wait() local 155 if (pid != -1) { in wait() 172 pid_t pid = waitpid(m_pid,&ret,WNOHANG); in tryWait() local 173 if (pid == 0) { in tryWait() [all …]
|
D | osProcessWin.cpp | 124 int KillProcess(int pid, bool wait) in KillProcess() argument 127 HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid); in KillProcess() 158 bool isProcessRunning(int pid) in isProcessRunning() argument 162 HANDLE process = OpenProcess(SYNCHRONIZE, FALSE, pid); in isProcessRunning()
|
D | osProcess.h | 57 int KillProcess(int pid, bool wait); 58 bool isProcessRunning(int pid);
|
/sdk/emulator/qtools/ |
D | gtrace.cpp | 58 void Gtrace::WriteFirstHeader(uint32_t start_sec, uint32_t pid) in WriteFirstHeader() argument 61 current_pid_ = pid; in WriteFirstHeader() 63 FillFirstHeader(start_sec, pid, &fh); in WriteFirstHeader() 68 void Gtrace::FillFirstHeader(uint32_t start_sec, uint32_t pid, in FillFirstHeader() argument 80 fh->common.pid = pid; in FillFirstHeader() 94 void Gtrace::WriteBlockHeader(uint32_t cycle, uint32_t pid) in WriteBlockHeader() argument 105 bh.pid = pid; in WriteBlockHeader() 111 void Gtrace::AddGtraceRecord(int filenum, int procnum, uint32_t cycle, uint32_t pid, in AddGtraceRecord() argument 116 if (current_pid_ != pid) { in AddGtraceRecord() 117 current_pid_ = pid; in AddGtraceRecord() [all …]
|
D | parse_options-inl.h | 30 if (include_some_pids && pid_include_vector.GetBit(event->pid) == 0) in IsValidEvent() 32 if (exclude_some_pids && pid_exclude_vector.GetBit(event->pid)) in IsValidEvent() 45 inline bool IsValidPid(int pid) { in IsValidPid() argument 46 if (include_some_pids && pid_include_vector.GetBit(pid) == 0) in IsValidPid() 48 if (exclude_some_pids && pid_exclude_vector.GetBit(pid)) in IsValidPid() 53 inline symbol_type *GetSymbol(TraceReaderType *trace, int pid, uint32_t addr, in GetSymbol() argument 56 symbol_type *sym = trace->LookupFunction(pid, addr, time); in GetSymbol() 111 while (pid_include_vector.GetBit(event->pid) == 0) { in GetNextValidEvent() 118 while (pid_exclude_vector.GetBit(event->pid)) { in GetNextValidEvent() 127 sym = GetSymbol(trace, event->pid, event->bb_addr, event->time); in GetNextValidEvent() [all …]
|
D | q2dm.cpp | 73 int pid = base->getId(); in push() local 78 stack->getGlobalTime(time), pid, stackLevel, in push() 82 FunctionStack *fstack = dmtrace_stack[pid]; in push() 85 dmtrace_stack[pid] = fstack; in push() 89 thread_time[pid] = time; in push() 90 dmtrace->addFunctionEntry(function->id, time, pid); in push() 95 int pid = base->getId(); in pop() local 100 stack->getGlobalTime(time), pid, stackLevel, in pop() 104 FunctionStack *fstack = dmtrace_stack[pid]; in pop() 107 dmtrace_stack[pid] = fstack; in pop() [all …]
|
D | check_stack.cpp | 20 void compareStacks(uint64_t time, int pid); 21 void dumpStacks(int pid); 118 if (!IsValidPid(proc->pid)) in main() 122 Stack *mStack = mStacks[proc->pid]; in main() 127 mStacks[proc->pid] = mStack; in main() 148 CallStackType *eStack = eStacks[event.pid]; in main() 152 eStack = new CallStackType(event.pid, kNumStackFrames, etrace); in main() 153 eStacks[event.pid] = eStack; in main() 162 compareStacks(event.time, event.pid); in main() 175 void compareStacks(uint64_t time, int pid) { in compareStacks() argument [all …]
|
D | gtrace.h | 24 uint32_t pid; member 45 void WriteFirstHeader(uint32_t start_sec, uint32_t pid); 47 void AddProcEntry(int filenum, int procnum, uint32_t cycle, uint32_t pid); 48 void AddProcExit(int filenum, int procnum, uint32_t cycle, uint32_t pid); 51 void AddGtraceRecord(int filenum, int procnum, uint32_t cycle, uint32_t pid, 53 void FillFirstHeader(uint32_t start_sec, uint32_t pid, 55 void WriteBlockHeader(uint32_t cycle, uint32_t pid);
|
D | read_pid.cpp | 22 printf("t%lld fork tgid %d pid %d\n", event.time, event.tgid, event.pid); in main() 25 printf("t%lld clone tgid %d pid %d\n", event.time, event.tgid, event.pid); in main() 28 printf("t%lld switch %d\n", event.time, event.pid); in main() 31 printf("t%lld exit %d\n", event.time, event.pid); in main() 60 event.time, event.tgid, event.pid, event.path); in main() 65 event.time, event.pid, event.path); in main()
|
D | post_trace.cpp | 106 usedPids[event.pid] = 1; in main() 115 for (int pid = 0; pid < kNumPids; pid++) { in main() local 116 if (usedPids[pid] == 1) { in main() 119 unusedPid = pid; in main()
|
D | read_method.cpp | 102 if (!IsValidPid(proc->pid)) in main() 107 method_record.time, proc->pid, method_record.addr, in main() 111 method_record.time, proc->pid, method_record.addr, in main() 116 Stack *pStack = stacks[proc->pid]; in main() 121 stacks[proc->pid] = pStack; in main()
|
D | trace_reader.h | 124 pid = 0; in ProcessState() 180 int pid; variable 206 symbol_type *LookupFunction(int pid, uint32_t addr, uint64_t time); 211 const char *GetProcessName(int pid); 245 symbol_type *FindCurrentMethod(int pid, uint64_t time); 451 const char* TraceReader<T>::GetProcessName(int pid) in GetProcessName() argument 453 if (pid < 0 || pid >= kNumPids || processes_[pid] == NULL) in GetProcessName() 455 return processes_[pid]->name; in GetProcessName() 895 assert(pstate->pid != 0); in ClearRegions() 1118 TraceReader<T>::LookupFunction(int pid, uint32_t addr, uint64_t time) in LookupFunction() argument [all …]
|
D | q2g.cpp | 59 gtrace->WriteFirstHeader(qheader->start_sec, event.pid); in main() 84 event.pid); in main() 90 gtrace->AddProcEntry(sym->filenum, sym->procnum, event.time, event.pid); in main() 100 ignored.pid); in main()
|
D | profile_pid.cpp | 33 return proc1->pid - proc2->pid; in cmp_dec_cpu_time() 85 pstate->pid, pstate->parent_pid, pstate->cpu_time, in main()
|
/sdk/emulator/opengl/tests/ut_rendercontrol_dec/ |
D | ut_rendercontrol.in | 1 GL_ENTRY(int, createContext, uint32_t pid, uint32_t handle, uint32_t shareCtx, int version) 2 GL_ENTRY(int, createSurface, uint32_t pid, uint32_t handle) 3 GL_ENTRY(int, makeCurrentContext, uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32_… 4 GL_ENTRY(void, swapBuffers, uint32_t pid, uint32_t surface) 5 GL_ENTRY(int, destroyContext, uint32_t pid, uint32_t handle) 6 GL_ENTRY(int, destroySurface, uint32_t pid, uint32_t handle)
|
/sdk/emulator/qtools/tests/ |
D | macros.h | 39 #define TRACE_SWITCH(pid) DEV_WRITE_WORD(TRACE_DEV_REG_SWITCH, (pid)) argument 41 #define TRACE_FORK(pid) DEV_WRITE_WORD(TRACE_DEV_REG_FORK, (pid)) argument 43 #define TRACE_CLONE(pid) DEV_WRITE_WORD(TRACE_DEV_REG_CLONE, (pid)) argument 45 #define TRACE_INIT_NAME(pid,path)\ argument 47 DEV_WRITE_WORD(TRACE_DEV_REG_INIT_PID, (pid));\
|
/sdk/emulator/opengl/tests/ut_renderer/ |
D | Renderer.h | 31 unsigned int pid; 33 ClientHandle(unsigned int _pid, unsigned int _handle) : pid(_pid), handle(_handle) {} in ClientHandle() 36 bool val = (pid == p.pid) ? handle < p.handle : pid < p.pid;
|
D | RenderingThread.h | 69 static int s_createContext(uint32_t pid, uint32_t handle, uint32_t shareCtx, int version); 70 static int s_createSurface(uint32_t pid, uint32_t handle); 71 static int s_destroySurface(uint32_t pid, uint32_t handle); 72 static int s_destroyContext(uint32_t pid, uint32_t handle); 73 … static int s_makeCurrent(uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32_t ctx); 74 static void s_swapBuffers(uint32_t pid, uint32_t surface);
|
D | RenderingThread.cpp | 213 int RenderingThread::s_createContext(uint32_t pid, uint32_t handle, uint32_t shareCtx, int version) in s_createContext() argument 215 return Renderer::instance()->createContext(m_tls, Renderer::ClientHandle(pid, handle), in s_createContext() 216 Renderer::ClientHandle(pid, shareCtx), in s_createContext() 222 int RenderingThread::s_createSurface(uint32_t pid, uint32_t handle) in s_createSurface() argument 224 return Renderer::instance()->createSurface(m_tls, Renderer::ClientHandle(pid, handle)); in s_createSurface() 227 int RenderingThread::s_destroySurface(uint32_t pid, uint32_t handle) in s_destroySurface() argument 229 return Renderer::instance()->destroySurface(m_tls, Renderer::ClientHandle(pid, handle)); in s_destroySurface() 232 int RenderingThread::s_destroyContext(uint32_t pid, uint32_t handle) in s_destroyContext() argument 234 return Renderer::instance()->destroyContext(m_tls, Renderer::ClientHandle(pid, handle)); in s_destroyContext() 238 int RenderingThread::s_makeCurrent(uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32… in s_makeCurrent() argument [all …]
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/ |
D | LogCatPidToNameMapper.java | 71 int pid = cd.getPid(); 73 mPidToName.put(Integer.toString(pid), name); 110 int pid = cd.getPid(); 120 mPidToName.put(Integer.toString(pid), name); 129 public String getName(String pid) { 130 String name = mPidToName.get(pid);
|
D | LogCatFilter.java | 76 public LogCatFilter(String name, String tag, String text, String pid, String appName, in LogCatFilter() argument 81 mPid = pid.trim(); in LogCatFilter() 153 String pid = ""; in fromString() local 157 pid = s.substring(PID_KEYWORD.length()); in fromString() 170 tag, text, pid, app, minLevel)); in fromString()
|
D | LogCatMessage.java | 39 public LogCatMessage(LogLevel logLevel, String pid, String tid, String appName, in LogCatMessage() argument 42 mPid = pid; in LogCatMessage()
|
D | LogFilter.java | 215 public void setPidMode(int pid) { in setPidMode() argument 216 if (pid != -1) { in setPidMode() 221 mPid = pid; in setPidMode() 343 if ((mMode & MODE_PID) == MODE_PID && mPid != logMessage.data.pid) { in accept() 382 if (mTempPid != -1 && mTempPid != logMessage.data.pid) { in accept() 500 void setTempPidFiltering(int pid) { in setTempPidFiltering() argument 501 mTempPid = pid; in setTempPidFiltering()
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
D | DeviceMonitor.java | 607 int pid = client.getClientData().getPid(); in deviceClientMonitorLoop() local 621 openClient(device, pid, port, monitorThread); in deviceClientMonitorLoop() 728 for (String pid : pids) { in processIncomingJdwpData() 730 newPids.add(Integer.valueOf(pid)); in processIncomingJdwpData() 752 for (Integer pid : existingClients.keySet()) { in processIncomingJdwpData() 753 if (!newPids.contains(pid)) { in processIncomingJdwpData() 754 clientsToRemove.add(existingClients.get(pid)); in processIncomingJdwpData() 778 private void openClient(Device device, int pid, int port, MonitorThread monitorThread) { in openClient() argument 783 AndroidDebugBridge.getSocketAddress(), device, pid); in openClient() 788 Log.d("DeviceMonitor", "Unknown Jdwp pid: " + pid); in openClient() [all …]
|
D | HandleHello.java | 93 int version, pid, vmIdentLen, appNameLen; in handleHELO() local 97 pid = data.getInt(); in handleHELO() 121 Log.d("ddm-hello", "HELO: v=" + version + ", pid=" + pid in handleHELO() 127 if (cd.getPid() == pid) { in handleHELO() 136 Log.e("ddm-hello", "Received pid (" + pid + ") does not match client pid (" in handleHELO()
|