Home
last modified time | relevance | path

Searched refs:log_message (Results 1 – 11 of 11) sorted by relevance

/system/core/liblog/
Dlogger_write.cpp244 void __android_log_stderr_logger(const struct __android_log_message* log_message) { in __android_log_stderr_logger() argument
261 log_message->priority > ANDROID_LOG_SILENT ? ANDROID_LOG_FATAL : log_message->priority; in __android_log_stderr_logger()
265 if (log_message->file != nullptr) { in __android_log_stderr_logger()
267 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in __android_log_stderr_logger()
268 tid, log_message->file, log_message->line, log_message->message); in __android_log_stderr_logger()
271 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in __android_log_stderr_logger()
272 tid, log_message->message); in __android_log_stderr_logger()
276 void __android_log_logd_logger(const struct __android_log_message* log_message) { in __android_log_logd_logger() argument
277 int buffer_id = log_message->buffer_id == LOG_ID_DEFAULT ? LOG_ID_MAIN : log_message->buffer_id; in __android_log_logd_logger()
281 const_cast<unsigned char*>(reinterpret_cast<const unsigned char*>(&log_message->priority)); in __android_log_logd_logger()
[all …]
/system/update_engine/
Dlogging_android.cc145 void operator()(const struct __android_log_message* log_message) { in operator ()() argument
151 log_message->message != nullptr ? log_message->message : ""; in operator ()()
153 WriteToFd(GetPrefix(log_message)); in operator ()()
165 string GetPrefix(const struct __android_log_message* log_message) { in GetPrefix() argument
182 if (log_message->file) { in GetPrefix()
183 ss << "[" << LogPriorityToCString(log_message->priority) << ':' in GetPrefix()
184 << log_message->file << '(' << log_message->line << ")] "; in GetPrefix()
206 void operator()(const struct __android_log_message* log_message) { in operator ()() argument
208 logger(log_message); in operator ()()
258 __android_log_set_logger([](const struct __android_log_message* log_message) { in SetupLogging() argument
[all …]
/system/core/liblog/tests/
Dliblog_global_state.cpp62 auto liblog_logger_function = [](const struct __android_log_message* log_message) { in TEST() argument
64 EXPECT_EQ(sizeof(__android_log_message), log_message->struct_size); in TEST()
65 EXPECT_EQ(LOG_ID_DEFAULT, log_message->buffer_id); in TEST()
66 EXPECT_EQ(ANDROID_LOG_WARN, log_message->priority); in TEST()
67 EXPECT_STREQ(LOG_TAG, log_message->tag); in TEST()
68 EXPECT_EQ(expected_file, log_message->file); in TEST()
69 EXPECT_EQ(expected_line, log_message->line); in TEST()
70 EXPECT_EQ(expected_message, log_message->message); in TEST()
113 auto liblog_logger_function = [](const struct __android_log_message* log_message) { in TEST() argument
115 EXPECT_EQ(sizeof(__android_log_message), log_message->struct_size); in TEST()
[all …]
/system/core/logd/
DSerializedLogChunkTest.cpp32 static const char log_message[] = "log message"; in TEST() local
33 size_t expected_total_len = sizeof(SerializedLogEntry) + sizeof(log_message); in TEST()
39 auto* entry = chunk.Log(1234, time, 0, 1, 2, log_message, sizeof(log_message)); in TEST()
47 EXPECT_EQ(sizeof(log_message), entry->msg_len()); in TEST()
48 EXPECT_STREQ(log_message, entry->msg()); in TEST()
57 static const char log_message[] = "this is a log message"; in TEST() local
58 size_t individual_message_size = sizeof(SerializedLogEntry) + sizeof(log_message); in TEST()
64 EXPECT_NE(nullptr, chunk.Log(1, log_time(), 1000, 1, 1, log_message, sizeof(log_message))); in TEST()
67 EXPECT_NE(nullptr, chunk.Log(2, log_time(), 1000, 2, 1, log_message, sizeof(log_message))); in TEST()
70 EXPECT_NE(nullptr, chunk.Log(3, log_time(), 1000, 3, 1, log_message, sizeof(log_message))); in TEST()
DReplayMessages.cpp428 __android_log_set_logger([](const struct __android_log_message* log_message) { in main() argument
429 if (log_message->priority < ANDROID_LOG_ERROR) { in main()
432 __android_log_stderr_logger(log_message); in main()
/system/libbase/
Dliblog_symbols.h28 void (*__android_log_write_log_message)(struct __android_log_message* log_message);
30 void (*__android_log_logd_logger)(const struct __android_log_message* log_message);
31 void (*__android_log_stderr_logger)(const struct __android_log_message* log_message);
Dlogging.cpp323 __android_log_message log_message = {sizeof(__android_log_message), lg_id, priority, tag, in LogdLogChunk() local
325 liblog_functions->__android_log_logd_logger(&log_message); in LogdLogChunk()
405 liblog_functions->__android_log_set_logger([](const struct __android_log_message* log_message) { in SetLogger() argument
406 auto log_id = log_id_tToLogId(log_message->buffer_id); in SetLogger()
407 auto severity = PriorityToLogSeverity(log_message->priority); in SetLogger()
409 Logger()(log_id, severity, log_message->tag, log_message->file, log_message->line, in SetLogger()
410 log_message->message); in SetLogger()
525 __android_log_message log_message = { in LogLine() local
527 liblog_functions->__android_log_write_log_message(&log_message); in LogLine()
/system/core/liblog/include/android/
Dlog.h213 typedef void (*__android_logger_function)(const struct __android_log_message* log_message);
234 void __android_log_write_log_message(struct __android_log_message* log_message) __INTRODUCED_IN(30);
256 void __android_log_logd_logger(const struct __android_log_message* log_message) __INTRODUCED_IN(30);
266 void __android_log_stderr_logger(const struct __android_log_message* log_message)
/system/core/include/android/
Dlog.h213 typedef void (*__android_logger_function)(const struct __android_log_message* log_message);
234 void __android_log_write_log_message(struct __android_log_message* log_message) __INTRODUCED_IN(30);
256 void __android_log_logd_logger(const struct __android_log_message* log_message) __INTRODUCED_IN(30);
266 void __android_log_stderr_logger(const struct __android_log_message* log_message)
/system/keymaster/include/keymaster/km_openssl/
Dopenssl_err.h28 keymaster_error_t TranslateLastOpenSslError(bool log_message = true);
/system/keymaster/km_openssl/
Dopenssl_err.cpp43 keymaster_error_t TranslateLastOpenSslError(bool log_message) { in TranslateLastOpenSslError() argument
46 if (log_message) { in TranslateLastOpenSslError()