/system/logging/logd/ |
D | SerializedLogBufferTest.cpp | 39 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 …]
|
D | ChattyLogBufferTest.cpp | 25 .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()
|
D | LogBufferTest.cpp | 184 .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 …]
|
D | LogUtils.h | 78 return (id == LOG_ID_MAIN) || (id == LOG_ID_SYSTEM) || in worstUidEnabledForLogid()
|
D | SerializedFlushToStateTest.cpp | 304 log_chunks[LOG_ID_MAIN].emplace_back(std::move(chunk)); in TEST() 309 state.Prune(LOG_ID_MAIN); in TEST()
|
D | LogAudit.cpp | 332 rc = logbuf->Log(LOG_ID_MAIN, now, uid, pid, tid, newstr, in logPrint() 336 notify |= 1 << LOG_ID_MAIN; in logPrint()
|
D | CommandListener.cpp | 77 if (!android::base::ParseInt(argv[1], &log_id, static_cast<int>(LOG_ID_MAIN), in LogIdCommand()
|
D | logd_test.cpp | 476 '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/ |
D | liblog_default_tag.cpp | 50 __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()
|
D | log_id_test.cpp | 56 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()
|
D | log_wrap_test.cpp | 37 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()
|
D | liblog_host_test.cpp | 54 __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()
|
D | liblog_test.cpp | 321 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 …]
|
D | liblog_global_state.cpp | 98 __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()
|
D | logprint_test.cpp | 100 constexpr uint32_t kLid = LOG_ID_MAIN; in TEST()
|
/system/logging/liblog/ |
D | logger_name.cpp | 25 [LOG_ID_MAIN] = "main", 38 log_id = LOG_ID_MAIN; in android_log_id_to_name()
|
D | logger_write.cpp | 277 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/ |
D | log.h | 142 LOG_ID_MAIN = 0, enumerator
|
/system/libbase/ |
D | logging.cpp | 119 case LOG_ID_MAIN: in log_id_tToLogId() 136 return LOG_ID_MAIN; in LogIdTolog_id_t()
|
/system/logging/logcat/ |
D | logcat.cpp | 742 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()
|