Home
last modified time | relevance | path

Searched refs:totalBytesNeeded (Results 1 – 2 of 2) sorted by relevance

/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c133 const size_t totalBytesNeeded = event->numBytesWritten + size; in overflows() local
134 if (totalBytesNeeded > MAX_PULL_EVENT_PAYLOAD) { in overflows()
140 if (event->bufSize < MAX_PULL_EVENT_PAYLOAD && totalBytesNeeded > event->bufSize) { in overflows()
143 } while (event->bufSize <= totalBytesNeeded); in overflows()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java760 final int totalBytesNeeded = index + numBytes; in hasEnoughSpace() local
762 if (totalBytesNeeded > mMaxSize) { in hasEnoughSpace()
768 if (mBytes.length < mMaxSize && totalBytesNeeded > mBytes.length) { in hasEnoughSpace()
772 } while (newSize <= totalBytesNeeded); in hasEnoughSpace()