Home
last modified time | relevance | path

Searched refs:MessageBuffer (Results 1 – 5 of 5) sorted by relevance

/system/connectivity/wifilogd/
Dmessage_buffer.cpp29 MessageBuffer::MessageBuffer(size_t size) in MessageBuffer() function in android::wifilogd::MessageBuffer
34 bool MessageBuffer::Append(const uint8_t* message, uint16_t message_len) { in Append()
46 bool MessageBuffer::CanFitEver(uint16_t length) const { in CanFitEver()
51 bool MessageBuffer::CanFitNow(uint16_t length) const { in CanFitNow()
57 void MessageBuffer::Clear() { in Clear()
62 std::tuple<const uint8_t*, size_t> MessageBuffer::ConsumeNextMessage() { in ConsumeNextMessage()
78 void MessageBuffer::Rewind() { read_pos_ = 0; } in Rewind()
82 void MessageBuffer::AppendHeader(uint16_t message_len) { in AppendHeader()
88 void MessageBuffer::AppendRawBytes(const void* data_start, size_t data_len) { in AppendRawBytes()
Dmessage_buffer.h33 class MessageBuffer {
40 explicit ScopedRewinder(NONNULL MessageBuffer* buffer) : buffer_(buffer) {} in ScopedRewinder()
44 MessageBuffer* const buffer_;
48 explicit MessageBuffer(size_t size);
110 DISALLOW_COPY_AND_ASSIGN(MessageBuffer);
Dcommand_processor.h85 MessageBuffer current_log_buffer_;
Dcommand_processor.cpp212 MessageBuffer::ScopedRewinder rewinder(&current_log_buffer_); in Dump()
/system/connectivity/wifilogd/tests/
Dmessage_buffer_unittest.cpp30 constexpr size_t kHeaderSizeBytes = MessageBuffer::GetHeaderSize();
61 MessageBuffer buffer_;
332 EXPECT_DEATH(MessageBuffer{kHeaderSizeBytes}, "Check failed"); in TEST_F()