summaryrefslogtreecommitdiffstats
path: root/DeviceSettings/res
diff options
context:
space:
mode:
Diffstat (limited to 'DeviceSettings/res')
-rw-r--r--DeviceSettings/res/values/config.xml4
-rw-r--r--DeviceSettings/res/values/strings.xml5
-rw-r--r--DeviceSettings/res/xml/screen_preferences.xml11
3 files changed, 20 insertions, 0 deletions
diff --git a/DeviceSettings/res/values/config.xml b/DeviceSettings/res/values/config.xml
index 5667f97..b289bd9 100644
--- a/DeviceSettings/res/values/config.xml
+++ b/DeviceSettings/res/values/config.xml
@@ -26,4 +26,8 @@
<string name="intensity_default_value">50</string>
<string name="intensity_min_value">0</string>
+ <!-- S-Pen -->
+ <string name="spen_sysfs_file">"/sys/class/sec/sec_epen"</string>
+ <string name="spen_powersaving_sysfs_file">"/sys/class/sec/sec_epen/epen_saving_mode"</string>
+
</resources>
diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml
index 155e9c2..874adf1 100644
--- a/DeviceSettings/res/values/strings.xml
+++ b/DeviceSettings/res/values/strings.xml
@@ -53,4 +53,9 @@
<string name="use_dock_audio_title_head">Use Dock USB Audio</string>
<string name="use_dock_audio_summary_head">Use the passive audio out on the dock</string>
+ <!-- S-Pen -->
+ <string name="spen_subcat_title">S-Pen</string>
+ <string name="spen_power_save_title_head">Power saving mode</string>
+ <string name="spen_power_save_summary_head">Disable stylus digitizer when S-Pen is in device</string>
+
</resources>
diff --git a/DeviceSettings/res/xml/screen_preferences.xml b/DeviceSettings/res/xml/screen_preferences.xml
index 57d1761..b655618 100644
--- a/DeviceSettings/res/xml/screen_preferences.xml
+++ b/DeviceSettings/res/xml/screen_preferences.xml
@@ -71,4 +71,15 @@
android:defaultValue="3" />
</PreferenceCategory>
+ <!-- S-Pen -->
+ <PreferenceCategory
+ android:key="category_spen"
+ android:title="@string/spen_subcat_title">
+ <!-- S-Pen power saving mode -->
+ <com.cyanogenmod.settings.device.SPenPowerSavingMode
+ android:key="spen_power_save"
+ android:title="@string/spen_power_save_title_head"
+ android:summary="@string/spen_power_save_summary_head" />
+ </PreferenceCategory>
+
</PreferenceScreen>