Home
last modified time | relevance | path

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

/frameworks/hardware/interfaces/sensorservice/utils/
Ddirect_channel_buffer_reader.cc34 : direct_channel_buffer_(direct_channel_buffer), buffer_size_samples_(buffer_size_samples) {} in DirectChannelBufferReader()
79 ((last_atomic_counter_ + UINT32_MAX - buffer_size_samples_) % UINT32_MAX) + 1; in Read()
80 bool has_enough_consecutive_samples = streak_ >= buffer_size_samples_; in Read()
102 index_ = (index_ + 1) % buffer_size_samples_; in Read()
104 if (num_samples_read > kMaxReadRounds * buffer_size_samples_) { in Read()
109 num_samples_read = std::min(num_samples_read, buffer_size_samples_ - 1); in Read()
137 while (buffer_.size() > buffer_size_samples_ - 1) { in TruncateBuffer()
Ddirect_channel_buffer_reader.h120 const int buffer_size_samples_; variable