Lines Matching defs:pid
49 int32_t pid = DEFAULT_PID;
82 if (::sscanf_s(strLine.c_str(), "%*s%d", &pid, sizeof(pid)) != 1) {
83 MMI_HILOGE("Failed to delete the pid");
94 return pid;
125 int32_t CpuInfo::GetProcOccupy(int32_t pid)
128 static const std::string procPath = "/proc/" + std::to_string(pid) + "/stat";
232 int32_t pid = GetTaskPidFile(process_name);
238 if ((procTime1 = GetProcOccupy(pid)) == RET_ERR) {
249 if ((procTime2 = GetProcOccupy(pid)) == RET_ERR) {