Permalink
Browse files

galaxys2: move device settings from i9100

Change-Id: I9209974db9ce5b013fc56f2249ff8b4c511d5eaa
  • Loading branch information...
1 parent 447bff4 commit 954a88f71afa570a4022263628498c4c2aa033f3 @codeworkx codeworkx committed Jun 9, 2013
Showing with 3,053 additions and 2 deletions.
  1. +1 −2 Android.mk
  2. +15 −0 DeviceSettings/Android.mk
  3. +30 −0 DeviceSettings/AndroidManifest.xml
  4. BIN DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png
  5. +5 −0 DeviceSettings/res/layout/top.xml
  6. +69 −0 DeviceSettings/res/values-da/arrays.xml
  7. +50 −0 DeviceSettings/res/values-da/strings.xml
  8. +70 −0 DeviceSettings/res/values-de/arrays.xml
  9. +50 −0 DeviceSettings/res/values-de/strings.xml
  10. +60 −0 DeviceSettings/res/values-es/arrays.xml
  11. +43 −0 DeviceSettings/res/values-es/strings.xml
  12. +70 −0 DeviceSettings/res/values-fi/arrays.xml
  13. +50 −0 DeviceSettings/res/values-fi/strings.xml
  14. +75 −0 DeviceSettings/res/values-fr/arrays.xml
  15. +57 −0 DeviceSettings/res/values-fr/strings.xml
  16. +70 −0 DeviceSettings/res/values-hu/arrays.xml
  17. +50 −0 DeviceSettings/res/values-hu/strings.xml
  18. +44 −0 DeviceSettings/res/values-it/strings.xml
  19. +75 −0 DeviceSettings/res/values-nl/arrays.xml
  20. +64 −0 DeviceSettings/res/values-nl/strings.xml
  21. +70 −0 DeviceSettings/res/values-pl/arrays.xml
  22. +50 −0 DeviceSettings/res/values-pl/strings.xml
  23. +62 −0 DeviceSettings/res/values-pt-rBR/arrays.xml
  24. +43 −0 DeviceSettings/res/values-pt-rBR/strings.xml
  25. +68 −0 DeviceSettings/res/values-ru/arrays.xml
  26. +50 −0 DeviceSettings/res/values-ru/strings.xml
  27. +86 −0 DeviceSettings/res/values-zh-rCN/arrays.xml
  28. +65 −0 DeviceSettings/res/values-zh-rCN/strings.xml
  29. +137 −0 DeviceSettings/res/values/arrays.xml
  30. +50 −0 DeviceSettings/res/values/strings.xml
  31. +13 −0 DeviceSettings/res/xml/dock_preferences.xml
  32. +13 −0 DeviceSettings/res/xml/haptic_preferences.xml
  33. +12 −0 DeviceSettings/res/xml/radio_preferences.xml
  34. +83 −0 DeviceSettings/res/xml/screen_preferences.xml
  35. +20 −0 DeviceSettings/res/xml/sensors_preferences.xml
  36. +162 −0 DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java
  37. +72 −0 DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java
  38. +66 −0 DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java
  39. +67 −0 DeviceSettings/src/com/cyanogenmod/settings/device/Hspa.java
  40. +60 −0 DeviceSettings/src/com/cyanogenmod/settings/device/PanelGamma.java
  41. +66 −0 DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java
  42. +112 −0 DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
  43. +84 −0 DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java
  44. +39 −0 DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java
  45. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/TouchkeyTimeout.java
  46. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/TouchscreenSensitivity.java
  47. +143 −0 DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java
  48. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/VibratorIntensity.java
  49. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeMode.java
  50. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeNegative.java
  51. +58 −0 DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeOutdoor.java
  52. +59 −0 DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeScenario.java
