diff options
author | Danesh M <daneshm90@gmail.com> | 2015-12-14 11:18:15 -0800 |
---|---|---|
committer | Danesh M <daneshm90@gmail.com> | 2015-12-14 11:22:43 -0800 |
commit | bd273f0108ff02062ef4601570393d3322c0890c (patch) | |
tree | 97a85313eb45326f28cc6202ce55f08f1e80f483 /packages/SystemUI/res | |
parent | c055fcad62f1376ed223a588ae8795a679fa93ee (diff) | |
download | frameworks_base-bd273f0108ff02062ef4601570393d3322c0890c.zip frameworks_base-bd273f0108ff02062ef4601570393d3322c0890c.tar.gz frameworks_base-bd273f0108ff02062ef4601570393d3322c0890c.tar.bz2 |
SystemUI : Port LiveDisplay tile from 12.1
Change-Id: I2d37b2023dc1a5474cd47cc36709433a5b4fefe5
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r-- | packages/SystemUI/res/drawable/ic_livedisplay_auto.xml | 29 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_livedisplay_day.xml | 30 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_livedisplay_night.xml | 29 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_livedisplay_off.xml | 29 | ||||
-rw-r--r-- | packages/SystemUI/res/drawable/ic_livedisplay_outdoor.xml | 27 | ||||
-rw-r--r-- | packages/SystemUI/res/values/cm_arrays.xml | 27 | ||||
-rw-r--r-- | packages/SystemUI/res/values/cm_strings.xml | 13 |
7 files changed, 184 insertions, 0 deletions
diff --git a/packages/SystemUI/res/drawable/ic_livedisplay_auto.xml b/packages/SystemUI/res/drawable/ic_livedisplay_auto.xml new file mode 100644 index 0000000..39d1f8c --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_livedisplay_auto.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M19,5v14H5V5H19 +M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z +M10.7,13.3h2.6L12,9.2L10.7,13.3z +M14.6,17l-0.8-2.2h-3.6L9.4,17H7.3l3.6-10h2.2l3.6,10H14.6z" /> +</vector>
\ No newline at end of file diff --git a/packages/SystemUI/res/drawable/ic_livedisplay_day.xml b/packages/SystemUI/res/drawable/ic_livedisplay_day.xml new file mode 100644 index 0000000..f454d81 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_livedisplay_day.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M19,5v14H5V5H19 +M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z +M14,12c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2S14,10.9,14,12z +M16,13.7l1.7-1.7L16,10.3V8h-2.3L12,6.3L10.3,8H8v2.3L6.3,12L8,13.7 +V16h2.3l1.7,1.7l1.7-1.7H16V13.7z" /> +</vector>
\ No newline at end of file diff --git a/packages/SystemUI/res/drawable/ic_livedisplay_night.xml b/packages/SystemUI/res/drawable/ic_livedisplay_night.xml new file mode 100644 index 0000000..88a6764 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_livedisplay_night.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M15.5,15.5c0.4-0.4,0.7-0.8,0.9-1.2c-1.9,1-4.3,0.7-5.8-0.9s-1.9-4-0.9-5.8C9.2,7.8,8.8,8.1,8.5,8.5 +c-2,2-2,5.1,0,7.1S13.6,17.5,15.5,15.5z M19,5v14H5V5H19 +M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5 +C21,3.9,20.1,3,19,3L19,3z" /> +</vector>
\ No newline at end of file diff --git a/packages/SystemUI/res/drawable/ic_livedisplay_off.xml b/packages/SystemUI/res/drawable/ic_livedisplay_off.xml new file mode 100644 index 0000000..fb68c00 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_livedisplay_off.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M2.7,2.7L1.3,4.1L3,5.8V19c0,1.1,0.9,2,2,2h13.2l1.7,1.7l1.4-1.4L2.7,2.7z +M5,19V7.8l2.8,2.8L6.3,12L8,13.7 V16h2.3l1.7,1.7l1.4-1.4l2.8,2.8H5z +M7.8,5l-2-2H19c1.1,0,2,0.9,2,2v13.2l-2-2V5H7.8z +M16,8v2.3l1.7,1.7l-1.4,1.4l-5.7-5.7L12,6.3 L13.7,8H16z" /> +</vector>
\ No newline at end of file diff --git a/packages/SystemUI/res/drawable/ic_livedisplay_outdoor.xml b/packages/SystemUI/res/drawable/ic_livedisplay_outdoor.xml new file mode 100644 index 0000000..66ead51 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_livedisplay_outdoor.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#FFFFFF" + android:pathData="M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z +M19,19H5V5h14V19z M14,12.3l-2.8,3.5l-2-2.4L6.5,17h11L14,12.3z" /> +</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 687ab30..0664d05 100644 --- a/packages/SystemUI/res/values/cm_arrays.xml +++ b/packages/SystemUI/res/values/cm_arrays.xml @@ -74,4 +74,31 @@ <item>su</item> <item>adb</item> </string-array> + + <!-- LiveDisplay drawables --> + <string-array name="live_display_drawables" translatable="false"> + <item>@drawable/ic_livedisplay_auto</item> + <item>@drawable/ic_livedisplay_off</item> + <item>@drawable/ic_livedisplay_day</item> + <item>@drawable/ic_livedisplay_night</item> + <item>@drawable/ic_livedisplay_outdoor</item> + </string-array> + + <!-- LiveDisplay description--> + <string-array name="live_display_description" translatable="false"> + <item>@string/accessibility_quick_settings_live_display_auto</item> + <item>@string/accessibility_quick_settings_live_display_off</item> + <item>@string/accessibility_quick_settings_live_display_day</item> + <item>@string/accessibility_quick_settings_live_display_night</item> + <item>@string/accessibility_quick_settings_live_display_outdoor</item> + </string-array> + + <!-- LiveDisplay announcement--> + <string-array name="live_display_announcement" translatable="false"> + <item>@string/accessibility_quick_settings_live_display_changed_auto</item> + <item>@string/accessibility_quick_settings_live_display_changed_off</item> + <item>@string/accessibility_quick_settings_live_display_changed_day</item> + <item>@string/accessibility_quick_settings_live_display_changed_night</item> + <item>@string/accessibility_quick_settings_live_display_changed_outdoor</item> + </string-array> </resources> diff --git a/packages/SystemUI/res/values/cm_strings.xml b/packages/SystemUI/res/values/cm_strings.xml index bb0dc11..1ebee74 100644 --- a/packages/SystemUI/res/values/cm_strings.xml +++ b/packages/SystemUI/res/values/cm_strings.xml @@ -186,4 +186,17 @@ <string name="dynamic_qs_tile_ime_selector_label">IME selector</string> <string name="dynamic_qs_tile_su_label">Root</string> <string name="dynamic_qs_tile_adb_label" translatable="false">ADB</string> + + <!-- LiveDisplay strings --> + <string name="live_display_title" translatable="false">LiveDisplay</string> + <string name="accessibility_quick_settings_live_display_off">LiveDisplay off.</string> + <string name="accessibility_quick_settings_live_display_auto">LiveDisplay: auto mode.</string> + <string name="accessibility_quick_settings_live_display_day">LiveDisplay: day mode.</string> + <string name="accessibility_quick_settings_live_display_night">LiveDisplay: night mode.</string> + <string name="accessibility_quick_settings_live_display_outdoor">LiveDisplay: outdoor mode.</string> + <string name="accessibility_quick_settings_live_display_changed_off">LiveDisplay turned off.</string> + <string name="accessibility_quick_settings_live_display_changed_auto">LiveDisplay changed to auto mode.</string> + <string name="accessibility_quick_settings_live_display_changed_day">LiveDisplay changed to day mode.</string> + <string name="accessibility_quick_settings_live_display_changed_night">LiveDisplay changed to night mode.</string> + <string name="accessibility_quick_settings_live_display_changed_outdoor">LiveDisplay changed to outdoor mode.</string> </resources> |