Lines Matching refs:outBufLen
643 size_t outBufLen = *pOutBufLen; in android_log_printBinaryEvent() local
644 size_t outBufLenSave = outBufLen; in android_log_printBinaryEvent()
695 if (outBufLen <= 0) { in android_log_printBinaryEvent()
703 --outBufLen; in android_log_printBinaryEvent()
707 outBufLen += outBuf - outBufLastSpace; in android_log_printBinaryEvent()
710 if (outBufLen <= 0) { in android_log_printBinaryEvent()
717 --outBufLen; in android_log_printBinaryEvent()
734 outBufLen = outBufLenSave; in android_log_printBinaryEvent()
761 outCount = snprintf(outBuf, outBufLen, "%" PRId64, lval); in android_log_printBinaryEvent()
762 if (outCount < outBufLen) { in android_log_printBinaryEvent()
764 outBufLen -= outCount; in android_log_printBinaryEvent()
782 outCount = snprintf(outBuf, outBufLen, "%f", fval); in android_log_printBinaryEvent()
783 if (outCount < outBufLen) { in android_log_printBinaryEvent()
785 outBufLen -= outCount; in android_log_printBinaryEvent()
810 outBufLen = outBufLenSave; in android_log_printBinaryEvent()
812 if (strLen < outBufLen) { in android_log_printBinaryEvent()
815 outBufLen -= strLen; in android_log_printBinaryEvent()
817 if (outBufLen > 0) { in android_log_printBinaryEvent()
819 memcpy(outBuf, eventData, outBufLen); in android_log_printBinaryEvent()
820 outBuf += outBufLen; in android_log_printBinaryEvent()
821 outBufLen -= outBufLen; in android_log_printBinaryEvent()
841 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
844 outBufLen--; in android_log_printBinaryEvent()
847 result = android_log_printBinaryEvent(&eventData, &eventDataLen, &outBuf, &outBufLen, in android_log_printBinaryEvent()
852 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
854 outBufLen--; in android_log_printBinaryEvent()
858 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
861 outBufLen--; in android_log_printBinaryEvent()
881 outBufLen += outCount; in android_log_printBinaryEvent()
886 outCount = snprintf(outBuf, outBufLen, "%" PRId64 "%cB", lval, suffixTable[idx]); in android_log_printBinaryEvent()
888 outCount = snprintf(outBuf, outBufLen, "B"); in android_log_printBinaryEvent()
892 if (((lval <= -1000) || (1000 <= lval)) && (outBufLen || (outBuf[-1] == '0'))) { in android_log_printBinaryEvent()
894 if (outBufLen) outBuf[0] = outBuf[-1]; in android_log_printBinaryEvent()
898 while ((outBufLen == 0) || (*outBuf == '0')) { in android_log_printBinaryEvent()
900 ++outBufLen; in android_log_printBinaryEvent()
904 --outBufLen; in android_log_printBinaryEvent()
906 outCount = snprintf(outBuf, outBufLen, "s"); in android_log_printBinaryEvent()
908 outCount = snprintf(outBuf, outBufLen, "ms"); in android_log_printBinaryEvent()
918 outBufLen += outCount; in android_log_printBinaryEvent()
921 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 "d ", val / day); in android_log_printBinaryEvent()
922 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
924 outBufLen -= outCount; in android_log_printBinaryEvent()
929 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 ":", (val / hour) % (day / hour)); in android_log_printBinaryEvent()
930 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
932 outBufLen -= outCount; in android_log_printBinaryEvent()
935 snprintf(outBuf, outBufLen, (val >= hour) ? "%02" PRIu64 ":" : "%" PRIu64 ":", in android_log_printBinaryEvent()
937 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
939 outBufLen -= outCount; in android_log_printBinaryEvent()
941 outCount = snprintf(outBuf, outBufLen, (val >= minute) ? "%02" PRIu64 : "%" PRIu64 "s", in android_log_printBinaryEvent()
952 outCount = snprintf(outBuf, outBufLen, "%%"); in android_log_printBinaryEvent()
960 if (outCount < outBufLen) { in android_log_printBinaryEvent()
962 outBufLen -= outCount; in android_log_printBinaryEvent()
976 *pOutBufLen = outBufLen; in android_log_printBinaryEvent()