systrace: add support for the new atrace interface

This change updates systrace.py to use the new command line args supported by
the atrace on-device binary.

Change-Id: Ic045db52196fde4b27c535cdb5946158fe6ff0bf
Fix systrace when parsing from a trace file

Change-Id: Iefc5c5dcb3bc1886c7a660b06e715868c91bafbd
systrace: fix CRLF handling

This change cleans up the trace data processing part of systrace.py.  It also
makes the CRLF handling auto-detect the line endings of the incoming data.

Bug: 8327984
Change-Id: Ibc43f50a258ace99c09a539478c2c270e2d0a087
systrace: update to trace-viewer rev 237

Change-Id: I3ebd2235f528d2eae22256027ca547d85d9a0904
systrace: plumb the -a flag through to systrace.py

Change-Id: I93d10fb3c526c3cbe6a19220b489bb327bb3146b
systrace: update to trace-viewer rev 243

Change-Id: I1ef3bcc7228d2f681ea3b08e9bd7af6175865dd5
systrace: update to trace-viewer rev 252

Change-Id: I976a4b587c4e36328ee17ad0bef074fec3a9ca69
systrace: add kernel function tracing support

Change-Id: I7a446c7604ea29ffd58e59114b646720f97bdc85
systrace: update to trace-viewer rev 253

Change-Id: Ida1eb32bf621bcbc8a577adba7238f7f57e37cd5
systrace: update to trace-viewer rev 256

Change-Id: Ifde6f8c2de9edc94c8cd9cda5f765460bdf30066
systrace: fix pipe reading

This change fixes a bug where systrace.py would neglect to read the end of the
data coming from its subprocess pipe.  This caused the --from-file argument to
produce HTML files containing truncated traces.

Change-Id: I265c9000ceff27debe2965a402fead4ff7ff8644
systrace: add support for older platform versions.

This change re-adds the old Systrace script from before JB MR2 and exec's it
from systrace.py when it detects that the device's SDK-version is less than 18.
This change also modifies the pre-JB-MR2 script to generate HTML that is
compatible with the latest script.js and style.css.

Change-Id: I29c3327e95f8fd0a4aab730845abac84e66848ef
systrace: remove the use of a Python 2.7 function

Change-Id: Ic0f4890d450541736f5909273cabcbad2ba3e3fe
Merge tag 'android-4.3_r2.1' into jellybean-mr2.1

Android 4.3 release 2.1