summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorlithid <long.jeremie@gmail.com>2012-03-14 03:08:14 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-20 00:48:05 +0000
commitada4b1b2eb37ed31d202d54345b21b4065fe1b5f (patch)
tree60ec6686f9d03e3f9de30591fa223dab86e6ba42 /res/xml
parent0b78aafcbb117b7a05f41bac32c0919c6b9a58f3 (diff)
downloadpackages_apps_settings-ada4b1b2eb37ed31d202d54345b21b4065fe1b5f.zip
packages_apps_settings-ada4b1b2eb37ed31d202d54345b21b4065fe1b5f.tar.gz
packages_apps_settings-ada4b1b2eb37ed31d202d54345b21b4065fe1b5f.tar.bz2
Settings: Added cpu info and memory info to About Phone Settings
This is pulled from gingerbread. No code looked like it needed to be re-done. This contains code from the following two commits. shafty023<gameboy45@gmail.com>: http://review.cyanogenmod.com/#change,1774 Keyan Mobli<persiansown@gmail.com>: http://review.cyanogenmod.com/#change,1820 Patchset 2: Fix string constants Patchset 3: - Moved file paths to string constants - Check for meminfo and cpuinfo files, if bad don't show preference Patchset 4: - Created variables for each operation. - Wrote Long to print -1. Patchset 5: - Simplified and refactored Patchset 6: - Fix authorship herp derp Patchset 7: - Show only total memory, available memory would probably cause users to kill apps en masse. Change-Id: Ib0550a5af515ae3a48481412c5c9c504cd80b743
Diffstat (limited to 'res/xml')
-rw-r--r--res/xml/device_info_settings.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/xml/device_info_settings.xml b/res/xml/device_info_settings.xml
index 6322ec4..0666034 100644
--- a/res/xml/device_info_settings.xml
+++ b/res/xml/device_info_settings.xml
@@ -122,6 +122,18 @@
android:title="@string/kernel_version"
android:summary="@string/device_info_default"/>
+ <!-- Device cpu info -->
+ <Preference android:key="device_cpu"
+ style="?android:preferenceInformationStyle"
+ android:title="@string/cpu_info"
+ android:summary="@string/device_info_default"/>
+
+ <!-- Device mem info -->
+ <Preference android:key="device_memory"
+ style="?android:preferenceInformationStyle"
+ android:title="@string/mem_info"
+ android:summary="@string/device_info_default"/>
+
<!-- Mod version -->
<Preference android:key="mod_version"
style="?android:preferenceInformationStyle"