History log of /frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ViewDumpParser.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8439c6dcb2963c8a0e17ef00fc2a9592b3a066d0 17-Sep-2016 Manu Cornet <manucornet@google.com> Handle the case where window position comes before view map

Test: Tested this change with a device with http://go/ag/1451804 to
make sure the new protocol was understood.

Change-Id: I9c42cfeb27951ae66a77386d0644d84c230a4923
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ViewDumpParser.java
0d857b9028f2702ce439e13feccde8182d40e1e5 22-Apr-2015 Siva Velusamy <vsiva@google.com> Improve hierarchy viewer dump hierarchy latency

Hierarchy Viewer obtains the properties for each view by using
reflection and looking for fields and methods that have the
@ExportedProperty annotation. Using reflection made it quite slow
for large view hierarchies.

This CL adds a new method (encode) to each class that wishes to
export data to hiererachy viewer. Inside this method, the object
can write a sequence of key, value pairs corresponding to the
values it wants exported.

With this change, the dump hierarchy operation that used to take
more than 10 seconds can be performed in a few hundred milliseconds.

Change-Id: I199ac2e7ca3c59ebcfec7e6bd201e134c41fd583
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ViewDumpParser.java