Lines Matching refs:cp
329 char* cp = getenv(tz); in android_log_formatFromString() local
330 if (cp) { in android_log_formatFromString()
331 cp = strdup(cp); in android_log_formatFromString()
343 if (cp) { in android_log_formatFromString()
344 setenv(tz, cp, 1); in android_log_formatFromString()
353 free(cp); in android_log_formatFromString()
601 static bool findChar(const char** cp, size_t* len, int c) { in findChar() argument
602 while ((*len) && isspace(*(*cp))) { in findChar()
603 ++(*cp); in findChar()
607 if ((*len) && (*(*cp) == c)) { in findChar()
608 ++(*cp); in findChar()
648 const char* cp; in android_log_printBinaryEvent() local
657 cp = NULL; in android_log_printBinaryEvent()
660 cp = *fmtStr; in android_log_printBinaryEvent()
688 if (!cp || !findChar(&cp, &len, '(')) { in android_log_printBinaryEvent()
693 findChar(&cp, &len, INT_MAX); in android_log_printBinaryEvent()
694 while (len && *cp && (*cp != '|') && (*cp != ')')) { in android_log_printBinaryEvent()
699 outBufLastSpace = isspace(*cp) ? outBuf : NULL; in android_log_printBinaryEvent()
700 *outBuf = *cp; in android_log_printBinaryEvent()
702 ++cp; in android_log_printBinaryEvent()
720 if (findChar(&cp, &len, '|') && findChar(&cp, &len, INT_MAX)) { in android_log_printBinaryEvent()
724 if ((*cp >= '1') && (*cp < (char)('1' + (sizeof(typeTable) / sizeof(typeTable[0])))) && in android_log_printBinaryEvent()
725 (type != typeTable[(size_t)(*cp - '1')])) in android_log_printBinaryEvent()
729 ++cp; in android_log_printBinaryEvent()
807 if (cp && (strLen == 0)) { in android_log_printBinaryEvent()
868 if (cp && len) { in android_log_printBinaryEvent()
869 if (findChar(&cp, &len, '|') && findChar(&cp, &len, INT_MAX)) { in android_log_printBinaryEvent()
870 switch (*cp) { in android_log_printBinaryEvent()
958 ++cp; in android_log_printBinaryEvent()
968 if (!findChar(&cp, &len, ')')) len = 0; in android_log_printBinaryEvent()
969 if (!findChar(&cp, &len, ',')) len = 0; in android_log_printBinaryEvent()
977 if (cp) { in android_log_printBinaryEvent()
978 *fmtStr = cp; in android_log_printBinaryEvent()
1319 char *cp, *e = line; in convertMonotonic() local
1365 cp = strstr(e, " UTC"); in convertMonotonic()
1366 if (!cp || ((cp - e) < 29) || (cp[-10] != '.')) { in convertMonotonic()
1369 e = cp - 29; in convertMonotonic()
1370 cp = readSeconds(cp - 10, &time); in convertMonotonic()
1371 if (!cp) { in convertMonotonic()
1374 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic()
1375 if (!cp) { in convertMonotonic()
1378 cp = getenv(tz); in convertMonotonic()
1379 if (cp) { in convertMonotonic()
1380 cp = strdup(cp); in convertMonotonic()
1384 if (cp) { in convertMonotonic()
1385 setenv(tz, cp, 1); in convertMonotonic()
1386 free(cp); in convertMonotonic()