Home
last modified time | relevance | path

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

/system/core/logd/
DLogTags.cpp56 static uid_t sniffUid(const char* comment, const char* endp) { in sniffUid() argument
60 while ((comment < endp) && (*comment != '\n') && isspace(*comment)) in sniffUid()
63 if (((comment + strlen(uid_str)) >= endp) || in sniffUid()
69 if ((cp > endp) || (Uid >= INT_MAX)) return AID_ROOT; in sniffUid()
201 char* endp = cp + content.length(); in ReadFileEventLogTags() local
210 while (cp < endp) { in ReadFileEventLogTags()
222 while ((cp < endp) && (*cp != '\n') && isspace(*cp)) ++cp; in ReadFileEventLogTags()
223 if (cp >= endp) break; in ReadFileEventLogTags()
228 while ((cp < endp) && (isalnum(*cp) || (*cp == '_'))) { in ReadFileEventLogTags()
240 ((cp >= endp) || (*cp == '#') || isspace(*cp))) { in ReadFileEventLogTags()
[all …]
DLogKlog.cpp333 char* endp; in sniffTime() local
334 real.tv_sec = strtol(b, &endp, 10); in sniffTime()
335 if ((*endp == '.') && ((endp - b) < len)) { in sniffTime()
338 len -= endp - b; in sniffTime()
339 while (--len && isdigit(*++endp) && (multiplier /= 10)) { in sniffTime()
340 real.tv_nsec += (*endp - '0') * multiplier; in sniffTime()
/system/extras/simpleperf/
Dutils.cpp418 char* endp; in GetCpusFromString() local
422 while ((cpu = static_cast<int>(strtol(p, &endp, 10))) != 0 || endp != p) { in GetCpusFromString()
431 p = endp; in GetCpusFromString()
/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.cc656 char* endp = nullptr; in FileGetExpectedSize() local
657 long long int val = strtoll(ea_value, &endp, 0); // NOLINT(runtime/int) in FileGetExpectedSize()
658 if (*endp != '\0') { in FileGetExpectedSize()
/system/core/liblog/
Devent_tag_map.cpp352 const char* endp = cp + len; in parseMapLines() local
355 if (!len || (*(endp - 1) != '\n')) { in parseMapLines()
369 while (cp < endp) { in parseMapLines()