Home
last modified time | relevance | path

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

/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c129 const size_t totalBytesNeeded = event->numBytesWritten + size; in overflows() local
130 if (totalBytesNeeded > MAX_PULL_EVENT_PAYLOAD) { in overflows()
136 if (event->bufSize < MAX_PULL_EVENT_PAYLOAD && totalBytesNeeded > event->bufSize) { in overflows()
139 } while (event->bufSize <= totalBytesNeeded); in overflows()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java914 final int totalBytesNeeded = index + numBytes; in hasEnoughSpace() local
916 if (totalBytesNeeded > mMaxSize) { in hasEnoughSpace()
922 if (mBytes.length < mMaxSize && totalBytesNeeded > mBytes.length) { in hasEnoughSpace()
926 } while (newSize <= totalBytesNeeded); in hasEnoughSpace()