View
@@ -14,10 +14,9 @@
# limitations under the License.
#
-LOCAL_PATH := $(call my-dir)
-
ifneq ($(filter i777 i9100 n7000 d710,$(TARGET_DEVICE)),)
+LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
@@ -0,0 +1,15 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := DeviceSettings
+LOCAL_CERTIFICATE := platform
+
+include $(BUILD_PACKAGE)
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.cyanogenmod.settings.device"
+ android:sharedUserId="android.uid.system" >
+
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
+
+ <application android:label="@string/app_name">
+ <activity
+ android:name="com.cyanogenmod.settings.device.DeviceSettings"
+ android:icon="@drawable/ic_launcher_cmdevicesettings"
+ android:label="@string/app_name" >
+ <intent-filter>
+ <action android:name="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" />
+ <action android:name="android.intent.action.MAIN" />
+ </intent-filter>
+ </activity>
+
+ <receiver android:name=".Startup">
+ <intent-filter android:priority="100">
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ </receiver>
+
+ <activity android:name=".ScreenFragmentActivity" />
+ <activity android:name=".RadioFragmentActivity" />
+
+ </application>
+</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,5 @@
+<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/viewPager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" />
+
@@ -0,0 +1,69 @@
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <string-array name="mdnie_scenario_entries">
+ <item>CyanogenMod (Standard)</item>
+ <item>UI</item>
+ <item>Video</item>
+ <item>Varm Video</item>
+ <item>Kold Video</item>
+ <item>Kamera</item>
+ <item>Navigation</item>
+ <item>Galleri</item>
+ <item>VT</item>
+ </string-array>
+
+ <string-array name="mdnie_mode_entries">
+ <item>Dynamisk</item>
+ <item>Standard (Standard)</item>
+ <item>Naturlig</item>
+ <item>Film</item>
+ </string-array>
+
+ <string-array name="mdnie_negative_entries">
+ <item>Normal</item>
+ <item>Negativ</item>
+ </string-array>
+
+ <string-array name="mdnie_outdoor_entries">
+ <item>Fra (Standard)</item>
+ <item>Til</item>
+ </string-array>
+
+ <string-array name="panel_gamma_entries">
+ <item>2.2 (Standard)</item>
+ <item>1.9</item>
+ </string-array>
+
+ <string-array name="touchscreen_sensitivity_entries">
+ <item>10</item>
+ <item>20</item>
+ <item>30</item>
+ <item>50 (Standard)</item>
+ <item>70</item>
+ <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>Kun UMTS</item>
+ <item>Kun HSDPA</item>
+ <item>HSDPA + HSUPA</item>
+ </string-array>
+
+ <string-array name="touchkey_timeout_entries">
+ <item>Aldrig</item>
+ <item>1 sekund</item>
+ <item>2 sekunder</item>
+ <item>3 sekunder (Standard)</item>
+ <item>4 sekunder</item>
+ <item>5 sekunder</item>
+ <item>6 sekunder</item>
+ </string-array>
+</resources>
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Advanced settings</string>
+
+ <string name="category_screen_title">Skærm</string>
+ <string name="screen_colors_title">Farver</string>
+ <string name="mdnie_scenario_title_head">Scenarie</string>
+ <string name="mdnie_scenario_summary_head">Vælg mDNIe-scenarie</string>
+ <string name="mdnie_mode_title_head">Tilstand</string>
+ <string name="mdnie_mode_summary_head">Vælg mDNIe-tilstand</string>
+ <string name="mdnie_negative_title_head">Negativ tilstand</string>
+ <string name="mdnie_negative_summary_head">Slå negative farver til/fra</string>
+ <string name="mdnie_outdoor_title_head">Udendørs tilstand</string>
+ <string name="mdnie_outdoor_summary_head">Slå udendørs tilstand til/fra</string>
+ <string name="panel_gamma_title_head">Gamma</string>
+ <string name="panel_gamma_summary_head">Indstil gamma</string>
+
+ <string name="touchscreen_subcat_title">Touchscreen</string>
+ <string name="touchscreen_sensitivity_title_head">Følsomhed</string>
+ <string name="touchscreen_sensitivity_summary_head">Indstil skærmens følsomhed</string>
+
+ <string name="touchkey_subcat_title">Berøringstaster</string>
+ <string name="touchkey_light_title_head">Brug baggrundslys</string>
+ <string name="touchkey_light_summary_head">Lys tasterne op når skærmen er tændt</string>
+ <string name="touchkey_timeout_title_head">Timeout</string>
+ <string name="touchkey_timeout_summary_head">Tid før lyset slukker</string>
+
+ <string name="category_sensors_title">Sensorer</string>
+ <string name="accelerometer_subcat_title">Accelerometer</string>
+ <string name="use_accelerometer_calibration_title_head">Brug data fra kalibrering</string>
+ <string name="use_accelerometer_calibration_summary_head">Brug værdier fra kalibrering. Udfør kalibrering efter du vælger denne!</string>
+ <string name="calibrate_accelerometer_title_head">Kalibrér</string>
+ <string name="calibrate_accelerometer_summary_head">Læg din telefon på en vandret overflade og tryk her for kalibrering</string>
+ <string name="accelerometer_dialog_head">Kalibrering fuldført</string>
+ <string name="accelerometer_dialog_message">Accelerometeret er kalibreret.</string>
+
+ <string name="category_haptic_title">Haptik</string>
+ <string name="vibrator_subcat_title">Vibrator</string>
+ <string name="vibrator_intensity_title_head">Vibrator-styrke</string>
+ <string name="vibrator_intensity_summary_head">Indstil vibratorens intensitet</string>
+
+ <string name="category_radio_title">Radio</string>
+ <string name="hspa_title_head">HSPA</string>
+ <string name="hspa_summary_head">Slå HSDPA/HSUPA til/fra</string>
+
+ <string name="category_dock_title">Dock</string>
+ <string name="dockaudio_subcat_title">Lyd</string>
+ <string name="use_dock_audio_title_head">Brug Dockens USB lyd</string>
+ <string name="use_dock_audio_summary_head">Spil lyden gennem dockens højttaler</string>
+</resources>
@@ -0,0 +1,70 @@
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <string-array name="mdnie_scenario_entries">
+ <item>CyanogenMod (Standard)</item>
+ <item>UI</item>
+ <item>Video</item>
+ <item>Video warm</item>
+ <item>Video kalt</item>
+ <item>Kamera</item>
+ <item>Navigation</item>
+ <item>Gallerie</item>
+ <item>VT</item>
+ </string-array>
+
+ <string-array name="mdnie_mode_entries">
+ <item>Dynamisch</item>
+ <item>Standard (Standard)</item>
+ <item>Natürlich</item>
+ <item>Film</item>
+ </string-array>
+
+ <string-array name="mdnie_negative_entries">
+ <item>Normal</item>
+ <item>Invertiert</item>
+ </string-array>
+
+ <string-array name="mdnie_outdoor_entries">
+ <item>Deaktiviert</item>
+ <item>Aktiviert</item>
+ </string-array>
+
+ <string-array name="panel_gamma_entries">
+ <item>2.2 (Standard)</item>
+ <item>1.9</item>
+ </string-array>
+
+ <string-array name="touchscreen_sensitivity_entries">
+ <item>10</item>
+ <item>20</item>
+ <item>30</item>
+ <item>50 (Standard)</item>
+ <item>70</item>
+ <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>
+ <item>HSDPA + HSUPA</item>
+ </string-array>
+
+ <string-array name="touchkey_timeout_entries">
+ <item>Niemals</item>
+ <item>1 Sekunde</item>
+ <item>2 Sekunden</item>
+ <item>3 Sekunden (Standard)</item>
+ <item>4 Sekunden</item>
+ <item>5 Sekunden</item>
+ <item>6 Sekunden</item>
+ </string-array>
+
+</resources>
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">Erweiterte Einstellungen</string>
+
+ <string name="category_screen_title">Bildschirm</string>
+ <string name="screen_colors_title">Farben</string>
+ <string name="mdnie_scenario_title_head">mDNIe-Szenario</string>
+ <string name="mdnie_scenario_summary_head">mDNIe-Szenario auswählen</string>
+ <string name="mdnie_mode_title_head">mDNIe-Modus</string>
+ <string name="mdnie_mode_summary_head">mDNIe-Modus auswählen</string>
+ <string name="mdnie_negative_title_head">Negativ</string>
+ <string name="mdnie_negative_summary_head">Farben invertieren an/aus</string>
+ <string name="mdnie_outdoor_title_head">Outdoor</string>
+ <string name="mdnie_outdoor_summary_head">Outdoor-Modus an/aus</string>
+ <string name="panel_gamma_title_head">Gamma</string>
+ <string name="panel_gamma_summary_head">Gamma Wert</string>
+
+ <string name="touchscreen_subcat_title">Touchscreen</string>
+ <string name="touchscreen_sensitivity_title_head">Empfindlichkeit</string>
+ <string name="touchscreen_sensitivity_summary_head">Berührungs-Empfindlichkeit</string>
+
+ <string name="touchkey_subcat_title">Touchkeys</string>
+ <string name="touchkey_light_title_head">Beleuchtung</string>
+ <string name="touchkey_light_summary_head">Touchkeys leuchten auf während das Display aktiv ist</string>
+ <string name="touchkey_timeout_title_head">Beleuchtungs-Timeout</string>
+ <string name="touchkey_timeout_summary_head">Zeit für die autom. Abschaltung der Touchkey-Beleuchtung</string>
+
+ <string name="category_sensors_title">Sensoren</string>
+ <string name="accelerometer_subcat_title">Beschleunigungssensor</string>
+ <string name="use_accelerometer_calibration_title_head">Kalibrierungsdaten</string>
+ <string name="use_accelerometer_calibration_summary_head">Kalibrierungswerte verwenden\nNach Aktivierung bitte Kalibrierung ausführen</string>
+ <string name="calibrate_accelerometer_title_head">Kalibrieren</string>
+ <string name="calibrate_accelerometer_summary_head">Sensor kalibrieren\nZum Starten das Telefon auf eine horizontale, ebene Fläche legen</string>
+ <string name="accelerometer_dialog_head">Kalibrierung beendet</string>
+ <string name="accelerometer_dialog_message">Der Beschleunigungssensor wurde kalibriert</string>
+
+ <string name="category_haptic_title">Haptik</string>
+ <string name="vibrator_subcat_title">Vibration</string>
+ <string name="vibrator_intensity_title_head">Intensität</string>
+ <string name="vibrator_intensity_summary_head">Vibrations-Intensität</string>
+
+ <string name="category_radio_title">Mobilfunk</string>
+ <string name="hspa_title_head">HSPA</string>
+ <string name="hspa_summary_head">HSDPA/HSUPA an/aus</string>
+
+ <string name="category_dock_title">Dock</string>
+ <string name="dockaudio_subcat_title">Audio</string>
+ <string name="use_dock_audio_title_head">USB-Dock Audio</string>
+ <string name="use_dock_audio_summary_head">Passive Audio-Ausgabe des USB-Docks verwenden</string>
+</resources>
@@ -0,0 +1,60 @@
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <string-array name="mdnie_scenario_entries">
+ <item>CyanogenMod (por defecto)</item>
+ <item>UI</item>
+ <item>Vídeo</item>
+ <item>Vídeo cálido</item>
+ <item>Vídeo frío</item>
+ <item>Camara</item>
+ <item>Navegación</item>
+ <item>Galería</item>
+ <item>VT</item>
+ </string-array>
+ <string-array name="mdnie_mode_entries">
+ <item>Dinámico</item>
+ <item>Estándar (por defecto)</item>
+ <item>Natural</item>
+ <item>Película</item>
+ </string-array>
+ <string-array name="mdnie_negative_entries">
+ <item>Normal</item>
+ <item>Invertido</item>
+ </string-array>
+ <string-array name="mdnie_outdoor_entries">
+ <item>Apagado (por defecto)</item>
+ <item>Encendido</item>
+ </string-array>
+ <string-array name="panel_gamma_entries">
+ <item>2,2 (por defecto)</item>
+ <item>1,9</item>
+ </string-array>
+ <string-array name="touchscreen_sensitivity_entries">
+ <item>10</item>
+ <item>20</item>
+ <item>30</item>
+ <item>50 (por defecto)</item>
+ <item>70</item>
+ <item>100</item>
+ </string-array>
+ <string-array name="vibrator_intensity_entries">
+ <item>0%</item>
+ <item>25%</item>
+ <item>50% (por defecto)</item>
+ <item>75%</item>
+ <item>100%</item>
+ </string-array>
+ <string-array name="hspa_entries">
+ <item>Sólo UMTS</item>
+ <item>Sólo HSDPA</item>
+ <item>HSDPA + HSUPA</item>
+ </string-array>
+ <string-array name="touchkey_timeout_entries">
+ <item>Nunca</item>
+ <item>1 segundo</item>
+ <item>2 segundos</item>
+ <item>3 segundos (por defecto)</item>
+ <item>4 segundos</item>
+ <item>5 segundos</item>
+ <item>6 segundos</item>
+ </string-array>
+</resources>
Oops, something went wrong. Retry.

0 comments on commit 954a88f

Please sign in to comment.