Lines Matching refs:elem
51 static enum match_type Identical(const LogBufferElement& elem, const LogBufferElement& last) { in Identical() argument
52 ssize_t lenl = elem.msg_len(); in Identical()
56 if (elem.uid() != last.uid()) return DIFFERENT; in Identical()
57 if (elem.pid() != last.pid()) return DIFFERENT; in Identical()
58 if (elem.tid() != last.tid()) return DIFFERENT; in Identical()
61 if (elem.realtime().nsec() > (last.realtime().nsec() + 60 * NS_PER_SEC)) return DIFFERENT; in Identical()
64 const char* msgl = elem.msg(); in Identical()
69 if (elem.log_id() == LOG_ID_EVENTS && lenl == sizeof(android_log_event_int_t) && in Identical()
71 elem.GetTag() == LIBLOG_LOG_TAG) { in Identical()
102 void ChattyLogBuffer::LogInternal(LogBufferElement&& elem) { in LogInternal() argument
104 if (elem.log_id() == LOG_ID_SECURITY) { in LogInternal()
105 SimpleLogBuffer::LogInternal(std::move(elem)); in LogInternal()
108 int log_id = elem.log_id(); in LogInternal()
112 last_logged_elements_[log_id].emplace(elem); in LogInternal()
113 SimpleLogBuffer::LogInternal(std::move(elem)); in LogInternal()
118 enum match_type match = Identical(elem, current_last); in LogInternal()
130 last_logged_elements_[log_id].emplace(elem); in LogInternal()
131 SimpleLogBuffer::LogInternal(std::move(elem)); in LogInternal()
138 last_logged_elements_[log_id].emplace(std::move(elem)); in LogInternal()
148 reinterpret_cast<android_log_event_int_t*>(const_cast<char*>(elem.msg())); in LogInternal()
154 last_logged_elements_[log_id].emplace(std::move(elem)); in LogInternal()
159 last_logged_elements_[log_id].emplace(std::move(elem)); in LogInternal()
174 last_logged_elements_[log_id].emplace(std::move(elem)); in LogInternal()