Searched refs:minBufferSize (Results 1 – 3 of 3) sorted by relevance
606 int minBufferSize = AudioRecord.getMinBufferSize( in run() local608 if (minBufferSize > bytesRequired) { in run()609 bytesRequired = minBufferSize; in run()
476 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in onFirstRef() local477 mSensorEventBuffer = new sensors_event_t[minBufferSize]; in onFirstRef()478 mSensorEventScratch = new sensors_event_t[minBufferSize]; in onFirstRef()480 mMapFlushEventsToConnections = new wp<const SensorEventConnection> [minBufferSize]; in onFirstRef()1132 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in threadLoop() local1133 const size_t numEventMax = minBufferSize / (1 + vcount); in threadLoop()1187 for (size_t i=0 ; i<size_t(count) && k<minBufferSize ; i++) { in threadLoop()1189 if (count + k >= minBufferSize) { in threadLoop()1192 count, k, minBufferSize); in threadLoop()
142 size_t minBufferSize = buffer == NULL ? roundup(frameCount) : frameCount; in TrackBase() local144 if (minBufferSize < frameCount // roundup rounds down for values above UINT_MAX / 2 in TrackBase()146 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase()150 minBufferSize *= mFrameSize; in TrackBase()153 bufferSize = minBufferSize; // allocated here. in TrackBase()154 } else if (minBufferSize > bufferSize) { in TrackBase()