Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorService.cpp273 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in onFirstRef() local
274 mSensorEventBuffer = new sensors_event_t[minBufferSize]; in onFirstRef()
275 mSensorEventScratch = new sensors_event_t[minBufferSize]; in onFirstRef()
276 mMapFlushEventsToConnections = new wp<const SensorEventConnection> [minBufferSize]; in onFirstRef()
715 const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT; in threadLoop() local
716 const size_t numEventMax = minBufferSize / (1 + vcount); in threadLoop()
779 for (size_t i=0 ; i<size_t(count) && k<minBufferSize ; i++) { in threadLoop()
781 if (count + k >= minBufferSize) { in threadLoop()
784 count, k, minBufferSize); in threadLoop()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java571 int minBufferSize = AudioRecord.getMinBufferSize( in run() local
573 if (minBufferSize > bytesRequired) { in run()
574 bytesRequired = minBufferSize; in run()
/frameworks/av/services/audioflinger/
DTracks.cpp121 size_t minBufferSize = buffer == NULL ? roundup(frameCount) : frameCount; in TrackBase() local
123 if (minBufferSize < frameCount // roundup rounds down for values above UINT_MAX / 2 in TrackBase()
125 || minBufferSize > SIZE_MAX / mFrameSize) { in TrackBase()
129 minBufferSize *= mFrameSize; in TrackBase()
132 bufferSize = minBufferSize; // allocated here. in TrackBase()
133 } else if (minBufferSize > bufferSize) { in TrackBase()