Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 7 of 7) sorted by relevance

/system/core/logd/
DLogTags.cpp52 static uid_t sniffUid(const char* comment, const char* endp) { in sniffUid() argument
56 while ((comment < endp) && (*comment != '\n') && isspace(*comment)) in sniffUid()
59 if (((comment + strlen(uid_str)) >= endp) || in sniffUid()
65 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid()
199 char* endp = cp + content.length(); in ReadFileEventLogTags() local
208 while (cp < endp) { in ReadFileEventLogTags()
220 while ((cp < endp) && (*cp != '\n') && isspace(*cp)) ++cp; in ReadFileEventLogTags()
221 if (cp >= endp) break; in ReadFileEventLogTags()
226 while ((cp < endp) && (isalnum(*cp) || (*cp == '_'))) { in ReadFileEventLogTags()
239 ((cp >= endp) || (*cp == '#') || isspace(*cp))) { in ReadFileEventLogTags()
[all …]
DLogKlog.cpp336 char* endp; in sniffTime() local
337 real.tv_sec = strtol(b, &endp, 10); in sniffTime()
338 if ((*endp == '.') && ((endp - b) < len)) { in sniffTime()
341 len -= endp - b; in sniffTime()
342 while (--len && isdigit(*++endp) && (multiplier /= 10)) { in sniffTime()
343 real.tv_nsec += (*endp - '0') * multiplier; in sniffTime()
/system/update_engine/
Dp2p_manager_unittest.cc301 char* endp = nullptr; in CheckP2PFile() local
302 long long int val = strtoll(ea_value, &endp, 0); // NOLINT(runtime/int) in CheckP2PFile()
303 if (endp == nullptr || *endp != '\0') { in CheckP2PFile()
Dp2p_manager.cc657 char* endp = nullptr; in FileGetExpectedSize() local
658 long long int val = strtoll(ea_value, &endp, 0); // NOLINT(runtime/int) in FileGetExpectedSize()
659 if (*endp != '\0') { in FileGetExpectedSize()
/system/extras/simpleperf/
Denvironment.cpp99 char* endp; in GetCpusFromString() local
103 while ((cpu = static_cast<int>(strtol(p, &endp, 10))) != 0 || endp != p) { in GetCpusFromString()
112 p = endp; in GetCpusFromString()
/system/core/liblog/
Devent_tag_map.cpp353 const char* endp = cp + len; in parseMapLines() local
356 if (!len || (*(endp - 1) != '\n')) { in parseMapLines()
370 while (cp < endp) { in parseMapLines()
/system/core/logcat/
Dlogcat.cpp585 char* endp; in getSizeTArg() local
587 size_t ret = (size_t)strtoll(ptr, &endp, 0); in getSizeTArg()
589 if (endp[0] || errno) return false; in getSizeTArg()