Home
last modified time | relevance | path

Searched refs:severity (Results 1 – 19 of 19) sorted by relevance

/system/core/base/
Dlogging_test.cpp110 #define CHECK_WOULD_LOG_DISABLED(severity) \ argument
111 static_assert(android::base::severity < android::base::FATAL, "Bad input"); \
112 for (size_t i = static_cast<size_t>(android::base::severity) + 1; \
117 EXPECT_FALSE(WOULD_LOG(severity)) << i; \
121 EXPECT_FALSE(WOULD_LOG(::android::base::severity)) << i; \
125 #define CHECK_WOULD_LOG_ENABLED(severity) \ argument
127 i <= static_cast<size_t>(android::base::severity); \
131 EXPECT_TRUE(WOULD_LOG(severity)) << i; \
135 EXPECT_TRUE(WOULD_LOG(::android::base::severity)) << i; \
195 static std::string make_log_pattern(android::base::LogSeverity severity, in make_log_pattern() argument
[all …]
Dlogging.cpp149 void KernelLogger(android::base::LogId, android::base::LogSeverity severity, in KernelLogger() argument
169 int level = kLogSeverityToKernelLogLevel[severity]; in KernelLogger()
188 void StderrLogger(LogId, LogSeverity severity, const char*, const char* file, in StderrLogger() argument
205 char severity_char = log_characters[severity]; in StderrLogger()
224 void LogdLogger::operator()(LogId id, LogSeverity severity, const char* tag, in operator ()() argument
235 int priority = kLogSeverityToAndroidLogPriority[severity]; in operator ()()
346 LogSeverity severity, int error) in LogMessageData() argument
350 severity_(severity), in LogMessageData()
394 LogSeverity severity, int error) in LogMessage() argument
395 : data_(new LogMessageData(file, line, id, severity, error)) { in LogMessage()
[all …]
/system/extras/perfprofd/quipper/base/
Dlogging.h168 #define LOG_IS_ON(severity) \ argument
169 ((::logging::LOG_ ## severity) >= ::logging::GetMinLogLevel())
186 #define LOG_STREAM(severity) COMPACT_GOOGLE_LOG_ ## severity.stream() argument
188 #define LOG(severity) LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity)) argument
189 #define LOG_IF(severity, condition) \ argument
190 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
210 #define PLOG(severity) \ argument
211 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity))
213 #define PLOG_IF(severity, condition) \ argument
214 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
[all …]
Dlogging.cc60 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) in LogMessage() argument
61 : severity_(severity), file_(file), line_(line) { in LogMessage()
72 LogMessage::LogMessage(const char* file, int line, LogSeverity severity, in LogMessage() argument
74 : severity_(severity), file_(file), line_(line) { in LogMessage()
/system/core/base/include/android-base/
Dlogging.h157 #define SEVERITY_LAMBDA(severity) ([&]() { \ argument
165 return (severity); }())
168 #define WOULD_LOG(severity) \ argument
169 UNLIKELY((SEVERITY_LAMBDA(severity)) >= ::android::base::GetMinimumLogSeverity())
178 #define LOG_STREAM(severity) LOG_STREAM_TO(DEFAULT, severity) argument
182 #define LOG_STREAM_TO(dest, severity) \ argument
185 SEVERITY_LAMBDA(severity), -1).stream()
191 #define LOG(severity) LOG_TO(DEFAULT, severity) argument
200 #define LOG_TO(dest, severity) \ argument
201 WOULD_LOG(severity) && \
[all …]
/system/core/init/
Dlog.cpp44 android::base::LogSeverity severity = android::base::ERROR; in selinux_klog_callback() local
46 severity = android::base::WARNING; in selinux_klog_callback()
48 severity = android::base::INFO; in selinux_klog_callback()
55 android::base::KernelLogger(android::base::MAIN, severity, "selinux", nullptr, 0, buf); in selinux_klog_callback()
Dbuiltins.cpp750 android::base::LogSeverity severity; in do_loglevel() local
752 case 7: severity = android::base::DEBUG; break; in do_loglevel()
753 case 6: severity = android::base::INFO; break; in do_loglevel()
755 case 4: severity = android::base::WARNING; break; in do_loglevel()
756 case 3: severity = android::base::ERROR; break; in do_loglevel()
759 case 0: severity = android::base::FATAL; break; in do_loglevel()
764 android::base::SetMinimumLogSeverity(severity); in do_loglevel()
/system/tpm/tpm_manager/server/
Dtpm_util.h22 #define TPM_LOG(severity, result) \ argument
23 LOG(severity) << "TPM error 0x" << std::hex << result << " (" \
/system/connectivity/wifilogd/
Dprotocol.h87 severity = new_severity; in set_severity()
93 MessageSeverity severity; member
/system/core/adb/
Dadb_trace.cpp40 void AdbLogger(android::base::LogId id, android::base::LogSeverity severity, in AdbLogger() argument
43 android::base::StderrLogger(id, severity, tag, file, line, message); in AdbLogger()
45 gLogdLogger(id, severity, tag, file, line, message); in AdbLogger()
/system/connectivity/wifilogd/tests/
Dprotocol_unittest.cpp46 EXPECT_EQ(3U, offsetof(AsciiMessage, severity)); in TEST()
47 EXPECT_EQ(1U, sizeof(AsciiMessage::severity)); in TEST()
/system/extras/simpleperf/
Dmain.cpp56 android::base::ScopedLogSeverity severity(log_severity); in main() local
Dreport_lib_interface.cpp160 android::base::LogSeverity severity; in SetLogSeverity() local
161 if (!GetLogSeverity(log_level, &severity)) { in SetLogSeverity()
166 log_severity_.reset(new android::base::ScopedLogSeverity(severity)); in SetLogSeverity()
Dutils.cpp242 bool GetLogSeverity(const std::string& name, android::base::LogSeverity* severity) { in GetLogSeverity() argument
253 *severity = it->second; in GetLogSeverity()
Dutils.h152 bool GetLogSeverity(const std::string& name, android::base::LogSeverity* severity);
Dgtest_main.cpp188 android::base::ScopedLogSeverity severity(log_severity); in main() local
/system/tpm/attestation/common/
Dtpm_utility_v1.cc32 #define TPM_LOG(severity, result) \ argument
33 LOG(severity) << "TPM error 0x" << std::hex << result << " (" \
/system/tpm/trunks/generator/
Draw_structures_fixed.txt4490 severity
Draw_structures.txt4496 severity