Home
last modified time | relevance | path

Searched refs:RingBuffer (Results 1 – 25 of 38) sorted by relevance

12

/external/deqp/framework/delibs/decpp/
DdeRingBuffer.hpp35 class RingBuffer class
38 RingBuffer (int size);
39 ~RingBuffer (void);
70 RingBuffer<T>::RingBuffer (int size) in RingBuffer() function in de::RingBuffer
81 RingBuffer<T>::~RingBuffer () in ~RingBuffer()
87 void RingBuffer<T>::clear (void) in clear()
95 void RingBuffer<T>::resize (int newSize) in resize()
122 inline void RingBuffer<T>::pushFront (const T& elem) in pushFront()
131 void RingBuffer<T>::pushFront (const T* elemBuf, int count) in pushFront()
141 inline T RingBuffer<T>::popBack () in popBack()
[all …]
/external/perfetto/src/base/
Dmetatrace_unittest.cc54 ASSERT_EQ(m::RingBuffer::GetSizeForTesting(), 0u); in TEST_F()
59 ASSERT_EQ(m::RingBuffer::GetSizeForTesting(), 0u); in TEST_F()
81 auto it = m::RingBuffer::GetReadIterator(); in TEST_F()
95 auto it = m::RingBuffer::GetReadIterator(); in TEST_F()
114 auto* record = m::RingBuffer::AppendNewRecord(); in TEST_F()
121 auto it = m::RingBuffer::GetReadIterator(); in TEST_F()
143 for (size_t i = 0; i < m::RingBuffer::kCapacity; i++) in TEST_F()
145 ASSERT_EQ(m::RingBuffer::GetSizeForTesting(), m::RingBuffer::kCapacity); in TEST_F()
146 ASSERT_FALSE(m::RingBuffer::has_overruns()); in TEST_F()
151 ASSERT_TRUE(m::RingBuffer::has_overruns()); in TEST_F()
[all …]
Dmetatrace.cc32 constexpr size_t RingBuffer::kCapacity;
33 std::array<Record, RingBuffer::kCapacity> RingBuffer::records_;
34 std::atomic<bool> RingBuffer::read_task_queued_;
35 std::atomic<uint64_t> RingBuffer::wr_index_;
36 std::atomic<uint64_t> RingBuffer::rd_index_;
37 std::atomic<bool> RingBuffer::has_overruns_;
38 Record RingBuffer::bankruptcy_record_;
71 RingBuffer::Reset(); in Enable()
87 void RingBuffer::Reset() { in Reset()
98 Record* RingBuffer::AppendNewRecord() { in AppendNewRecord()
[all …]
/external/webrtc/common_audio/
Dring_buffer.h27 typedef struct RingBuffer { struct
34 } RingBuffer; typedef
37 RingBuffer* WebRtc_CreateBuffer(size_t element_count, size_t element_size);
38 void WebRtc_InitBuffer(RingBuffer* handle);
52 size_t WebRtc_ReadBuffer(RingBuffer* handle,
58 size_t WebRtc_WriteBuffer(RingBuffer* handle,
67 int WebRtc_MoveReadPtr(RingBuffer* handle, int element_count);
70 size_t WebRtc_available_read(const RingBuffer* handle);
73 size_t WebRtc_available_write(const RingBuffer* handle);
Dring_buffer.c25 static size_t GetBufferReadRegions(RingBuffer* buf, in GetBufferReadRegions()
54 RingBuffer* WebRtc_CreateBuffer(size_t element_count, size_t element_size) { in WebRtc_CreateBuffer()
55 RingBuffer* self = NULL; in WebRtc_CreateBuffer()
60 self = malloc(sizeof(RingBuffer)); in WebRtc_CreateBuffer()
79 void WebRtc_InitBuffer(RingBuffer* self) { in WebRtc_InitBuffer()
89 RingBuffer* self = (RingBuffer*)handle; in WebRtc_FreeBuffer()
98 size_t WebRtc_ReadBuffer(RingBuffer* self, in WebRtc_ReadBuffer()
143 size_t WebRtc_WriteBuffer(RingBuffer* self, in WebRtc_WriteBuffer()
177 int WebRtc_MoveReadPtr(RingBuffer* self, int element_count) { in WebRtc_MoveReadPtr()
214 size_t WebRtc_available_read(const RingBuffer* self) { in WebRtc_available_read()
[all …]
Dring_buffer_unittest.cc26 typedef std::unique_ptr<RingBuffer, FreeBufferDeleter> scoped_ring_buffer;
145 RingBuffer* buffer = WebRtc_CreateBuffer(1, 1); in TEST()
/external/webrtc/modules/audio_processing/agc2/rnn_vad/
Dring_buffer.h25 class RingBuffer {
32 RingBuffer() : tail_(0) {} in RingBuffer() function
33 RingBuffer(const RingBuffer&) = delete;
34 RingBuffer& operator=(const RingBuffer&) = delete;
35 ~RingBuffer() = default;
Dring_buffer_unittest.cc39 RingBuffer<T, S, N> ring_buf; in TestRingBuffer()
73 RingBuffer<int, s, n> ring_buf; in TEST()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_ring_buffer_test.cpp29 TEST(RingBuffer, Construct) { in TEST() argument
30 RingBuffer<int64_t> *RBlong = RingBuffer<int64_t>::New(20); in TEST()
36 RingBuffer<T> *RB; in TestRB()
39 RB = RingBuffer<T>::New(Size); in TestRB()
44 RB = RingBuffer<T>::New(4); in TestRB()
69 TEST(RingBuffer, int64) { in TEST() argument
73 TEST(RingBuffer, LargeStruct) { in TEST() argument
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_ring_buffer.h22 class RingBuffer {
25 static RingBuffer *New(uptr Size) { in New()
27 RingBuffer *RB = reinterpret_cast<RingBuffer*>(Ptr); in New()
64 RingBuffer() {} in RingBuffer() function
65 ~RingBuffer() {} in ~RingBuffer()
66 RingBuffer(const RingBuffer&) = delete;
/external/perfetto/src/trace_processor/
Dtp_metatrace.h91 class RingBuffer {
95 RingBuffer();
96 ~RingBuffer() = default;
115 static RingBuffer* GetInstance() { in GetInstance()
116 static RingBuffer* rb = new RingBuffer(); in GetInstance()
145 if (RingBuffer::GetInstance()->HasOverwritten(record_idx_)) in ~ScopedEvent()
166 RingBuffer::GetInstance()->AppendRecord(event_id);
Dtp_metatrace.cc33 RingBuffer::GetInstance()->ReadAll(fn); in DisableAndReadBuffer()
36 RingBuffer::RingBuffer() { in RingBuffer() function in perfetto::trace_processor::metatrace::RingBuffer
41 void RingBuffer::ReadAll(std::function<void(Record*)> fn) { in ReadAll()
/external/libchrome/base/containers/
Dring_buffer.h25 class RingBuffer {
27 RingBuffer() : current_index_(0) {} in RingBuffer() function
88 Iterator(const RingBuffer<T, kSize>& buffer, size_t index) in Iterator()
91 const RingBuffer<T, kSize>& buffer_;
95 friend class RingBuffer<T, kSize>; variable
128 DISALLOW_COPY_AND_ASSIGN(RingBuffer);
/external/brotli/c/enc/
Dringbuffer.h32 typedef struct RingBuffer { struct
47 } RingBuffer; argument
49 static BROTLI_INLINE void RingBufferInit(RingBuffer* rb) { in RingBufferInit()
57 const BrotliEncoderParams* params, RingBuffer* rb) { in RingBufferSetup()
66 static BROTLI_INLINE void RingBufferFree(MemoryManager* m, RingBuffer* rb) { in RingBufferFree()
73 MemoryManager* m, const uint32_t buflen, RingBuffer* rb) { in RingBufferInitBuffer()
94 const uint8_t* bytes, size_t n, RingBuffer* rb) { in RingBufferWriteTail()
106 MemoryManager* m, const uint8_t* bytes, size_t n, RingBuffer* rb) { in RingBufferWrite()
/external/perfetto/include/perfetto/ext/base/
Dmetatrace.h151 class RingBuffer {
171 PERFETTO_DCHECK(cur_ >= RingBuffer::rd_index_); in ~ReadIterator()
172 PERFETTO_DCHECK(cur_ <= RingBuffer::wr_index_); in ~ReadIterator()
173 RingBuffer::rd_index_.store(cur_, std::memory_order_release); in ~ReadIterator()
177 const Record* operator->() const { return RingBuffer::At(cur_); }
201 friend class RingBuffer;
223 PERFETTO_DCHECK(RingBuffer::IsOnValidTaskRunner()); in GetReadIterator()
266 Record* record = RingBuffer::AppendNewRecord(); in TraceCounter()
281 record_ = RingBuffer::AppendNewRecord(); in ScopedEvent()
/external/scudo/standalone/fuzz/
Dget_error_info_fuzzer.cpp49 std::vector<char> RingBuffer(AllocatorT::getRingBufferSize(), 0); in LLVMFuzzerTestOneInput() local
50 for (size_t i = 0; i < RingBufferBytes.length() && i < RingBuffer.size(); in LLVMFuzzerTestOneInput()
52 RingBuffer[i] = RingBufferBytes[i]; in LLVMFuzzerTestOneInput()
57 RegionInfo.data(), RingBuffer.data(), Memory, in LLVMFuzzerTestOneInput()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dringbuffer.h33 class RingBuffer
36 RingBuffer() : mpRingBuffer(nullptr), mNumEntries(0), mRingHead(0), mRingTail(0) {} in RingBuffer() function
38 ~RingBuffer() { Destroy(); } in ~RingBuffer()
/external/opencensus-java/impl/src/main/java/io/opencensus/impl/internal/
DDisruptorEventQueue.java21 import com.lmax.disruptor.RingBuffer;
106 private final RingBuffer<DisruptorEvent> ringBuffer;
113 RingBuffer<DisruptorEvent> ringBuffer, in DisruptorEventQueue()
134 final RingBuffer<DisruptorEvent> ringBuffer = disruptor.getRingBuffer(); in create()
/external/pigweed/pw_trace_tokenized/
Dtrace_buffer.cc66 pw::ring_buffer::PrefixedEntryRingBuffer& RingBuffer() { in RingBuffer() function in pw::trace::__anon76b02f780111::TraceBuffer
84 void ClearBuffer() { trace_buffer_instance.RingBuffer().Clear(); } in ClearBuffer()
87 return &trace_buffer_instance.RingBuffer(); in GetBuffer()
/external/crosvm/devices/src/usb/xhci/
Dring_buffer.rs39 pub struct RingBuffer { struct
48 impl Display for RingBuffer { argument
55 impl RingBuffer { implementation
58 RingBuffer { in new()
158 let mut transfer_ring = RingBuffer::new(String::new(), gm.clone()); in ring_test_dequeue()
237 let mut transfer_ring = RingBuffer::new(String::new(), gm.clone()); in transfer_ring_test_dequeue_failure()
272 let mut transfer_ring = RingBuffer::new(String::new(), gm.clone()); in ring_test_toggle_cycle()
Dring_buffer_controller.rs15 use super::ring_buffer::RingBuffer;
77 ring_buffer: Mutex<RingBuffer>,
105 ring_buffer: Mutex::new(RingBuffer::new(name, mem)), in new_with_handler()
121 fn lock_ring_buffer(&self) -> MutexGuard<RingBuffer> { in lock_ring_buffer() argument
/external/webrtc/modules/audio_coding/codecs/opus/test/
Daudio_ring_buffer.h18 struct RingBuffer;
52 std::vector<RingBuffer*> buffers_;
/external/webrtc/modules/audio_processing/aecm/
Daecm_core.h46 RingBuffer* farFrameBuf;
47 RingBuffer* nearNoisyFrameBuf;
48 RingBuffer* nearCleanFrameBuf;
49 RingBuffer* outFrameBuf;
/external/perfetto/src/tracing/core/
Dmetatrace_writer.cc73 for (auto it = metatrace::RingBuffer::GetReadIterator(); it; ++it) { in WriteAllAvailableEvents()
93 if (metatrace::RingBuffer::has_overruns()) in WriteAllAvailableEvents()
/external/deqp/executor/
DxeContainerFormatParser.hpp111 de::RingBuffer<deUint8> m_buf;

12