summaryrefslogtreecommitdiffstats
path: root/DeviceSettings/res
diff options
context:
space:
mode:
authorAndrew Dodd <atd7@cornell.edu>2012-06-17 12:16:05 -0400
committerAndrew Dodd <atd7@cornell.edu>2012-06-17 12:16:05 -0400
commitf5a640bbed057a3b4af7f2720a8a99cc4d8f158d (patch)
tree551418934fce87a5d1e73336bdf8fd8c8102256b /DeviceSettings/res
parent02d3dd24907604e7f61f1baa15d3662c42b437fa (diff)
downloaddevice_samsung_n7000-f5a640bbed057a3b4af7f2720a8a99cc4d8f158d.zip
device_samsung_n7000-f5a640bbed057a3b4af7f2720a8a99cc4d8f158d.tar.gz
device_samsung_n7000-f5a640bbed057a3b4af7f2720a8a99cc4d8f158d.tar.bz2
DeviceSettings: Control vibrator strength
Change-Id: I504f483cf8ef30274ceb2742d87be380aadacf6b
Diffstat (limited to 'DeviceSettings/res')
-rw-r--r--DeviceSettings/res/values-de/arrays.xml8
-rw-r--r--DeviceSettings/res/values-de/strings.xml5
-rw-r--r--DeviceSettings/res/values/arrays.xml16
-rw-r--r--DeviceSettings/res/values/strings.xml5
-rw-r--r--DeviceSettings/res/xml/haptic_preferences.xml13
5 files changed, 47 insertions, 0 deletions
diff --git a/DeviceSettings/res/values-de/arrays.xml b/DeviceSettings/res/values-de/arrays.xml
index 982125b..6f5dda7 100644
--- a/DeviceSettings/res/values-de/arrays.xml
+++ b/DeviceSettings/res/values-de/arrays.xml
@@ -42,6 +42,14 @@
<item>100</item>
</string-array>
+ <string-array name="vibrator_intensity_entries">
+ <item>0%</item>
+ <item>25%</item>
+ <item>50% (Standard)</item>
+ <item>75%</item>
+ <item>100%</item>
+ </string-array>
+
<string-array name="hspa_entries">
<item>Nur UMTS</item>
<item>Nur HSDPA</item>
diff --git a/DeviceSettings/res/values-de/strings.xml b/DeviceSettings/res/values-de/strings.xml
index cf1e922..4d0589e 100644
--- a/DeviceSettings/res/values-de/strings.xml
+++ b/DeviceSettings/res/values-de/strings.xml
@@ -29,6 +29,11 @@
<string name="touchkey_light_title_head">Aktiviere Tastenbeleuchtung</string>
<string name="touchkey_light_summary_head">Tasten leuchten auf während der Birdschirm aktiv ist</string>
+ <string name="category_haptic_title">Haptik</string>
+ <string name="vibrator_subcat_title">Vibrator</string>
+ <string name="vibrator_intensity_title_head">Vibrator Intensität</string>
+ <string name="vibrator_intensity_summary_head">Setze Vibrator Intensität</string>
+
<string name="category_radio_title">Mobilfunk</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Aktiviert HSDPA/HSUPA</string>
diff --git a/DeviceSettings/res/values/arrays.xml b/DeviceSettings/res/values/arrays.xml
index 894157d..e75ee6e 100644
--- a/DeviceSettings/res/values/arrays.xml
+++ b/DeviceSettings/res/values/arrays.xml
@@ -84,6 +84,22 @@
<item>100</item>
</string-array>
+ <string-array name="vibrator_intensity_entries">
+ <item>0%</item>
+ <item>25%</item>
+ <item>50% (Default)</item>
+ <item>75%</item>
+ <item>100%</item>
+ </string-array>
+
+ <string-array name="vibrator_intensity_entries_values" translatable="false">
+ <item>0</item>
+ <item>25</item>
+ <item>50</item>
+ <item>75</item>
+ <item>100</item>
+ </string-array>
+
<string-array name="hspa_entries">
<item>UMTS Only</item>
<item>HSDPA Only</item>
diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml
index 6259102..5c38440 100644
--- a/DeviceSettings/res/values/strings.xml
+++ b/DeviceSettings/res/values/strings.xml
@@ -29,6 +29,11 @@
<string name="touchkey_light_title_head">Enable keys backlight</string>
<string name="touchkey_light_summary_head">Light up touch keys when screen is on</string>
+ <string name="category_haptic_title">Haptic</string>
+ <string name="vibrator_subcat_title">Vibrator</string>
+ <string name="vibrator_intensity_title_head">Vibrator Intensity</string>
+ <string name="vibrator_intensity_summary_head">Set vibrator intensity</string>
+
<string name="category_radio_title">Radio</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Enable HSDPA/HSUPA</string>
diff --git a/DeviceSettings/res/xml/haptic_preferences.xml b/DeviceSettings/res/xml/haptic_preferences.xml
new file mode 100644
index 0000000..31c0e21
--- /dev/null
+++ b/DeviceSettings/res/xml/haptic_preferences.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <PreferenceCategory
+ android:title="@string/vibrator_subcat_title">
+ <com.cyanogenmod.settings.device.VibratorIntensity
+ android:key="vibrator_intensity"
+ android:title="@string/vibrator_intensity_title_head"
+ android:summary="@string/vibrator_intensity_summary_head"
+ android:entries="@array/vibrator_intensity_entries"
+ android:entryValues="@array/vibrator_intensity_entries_values"
+ android:defaultValue="50" />
+ </PreferenceCategory>
+</PreferenceScreen>