Home
last modified time | relevance | path

Searched refs:LOG_ID_MAIN (Results 1 – 20 of 20) sorted by relevance

/system/logging/logd/
DSerializedLogBufferTest.cpp39 log_buffer.SetSize(LOG_ID_MAIN, kLogBufferMinSize); in TEST()
40 log_buffer.Clear(LOG_ID_MAIN, 0); in TEST()
44 log_buffer.Log(LOG_ID_MAIN, log_time(0, 1), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST()
52 log_buffer.Log(LOG_ID_MAIN, log_time(1, size_written), kClearUid, 1, 1, in TEST()
57 log_buffer.Clear(LOG_ID_MAIN, kClearUid); in TEST()
60 log_buffer.Log(LOG_ID_MAIN, log_time(0, 2), kNonClearUid, 1, 1, kDontClearMessage.data(), in TEST()
133 ClearLogsByUid(chunks, kClearUid, kMaxSize, LOG_ID_MAIN, nullptr); in TEST()
136 ClearLogsByUid(chunks, kClearUid, kMaxSize, LOG_ID_MAIN, nullptr); in TEST()
162 ClearLogsByUid(chunks, kClearUid, kMaxSize, LOG_ID_MAIN, nullptr); in TEST()
167 ClearLogsByUid(chunks, kClearUid, kMaxSize, LOG_ID_MAIN, nullptr); in TEST()
[all …]
DChattyLogBufferTest.cpp25 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
93 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
208 make_message(1, 1, 1, LOG_ID_MAIN, "test_tag", "duplicate1"), in TEST_P()
213 make_message(7, 1, 1, LOG_ID_MAIN, "test_tag", "duplicate1"), in TEST_P()
214 make_message(8, 1, 1, LOG_ID_MAIN, "test_tag", "duplicate1"), in TEST_P()
215 make_message(9, 1, 1, LOG_ID_MAIN, "test_tag", "duplicate1"), in TEST_P()
216 make_message(10, 1, 1, LOG_ID_MAIN, "test_tag", "not duplicate1"), in TEST_P()
239 make_message(9, 1, 1, LOG_ID_MAIN, "test_tag", "duplicate1"), in TEST_P()
240 make_message(10, 1, 1, LOG_ID_MAIN, "test_tag", "not duplicate1"), in TEST_P()
253 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
DLogBufferTest.cpp184 .lid = LOG_ID_MAIN, in TEST_P()
199 {{.pid = 1, .tid = 2, .sec = 10000, .nsec = 20001, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
201 {{.pid = 10, .tid = 2, .sec = 10000, .nsec = 20002, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
205 {{.pid = 10, .tid = 2, .sec = 10000, .nsec = 20004, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
213 {{.pid = 4, .tid = 2, .sec = 10000, .nsec = 20008, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
217 {{.pid = 6, .tid = 2, .sec = 10000, .nsec = 20011, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
290 {{.pid = 1, .tid = 2, .sec = 10000, .nsec = 20001, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
292 {{.pid = 10, .tid = 2, .sec = 10000, .nsec = 20002, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
294 {{.pid = 100, .tid = 2, .sec = 10000, .nsec = 20003, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
308 {{.pid = 1, .tid = 2, .sec = 10000, .nsec = 20001, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
[all …]
DLogUtils.h78 return (id == LOG_ID_MAIN) || (id == LOG_ID_SYSTEM) || in worstUidEnabledForLogid()
DSerializedFlushToStateTest.cpp304 log_chunks[LOG_ID_MAIN].emplace_back(std::move(chunk)); in TEST()
309 state.Prune(LOG_ID_MAIN); in TEST()
DLogAudit.cpp332 rc = logbuf->Log(LOG_ID_MAIN, now, uid, pid, tid, newstr, in logPrint()
336 notify |= 1 << LOG_ID_MAIN; in logPrint()
DCommandListener.cpp77 if (!android::base::ParseInt(argv[1], &log_id, static_cast<int>(LOG_ID_MAIN), in LogIdCommand()
Dlogd_test.cpp476 'S', 'i', 'z', 'e', ' ', LOG_ID_MAIN + '0', in TEST()
893 auto logger = android_logger_open(logger_list.get(), LOG_ID_MAIN); in TEST()
/system/logging/liblog/tests/
Dliblog_default_tag.cpp50 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_WARN, nullptr, "message"); in TEST()
64 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_WARN, nullptr, "message"); in TEST()
82 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_WARN, nullptr, "message"); in TEST()
100 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_WARN, nullptr, "message"); in TEST()
123 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_VERBOSE, nullptr, "message"); in TEST()
151 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_VERBOSE, nullptr, "message"); in TEST()
Dlog_id_test.cpp56 EXPECT_LT(0, __android_log_buf_print(LOG_ID_MAIN, ANDROID_LOG_INFO, in TEST()
69 EXPECT_LT(0, __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_INFO, in TEST()
76 LOG_ID_MAIN, ANDROID_LOG_INFO, "TEST__android_log_print", in ConcurrentPrintFn()
Dlog_wrap_test.cpp37 android_logger_list_open(LOG_ID_MAIN, mode, 1000, 0); in read_with_wrap()
53 struct logger* logger = android_logger_open(logger_list, LOG_ID_MAIN); in read_with_wrap()
Dliblog_host_test.cpp54 __android_log_buf_print(LOG_ID_MAIN, ANDROID_LOG_VERBOSE, "tag", "verbose main"); in GenerateLogContent()
55 __android_log_buf_print(LOG_ID_MAIN, ANDROID_LOG_INFO, "tag", "info main"); in GenerateLogContent()
56 __android_log_buf_print(LOG_ID_MAIN, ANDROID_LOG_ERROR, "tag", "error main"); in GenerateLogContent()
Dliblog_test.cpp321 RunLogTests(LOG_ID_MAIN, write_function, check_function); in TEST()
435 EXPECT_LT(0, __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_INFO, tag, message)); in buf_write_test()
455 if ((size_t)log_msg.entry.len != (sizeof(tag) + length + 2) || log_msg.id() != LOG_ID_MAIN) { in buf_write_test()
477 RunLogTests(LOG_ID_MAIN, write_function, check_function); in buf_write_test()
991 EXPECT_LT(0, __android_log_buf_print(LOG_ID_MAIN, ANDROID_LOG_INFO, max_payload_buf, in TEST()
1019 RunLogTests(LOG_ID_MAIN, write_function, check_function); in TEST()
1086 android_logger_list_open(LOG_ID_MAIN, 0, expected_count1, pid)}; in TEST()
1090 android_logger_list_open(LOG_ID_MAIN, 0, expected_count2, pid)}; in TEST()
1097 LOG_FAILURE_RETRY(__android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_INFO, in TEST()
1122 android_logger_list_open(LOG_ID_MAIN, ANDROID_LOG_NONBLOCK, expected_count1, pid)}; in TEST()
[all …]
Dliblog_global_state.cpp98 __android_log_buf_write(LOG_ID_MAIN, ANDROID_LOG_WARN, LOG_TAG, expected_message.c_str()); in TEST()
109 static int expected_buffer_id = LOG_ID_MAIN; in TEST()
Dlogprint_test.cpp100 constexpr uint32_t kLid = LOG_ID_MAIN; in TEST()
/system/logging/liblog/
Dlogger_name.cpp25 [LOG_ID_MAIN] = "main",
38 log_id = LOG_ID_MAIN; in android_log_id_to_name()
Dlogger_write.cpp277 int buffer_id = log_message->buffer_id == LOG_ID_DEFAULT ? LOG_ID_MAIN : log_message->buffer_id; in __android_log_logd_logger()
292 return __android_log_buf_write(LOG_ID_MAIN, prio, tag, msg); in __android_log_write()
298 if (log_message->buffer_id != LOG_ID_DEFAULT && log_message->buffer_id != LOG_ID_MAIN && in __android_log_write_log_message()
342 sizeof(__android_log_message), LOG_ID_MAIN, prio, tag, nullptr, 0, buf}; in __android_log_vprint()
362 sizeof(__android_log_message), LOG_ID_MAIN, prio, tag, nullptr, 0, buf}; in __android_log_print()
/system/logging/liblog/include/android/
Dlog.h142 LOG_ID_MAIN = 0, enumerator
/system/libbase/
Dlogging.cpp119 case LOG_ID_MAIN: in log_id_tToLogId()
136 return LOG_ID_MAIN; in LogIdTolog_id_t()
/system/logging/logcat/
Dlogcat.cpp742 id_mask |= (1 << LOG_ID_MAIN) | (1 << LOG_ID_SYSTEM) | (1 << LOG_ID_CRASH); in Run()
835 id_mask = (1 << LOG_ID_MAIN) | (1 << LOG_ID_SYSTEM) | (1 << LOG_ID_CRASH) | in Run()