Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 – 3 of 3) sorted by relevance

/packages/modules/StatsD/lib/libstatssocket/
Dstats_event.c80 size_t bufSize; member
98 event->bufSize = MAX_PUSH_EVENT_PAYLOAD; in AStatsEvent_obtain()
99 event->buf = (uint8_t*)calloc(event->bufSize, 1); in AStatsEvent_obtain()
140 if (event->bufSize < MAX_PULL_EVENT_PAYLOAD && totalBytesNeeded > event->bufSize) { in overflows()
142 event->bufSize *= 2; in overflows()
143 } while (event->bufSize <= totalBytesNeeded); in overflows()
145 if (event->bufSize > MAX_PULL_EVENT_PAYLOAD) { in overflows()
146 event->bufSize = MAX_PULL_EVENT_PAYLOAD; in overflows()
149 event->buf = (uint8_t*)realloc(event->buf, event->bufSize); in overflows()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { in MosaicFrameProcessor() argument
76 mPreviewBufferSize = bufSize; in MosaicFrameProcessor()
104 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { in setupMosaicer() argument
105 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize); in setupMosaicer()
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache_test.cpp222 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_P() enumerator
225 char buf[bufSize]; in TEST_P()
229 for (int i = 0; i < bufSize; i++) { in TEST_P()
271 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_P() enumerator
274 char buf[bufSize]; in TEST_P()
278 for (int i = 0; i < bufSize; i++) { in TEST_P()
282 mBC->set(key, MAX_KEY_SIZE, buf, bufSize); in TEST_P()
283 ASSERT_EQ(size_t(bufSize), mBC->get(key, MAX_KEY_SIZE, NULL, 0)); in TEST_P()