Home
last modified time | relevance | path

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

/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/
Dbroadcast_ring.h178 uint32_t record_count) { in Create() argument
180 CHECK(ring.ValidateGeometry(mmap_size, sizeof(Record), record_count)); in Create()
181 ring.InitializeHeader(sizeof(Record), record_count); in Create()
203 uint32_t record_count = 0; in Import() local
207 record_count = std::atomic_load_explicit( in Import()
208 &ring.header_mmap()->record_count, std::memory_order_relaxed); in Import()
210 bool ok = ring.ValidateGeometry(mmap_size, record_size, record_count); in Import()
219 static constexpr size_t MemorySize(uint32_t record_count) { in MemorySize() argument
220 return sizeof(Header) + sizeof(Record) * record_count; in MemorySize()
321 if (tail - head > record_count()) in Get()
[all …]
/frameworks/native/libs/vr/libbroadcastring/
Dbroadcast_ring_test.cc133 EXPECT_EQ(Ring::Traits::MinCount(), ring.record_count()); in TYPED_TEST()
175 for (uint32_t i = 0; i < ring.record_count(); ++i) in TYPED_TEST()
177 for (uint32_t i = 0; i < ring.record_count(); ++i) { in TYPED_TEST()
189 uint32_t sequence = ring.GetOldestSequence() + ring.record_count(); in TYPED_TEST()
201 for (uint32_t i = 0; i < 2 * ring.record_count(); ++i) { in TYPED_TEST()
206 const uint32_t records_available = std::min(i + 1, ring.record_count()); in TYPED_TEST()
308 EXPECT_EQ(ring.record_count(), imported_ring.record_count()); in TYPED_TEST()
310 if (ring.record_count() != 1) { in TYPED_TEST()
346 EXPECT_EQ(original_ring.record_count(), imported_ring.record_count()); in TEST()
359 EXPECT_NE(original_ring.record_count(), imported_ring.record_count()); in TEST()
[all …]