Lines Matching refs:uid

156 const char *LogStatistics::uidToName(uid_t uid) const {  in uidToName()
158 if (uid == AID_LOGD) { in uidToName()
166 if (info->aid == uid) { in uidToName()
173 uid_t userId = uid % AID_USER; in uidToName()
186 if (entry.getUid() == uid) { in uidToName()
217 uid_t uid = getUid(); in format() local
218 std::string name = android::base::StringPrintf("%u", uid); in format()
219 const char *nameTmp = stat.uidToName(uid); in format()
287 if (uid != AID_SYSTEM) { in format()
293 = stat.pidSystemTable[id].sort(uid, (pid_t)0, maximum_sorted_entries); in format()
334 uid_t uid = getUid(); in format() local
336 std::string name = android::base::StringPrintf("%5u/%u", pid, uid); in format()
342 } else if ((nameTmp = stat.uidToName(uid))) { in format()
371 uid_t uid = getUid(); in format() local
373 getTid(), uid); in format()
379 } else if ((nameTmp = stat.uidToName(uid))) { in format()
413 uid_t uid = getUid(); in format() local
414 if (uid == (uid_t)-1) { in format()
419 getKey(), uid); in format()
436 std::string LogStatistics::format(uid_t uid, pid_t pid, in format() argument
507 name = (uid == AID_ROOT) in format()
510 output += uidTable[id].format(*this, uid, pid, name, id); in format()
514 name = ((uid == AID_ROOT) && !pid) in format()
517 output += pidTable.format(*this, uid, pid, name); in format()
523 output += tidTable.format(*this, uid, pid, name); in format()
532 output += tagTable.format(*this, uid, pid, name, LOG_ID_EVENTS); in format()
541 output += securityTagTable.format(*this, uid, pid, name, LOG_ID_SECURITY); in format()
555 int uid; in pidToUid() local
556 if (sscanf(buffer, "Uid: %d", &uid) == 1) { in pidToUid()
558 return uid; in pidToUid()