Searched refs:ringbuffer_size (Results 1 – 8 of 8) sorted by relevance
/system/nfc/utils/test/ |
D | ringbuffer_test.cc | 9 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 19 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 24 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 42 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 47 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 52 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 62 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 70 EXPECT_EQ((size_t)8, ringbuffer_size(rb)); in TEST() 75 EXPECT_EQ((size_t)13, ringbuffer_size(rb)); in TEST() 88 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() [all …]
|
/system/bt/osi/test/ |
D | ringbuffer_test.cc | 10 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 20 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); in TEST() 25 EXPECT_EQ((size_t)10, ringbuffer_size(rb)); // Ensure size doesn't change in TEST() 43 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 48 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 53 EXPECT_EQ((size_t)5, ringbuffer_size(rb)); in TEST() 63 EXPECT_EQ((size_t)0, ringbuffer_size(rb)); in TEST() 71 EXPECT_EQ((size_t)8, ringbuffer_size(rb)); in TEST() 76 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.cc | 54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() function 77 if (length > ringbuffer_size(rb)) length = ringbuffer_size(rb); in ringbuffer_delete() 91 CHECK((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek() 94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() 95 ? ringbuffer_size(rb) - offset in ringbuffer_peek()
|
/system/nfc/utils/ |
D | ringbuffer.cc | 54 size_t ringbuffer_size(const ringbuffer_t* rb) { in ringbuffer_size() function 77 if (length > ringbuffer_size(rb)) length = ringbuffer_size(rb); in ringbuffer_delete() 91 assert((size_t)offset <= ringbuffer_size(rb)); in ringbuffer_peek() 94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() 95 ? ringbuffer_size(rb) - offset in ringbuffer_peek()
|
/system/bt/btif/src/ |
D | btif_debug_btsnoop.cc | 149 (ringbuffer_size(rb_src) + BLOCK_SIZE - 1) / BLOCK_SIZE; in btsnoop_compress() 205 ringbuffer_size(buffer)); in btif_debug_btsnoop_dump() 216 while (ringbuffer_size(ringbuffer) > 0) { in btif_debug_btsnoop_dump()
|
/system/nfc/src/adaptation/ |
D | debug_nfcsnoop.cc | 92 (ringbuffer_size(rb_src) + BLOCK_SIZE - 1) / BLOCK_SIZE; in nfcsnoop_compress() 166 ringbuffer_size(buffer)); in debug_nfcsnoop_dump() 177 while (ringbuffer_size(ringbuffer) > 0) { in debug_nfcsnoop_dump()
|
/system/nfc/utils/include/ |
D | ringbuffer.h | 43 size_t ringbuffer_size(const ringbuffer_t* rb);
|
/system/bt/osi/include/ |
D | ringbuffer.h | 43 size_t ringbuffer_size(const ringbuffer_t* rb);
|