Lines Matching refs:p_format
1160 static bool checkPriForTag(AndroidLogFormat* p_format, const char* tag, in checkPriForTag() argument
1162 return android_log_shouldPrintLine(p_format, tag, pri) && in checkPriForTag()
1163 !android_log_shouldPrintLine(p_format, tag, in checkPriForTag()
1170 AndroidLogFormat* p_format = android_log_format_new(); in TEST() local
1172 android_log_addFilterRule(p_format, "*:i"); in TEST()
1174 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_INFO)); in TEST()
1175 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == in TEST()
1177 android_log_addFilterRule(p_format, "*"); in TEST()
1178 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_DEBUG)); in TEST()
1179 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
1180 android_log_addFilterRule(p_format, "*:v"); in TEST()
1181 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_VERBOSE)); in TEST()
1182 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
1183 android_log_addFilterRule(p_format, "*:i"); in TEST()
1184 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_INFO)); in TEST()
1185 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == in TEST()
1188 android_log_addFilterRule(p_format, tag); in TEST()
1189 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_VERBOSE)); in TEST()
1190 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
1191 android_log_addFilterRule(p_format, "random:v"); in TEST()
1192 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_VERBOSE)); in TEST()
1193 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
1194 android_log_addFilterRule(p_format, "random:d"); in TEST()
1195 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_DEBUG)); in TEST()
1196 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) > 0); in TEST()
1197 android_log_addFilterRule(p_format, "random:w"); in TEST()
1198 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_WARN)); in TEST()
1199 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == in TEST()
1202 android_log_addFilterRule(p_format, "crap:*"); in TEST()
1203 EXPECT_TRUE(checkPriForTag(p_format, "crap", ANDROID_LOG_VERBOSE)); in TEST()
1205 android_log_shouldPrintLine(p_format, "crap", ANDROID_LOG_VERBOSE) > 0); in TEST()
1208 EXPECT_TRUE(android_log_addFilterRule(p_format, "random:z") < 0); in TEST()
1209 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_WARN)); in TEST()
1210 EXPECT_TRUE(android_log_shouldPrintLine(p_format, tag, ANDROID_LOG_DEBUG) == in TEST()
1214 EXPECT_TRUE(android_log_addFilterString(p_format, " ") == 0); in TEST()
1215 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_WARN)); in TEST()
1218 EXPECT_TRUE(android_log_addFilterString(p_format, "*:s random:d ") == 0); in TEST()
1219 EXPECT_TRUE(checkPriForTag(p_format, tag, ANDROID_LOG_DEBUG)); in TEST()
1221 EXPECT_TRUE(android_log_addFilterString(p_format, "*:s random:z") < 0); in TEST()
1226 android_log_formatLogLine(p_format, in TEST()
1233 android_log_format_free(p_format); in TEST()