Home
last modified time | relevance | path

Searched refs:p_format (Results 1 – 3 of 3) sorted by relevance

/system/core/include/log/
Dlogprint.h66 void android_log_format_free(AndroidLogFormat *p_format);
69 int android_log_setPrintFormat(AndroidLogFormat *p_format,
87 int android_log_addFilterRule(AndroidLogFormat *p_format,
101 int android_log_addFilterString(AndroidLogFormat *p_format,
110 AndroidLogFormat *p_format, const char *tag, android_LogPriority pri);
143 AndroidLogFormat *p_format,
157 AndroidLogFormat *p_format,
/system/core/liblog/
Dlogprint.c163 AndroidLogFormat *p_format, const char *tag) in filterPriForTag() argument
167 for (p_curFilter = p_format->filters in filterPriForTag()
173 return p_format->global_pri; in filterPriForTag()
180 return p_format->global_pri; in filterPriForTag()
188 AndroidLogFormat *p_format, in android_log_shouldPrintLine() argument
192 return pri >= filterPriForTag(p_format, tag); in android_log_shouldPrintLine()
217 LIBLOG_ABI_PUBLIC void android_log_format_free(AndroidLogFormat *p_format) in android_log_format_free() argument
221 p_info = p_format->filters; in android_log_format_free()
230 free(p_format); in android_log_format_free()
241 AndroidLogFormat *p_format, in android_log_setPrintFormat() argument
[all …]
/system/core/liblog/tests/
Dliblog_test.cpp1158 static bool checkPriForTag(AndroidLogFormat *p_format, const char *tag, android_LogPriority pri) { in checkPriForTag() argument
1159 return android_log_shouldPrintLine(p_format, tag, pri) in checkPriForTag()
1160 && !android_log_shouldPrintLine(p_format, tag, (android_LogPriority)(pri - 1)); in checkPriForTag()
1166 AndroidLogFormat *p_format = android_log_format_new(); in TEST() local
1168 android_log_addFilterRule(p_format,"*:i"); in TEST()
1170 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_INFO)); in TEST()
1171 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == 0); in TEST()
1172 android_log_addFilterRule(p_format, "*"); in TEST()
1173 EXPECT_TRUE (checkPriForTag(p_format, tag, ANDROID_LOG_DEBUG)); in TEST()
1174 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
[all …]