Home
last modified time | relevance | path

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

/system/nfc/utils/test/
Dringbuffer_test.cc9 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/
Dringbuffer_test.cc10 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/
Dringbuffer.cc54 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/
Dringbuffer.cc54 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/
Dbtif_debug_btsnoop.cc149 (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/
Ddebug_nfcsnoop.cc92 (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/
Dringbuffer.h43 size_t ringbuffer_size(const ringbuffer_t* rb);
/system/bt/osi/include/
Dringbuffer.h43 size_t ringbuffer_size(const ringbuffer_t* rb);