summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2009-06-19 09:27:35 -0700
committerAmith Yamasani <yamasani@google.com>2009-06-25 00:40:50 -0700
commit0f1e11e219c9e89bb4a939cd864eb03087e784be (patch)
treed48f409383ea3b6d667eb2c9a25238d99f9a9145 /res
parenta54672f3a983766cf1dce754b3887807fcb723fa (diff)
downloadpackages_apps_settings-0f1e11e219c9e89bb4a939cd864eb03087e784be.zip
packages_apps_settings-0f1e11e219c9e89bb4a939cd864eb03087e784be.tar.gz
packages_apps_settings-0f1e11e219c9e89bb4a939cd864eb03087e784be.tar.bz2
Track native processes.
Add gauge to detail screen and make it look like the item from summary screen. Some string changes.
Diffstat (limited to 'res')
-rw-r--r--res/layout/power_usage_details.xml81
-rw-r--r--res/layout/preference_powergauge.xml2
-rw-r--r--res/values/strings.xml18
-rw-r--r--res/xml/power_usage_summary.xml5
4 files changed, 67 insertions, 39 deletions
diff --git a/res/layout/power_usage_details.xml b/res/layout/power_usage_details.xml
index 8aa625f..ea7cfb3 100644
--- a/res/layout/power_usage_details.xml
+++ b/res/layout/power_usage_details.xml
@@ -22,55 +22,70 @@
android:id="@+id/all_details"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:paddingRight="6dip"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:orientation="vertical">
- <!-- Details header - icon, label and percentage -->
- <RelativeLayout
+ <LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical">
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:paddingLeft="12dip"
+ android:paddingRight="?android:attr/scrollbarSize">
+
+ <ImageView
+ android:id="@+id/icon"
+ android:layout_width="48dip"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="6dip"
+ android:layout_gravity="center" />
- <LinearLayout
- android:orientation="vertical"
- android:layout_alignParentLeft="true"
- android:layout_width="fill_parent"
+ <RelativeLayout
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingTop="6dip"
- android:paddingBottom="6dip"
- android:paddingRight="6dip"
- android:paddingLeft="6dip" >
- <!-- application name -->
+ android:layout_marginRight="8dip"
+ android:layout_marginTop="2dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
<TextView android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textStyle="bold"
android:singleLine="true"
+ android:layout_marginTop="2dip"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_toLeftOf="@+id/battery_percentage"
android:ellipsize="marquee"
- android:layout_marginBottom="2dip" />
- <!-- application version -->
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
<TextView android:id="@+id/battery_percentage"
- android:layout_marginTop="-4dip"
- android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceSmall" />
- </LinearLayout>
-
- <!-- application icon -->
- <ImageView android:id="@+id/icon"
- android:layout_width="@android:dimen/app_icon_size"
- android:layout_height="@android:dimen/app_icon_size"
- android:layout_alignParentRight="true"
- android:paddingTop="6dip"
- android:paddingBottom="6dip"
- android:paddingRight="6dip"
- android:scaleType="fitCenter" />
- </RelativeLayout>
-
+ android:singleLine="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignBottom="@+id/name"
+ android:layout_gravity="bottom"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textStyle="bold"/>
+ <ImageView
+ android:id="@+id/gauge"
+ android:background="#80404040"
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:layout_marginTop="5dip"
+ android:layout_below="@id/battery_percentage"
+ android:layout_gravity="center_vertical" />
+ <TextView android:id="@+id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@id/gauge"
+ android:layout_below="@id/gauge"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ />
+ </RelativeLayout>
+ </LinearLayout>
<TextView
style="?android:attr/listSeparatorTextViewStyle"
diff --git a/res/layout/preference_powergauge.xml b/res/layout/preference_powergauge.xml
index b47f6c0..7aafec1 100644
--- a/res/layout/preference_powergauge.xml
+++ b/res/layout/preference_powergauge.xml
@@ -61,7 +61,7 @@
<ImageView
android:id="@+id/appGauge"
- android:background="#2e2e2e"
+ android:background="#80404040"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginTop="5dip"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 2dd2f84..63b343d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1647,7 +1647,13 @@ found in the list of installed applications.</string>
<!-- Battery usage since user reset the stats -->
<string name="battery_since_reset">Battery use since reset</string>
<!-- Battery usage duration -->
- <string name="battery_stats_duration">Use duration - <xliff:g id="time">%1$s</xliff:g></string>
+ <string name="battery_stats_duration"><xliff:g id="time">%1$s</xliff:g> since unplugged</string>
+ <!-- CPU awake time title -->
+ <string name="awake">Device awake time</string>
+ <!-- Wifi on time -->
+ <string name="wifi_on_time">WiFi on time</string>
+ <!-- Bluetooth on time -->
+ <string name="bluetooth_on_time">WiFi on time</string>
<!-- Application name and battery usage percentage -->
<string name="usage_name_percent"><xliff:g id="name">%1$s</xliff:g>" - "
<xliff:g id="percent">%2$s</xliff:g>"%%"</string>
@@ -1705,6 +1711,9 @@ found in the list of installed applications.</string>
<!-- Label for bluetooth settings -->
<string name="battery_action_bluetooth">Bluetooth settings</string>
+ <!-- Description for voice call detail -->
+ <string name="battery_desc_voice">Battery used by voice calls</string>
+
<!-- Description for standby detail -->
<string name="battery_desc_standby">Battery used when phone is idle</string>
@@ -1747,7 +1756,12 @@ found in the list of installed applications.</string>
<string name="menu_stats_total">Usage totals</string>
<!-- Menu label for refreshing with latest usage numbers -->
<string name="menu_stats_refresh">Refresh</string>
-
+
+ <!-- Label for kernel threads -->
+ <string name="process_kernel_label">Android OS</string>
+ <!-- Label for mediaserver process -->
+ <string name="process_mediaserver_label">Mediaserver</string>
+
<!-- Text-To-Speech (TTS) settings --><skip />
<!-- Title of setting on main settings screen. This item will take the user to the screen to tweak settings related to the text-to-speech functionality -->
<string name="tts_settings">Speech synthesis</string>
diff --git a/res/xml/power_usage_summary.xml b/res/xml/power_usage_summary.xml
index 450e438..b49b140 100644
--- a/res/xml/power_usage_summary.xml
+++ b/res/xml/power_usage_summary.xml
@@ -15,7 +15,6 @@
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
- android:title="@string/battery_since_unplugged">
- <PreferenceCategory
- android:key="app_list"/>
+ android:title="@string/battery_since_unplugged"
+ android:key="app_list">
</PreferenceScreen>