summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2015-12-10 18:10:18 -0800
committerDanesh M <daneshm90@gmail.com>2015-12-10 18:10:18 -0800
commit699d345030efb8b8d081ea68e000edc19c1a4860 (patch)
tree91f9d5832e06946711a50128ac97ccf4c88eae20 /packages/SystemUI/res
parentd37c80a8844445ed6ae4952af2c8fa893c4dc5b6 (diff)
downloadframeworks_base-699d345030efb8b8d081ea68e000edc19c1a4860.zip
frameworks_base-699d345030efb8b8d081ea68e000edc19c1a4860.tar.gz
frameworks_base-699d345030efb8b8d081ea68e000edc19c1a4860.tar.bz2
SystemUI : port performance profile toggle
Change-Id: Ife1e7c62d36cddf1dcd17d5538d0e6c8ea27bee3
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/drawable/ic_qs_perf_profile.xml34
-rw-r--r--packages/SystemUI/res/values/cm_arrays.xml18
-rw-r--r--packages/SystemUI/res/values/cm_strings.xml24
3 files changed, 76 insertions, 0 deletions
diff --git a/packages/SystemUI/res/drawable/ic_qs_perf_profile.xml b/packages/SystemUI/res/drawable/ic_qs_perf_profile.xml
new file mode 100644
index 0000000..2ce5d1f
--- /dev/null
+++ b/packages/SystemUI/res/drawable/ic_qs_perf_profile.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="64dp"
+ android:width="64dp"
+ android:viewportHeight="48"
+ android:viewportWidth="48">
+
+ <group
+ android:name="base_gauge">
+
+ <path android:pathData="M24,8c8.8,0,16,7.2,16,16s-7.2,16-16,16S8,32.8,8,24S15.2,8,24,8 M24,4C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4
+ L24,4z M24,20c-2.2,0-4,1.8-4,4s1.8,4,4,4s4-1.8,4-4S26.2,20,24,20z M32.5,13.5c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2
+ S33.6,13.5,32.5,13.5z M15.5,13.5c-1.1,0-2,0.9-2,2s0.9,2,2,2s2-0.9,2-2S16.6,13.5,15.5,13.5z M15.5,30.5c-1.1,0-2,0.9-2,2
+ c0,1.1,0.9,2,2,2s2-0.9,2-2C17.5,31.4,16.6,30.5,15.5,30.5z"
+
+ android:fillColor="#FFFFFFFF"/>
+
+ </group>
+
+ <group
+ android:name="needle"
+ android:pivotX="24"
+ android:pivotY="24"
+ android:rotation="-135">
+
+ <path
+ android:strokeColor="#FFFFFFFF"
+ android:strokeWidth="4"
+ android:strokeLineCap="round"
+ android:pathData="M 24,24 h 12"/>
+ </group>
+
+
+</vector> \ No newline at end of file
diff --git a/packages/SystemUI/res/values/cm_arrays.xml b/packages/SystemUI/res/values/cm_arrays.xml
index cabf612..9bd31f0 100644
--- a/packages/SystemUI/res/values/cm_arrays.xml
+++ b/packages/SystemUI/res/values/cm_arrays.xml
@@ -36,4 +36,22 @@
<item>W</item> <!-- West -->
<item>NW</item> <!-- North west -->
</string-array>
+
+ <!-- Performance profiles description-->
+ <string-array name="perf_profile_description" translatable="false">
+ <item>@string/accessibility_quick_settings_perf_profile_pwrsv</item>
+ <item>@string/accessibility_quick_settings_perf_profile_bias_power</item>
+ <item>@string/accessibility_quick_settings_perf_profile_bal</item>
+ <item>@string/accessibility_quick_settings_perf_profile_bias_perf</item>
+ <item>@string/accessibility_quick_settings_perf_profile_perf</item>
+ </string-array>
+
+ <!-- Performance profiles announcement-->
+ <string-array name="perf_profile_announcement" translatable="false">
+ <item>@string/accessibility_quick_settings_perf_profile_changed_pwrsv</item>
+ <item>@string/accessibility_quick_settings_perf_profile_changed_bias_power</item>
+ <item>@string/accessibility_quick_settings_perf_profile_changed_bal</item>
+ <item>@string/accessibility_quick_settings_perf_profile_changed_bias_perf</item>
+ <item>@string/accessibility_quick_settings_perf_profile_changed_perf</item>
+ </string-array>
</resources>
diff --git a/packages/SystemUI/res/values/cm_strings.xml b/packages/SystemUI/res/values/cm_strings.xml
index af767a7..03b9a47 100644
--- a/packages/SystemUI/res/values/cm_strings.xml
+++ b/packages/SystemUI/res/values/cm_strings.xml
@@ -129,4 +129,28 @@
<!-- Announcement made when the screen timeout tile changes (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_quick_settings_screen_timeout_changed">Screen timeout changed to <xliff:g id="timeout" example="30 seconds">%s</xliff:g>.</string>
+ <string name="qs_tile_performance">Battery mode</string>
+
+ <!-- Content description of the battery mode tile in quick settings when on, power save mode (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_pwrsv">Battery mode: power save mode.</string>
+ <!-- Content description of the battery mode tile in quick settings when on, balanced mode (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_bal">Battery mode: balanced mode.</string>
+ <!-- Content description of the battery mode tile in quick settings when on, performance mode (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_perf">Battery mode: performance mode.</string>
+ <!-- Content description of the battery mode tile in quick settings when on, efficiency mode (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_bias_power">Battery mode: efficiency mode.</string>
+ <!-- Content description of the battery mode tile in quick settings when on, quick mode (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_bias_perf">Battery mode: quick mode.</string>
+
+ <!-- Announcement made when the battery mode tile changes to power save (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_changed_pwrsv">Battery mode changed to power save mode.</string>
+ <!-- Announcement made when the battery mode tile changes to balanced (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_changed_bal">Battery mode changed to balanced mode.</string>
+ <!-- Announcement made when the battery mode tile changes to performance (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_changed_perf">Battery mode changed to performance mode.</string>
+ <!-- Announcement made when the battery mode tile changes to efficiency (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_changed_bias_power">Battery mode changed to efficiency mode.</string>
+ <!-- Announcement made when the battery mode tile changes to quick (not shown on the screen). [CHAR LIMIT=NONE] -->
+ <string name="accessibility_quick_settings_perf_profile_changed_bias_perf">Battery mode changed to quick mode.</string>
+ <string name="quick_settings_performance_profile_detail_title">Battery mode</string>
</resources>