a7xelte: Wire up mDNIe features
authorPaul Keith <javelinanddart@gmail.com>
Wed, 21 Feb 2018 20:53:05 +0000 (21:53 +0100)
committerSourajit Karmakar <sourajit.karmakar@gmail.com>
Tue, 7 Jul 2020 15:01:27 +0000 (11:01 -0400)
Change-Id: I8b5cc809e9c38334906a6e31ed33b099ddbdfeac

overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml [new file with mode: 0644]
overlay/hardware/samsung/AdvancedDisplay/res/values/config.xml [new file with mode: 0644]

diff --git a/overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml b/overlay/hardware/samsung/AdvancedDisplay/res/values/arrays.xml
new file mode 100644 (file)
index 0000000..d918cfb
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2012-2014 The CyanogenMod Project
+     Copyright (C) 2018 The LineageOS 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <string-array name="mdnie_scenario_entries" translatable="false">
+        <item>@string/mdnie_scenario_ui</item>
+        <item>@string/mdnie_scenario_video</item>
+        <item>@string/mdnie_scenario_camera</item>
+        <item>@string/mdnie_scenario_navigation</item>
+        <item>@string/mdnie_scenario_gallery</item>
+        <item>@string/mdnie_scenario_vt</item>
+        <item>@string/mdnie_scenario_browser</item>
+        <item>@string/mdnie_scenario_ebook</item>
+        <item>@string/mdnie_scenario_email</item>
+    </string-array>
+
+    <string-array name="mdnie_scenario_entries_values" translatable="false">
+        <item>0</item>
+        <item>1</item>
+        <item>4</item>
+        <item>5</item>
+        <item>6</item>
+        <item>7</item>
+        <item>8</item>
+        <item>9</item>
+        <item>10</item>
+    </string-array>
+
+    <string-array name="mdnie_accessibility_entries" translatable="false">
+        <item>@string/mdnie_accessibility_normal</item>
+        <item>@string/mdnie_accessibility_inverse</item>
+        <item>@string/mdnie_accessibility_color_blind</item>
+        <item>@string/mdnie_accessibility_grayscale</item>
+        <item>@string/mdnie_accessibility_gray_negative</item>
+    </string-array>
+
+    <string-array name="mdnie_accessibility_entries_values" translatable="false">
+        <item>0</item>
+        <item>1</item>
+        <item>2</item>
+        <item>4</item>
+        <item>5</item>
+    </string-array>
+</resources>
diff --git a/overlay/hardware/samsung/AdvancedDisplay/res/values/config.xml b/overlay/hardware/samsung/AdvancedDisplay/res/values/config.xml
new file mode 100644 (file)
index 0000000..feac004
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+     Copyright (C) 2013 The CyanogenMod Project
+     Copyright (C) 2018 The LineageOS 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.
+-->
+
+<!-- These resources are around just to allow their values to be customized
+     for different hardware and product builds. -->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+    <!-- MDNIE -->
+    <string name="mdnie_scenario_sysfs_file" translatable="false">"/sys/class/mdnie/mdnie/scenario"</string>
+    <string name="mdnie_accessibility_sysfs_file" translatable="false">"/sys/class/mdnie/mdnie/accessibility"</string>
+</resources>