Home
last modified time | relevance | path

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

/hardware/libhardware/modules/sensors/tests/
DSensorEventQueue_test.cpp16 bool checkWritableBufferSize(SensorEventQueue* queue, int requested, int expected) { in checkWritableBufferSize() function
47 if (!checkWritableBufferSize(queue, 11, 10)) return false; in testSimpleWriteSizeCounts()
48 if (!checkWritableBufferSize(queue, 10, 10)) return false; in testSimpleWriteSizeCounts()
49 if (!checkWritableBufferSize(queue, 9, 9)) return false; in testSimpleWriteSizeCounts()
53 if (!checkWritableBufferSize(queue, 4, 3)) return false; in testSimpleWriteSizeCounts()
54 if (!checkWritableBufferSize(queue, 3, 3)) return false; in testSimpleWriteSizeCounts()
55 if (!checkWritableBufferSize(queue, 2, 2)) return false; in testSimpleWriteSizeCounts()
59 if (!checkWritableBufferSize(queue, 1, 0)) return false; in testSimpleWriteSizeCounts()
75 if (!checkWritableBufferSize(queue, 100, 1)) return false; in testWrappingWriteSizeCounts()
81 if (!checkWritableBufferSize(queue, 100, 2)) return false; in testWrappingWriteSizeCounts()