Home | History | Annotate | Download | only in init

Lines Matching full:record

15 """Record the event logs during boot and output them to a file.
17 This script repeats the record of each event log during Android boot specified
57 # The default event tags to record.
261 def get_values(record, tag):
262 """Gets values that matches |tag| from |record|."""
263 keys = [key for key in record.keys() if key[0] == tag]
264 return [record[k] for k in sorted(keys)]
267 def get_last_value(record, tag):
268 """Gets the last value that matches |tag| from |record|."""
269 values = get_values(record, tag)
283 for record in record_list:
285 # Some record might lack values for some tags due to unanticipated
287 # record.
289 len(get_values(record, tag)))
306 for record in record_list:
312 values = get_values(record, tag)
315 # Fill invalid record with 0
319 logging.error('Invalid record found: ' + line.getvalue())
350 end_times = [get_last_value(record, end_tag) for record in record_list
351 if get_last_value(record, end_tag) != 0]
363 record = {}
376 return record
383 record[(tag, pid)] = event_time
390 return record
456 record = do_iteration(
458 record_list.append(record)