OSDN Git Service

Refactor memory measurement
authorKenny Root <kroot@google.com>
Tue, 14 Dec 2010 00:23:57 +0000 (16:23 -0800)
committerKenny Root <kroot@google.com>
Fri, 17 Dec 2010 17:32:45 +0000 (09:32 -0800)
commite4330890d6996bd1ad65bc6c5ab1dfb39f224ea4
treefdd7c755e1472508723203ab267f1c12a9d248be
parentc88a7ff1efd10374974e45768bde1658cc1d8483
Refactor memory measurement

Move out all the memory measurement to a separate class that can cache
all of its data through orientation changes.

Tweak the display to make it draw large squares for the legend instead
of a 1x1 square. Add padding to the percentage bar chart.

Change-Id: I4cd5bc4ba31a422a55740e8f58e5e571cf9866a5
res/layout/preference_memoryusage.xml
res/values/attrs.xml
res/xml/device_info_memory.xml
src/com/android/settings/deviceinfo/Memory.java
src/com/android/settings/deviceinfo/MemoryMeasurement.java [new file with mode: 0644]
src/com/android/settings/deviceinfo/PercentageBarChart.java