Lines Matching refs:elem

2067   android_log_list_element elem;  in android_log_buffer_to_string()  local
2076 memset(&elem, 0, sizeof(elem)); in android_log_buffer_to_string()
2081 elem = android_log_read_next(context); in android_log_buffer_to_string()
2082 switch ((int)elem.type) { in android_log_buffer_to_string()
2107 outCount = snprintf(strOut, strOutLen + 1, "%" PRId32, elem.data.int32); in android_log_buffer_to_string()
2122 outCount = snprintf(strOut, strOutLen + 1, "%" PRId64, elem.data.int64); in android_log_buffer_to_string()
2137 outCount = snprintf(strOut, strOutLen + 1, "%f", elem.data.float32); in android_log_buffer_to_string()
2147 elem.complete = true; in android_log_buffer_to_string()
2152 if (elem.complete) { in android_log_buffer_to_string()
2156 elem.data.string = const_cast<char*>("<unknown>"); in android_log_buffer_to_string()
2157 elem.len = strlen(elem.data.string); in android_log_buffer_to_string()
2160 if (elem.len <= strOutLen) { in android_log_buffer_to_string()
2161 memcpy(strOut, elem.data.string, elem.len); in android_log_buffer_to_string()
2162 strOut += elem.len; in android_log_buffer_to_string()
2163 strOutLen -= elem.len; in android_log_buffer_to_string()
2166 memcpy(strOut, elem.data.string, strOutLen); in android_log_buffer_to_string()
2174 if (elem.complete) { in android_log_buffer_to_string()
2179 (is_real_element(elem.type) || (elem.type == EVENT_TYPE_LIST_STOP))) { in android_log_buffer_to_string()
2191 } while ((elem.type != EVENT_TYPE_UNKNOWN) && !overflow && !elem.complete); in android_log_buffer_to_string()
2206 if ((elem.type == EVENT_TYPE_UNKNOWN) && !elem.complete) { in android_log_buffer_to_string()