Lines Matching refs:outBuf
620 char* outBuf = *pOutBuf; in android_log_printBinaryEvent() local
621 char* outBufSave = outBuf; in android_log_printBinaryEvent()
677 outBufLastSpace = isspace(*cp) ? outBuf : NULL; in android_log_printBinaryEvent()
678 *outBuf = *cp; in android_log_printBinaryEvent()
679 ++outBuf; in android_log_printBinaryEvent()
685 outBufLen += outBuf - outBufLastSpace; in android_log_printBinaryEvent()
686 outBuf = outBufLastSpace; in android_log_printBinaryEvent()
692 if (outBufSave != outBuf) { in android_log_printBinaryEvent()
693 *outBuf = '='; in android_log_printBinaryEvent()
694 ++outBuf; in android_log_printBinaryEvent()
711 outBuf = outBufSave; in android_log_printBinaryEvent()
741 outCount = snprintf(outBuf, outBufLen, "%" PRId64, lval); in android_log_printBinaryEvent()
743 outBuf += outCount; in android_log_printBinaryEvent()
759 outCount = snprintf(outBuf, outBufLen, "%f", fval); in android_log_printBinaryEvent()
761 outBuf += outCount; in android_log_printBinaryEvent()
785 outBuf = outBufSave; in android_log_printBinaryEvent()
789 memcpy(outBuf, eventData, strLen); in android_log_printBinaryEvent()
790 outBuf += strLen; in android_log_printBinaryEvent()
795 memcpy(outBuf, eventData, outBufLen); in android_log_printBinaryEvent()
796 outBuf += outBufLen; in android_log_printBinaryEvent()
818 *outBuf++ = '['; in android_log_printBinaryEvent()
822 result = android_log_printBinaryEvent(&eventData, &eventDataLen, &outBuf, &outBufLen, in android_log_printBinaryEvent()
828 *outBuf++ = ','; in android_log_printBinaryEvent()
835 *outBuf++ = ']'; in android_log_printBinaryEvent()
855 outBuf -= outCount; in android_log_printBinaryEvent()
861 outCount = snprintf(outBuf, outBufLen, "%" PRId64 "%cB", lval, suffixTable[idx]); in android_log_printBinaryEvent()
863 outCount = snprintf(outBuf, outBufLen, "B"); in android_log_printBinaryEvent()
867 if (((lval <= -1000) || (1000 <= lval)) && (outBufLen || (outBuf[-1] == '0'))) { in android_log_printBinaryEvent()
869 if (outBufLen) outBuf[0] = outBuf[-1]; in android_log_printBinaryEvent()
870 outBuf[-1] = outBuf[-2]; in android_log_printBinaryEvent()
871 outBuf[-2] = outBuf[-3]; in android_log_printBinaryEvent()
872 outBuf[-3] = '.'; in android_log_printBinaryEvent()
873 while ((outBufLen == 0) || (*outBuf == '0')) { in android_log_printBinaryEvent()
874 --outBuf; in android_log_printBinaryEvent()
877 if (*outBuf != '.') { in android_log_printBinaryEvent()
878 ++outBuf; in android_log_printBinaryEvent()
881 outCount = snprintf(outBuf, outBufLen, "s"); in android_log_printBinaryEvent()
883 outCount = snprintf(outBuf, outBufLen, "ms"); in android_log_printBinaryEvent()
892 outBuf -= outCount; in android_log_printBinaryEvent()
896 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 "d ", val / day); in android_log_printBinaryEvent()
898 outBuf += outCount; in android_log_printBinaryEvent()
904 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 ":", (val / hour) % (day / hour)); in android_log_printBinaryEvent()
906 outBuf += outCount; in android_log_printBinaryEvent()
910 snprintf(outBuf, outBufLen, (val >= hour) ? "%02" PRIu64 ":" : "%" PRIu64 ":", in android_log_printBinaryEvent()
913 outBuf += outCount; in android_log_printBinaryEvent()
916 outCount = snprintf(outBuf, outBufLen, (val >= minute) ? "%02" PRIu64 : "%" PRIu64 "s", in android_log_printBinaryEvent()
927 outCount = snprintf(outBuf, outBufLen, "%%"); in android_log_printBinaryEvent()
936 outBuf += outCount; in android_log_printBinaryEvent()
950 *pOutBuf = outBuf; in android_log_printBinaryEvent()
1042 char* outBuf = messageBuf; in android_log_processBinaryLogBuffer() local
1047 result = android_log_printBinaryEvent(&eventData, &inCount, &outBuf, &outRemaining, &fmtStr, in android_log_processBinaryLogBuffer()
1054 outBuf = messageBuf; in android_log_processBinaryLogBuffer()
1056 result = android_log_printBinaryEvent(&eventData, &inCount, &outBuf, &outRemaining, NULL, NULL); in android_log_processBinaryLogBuffer()
1064 --outBuf; in android_log_processBinaryLogBuffer()
1067 *outBuf++ = (result < 0) ? '!' : '^'; /* Error or Truncation? */ in android_log_processBinaryLogBuffer()
1088 *outBuf = '\0'; in android_log_processBinaryLogBuffer()
1089 entry->messageLen = outBuf - messageBuf; in android_log_processBinaryLogBuffer()