Home
last modified time | relevance | path

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

/system/logging/liblog/
Dlogger_write.cpp180 static void file_logger(const struct __android_log_message* log_message);
283 static void filestream_logger(const struct __android_log_message* log_message, FILE* stream) { in filestream_logger() argument
300 log_message->priority > ANDROID_LOG_SILENT ? ANDROID_LOG_FATAL : log_message->priority; in filestream_logger()
304 if (log_message->file != nullptr) { in filestream_logger()
306 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in filestream_logger()
307 tid, log_message->file, log_message->line, log_message->message); in filestream_logger()
310 log_message->tag ? log_message->tag : "nullptr", priority_char, timestamp, getpid(), in filestream_logger()
311 tid, log_message->message); in filestream_logger()
315 static void file_logger(const struct __android_log_message* log_message) { in file_logger() argument
338 filestream_logger(log_message, stream); in file_logger()
[all …]
/system/logging/logd/
DSerializedLogChunkTest.cpp35 static const char log_message[] = "log message"; in TEST() local
36 size_t expected_total_len = sizeof(SerializedLogEntry) + sizeof(log_message); in TEST()
42 auto* entry = chunk.Log(1234, time, 0, 1, 2, log_message, sizeof(log_message)); in TEST()
50 EXPECT_EQ(sizeof(log_message), entry->msg_len()); in TEST()
51 EXPECT_STREQ(log_message, entry->msg()); in TEST()
60 static const char log_message[] = "this is a log message"; in TEST() local
61 size_t individual_message_size = sizeof(SerializedLogEntry) + sizeof(log_message); in TEST()
67 EXPECT_NE(nullptr, chunk.Log(1, log_time(), 1000, 1, 1, log_message, sizeof(log_message))); in TEST()
70 EXPECT_NE(nullptr, chunk.Log(2, log_time(), 1000, 2, 1, log_message, sizeof(log_message))); in TEST()
73 EXPECT_NE(nullptr, chunk.Log(3, log_time(), 1000, 3, 1, log_message, sizeof(log_message))); in TEST()
DReplayMessages.cpp442 __android_log_set_logger([](const struct __android_log_message* log_message) { in main() argument
443 if (log_message->priority < ANDROID_LOG_ERROR) { in main()
446 __android_log_stderr_logger(log_message); in main()
/system/update_engine/aosp/
Dlogging_android.cc147 void operator()(const struct __android_log_message* log_message) { in operator ()() argument
153 log_message->message != nullptr ? log_message->message : ""; in operator ()()
155 WriteToFd(GetPrefix(log_message)); in operator ()()
167 string GetPrefix(const struct __android_log_message* log_message) { in GetPrefix() argument
184 if (log_message->file) { in GetPrefix()
185 ss << "[" << LogPriorityToCString(log_message->priority) << ':' in GetPrefix()
186 << log_message->file << '(' << log_message->line << ")] "; in GetPrefix()
208 void operator()(const struct __android_log_message* log_message) { in operator ()() argument
209 if (log_message->file != nullptr && log_message->line != 0) { in operator ()()
210 __android_log_message formatted = *log_message; in operator ()()
[all …]
/system/logging/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/logging/liblog/include/android/
Dlog.h213 typedef void (*__android_logger_function)(const struct __android_log_message* log_message);
233 void __android_log_write_log_message(struct __android_log_message* log_message) __INTRODUCED_IN(30);
255 void __android_log_logd_logger(const struct __android_log_message* log_message) __INTRODUCED_IN(30);
265 void __android_log_stderr_logger(const struct __android_log_message* log_message)
/system/libbase/
Dlogging.cpp318 __android_log_message log_message = {sizeof(__android_log_message), lg_id, priority, tag, in LogdLogChunk() local
320 __android_log_logd_logger(&log_message); in LogdLogChunk()
400 __android_log_set_logger([](const struct __android_log_message* log_message) { in SetLogger() argument
401 auto log_id = log_id_tToLogId(log_message->buffer_id); in SetLogger()
402 auto severity = PriorityToLogSeverity(log_message->priority); in SetLogger()
404 Logger()(log_id, severity, log_message->tag, log_message->file, log_message->line, in SetLogger()
405 log_message->message); in SetLogger()
519 __android_log_message log_message = { in LogLine() local
521 __android_log_write_log_message(&log_message); in LogLine()
/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()