Lines Matching refs:oldest
359 struct android_log_transport_context* oldest = NULL; in android_logger_list_read() local
397 (!oldest || (oldest->logMsg.entry.sec > transp->logMsg.entry.sec) || in android_logger_list_read()
398 ((oldest->logMsg.entry.sec == transp->logMsg.entry.sec) && in android_logger_list_read()
399 (oldest->logMsg.entry.nsec > transp->logMsg.entry.nsec)))) { in android_logger_list_read()
400 oldest = transp; in android_logger_list_read()
405 if (!oldest && (logger_list_internal->mode & ANDROID_LOG_NONBLOCK)) { in android_logger_list_read()
410 } while (!oldest && (ret > 0)); in android_logger_list_read()
411 if (!oldest) { in android_logger_list_read()
415 ret = oldest->ret; in android_logger_list_read()
416 if (ret < oldest->logMsg.entry.hdr_size) { in android_logger_list_read()
420 (oldest->logMsg.entry.hdr_size > sizeof(oldest->logMsg) ? sizeof(oldest->logMsg) in android_logger_list_read()
421 : oldest->logMsg.entry.hdr_size)); in android_logger_list_read()
423 memcpy(log_msg, &oldest->logMsg, ret); in android_logger_list_read()
424 oldest->logMsg.entry.len = 0; /* Mark it as copied */ in android_logger_list_read()