• Home
  • Raw
  • Download

Lines Matching refs:elem

356   android_log_list_element elem;  in android_log_read_next_internal()  local
359 memset(&elem, 0, sizeof(elem)); in android_log_read_next_internal()
366 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
370 elem.type = EVENT_TYPE_LIST_STOP; in android_log_read_next_internal()
372 elem.complete = true; in android_log_read_next_internal()
373 return elem; in android_log_read_next_internal()
382 elem.type = EVENT_TYPE_LIST_STOP; in android_log_read_next_internal()
383 elem.complete = !context->count[0] && (!context->list_nest_depth || in android_log_read_next_internal()
399 return elem; in android_log_read_next_internal()
402 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
403 elem.complete = true; in android_log_read_next_internal()
404 return elem; in android_log_read_next_internal()
407 elem.type = static_cast<AndroidEventLogType>(context->storage[pos]); in android_log_read_next_internal()
408 switch ((int)elem.type) { in android_log_read_next_internal()
413 elem.len = sizeof(int32_t); in android_log_read_next_internal()
415 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
416 return elem; in android_log_read_next_internal()
421 elem.data.int32 = event_int->data; in android_log_read_next_internal()
423 elem.complete = !context->list_nest_depth && !context->count[0]; in android_log_read_next_internal()
431 return elem; in android_log_read_next_internal()
435 elem.len = sizeof(int64_t); in android_log_read_next_internal()
437 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
438 return elem; in android_log_read_next_internal()
443 elem.data.int64 = event_long->data; in android_log_read_next_internal()
445 elem.complete = !context->list_nest_depth && !context->count[0]; in android_log_read_next_internal()
453 return elem; in android_log_read_next_internal()
458 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
459 elem.complete = true; in android_log_read_next_internal()
460 return elem; in android_log_read_next_internal()
466 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
467 return elem; in android_log_read_next_internal()
469 elem.len = event_string->length; in android_log_read_next_internal()
470 if ((pos + elem.len) > context->len) { in android_log_read_next_internal()
471 elem.len = context->len - pos; /* truncate string */ in android_log_read_next_internal()
472 elem.complete = true; in android_log_read_next_internal()
473 if (!elem.len) { in android_log_read_next_internal()
474 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
475 return elem; in android_log_read_next_internal()
478 elem.data.string = event_string->data; in android_log_read_next_internal()
480 pos += elem.len; in android_log_read_next_internal()
481 elem.complete = !context->list_nest_depth && !context->count[0]; in android_log_read_next_internal()
489 return elem; in android_log_read_next_internal()
494 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
495 elem.complete = true; in android_log_read_next_internal()
496 return elem; in android_log_read_next_internal()
500 elem.complete = context->list_nest_depth >= ANDROID_MAX_LIST_NEST_DEPTH; in android_log_read_next_internal()
502 return elem; in android_log_read_next_internal()
513 return elem; in android_log_read_next_internal()
521 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
522 elem.complete = !context->list_nest_depth; in android_log_read_next_internal()
524 elem.type = EVENT_TYPE_LIST_STOP; in android_log_read_next_internal()
529 return elem; in android_log_read_next_internal()
532 elem.type = EVENT_TYPE_UNKNOWN; in android_log_read_next_internal()
533 return elem; in android_log_read_next_internal()