Loading core/java/com/android/internal/util/cm/QSConstants.java +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ public class QSConstants { public static final String TILE_DDS = "dds"; public static final String TILE_APN = "apn"; public static final String TILE_PROFILES = "profiles"; public static final String TILE_PERFORMANCE = "performance"; // Order matters protected static final ArrayList<String> TILES_DEFAULT = new ArrayList<String>(); Loading Loading @@ -64,5 +65,6 @@ public class QSConstants { TILES_AVAILABLE.add(TILE_DDS); TILES_AVAILABLE.add(TILE_APN); TILES_AVAILABLE.add(TILE_PROFILES); TILES_AVAILABLE.add(TILE_PERFORMANCE); } } packages/SystemUI/res/drawable/ic_qs_perf_profile_bal.xml 0 → 100644 +16 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" 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,4 C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4L24,4Z M14,16c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2s2-0.9,2-2C16,16.9,15.1,16,14,16z M34,16c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2C36,16.9,35.1,16,34,16z M26,20.6V12c0-1.1-0.9-2-2-2s-2,0.9-2,2v8.6 c-1.2,0.7-2,2-2,3.4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C28,22.5,27.2,21.2,26,20.6z" /> </vector> No newline at end of file packages/SystemUI/res/drawable/ic_qs_perf_profile_perf.xml 0 → 100644 +16 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" 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,4 C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4L24,4Z M24,10c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2S25.1,10,24,10z M14,16 c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2s2-0.9,2-2C16,16.9,15.1,16,14,16z M35.7,17c-0.6-0.9-1.8-1.3-2.7-0.7l-7,4.2 C25.4,20.2,24.7,20,24,20c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4c0,0,0,0,0-0.1l7-4.2C36,19.1,36.3,17.9,35.7,17z" /> </vector> No newline at end of file packages/SystemUI/res/drawable/ic_qs_perf_profile_pwrsv.xml 0 → 100644 +17 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" android:pathData="M24,4C13,4,4,13,4,24c0,11,9,20,20,20c11,0,20-9,20-20C44,13,35,4,24,4Z M24,40c-8.8,0-16-7.2-16-16c0-8.8,7.2-16,16-16c8.8,0,16,7.2,16,16C40,32.8,32.8,40,24,40z M22,12c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2 s-0.9,2-2,2C22.9,14,22,13.1,22,12z M36,18c0,1.1-0.9,2-2,2c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2C35.1,16,36,16.9,36,18z M28,24 c0,2.2-1.8,4-4,4c-2.2,0-4-1.8-4-4c0,0,0,0,0-0.1l-7-4.2c-0.9-0.6-1.3-1.8-0.7-2.7c0.6-0.9,1.8-1.3,2.7-0.7l7,4.2 c0.6-0.3,1.2-0.5,1.9-0.5C26.2,20,28,21.8,28,24z" /> </vector> No newline at end of file packages/SystemUI/res/values/cm_arrays.xml +7 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,11 @@ <item>369</item><item>157</item> <item>369</item><item>0</item> </array> <!-- Performance profiles tiles --> <string-array name="perf_profile_drawables" translatable="false"> <item>@drawable/ic_qs_perf_profile_pwrsv</item> <item>@drawable/ic_qs_perf_profile_bal</item> <item>@drawable/ic_qs_perf_profile_perf</item> </string-array> </resources> Loading
core/java/com/android/internal/util/cm/QSConstants.java +2 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ public class QSConstants { public static final String TILE_DDS = "dds"; public static final String TILE_APN = "apn"; public static final String TILE_PROFILES = "profiles"; public static final String TILE_PERFORMANCE = "performance"; // Order matters protected static final ArrayList<String> TILES_DEFAULT = new ArrayList<String>(); Loading Loading @@ -64,5 +65,6 @@ public class QSConstants { TILES_AVAILABLE.add(TILE_DDS); TILES_AVAILABLE.add(TILE_APN); TILES_AVAILABLE.add(TILE_PROFILES); TILES_AVAILABLE.add(TILE_PERFORMANCE); } }
packages/SystemUI/res/drawable/ic_qs_perf_profile_bal.xml 0 → 100644 +16 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" 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,4 C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4L24,4Z M14,16c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2s2-0.9,2-2C16,16.9,15.1,16,14,16z M34,16c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2c1.1,0,2-0.9,2-2C36,16.9,35.1,16,34,16z M26,20.6V12c0-1.1-0.9-2-2-2s-2,0.9-2,2v8.6 c-1.2,0.7-2,2-2,3.4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C28,22.5,27.2,21.2,26,20.6z" /> </vector> No newline at end of file
packages/SystemUI/res/drawable/ic_qs_perf_profile_perf.xml 0 → 100644 +16 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" 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,4 C13,4,4,13,4,24s9,20,20,20s20-9,20-20S35,4,24,4L24,4Z M24,10c-1.1,0-2,0.9-2,2s0.9,2,2,2c1.1,0,2-0.9,2-2S25.1,10,24,10z M14,16 c-1.1,0-2,0.9-2,2c0,1.1,0.9,2,2,2s2-0.9,2-2C16,16.9,15.1,16,14,16z M35.7,17c-0.6-0.9-1.8-1.3-2.7-0.7l-7,4.2 C25.4,20.2,24.7,20,24,20c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4c0,0,0,0,0-0.1l7-4.2C36,19.1,36.3,17.9,35.7,17z" /> </vector> No newline at end of file
packages/SystemUI/res/drawable/ic_qs_perf_profile_pwrsv.xml 0 → 100644 +17 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="64dp" android:height="64dp" android:viewportWidth="48" android:viewportHeight="48"> <path android:fillColor="#FFFFFF" android:pathData="M24,4C13,4,4,13,4,24c0,11,9,20,20,20c11,0,20-9,20-20C44,13,35,4,24,4Z M24,40c-8.8,0-16-7.2-16-16c0-8.8,7.2-16,16-16c8.8,0,16,7.2,16,16C40,32.8,32.8,40,24,40z M22,12c0-1.1,0.9-2,2-2c1.1,0,2,0.9,2,2 s-0.9,2-2,2C22.9,14,22,13.1,22,12z M36,18c0,1.1-0.9,2-2,2c-1.1,0-2-0.9-2-2c0-1.1,0.9-2,2-2C35.1,16,36,16.9,36,18z M28,24 c0,2.2-1.8,4-4,4c-2.2,0-4-1.8-4-4c0,0,0,0,0-0.1l-7-4.2c-0.9-0.6-1.3-1.8-0.7-2.7c0.6-0.9,1.8-1.3,2.7-0.7l7,4.2 c0.6-0.3,1.2-0.5,1.9-0.5C26.2,20,28,21.8,28,24z" /> </vector> No newline at end of file
packages/SystemUI/res/values/cm_arrays.xml +7 −0 Original line number Diff line number Diff line Loading @@ -25,4 +25,11 @@ <item>369</item><item>157</item> <item>369</item><item>0</item> </array> <!-- Performance profiles tiles --> <string-array name="perf_profile_drawables" translatable="false"> <item>@drawable/ic_qs_perf_profile_pwrsv</item> <item>@drawable/ic_qs_perf_profile_bal</item> <item>@drawable/ic_qs_perf_profile_perf</item> </string-array> </resources>