Home
last modified time | relevance | path

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

/system/core/logd/
DSerializedLogBuffer.cpp137 bool SerializedLogBuffer::Prune(log_id_t log_id, size_t bytes_to_free, uid_t uid) { in Prune() argument
177 if (buffer_size >= bytes_to_free) { in Prune()
180 bytes_to_free -= buffer_size; in Prune()
192 KickReader(oldest, log_id, bytes_to_free); in Prune()
198 void SerializedLogBuffer::KickReader(LogReaderThread* reader, log_id_t id, size_t bytes_to_free) { in KickReader() argument
199 if (bytes_to_free >= max_size_[id]) { // +100% in KickReader()
209 unsigned long prune_rows = bytes_to_free / 300; in KickReader()
DSerializedLogBuffer.h58 bool Prune(log_id_t log_id, size_t bytes_to_free, uid_t uid) REQUIRES(lock_);
59 void KickReader(LogReaderThread* reader, log_id_t id, size_t bytes_to_free)