aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemavi Ulusoy <doc.divxm@gmail.com>2022-07-27 22:23:36 +0300
committerSemavi Ulusoy <doc.divxm@gmail.com>2022-07-27 23:05:33 +0300
commit50a980a192cfeb0ae7501d19ace15a36cdb58adf (patch)
treea098c3180ae38bce3d39d8048dbacb54eeed474d
parentcf07613e3486be7cdaa549527ae6c76db211d51b (diff)
deviceparts: import resources from hardware_oplus/OplusParts
Change-Id: I23e546c07aca58efaec37163cf21502be0c97598
-rw-r--r--res/drawable/ic_custom_seekbar_minus.xml25
-rw-r--r--res/drawable/ic_custom_seekbar_plus.xml25
-rw-r--r--res/drawable/ic_custom_seekbar_reset.xml25
-rw-r--r--res/drawable/ic_down_icon.xml8
-rw-r--r--res/drawable/ic_intensity_icon.xml8
-rw-r--r--res/drawable/ic_logo.pngbin0 -> 1887 bytes
-rw-r--r--res/drawable/ic_middle_icon.xml8
-rw-r--r--res/drawable/ic_slider.xml8
-rw-r--r--res/drawable/ic_up_icon.xml8
-rw-r--r--res/drawable/ic_usb2_fc.xml8
-rw-r--r--res/values/arrays.xml97
-rw-r--r--res/values/colors.xml20
-rw-r--r--res/values/strings.xml61
13 files changed, 300 insertions, 1 deletions
diff --git a/res/drawable/ic_custom_seekbar_minus.xml b/res/drawable/ic_custom_seekbar_minus.xml
new file mode 100644
index 0000000..e1df45d
--- /dev/null
+++ b/res/drawable/ic_custom_seekbar_minus.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018-2022 crDroid Android 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="24.0dp"
+ android:height="24.0dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0" >
+ <path
+ android:fillColor="?android:attr/colorControlNormal"
+ android:pathData="M19,13H5V11H19V13Z" />
+</vector>
diff --git a/res/drawable/ic_custom_seekbar_plus.xml b/res/drawable/ic_custom_seekbar_plus.xml
new file mode 100644
index 0000000..02d7f23
--- /dev/null
+++ b/res/drawable/ic_custom_seekbar_plus.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018-2022 crDroid Android 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="24.0dp"
+ android:height="24.0dp"
+ android:viewportWidth="48.0"
+ android:viewportHeight="48.0" >
+ <path
+ android:fillColor="?android:attr/colorControlNormal"
+ android:pathData="M38.0,26.0L26.0,26.0l0.0,12.0l-4.0,0.0L22.0,26.0L10.0,26.0l0.0,-4.0l12.0,0.0L22.0,10.0l4.0,0.0l0.0,12.0l12.0,0.0l0.0,4.0z" />
+</vector>
diff --git a/res/drawable/ic_custom_seekbar_reset.xml b/res/drawable/ic_custom_seekbar_reset.xml
new file mode 100644
index 0000000..6c866f5
--- /dev/null
+++ b/res/drawable/ic_custom_seekbar_reset.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2018-2022 crDroid Android 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="24.0dp"
+ android:height="24.0dp"
+ android:viewportWidth="24.0"
+ android:viewportHeight="24.0" >
+ <path
+ android:fillColor="?android:attr/colorControlNormal"
+ android:pathData="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z" />
+</vector>
diff --git a/res/drawable/ic_down_icon.xml b/res/drawable/ic_down_icon.xml
new file mode 100644
index 0000000..7435819
--- /dev/null
+++ b/res/drawable/ic_down_icon.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="@color/config_icon_tint"
+ android:pathData="M9,4H15V12H19.84L12,19.84L4.16,12H9V4Z" />
+</vector>
diff --git a/res/drawable/ic_intensity_icon.xml b/res/drawable/ic_intensity_icon.xml
new file mode 100644
index 0000000..ff8e90c
--- /dev/null
+++ b/res/drawable/ic_intensity_icon.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="@color/config_icon_tint"
+ android:pathData="M10.04,20.4H7.12C6.19,20.4 5.3,20 4.64,19.36C4,18.7 3.6,17.81 3.6,16.88V7.12C3.6,6.19 4,5.3 4.64,4.64C5.3,4 6.19,3.62 7.12,3.62H10.04V20.4M7.12,2A5.12,5.12 0 0,0 2,7.12V16.88C2,19.71 4.29,22 7.12,22H11.65V2H7.12M5.11,8C5.11,9.04 5.95,9.88 7,9.88C8.03,9.88 8.87,9.04 8.87,8C8.87,6.96 8.03,6.12 7,6.12C5.95,6.12 5.11,6.96 5.11,8M17.61,11C18.72,11 19.62,11.89 19.62,13C19.62,14.12 18.72,15 17.61,15C16.5,15 15.58,14.12 15.58,13C15.58,11.89 16.5,11 17.61,11M16.88,22A5.12,5.12 0 0,0 22,16.88V7.12C22,4.29 19.71,2 16.88,2H13.65V22H16.88Z" />
+</vector>
diff --git a/res/drawable/ic_logo.png b/res/drawable/ic_logo.png
new file mode 100644
index 0000000..e40ae95
--- /dev/null
+++ b/res/drawable/ic_logo.png
Binary files differ
diff --git a/res/drawable/ic_middle_icon.xml b/res/drawable/ic_middle_icon.xml
new file mode 100644
index 0000000..141d34c
--- /dev/null
+++ b/res/drawable/ic_middle_icon.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="@color/config_icon_tint"
+ android:pathData="M23 12L19 8V11H14.82C14.4 9.84 13.3 9 12 9S9.6 9.84 9.18 11H5L2 8V16L5 13H9.18C9.6 14.16 10.7 15 12 15S14.4 14.16 14.82 13H19V16L23 12Z" />
+</vector>
diff --git a/res/drawable/ic_slider.xml b/res/drawable/ic_slider.xml
new file mode 100644
index 0000000..2a9cf05
--- /dev/null
+++ b/res/drawable/ic_slider.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="?android:attr/colorControlNormal" >
+ <path android:fillColor="#000" android:pathData="M7,1A2,2 0 0,0 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3A2,2 0 0,0 17,1H7M7,3H17V21H7V3M9,6V18H15V6H9M10,7H14V11H10V7M10,13H14V17H10V13Z" />
+</vector>
diff --git a/res/drawable/ic_up_icon.xml b/res/drawable/ic_up_icon.xml
new file mode 100644
index 0000000..7ee3a95
--- /dev/null
+++ b/res/drawable/ic_up_icon.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="@color/config_icon_tint"
+ android:pathData="M15,20H9V12H4.16L12,4.16L19.84,12H15V20Z" />
+</vector>
diff --git a/res/drawable/ic_usb2_fc.xml b/res/drawable/ic_usb2_fc.xml
new file mode 100644
index 0000000..8ce9b7a
--- /dev/null
+++ b/res/drawable/ic_usb2_fc.xml
@@ -0,0 +1,8 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path android:fillColor="@color/config_icon_tint"
+ android:pathData="M23,11H20V4L15,14H18V22M12,8H4V6H12M12.67,4H11V2H5V4H3.33A1.33,1.33 0 0,0 2,5.33V20.67C2,21.4 2.6,22 3.33,22H12.67C13.4,22 14,21.4 14,20.67V5.33A1.33,1.33 0 0,0 12.67,4Z" />
+</vector>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 10697ba..bf5b43c 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -80,4 +80,101 @@
<item>12</item>
<item>13</item>
</string-array>
+
+ <!-- OplusParts -->
+ <string-array name="notification_slider_usage_entries" translatable="false">
+ <item>@string/notification_slider_for_notification</item>
+ <item>@string/notification_slider_for_flashlight</item>
+ <item>@string/notification_slider_for_brightness</item>
+ <item>@string/notification_slider_for_rotation</item>
+ <item>@string/notification_slider_for_ringer</item>
+ <item>@string/notification_slider_for_notification_ringer</item>
+ </string-array>
+
+ <string-array name="notification_slider_usage_entry_values" translatable="false">
+ <item>1</item>
+ <item>2</item>
+ <item>3</item>
+ <item>4</item>
+ <item>5</item>
+ <item>6</item>
+ </string-array>
+
+ <string-array name="notification_slider_mode_entries" translatable="false">
+ <item>@string/notification_slider_mode_total_silence</item>
+ <item>@string/notification_slider_mode_priority_only</item>
+ <item>@string/notification_slider_mode_none</item>
+ </string-array>
+
+ <string-array name="notification_slider_mode_entry_values" translatable="false">
+ <item>10</item>
+ <item>12</item>
+ <item>13</item>
+ </string-array>
+
+ <string-array name="notification_slider_flashlight_entries" translatable="false">
+ <item>@string/notification_slider_flashlight_off</item>
+ <item>@string/notification_slider_flashlight_on</item>
+ <item>@string/notification_slider_flashlight_blink</item>
+ </string-array>
+
+ <string-array name="notification_slider_flashlight_entry_values" translatable="false">
+ <item>20</item>
+ <item>21</item>
+ <item>22</item>
+ </string-array>
+
+ <string-array name="notification_slider_brightness_entries" translatable="false">
+ <item>@string/notification_slider_brightness_auto</item>
+ <item>@string/notification_slider_brightness_brightest</item>
+ <item>@string/notification_slider_brightness_darkest</item>
+ </string-array>
+
+ <string-array name="notification_slider_brightness_entry_values" translatable="false">
+ <item>30</item>
+ <item>31</item>
+ <item>32</item>
+ </string-array>
+
+ <string-array name="notification_slider_rotation_entries" translatable="false">
+ <item>@string/notification_slider_rotation_auto</item>
+ <item>@string/notification_slider_rotation_portrait</item>
+ <item>@string/notification_slider_rotation_landscape_90</item>
+ <item>@string/notification_slider_rotation_landscape_270</item>
+ </string-array>
+
+ <string-array name="notification_slider_rotation_entry_values" translatable="false">
+ <item>40</item>
+ <item>41</item>
+ <item>42</item>
+ <item>43</item>
+ </string-array>
+
+ <string-array name="notification_slider_ringer_entries" translatable="false">
+ <item>@string/notification_slider_ringer_normal</item>
+ <item>@string/notification_slider_ringer_vibrate</item>
+ <item>@string/notification_slider_ringer_silent</item>
+ </string-array>
+
+ <string-array name="notification_slider_ringer_entry_values" translatable="false">
+ <item>50</item>
+ <item>51</item>
+ <item>52</item>
+ </string-array>
+
+ <string-array name="notification_ringer_slider_mode_entries" translatable="false">
+ <item>@string/notification_slider_mode_total_silence</item>
+ <item>@string/notification_slider_ringer_silent</item>
+ <item>@string/notification_slider_mode_priority_only</item>
+ <item>@string/notification_slider_ringer_vibrate</item>
+ <item>@string/notification_slider_mode_none</item>
+ </string-array>
+
+ <string-array name="notification_ringer_slider_mode_entry_values" translatable="false">
+ <item>60</item>
+ <item>65</item>
+ <item>62</item>
+ <item>64</item>
+ <item>63</item>
+ </string-array>
</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..70a1f05
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016-2022 crDroid Android 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.
+-->
+<resources>
+
+ <color name="config_icon_tint">?android:attr/colorControlNormal</color>
+</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 53a8680..17bf8aa 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<resources>
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name">PartsBin</string>
<string name="device_title">Additional device settings</string>
<string name="device_summary">Adjust unique device settings</string>
@@ -270,4 +270,63 @@
<string name="touchscreen_gesture_action_ambient_display">Show ambient display</string>
<string name="touchscreen_gesture_action_wake_device">Wake device</string>
+ <!-- OplusParts -->
+ <string name="oplusparts_title">Oplus Parts</string>
+
+ <!-- OplusParts - Notification slider -->
+ <string name="notification_slider_category_title">Alert slider</string>
+ <string name="notification_slider_title">Alert slider settings</string>
+ <string name="notification_slider_selection_dialog_title">Action</string>
+ <string name="notification_slider_top_position">Top position</string>
+ <string name="notification_slider_middle_position">Middle position</string>
+ <string name="notification_slider_bottom_position">Bottom position</string>
+ <string name="notification_slider_mode_total_silence">Total silence</string>
+ <string name="notification_slider_mode_alarms_only">Alarms only</string>
+ <string name="notification_slider_mode_priority_only">Priority only</string>
+ <string name="notification_slider_mode_none">All</string>
+
+ <string name="notification_slider_usage_title">Use slider for</string>
+ <string name="notification_slider_for_notification">Notification</string>
+ <string name="notification_slider_for_flashlight">Flashlight</string>
+ <string name="notification_slider_for_brightness">Brightness</string>
+ <string name="notification_slider_for_rotation">Rotation</string>
+ <string name="notification_slider_for_ringer">Ringer</string>
+ <string name="notification_slider_for_notification_ringer">Notification and ringer</string>
+
+ <string name="notification_slider_flashlight_off">Off</string>
+ <string name="notification_slider_flashlight_on">On</string>
+ <string name="notification_slider_flashlight_blink">Blink</string>
+
+ <string name="notification_slider_brightness_auto">Auto</string>
+ <string name="notification_slider_brightness_brightest">Brightest</string>
+ <string name="notification_slider_brightness_darkest">Darkest</string>
+
+ <string name="notification_slider_rotation_auto">Auto</string>
+ <string name="notification_slider_rotation_portrait">Portrait</string>
+ <string name="notification_slider_rotation_landscape_90">Landscape (90°)</string>
+ <string name="notification_slider_rotation_landscape_270">Landscape (270°)</string>
+
+ <string name="notification_slider_ringer_normal">Normal</string>
+ <string name="notification_slider_ringer_vibrate">Vibrate</string>
+ <string name="notification_slider_ringer_silent">Silent</string>
+
+ <!-- OplusParts - Vibration control -->
+ <string name="vib_strength_title_head">Strength</string>
+ <string name="vib_strength_summary_head">Define the strength of the vibrator</string>
+
+ <!-- OplusParts - Custom seekbar -->
+ <string name="custom_seekbar_value">Value: <xliff:g id="v">%s</xliff:g></string>
+ <string name="custom_seekbar_default_value">by default</string>
+ <string name="custom_seekbar_default_value_to_set">Default value: <xliff:g id="v">%s</xliff:g>\nLong tap to set</string>
+ <string name="custom_seekbar_default_value_is_set">Default value is set</string>
+
+ <!-- OplusParts - USB 2.0 Force FastCharge -->
+ <string name="usb_title">USB</string>
+ <string name="usb2_fc_title">Fast charge</string>
+ <string name="usb2_fc_summary">Force fast charging of up to 900mA in USB 2.0 mode</string>
+
+ <!-- OplusParts - Touchscreen Gestures -->
+ <string name="touchscreen_gestures_category_title">Touchscreen Gestures</string>
+ <string name="touchscreen_gestures_title">Screen-Off Gestures</string>
+ <string name="touchscreen_gestures_summary">Perform various touchscreen gestures for quick actions</string>
</resources>