• Home
  • Raw
  • Download

Lines Matching refs:outBufLen

622   size_t outBufLen = *pOutBufLen;  in android_log_printBinaryEvent()  local
623 size_t outBufLenSave = outBufLen; in android_log_printBinaryEvent()
673 if (outBufLen <= 0) { in android_log_printBinaryEvent()
681 --outBufLen; in android_log_printBinaryEvent()
685 outBufLen += outBuf - outBufLastSpace; in android_log_printBinaryEvent()
688 if (outBufLen <= 0) { in android_log_printBinaryEvent()
695 --outBufLen; in android_log_printBinaryEvent()
712 outBufLen = outBufLenSave; in android_log_printBinaryEvent()
741 outCount = snprintf(outBuf, outBufLen, "%" PRId64, lval); in android_log_printBinaryEvent()
742 if (outCount < outBufLen) { in android_log_printBinaryEvent()
744 outBufLen -= outCount; in android_log_printBinaryEvent()
759 outCount = snprintf(outBuf, outBufLen, "%f", fval); in android_log_printBinaryEvent()
760 if (outCount < outBufLen) { in android_log_printBinaryEvent()
762 outBufLen -= outCount; in android_log_printBinaryEvent()
786 outBufLen = outBufLenSave; in android_log_printBinaryEvent()
788 if (strLen < outBufLen) { in android_log_printBinaryEvent()
791 outBufLen -= strLen; in android_log_printBinaryEvent()
793 if (outBufLen > 0) { in android_log_printBinaryEvent()
795 memcpy(outBuf, eventData, outBufLen); in android_log_printBinaryEvent()
796 outBuf += outBufLen; in android_log_printBinaryEvent()
797 outBufLen -= outBufLen; in android_log_printBinaryEvent()
816 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
819 outBufLen--; in android_log_printBinaryEvent()
822 result = android_log_printBinaryEvent(&eventData, &eventDataLen, &outBuf, &outBufLen, in android_log_printBinaryEvent()
827 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
829 outBufLen--; in android_log_printBinaryEvent()
833 if (outBufLen <= 0) goto no_room; in android_log_printBinaryEvent()
836 outBufLen--; in android_log_printBinaryEvent()
856 outBufLen += 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()
873 while ((outBufLen == 0) || (*outBuf == '0')) { in android_log_printBinaryEvent()
875 ++outBufLen; in android_log_printBinaryEvent()
879 --outBufLen; in android_log_printBinaryEvent()
881 outCount = snprintf(outBuf, outBufLen, "s"); in android_log_printBinaryEvent()
883 outCount = snprintf(outBuf, outBufLen, "ms"); in android_log_printBinaryEvent()
893 outBufLen += outCount; in android_log_printBinaryEvent()
896 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 "d ", val / day); in android_log_printBinaryEvent()
897 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
899 outBufLen -= outCount; in android_log_printBinaryEvent()
904 outCount = snprintf(outBuf, outBufLen, "%" PRIu64 ":", (val / hour) % (day / hour)); in android_log_printBinaryEvent()
905 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
907 outBufLen -= outCount; in android_log_printBinaryEvent()
910 snprintf(outBuf, outBufLen, (val >= hour) ? "%02" PRIu64 ":" : "%" PRIu64 ":", in android_log_printBinaryEvent()
912 if (outCount >= outBufLen) break; in android_log_printBinaryEvent()
914 outBufLen -= 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()
935 if (outCount < outBufLen) { in android_log_printBinaryEvent()
937 outBufLen -= outCount; in android_log_printBinaryEvent()
951 *pOutBufLen = outBufLen; in android_log_printBinaryEvent()