Searched refs:ringbuffer_size (Results 1 – 4 of 4) sorted by relevance
/system/bt/osi/test/ |
D | ringbuffer_test.cpp | 12 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 21 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 26 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 44 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 49 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 54 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 64 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 72 EXPECT_EQ((size_t)8, ringbuffer_size(rb)); in TEST() 77 EXPECT_EQ((size_t)13, ringbuffer_size(rb)); in TEST() 89 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() [all …]
|
/system/bt/osi/src/ |
D | ringbuffer.c | 54 size_t ringbuffer_size(const ringbuffer_t *rb) { in ringbuffer_size() function 79 if (length > ringbuffer_size(rb)) in ringbuffer_delete() 80 length = ringbuffer_size(rb); in ringbuffer_delete() 94 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek() 97 …const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) ? ringbuffer_size(rb) - offse… in ringbuffer_peek()
|
/system/bt/btif/src/ |
D | btif_debug_btsnoop.c | 135 const size_t num_blocks = (ringbuffer_size(rb_src) + BLOCK_SIZE - 1) / BLOCK_SIZE; in btsnoop_compress() 166 dprintf(fd, "--- BEGIN:BTSNOOP_LOG_SUMMARY (%zu bytes in) ---\n", ringbuffer_size(buffer)); in btif_debug_btsnoop_dump() 195 while (ringbuffer_size(ringbuffer) > 0) { in btif_debug_btsnoop_dump()
|
/system/bt/osi/include/ |
D | ringbuffer.h | 43 size_t ringbuffer_size(const ringbuffer_t *rb);
|