Lines Matching refs:content
165 struct content { in __android_log_pmsg_file_read() struct
168 } * content; in __android_log_pmsg_file_read() local
171 struct listnode content; in __android_log_pmsg_file_read() member
302 list_init(&names->content); in __android_log_pmsg_file_read()
351 list_for_each_safe(node, n, &names->content) { in __android_log_pmsg_file_read()
352 content = node_to_item(node, struct content, node); in __android_log_pmsg_file_read()
353 if (log_msg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
354 list_remove(&content->node); in __android_log_pmsg_file_read()
355 free(content); in __android_log_pmsg_file_read()
360 content = static_cast<struct content*>( in __android_log_pmsg_file_read()
361 calloc(1, sizeof(content->node) + hdr_size + log_msg.entry.len)); in __android_log_pmsg_file_read()
362 if (!content) { in __android_log_pmsg_file_read()
366 memcpy(&content->entry, &log_msg.entry, hdr_size + log_msg.entry.len); in __android_log_pmsg_file_read()
369 list_for_each_reverse(node, &names->content) { in __android_log_pmsg_file_read()
370 if ((node_to_item(node, struct content, node))->entry.nsec < log_msg.entry.nsec) { in __android_log_pmsg_file_read()
374 list_add_head(node, &content->node); in __android_log_pmsg_file_read()
391 list_for_each_safe(content_node, m, &names->content) { in __android_log_pmsg_file_read()
394 content = node_to_item(content_node, struct content, node); in __android_log_pmsg_file_read()
395 add_len = content->entry.len - tag_len - sizeof(prio); in __android_log_pmsg_file_read()
398 free(content); in __android_log_pmsg_file_read()
407 free(content); in __android_log_pmsg_file_read()
414 while (sequence < content->entry.nsec) { in __android_log_pmsg_file_read()
427 free(content); in __android_log_pmsg_file_read()
435 free(content); in __android_log_pmsg_file_read()
438 memcpy(buf + len, (char*)&content->entry + content->entry.hdr_size + tag_len + sizeof(prio), in __android_log_pmsg_file_read()
442 sequence = content->entry.nsec + ANDROID_LOG_PMSG_FILE_SEQUENCE; in __android_log_pmsg_file_read()
445 free(content); in __android_log_pmsg_file_read()