aboutsummaryrefslogtreecommitdiff
path: root/doze
diff options
context:
space:
mode:
Diffstat (limited to 'doze')
-rw-r--r--doze/Android.mk3
-rw-r--r--doze/AndroidManifest.xml6
-rw-r--r--doze/res/values-af/strings.xml19
-rw-r--r--doze/res/values-am/strings.xml19
-rw-r--r--doze/res/values-ar/strings.xml19
-rw-r--r--doze/res/values-as-rIN/strings.xml19
-rw-r--r--doze/res/values-ast-rES/strings.xml19
-rw-r--r--doze/res/values-az-rAZ/strings.xml19
-rw-r--r--doze/res/values-be/strings.xml19
-rw-r--r--doze/res/values-bg/strings.xml34
-rw-r--r--doze/res/values-bn-rBD/strings.xml19
-rw-r--r--doze/res/values-br-rFR/strings.xml19
-rw-r--r--doze/res/values-ca/strings.xml34
-rw-r--r--doze/res/values-cs/strings.xml34
-rw-r--r--doze/res/values-csb-rPL/strings.xml19
-rw-r--r--doze/res/values-cy/strings.xml19
-rw-r--r--doze/res/values-da/strings.xml34
-rw-r--r--doze/res/values-de/strings.xml33
-rw-r--r--doze/res/values-el/strings.xml31
-rw-r--r--doze/res/values-en-rAU/strings.xml19
-rw-r--r--doze/res/values-en-rGB/strings.xml19
-rw-r--r--doze/res/values-en-rIN/strings.xml19
-rw-r--r--doze/res/values-en-rPT/strings.xml19
-rw-r--r--doze/res/values-eo/strings.xml19
-rw-r--r--doze/res/values-es-rMX/strings.xml19
-rw-r--r--doze/res/values-es-rUS/strings.xml19
-rw-r--r--doze/res/values-es/strings.xml19
-rw-r--r--doze/res/values-et-rEE/strings.xml19
-rw-r--r--doze/res/values-eu-rES/strings.xml34
-rw-r--r--doze/res/values-fa/strings.xml19
-rw-r--r--doze/res/values-fi/strings.xml34
-rw-r--r--doze/res/values-fil-rPH/strings.xml19
-rw-r--r--doze/res/values-fr-rCA/strings.xml19
-rw-r--r--doze/res/values-fr/strings.xml19
-rw-r--r--doze/res/values-frp-rIT/strings.xml19
-rw-r--r--doze/res/values-fy-rNL/strings.xml19
-rw-r--r--doze/res/values-gd-rGB/strings.xml19
-rw-r--r--doze/res/values-gl-rES/strings.xml19
-rw-r--r--doze/res/values-gu-rIN/strings.xml19
-rw-r--r--doze/res/values-hi/strings.xml19
-rw-r--r--doze/res/values-hr/strings.xml34
-rw-r--r--doze/res/values-hu/strings.xml19
-rw-r--r--doze/res/values-hy-rAM/strings.xml19
-rw-r--r--doze/res/values-in/strings.xml19
-rw-r--r--doze/res/values-is-rIS/strings.xml19
-rw-r--r--doze/res/values-it/strings.xml34
-rw-r--r--doze/res/values-iw/strings.xml24
-rw-r--r--doze/res/values-ja/strings.xml19
-rw-r--r--doze/res/values-ka-rGE/strings.xml19
-rw-r--r--doze/res/values-kk-rKZ/strings.xml19
-rw-r--r--doze/res/values-km-rKH/strings.xml19
-rw-r--r--doze/res/values-kn-rIN/strings.xml19
-rw-r--r--doze/res/values-ko/strings.xml19
-rw-r--r--doze/res/values-ku/strings.xml19
-rw-r--r--doze/res/values-ky-rKG/strings.xml19
-rw-r--r--doze/res/values-lb/strings.xml19
-rw-r--r--doze/res/values-lo-rLA/strings.xml19
-rw-r--r--doze/res/values-lt/strings.xml19
-rw-r--r--doze/res/values-lv/strings.xml19
-rw-r--r--doze/res/values-mk-rMK/strings.xml19
-rw-r--r--doze/res/values-ml-rIN/strings.xml19
-rw-r--r--doze/res/values-mn-rMN/strings.xml19
-rw-r--r--doze/res/values-mr-rIN/strings.xml19
-rw-r--r--doze/res/values-ms-rMY/strings.xml19
-rw-r--r--doze/res/values-my-rMM/strings.xml19
-rw-r--r--doze/res/values-nb/strings.xml34
-rw-r--r--doze/res/values-ne-rNP/strings.xml19
-rw-r--r--doze/res/values-nl/strings.xml31
-rw-r--r--doze/res/values-oc-rFR/strings.xml19
-rw-r--r--doze/res/values-or-rIN/strings.xml19
-rw-r--r--doze/res/values-pa-rIN/strings.xml19
-rw-r--r--doze/res/values-pl/strings.xml19
-rw-r--r--doze/res/values-pt-rBR/strings.xml34
-rw-r--r--doze/res/values-pt-rPT/strings.xml33
-rw-r--r--doze/res/values-rm/strings.xml19
-rw-r--r--doze/res/values-ro/strings.xml19
-rw-r--r--doze/res/values-ru/strings.xml34
-rw-r--r--doze/res/values-si-rLK/strings.xml19
-rw-r--r--doze/res/values-sk/strings.xml19
-rw-r--r--doze/res/values-sl/strings.xml34
-rw-r--r--doze/res/values-sq-rAL/strings.xml19
-rw-r--r--doze/res/values-sr/strings.xml34
-rw-r--r--doze/res/values-sv/strings.xml19
-rw-r--r--doze/res/values-sw/strings.xml19
-rw-r--r--doze/res/values-ta-rIN/strings.xml19
-rw-r--r--doze/res/values-te-rIN/strings.xml19
-rw-r--r--doze/res/values-th/strings.xml19
-rw-r--r--doze/res/values-tr/strings.xml19
-rw-r--r--doze/res/values-ug/strings.xml19
-rw-r--r--doze/res/values-uk/strings.xml19
-rw-r--r--doze/res/values-ur-rPK/strings.xml19
-rw-r--r--doze/res/values-uz-rUZ/strings.xml19
-rw-r--r--doze/res/values-vi/strings.xml19
-rw-r--r--doze/res/values-zh-rCN/strings.xml34
-rw-r--r--doze/res/values-zh-rHK/strings.xml19
-rw-r--r--doze/res/values-zh-rTW/strings.xml19
-rw-r--r--doze/res/values-zu/strings.xml19
-rw-r--r--doze/res/values/strings.xml25
-rw-r--r--doze/res/xml/doze_settings.xml72
-rw-r--r--doze/res/xml/gesture_panel.xml53
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java6
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/DozeService.java97
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/DozeSettings.java166
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java91
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/TiltSensor.java87
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/Utils.java104
-rw-r--r--doze/src/com/cyanogenmod/settings/doze/ZukDozeService.java199
107 files changed, 2653 insertions, 328 deletions
diff --git a/doze/Android.mk b/doze/Android.mk
index d9d71fc..de136ea 100644
--- a/doze/Android.mk
+++ b/doze/Android.mk
@@ -9,9 +9,6 @@ LOCAL_PACKAGE_NAME := ZukDoze
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
-LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
-
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml
index ec01c25..54783eb 100644
--- a/doze/AndroidManifest.xml
+++ b/doze/AndroidManifest.xml
@@ -5,9 +5,7 @@
android:versionName="1.0"
android:sharedUserId="android.uid.system">
- <uses-permission android:name="android.permission.DEVICE_POWER" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-sdk
@@ -25,13 +23,13 @@
</intent-filter>
</receiver>
- <service android:name="com.cyanogenmod.settings.doze.ZukDozeService"
+ <service android:name="com.cyanogenmod.settings.doze.DozeService"
android:permission="ZukDozeService">
</service>
<activity
android:name=".DozeSettings"
- android:label="@string/screen_gestures_panel_title"
+ android:label="@string/ambient_display_title"
android:theme="@android:style/Theme.Material.Settings">
<intent-filter>
<action android:name="com.android.settings.action.EXTRA_SETTINGS" />
diff --git a/doze/res/values-af/strings.xml b/doze/res/values-af/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-af/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-am/strings.xml b/doze/res/values-am/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-am/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ar/strings.xml b/doze/res/values-ar/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ar/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-as-rIN/strings.xml b/doze/res/values-as-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-as-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ast-rES/strings.xml b/doze/res/values-ast-rES/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ast-rES/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-az-rAZ/strings.xml b/doze/res/values-az-rAZ/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-az-rAZ/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-be/strings.xml b/doze/res/values-be/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-be/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-bg/strings.xml b/doze/res/values-bg/strings.xml
new file mode 100644
index 0000000..d51d0b3
--- /dev/null
+++ b/doze/res/values-bg/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Атмосферен екран</string>
+ <string name="ambient_display_summary">Събуждане на екрана при получаване на известие</string>
+ <string name="always_enabled_title">Винаги разрешено</string>
+ <string name="always_enabled_summary">Останете на линия за събития, веднага след като екранът се изключи</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Сензор за наклон</string>
+ <string name="pick_up_title">Отговор</string>
+ <string name="pick_up_summary">Светлинна индикация, когато устройството е вдигнато</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Сензор за близост</string>
+ <string name="hand_wave_gesture_title">Махане с ръка</string>
+ <string name="hand_wave_gesture_summary">Светлинна индикация при махане с ръка</string>
+ <string name="pocket_gesture_title">Джоб</string>
+ <string name="pocket_gesture_summary">Светлинна индикация при изваждане от джоб</string>
+ <!-- Help text -->
+ <string name="dlg_ok">ОK</string>
+ <string name="doze_settings_help_title">Помощ</string>
+ <string name="doze_settings_help_text">Тези функции използват сензорни събития да показват известия, когато устройството е в състояние на покой. Избраният сензор се активира само когато устройството получава уведомление, което помага за намаляване на използването на батерията. Има и опция за активиране на избрания сензор, така че екранът се изключва, което ще доведе до увеличаване на използването на батерията.</string>
+</resources>
diff --git a/doze/res/values-bn-rBD/strings.xml b/doze/res/values-bn-rBD/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-bn-rBD/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-br-rFR/strings.xml b/doze/res/values-br-rFR/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-br-rFR/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ca/strings.xml b/doze/res/values-ca/strings.xml
new file mode 100644
index 0000000..a948814
--- /dev/null
+++ b/doze/res/values-ca/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Pantalla ambient</string>
+ <string name="ambient_display_summary">Encen la pantalla quan rebis notificacions</string>
+ <string name="always_enabled_title">Sempre habilitat</string>
+ <string name="always_enabled_summary">Estigues atent als esdeveniments del sensor tan aviat com s\'apagui la pantalla</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Sensor d\'inclinació</string>
+ <string name="pick_up_title">Contesta</string>
+ <string name="pick_up_summary">Mostra les notificacions quan es reculli el dispositiu</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Sensor de proximitat</string>
+ <string name="hand_wave_gesture_title">Passa la mà</string>
+ <string name="hand_wave_gesture_summary">Mostra notificacions quan es passi la mà</string>
+ <string name="pocket_gesture_title">Butxaca</string>
+ <string name="pocket_gesture_summary">Mostra notificacions quan te\'l treguis de la butxaca</string>
+ <!-- Help text -->
+ <string name="dlg_ok">D\'ACORD</string>
+ <string name="doze_settings_help_title">Ajuda</string>
+ <string name="doze_settings_help_text">Aquestes característiques utilitzen esdeveniments dels sensors per llançar una notificació latent. El sensor escollit només serà habilitat quan el dispositiu rebi una notificació, això ajuda a reduir l\'ús de la bateria. També hi ha una opció per habilitar el sensor escollit tan aviat com s\'apagui la pantalla, això causarà un major ús de la bateria.</string>
+</resources>
diff --git a/doze/res/values-cs/strings.xml b/doze/res/values-cs/strings.xml
new file mode 100644
index 0000000..4738828
--- /dev/null
+++ b/doze/res/values-cs/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Ambientní displej</string>
+ <string name="ambient_display_summary">Probudit obrazovku při upozornění</string>
+ <string name="always_enabled_title">Vždy povolit</string>
+ <string name="always_enabled_summary">Naslouchat událostem senzoru ihned po vypnutí obrazovky</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Senzor náklonu</string>
+ <string name="pick_up_title">Sebrání</string>
+ <string name="pick_up_summary">Pulzovat oznámení při zvednutí zařízení</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Senzor přiblížení</string>
+ <string name="hand_wave_gesture_title">Mávání rukou</string>
+ <string name="hand_wave_gesture_summary">Upozornit pulsováním při zamáváním rukou</string>
+ <string name="pocket_gesture_title">Kapsa</string>
+ <string name="pocket_gesture_summary">Upozornit pulsováním při vyjmutí z kapsy</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Uživatelská příručka</string>
+ <string name="doze_settings_help_text">Tyto funkce používají události senzorů ke spuštění pulzování oznámení. Vybraný senzor je zapnut pouze v případě přijetí upozornění, což vede k úspoře baterie. Je zde i možnost zapnout daný senzor ihned po vypnutí obrazovky, ale dochází k většímu vybíjení.</string>
+</resources>
diff --git a/doze/res/values-csb-rPL/strings.xml b/doze/res/values-csb-rPL/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-csb-rPL/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-cy/strings.xml b/doze/res/values-cy/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-cy/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-da/strings.xml b/doze/res/values-da/strings.xml
new file mode 100644
index 0000000..fffc2be
--- /dev/null
+++ b/doze/res/values-da/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Inaktivitetsvisning</string>
+ <string name="ambient_display_summary">Tænder skærmen, når du modtager notifikationer</string>
+ <string name="always_enabled_title">Aktiver altid</string>
+ <string name="always_enabled_summary">Lyt efter sensoraktiviteter så snart skærmen slukkes</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Tilt-sensor</string>
+ <string name="pick_up_title">Samle op</string>
+ <string name="pick_up_summary">Blink med notifikationerne når enheden tages op</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Berøringssensor</string>
+ <string name="hand_wave_gesture_title">Vink med hånden</string>
+ <string name="hand_wave_gesture_summary">Vibrér, hvis der er notifikationer, når du vinker over skærmen</string>
+ <string name="pocket_gesture_title">Lomme</string>
+ <string name="pocket_gesture_summary">Vibrér, hvis der er notifikationer, når telefonen tages op ad lommen</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Hjælp</string>
+ <string name="doze_settings_help_text">Disse funktioner bruger sensoraktiviteter til at starte en doze-notifikation. Den valgte sensor er kun aktiveret, når enheden modtager en notifikation, dette hjælper med at reducere batteriforbruget. Der er også en mulighed for at aktivere den valgte sensor, så snart skærmen slukkes, dette vil medføre højere batteribrug.</string>
+</resources>
diff --git a/doze/res/values-de/strings.xml b/doze/res/values-de/strings.xml
new file mode 100644
index 0000000..033da28
--- /dev/null
+++ b/doze/res/values-de/strings.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Inaktivitätsdisplay</string>
+ <string name="ambient_display_summary">Bildschirm einschalten, wenn Sie Benachrichtigungen erhalten</string>
+ <string name="always_enabled_title">Immer aktiviert</string>
+ <string name="always_enabled_summary">Auf den Sensor reagieren, sobald der Bildschirm ausgeschaltet wird</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Neigungssensor</string>
+ <string name="pick_up_title">Aufnehmen</string>
+ <string name="pick_up_summary">Benachrichtigungen kurz einblenden, wenn das Gerät aufgenommen wird</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Näherungssensor</string>
+ <string name="hand_wave_gesture_title">Winken</string>
+ <string name="hand_wave_gesture_summary">Beim Winken Benachrichtigungen kurzzeitig einblenden</string>
+ <string name="pocket_gesture_title">Tasche</string>
+ <string name="pocket_gesture_summary">Benachrichtigungen kurz einblenden, wenn das Gerät aus der Tasche genommen wird</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Hilfe</string>
+</resources>
diff --git a/doze/res/values-el/strings.xml b/doze/res/values-el/strings.xml
new file mode 100644
index 0000000..dff5c14
--- /dev/null
+++ b/doze/res/values-el/strings.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Οθόνη ambient</string>
+ <string name="ambient_display_summary">Ενεργοποίηση της οθόνης όταν λαμβάνετε ειδοποιήσεις</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Αισθητήρας κλίσης</string>
+ <string name="pick_up_title">Σήκωμα συσκευής</string>
+ <string name="pick_up_summary">Παλμός ειδοποιήσεων κατά το σήκωμα της συσκευής</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Αισθητήρας εγγύτητας</string>
+ <string name="hand_wave_gesture_title">Αιώρηση χεριού</string>
+ <string name="hand_wave_gesture_summary">Παλμός ειδοποιήσεων κατά την αιώρηση του χεριού</string>
+ <string name="pocket_gesture_title">Τσέπη</string>
+ <string name="pocket_gesture_summary">Παλμός ειδοποιήσεων κατά την έξοδο από την τσέπη</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Βοήθεια</string>
+</resources>
diff --git a/doze/res/values-en-rAU/strings.xml b/doze/res/values-en-rAU/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-en-rAU/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-en-rGB/strings.xml b/doze/res/values-en-rGB/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-en-rGB/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-en-rIN/strings.xml b/doze/res/values-en-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-en-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-en-rPT/strings.xml b/doze/res/values-en-rPT/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-en-rPT/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-eo/strings.xml b/doze/res/values-eo/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-eo/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-es-rMX/strings.xml b/doze/res/values-es-rMX/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-es-rMX/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-es-rUS/strings.xml b/doze/res/values-es-rUS/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-es-rUS/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-es/strings.xml b/doze/res/values-es/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-es/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-et-rEE/strings.xml b/doze/res/values-et-rEE/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-et-rEE/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-eu-rES/strings.xml b/doze/res/values-eu-rES/strings.xml
new file mode 100644
index 0000000..5a2ad35
--- /dev/null
+++ b/doze/res/values-eu-rES/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Ambient display</string>
+ <string name="ambient_display_summary">Piztu pantaila jakinarazpenak jasotzean</string>
+ <string name="always_enabled_title">Gaitu beti</string>
+ <string name="always_enabled_summary">Sentsoreen gertakizunei entzun pantaila itzali eta berehala</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Inklinazio sentsorea</string>
+ <string name="pick_up_title">Hartu</string>
+ <string name="pick_up_summary">Led jakinarazpenak gailua hartzean</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Hurbiltasun sentsorea</string>
+ <string name="hand_wave_gesture_title">Agurtu eskuarekin</string>
+ <string name="hand_wave_gesture_summary">Jakinarazpen argia eskuarekin agurtzean</string>
+ <string name="pocket_gesture_title">Poltsikoratu</string>
+ <string name="pocket_gesture_summary">Jakinarazpen argia poltsikotik ateratzean</string>
+ <!-- Help text -->
+ <string name="dlg_ok">Ados</string>
+ <string name="doze_settings_help_title">Laguntza</string>
+ <string name="doze_settings_help_text">Ezaugarri hauek sentsoreen gertakizunak erabiltzen dituzte jakinarazpen argi bat pizteko. Sentsorea jakinarazpen bat jasotzean gaituko da, honi esker bateria erabilera murrizten da. Badago ere pantaila itzali eta berehala sentsorea pizteko aukera, honek bateria gehiago erabiliko du.</string>
+</resources>
diff --git a/doze/res/values-fa/strings.xml b/doze/res/values-fa/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-fa/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-fi/strings.xml b/doze/res/values-fi/strings.xml
new file mode 100644
index 0000000..6806978
--- /dev/null
+++ b/doze/res/values-fi/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Ambient-näyttö</string>
+ <string name="ambient_display_summary">Herätä näyttö kun saat ilmoituksia</string>
+ <string name="always_enabled_title">Käytä aina</string>
+ <string name="always_enabled_summary">Havaitse sensorin tapahtumia kun näyttö sammuu</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Kallistussensori</string>
+ <string name="pick_up_title">Nosto</string>
+ <string name="pick_up_summary">Väläytä ilmoituksia kun laite nostetaan</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Läheisyysanturi</string>
+ <string name="hand_wave_gesture_title">Käden heilautus</string>
+ <string name="hand_wave_gesture_summary">Näytä ilmoitukset heilautettaessa kättä</string>
+ <string name="pocket_gesture_title">Tasku</string>
+ <string name="pocket_gesture_summary">Näytä ilmoitukset kun laite otetaan taskusta</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Apua</string>
+ <string name="doze_settings_help_text">Ominaisuudet käyttää sensorin tapahtumia näyttääkseen ilmoituksia. Valittu sensori on vain käytössä kun laite saa ilmoituksen, tämä auttaa vähentämään akun kulutusta. Voit myös ottaa sensorit käyttöön kun näyttö on suljettu, mutta tämä kasvattaa akun kulutusta.</string>
+</resources>
diff --git a/doze/res/values-fil-rPH/strings.xml b/doze/res/values-fil-rPH/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-fil-rPH/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-fr-rCA/strings.xml b/doze/res/values-fr-rCA/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-fr-rCA/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-fr/strings.xml b/doze/res/values-fr/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-fr/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-frp-rIT/strings.xml b/doze/res/values-frp-rIT/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-frp-rIT/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-fy-rNL/strings.xml b/doze/res/values-fy-rNL/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-fy-rNL/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-gd-rGB/strings.xml b/doze/res/values-gd-rGB/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-gd-rGB/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-gl-rES/strings.xml b/doze/res/values-gl-rES/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-gl-rES/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-gu-rIN/strings.xml b/doze/res/values-gu-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-gu-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-hi/strings.xml b/doze/res/values-hi/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-hi/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-hr/strings.xml b/doze/res/values-hr/strings.xml
new file mode 100644
index 0000000..1742320
--- /dev/null
+++ b/doze/res/values-hr/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Ambijentni zaslon</string>
+ <string name="ambient_display_summary">Probudi zaslon kada primite obavijesti</string>
+ <string name="always_enabled_title">Uvijek omogući</string>
+ <string name="always_enabled_summary">Praćenje senzora čim se zaslon isključi</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Senzor nagiba</string>
+ <string name="pick_up_title">Podizanje</string>
+ <string name="pick_up_summary">Prikazuj obavijesti kada je uređaj podignut</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Senzor blizine</string>
+ <string name="hand_wave_gesture_title">Zamah rukom</string>
+ <string name="hand_wave_gesture_summary">Prikaz obavijesti na zamah rukom</string>
+ <string name="pocket_gesture_title">Džep</string>
+ <string name="pocket_gesture_summary">Prikaz obavijesti kada izvadite uređaj iz džepa</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Pomoć</string>
+ <string name="doze_settings_help_text">Te značajke koriste događaje senzora za pokretanje pulsiranja obavijesti. Odabrani senzor je omogućen jedino kada uređaj primi obavijest, to pomaže smanjenju potrošnje baterije. Tu je i opcija omogućenja odabranog senzora čim se zaslon isključi, to će uzrokovati veću potrošnju baterije.</string>
+</resources>
diff --git a/doze/res/values-hu/strings.xml b/doze/res/values-hu/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-hu/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-hy-rAM/strings.xml b/doze/res/values-hy-rAM/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-hy-rAM/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-in/strings.xml b/doze/res/values-in/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-in/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-is-rIS/strings.xml b/doze/res/values-is-rIS/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-is-rIS/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-it/strings.xml b/doze/res/values-it/strings.xml
new file mode 100644
index 0000000..15530e7
--- /dev/null
+++ b/doze/res/values-it/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Display Ambient</string>
+ <string name="ambient_display_summary">Accendi lo schermo quando ricevi una notifica</string>
+ <string name="always_enabled_title">Sempre attivo</string>
+ <string name="always_enabled_summary">Attiva i sensori per gli eventi appena lo schermo si spegne</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Sensore inclinazione</string>
+ <string name="pick_up_title">Solleva</string>
+ <string name="pick_up_summary">Mostra le notifiche quando il dispositivo viene sollevato</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Sensore prossimità</string>
+ <string name="hand_wave_gesture_title">Movimento della mano</string>
+ <string name="hand_wave_gesture_summary">Mostra le notifiche al passaggio della mano</string>
+ <string name="pocket_gesture_title">Tasca</string>
+ <string name="pocket_gesture_summary">Mostra le notifiche quando il telefono viene rimosso dalla tasca</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Guida</string>
+ <string name="doze_settings_help_text">Queste funzioni utilizzano i sensori per mostrare le notifiche. Il sensore selezionato verrà attivato solo quando il dispositivo riceve una notifica, questo consentirà di ridurre l\'utilizzo della batteria. È anche possibile attivare il sensore selezionato appena lo schermo si spegne, ma ciò comporterà ad un utilizzo maggiore della batteria.</string>
+</resources>
diff --git a/doze/res/values-iw/strings.xml b/doze/res/values-iw/strings.xml
new file mode 100644
index 0000000..b696fe1
--- /dev/null
+++ b/doze/res/values-iw/strings.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">תצוגת התראות עמומה</string>
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <string name="pocket_gesture_title">כיס</string>
+ <string name="pocket_gesture_summary">הצג התראות בהוצאה מהכיס</string>
+ <!-- Help text -->
+ <string name="dlg_ok">אישור</string>
+ <string name="doze_settings_help_title">עזרה</string>
+</resources>
diff --git a/doze/res/values-ja/strings.xml b/doze/res/values-ja/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ja/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ka-rGE/strings.xml b/doze/res/values-ka-rGE/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ka-rGE/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-kk-rKZ/strings.xml b/doze/res/values-kk-rKZ/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-kk-rKZ/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-km-rKH/strings.xml b/doze/res/values-km-rKH/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-km-rKH/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-kn-rIN/strings.xml b/doze/res/values-kn-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-kn-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ko/strings.xml b/doze/res/values-ko/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ko/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ku/strings.xml b/doze/res/values-ku/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ku/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ky-rKG/strings.xml b/doze/res/values-ky-rKG/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ky-rKG/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-lb/strings.xml b/doze/res/values-lb/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-lb/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-lo-rLA/strings.xml b/doze/res/values-lo-rLA/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-lo-rLA/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-lt/strings.xml b/doze/res/values-lt/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-lt/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-lv/strings.xml b/doze/res/values-lv/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-lv/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-mk-rMK/strings.xml b/doze/res/values-mk-rMK/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-mk-rMK/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ml-rIN/strings.xml b/doze/res/values-ml-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ml-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-mn-rMN/strings.xml b/doze/res/values-mn-rMN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-mn-rMN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-mr-rIN/strings.xml b/doze/res/values-mr-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-mr-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ms-rMY/strings.xml b/doze/res/values-ms-rMY/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ms-rMY/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-my-rMM/strings.xml b/doze/res/values-my-rMM/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-my-rMM/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-nb/strings.xml b/doze/res/values-nb/strings.xml
new file mode 100644
index 0000000..fb4db6e
--- /dev/null
+++ b/doze/res/values-nb/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Ambient visning</string>
+ <string name="ambient_display_summary">Våkne skjermen når du får varsler</string>
+ <string name="always_enabled_title">Alltid aktivere</string>
+ <string name="always_enabled_summary">Lete etter sensor aktivitet etter at skjermen slår seg av</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Tilt sensor</string>
+ <string name="pick_up_title">Opp-plukking</string>
+ <string name="pick_up_summary">Pulseringsnotifikasjon når telefonen er plukket opp</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Avstandsmåler</string>
+ <string name="hand_wave_gesture_title">Håndvink</string>
+ <string name="hand_wave_gesture_summary">Pulseringsnotifikasjon ved håndvink</string>
+ <string name="pocket_gesture_title">Lomme</string>
+ <string name="pocket_gesture_summary">Pulseringsnotifikasjon når telefonen er tatt opp av lommen</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Hjelp</string>
+ <string name="doze_settings_help_text">Disse funksjonene bruker sensor aktiviteter for å åpne en doze pulseringsnotifikasjon. Den valgte sensoren er bare slått på når du har fått et varsel, for å spare batteriet. Du kan også slå på så sensoren slår seg på når skjermen slår seg av, som vill tappe mer strøm.</string>
+</resources>
diff --git a/doze/res/values-ne-rNP/strings.xml b/doze/res/values-ne-rNP/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ne-rNP/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-nl/strings.xml b/doze/res/values-nl/strings.xml
new file mode 100644
index 0000000..415461b
--- /dev/null
+++ b/doze/res/values-nl/strings.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Omgevingsdisplay</string>
+ <string name="ambient_display_summary">Scherm aan bij het ontvangen van meldingen</string>
+ <string name="always_enabled_title">Altijd inschakelen</string>
+ <!-- Tilt sensor -->
+ <string name="pick_up_title">Oppakken</string>
+ <string name="pick_up_summary">Meldingen laten knipperen bij oppakken</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Nabijheidssensor</string>
+ <string name="hand_wave_gesture_title">Handgebaar</string>
+ <string name="hand_wave_gesture_summary">Meldingen laten knipperen bij handgebaar</string>
+ <string name="pocket_gesture_title">Broekzak</string>
+ <string name="pocket_gesture_summary">Meldingen laten knipperen bij verwijderen uit broekzak</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Help</string>
+</resources>
diff --git a/doze/res/values-oc-rFR/strings.xml b/doze/res/values-oc-rFR/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-oc-rFR/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-or-rIN/strings.xml b/doze/res/values-or-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-or-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-pa-rIN/strings.xml b/doze/res/values-pa-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-pa-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-pl/strings.xml b/doze/res/values-pl/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-pl/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-pt-rBR/strings.xml b/doze/res/values-pt-rBR/strings.xml
new file mode 100644
index 0000000..957fec1
--- /dev/null
+++ b/doze/res/values-pt-rBR/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Tela ambiente</string>
+ <string name="ambient_display_summary">Ligar a tela ao receber notificações</string>
+ <string name="always_enabled_title">Sempre habilitado</string>
+ <string name="always_enabled_summary">Monitorar o sensor assim que a tela for desligada</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Sensor de inclinação</string>
+ <string name="pick_up_title">Pegar</string>
+ <string name="pick_up_summary">Pulsar notificações ao pegar o dispositivo</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Sensor de proximidade</string>
+ <string name="hand_wave_gesture_title">Acenar com a mão</string>
+ <string name="hand_wave_gesture_summary">Pulsar notificações ao acenar com a mão</string>
+ <string name="pocket_gesture_title">Bolso</string>
+ <string name="pocket_gesture_summary">Pulsar notificações ao retirar do bolso</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Ajuda</string>
+ <string name="doze_settings_help_text">Esses recursos monitoram o sensor para que o dispositivo possa despertar do estado de repouso e pulsar notificações. O sensor escolhido só é habilitado quando o dispositivo recebe uma notificação, isso ajuda a reduzir o uso de bateria. Há também uma opção para ativar o sensor escolhido assim que a tela desliga, isso causará o maior uso da bateria.</string>
+</resources>
diff --git a/doze/res/values-pt-rPT/strings.xml b/doze/res/values-pt-rPT/strings.xml
new file mode 100644
index 0000000..33b5879
--- /dev/null
+++ b/doze/res/values-pt-rPT/strings.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Visualização de ambiente</string>
+ <string name="ambient_display_summary">Ligar o ecrã quando receber notificações</string>
+ <string name="always_enabled_title">Permitir sempre</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Sensor de inclinação</string>
+ <string name="pick_up_title">Pegar</string>
+ <string name="pick_up_summary">Mostrar as notificações ao pegar no dispositivo</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Sensor de proximidade</string>
+ <string name="hand_wave_gesture_title">Passar a mão</string>
+ <string name="hand_wave_gesture_summary">Mostrar notificações ao passar a mão</string>
+ <string name="pocket_gesture_title">Bolso</string>
+ <string name="pocket_gesture_summary">Mostrar notificações ao retirar do bolso</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Ajuda</string>
+ <string name="doze_settings_help_text">Estes recursos utilizam eventos de sensores para mostrarem notificações enquanto o dispositivo está em repouso. O sensor escolhido só é ativado quando o dispositivo recebe uma notificação, o que ajuda a reduzir a utilização da bateria. Há também uma opção para ativar o sensor escolhido assim que o ecrã se desliga, o que resultará numa maior utilização da bateria.</string>
+</resources>
diff --git a/doze/res/values-rm/strings.xml b/doze/res/values-rm/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-rm/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ro/strings.xml b/doze/res/values-ro/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ro/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ru/strings.xml b/doze/res/values-ru/strings.xml
new file mode 100644
index 0000000..dce20e4
--- /dev/null
+++ b/doze/res/values-ru/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Индикация событий</string>
+ <string name="ambient_display_summary">Включать экран при получении уведомлений</string>
+ <string name="always_enabled_title">Всегда включено</string>
+ <string name="always_enabled_summary">Прослушивать события сенсора сразу после отключения экрана</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Датчик наклона</string>
+ <string name="pick_up_title">Поднять</string>
+ <string name="pick_up_summary">Отображать уведомления при поднятии устройства</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Датчик приближения</string>
+ <string name="hand_wave_gesture_title">Взмах</string>
+ <string name="hand_wave_gesture_summary">Проведите ладонью над экраном для просмотра уведомлений</string>
+ <string name="pocket_gesture_title">Карман</string>
+ <string name="pocket_gesture_summary">Отображать уведомления при извлечении устройства из кармана</string>
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Информация</string>
+ <string name="doze_settings_help_text">Эти функции используют события датчиков для отображения уведомлений. Датчик проверяется только при поступлении нового уведомления, что помогает сэкономить заряд батареи. Можно активировать включение датчика сразу при отключении экрана устройства, однако это может ускорить разряд батареи.</string>
+</resources>
diff --git a/doze/res/values-si-rLK/strings.xml b/doze/res/values-si-rLK/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-si-rLK/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-sk/strings.xml b/doze/res/values-sk/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-sk/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-sl/strings.xml b/doze/res/values-sl/strings.xml
new file mode 100644
index 0000000..690ae7c
--- /dev/null
+++ b/doze/res/values-sl/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Okoliški zaslon</string>
+ <string name="ambient_display_summary">Zbudi zaslon ob prejemu obvestila</string>
+ <string name="always_enabled_title">Vedno omogoči</string>
+ <string name="always_enabled_summary">Poslušaj za dogodke tipal, takoj ko se zaslon izklopi</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Tipalo nagiba</string>
+ <string name="pick_up_title">Dvig</string>
+ <string name="pick_up_summary">Utripaj obvestila ob dvigu naprave</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Tipalo bližine</string>
+ <string name="hand_wave_gesture_title">Mahanje z roko</string>
+ <string name="hand_wave_gesture_summary">Utripaj obvestila ob mahanju z roko</string>
+ <string name="pocket_gesture_title">Žep</string>
+ <string name="pocket_gesture_summary">Utripaj obvestila ob odstranitvi iz žepa</string>
+ <!-- Help text -->
+ <string name="dlg_ok">V redu</string>
+ <string name="doze_settings_help_title">Pomoč</string>
+ <string name="doze_settings_help_text">Te značilnosti uporabljajo dogodke tipal za sprožitev utripanja obvestil ob spanju. Izbrano tipalo se omogoči samo, ko naprava prejme obvestilo. To pomaga zmanjšati porabo energije. Obstaja tudi možnost omogočanja izbranega tipala, takoj ko se zaslon izklopi, vendar bo to povzročilo večjo porabo energije.</string>
+</resources>
diff --git a/doze/res/values-sq-rAL/strings.xml b/doze/res/values-sq-rAL/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-sq-rAL/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-sr/strings.xml b/doze/res/values-sr/strings.xml
new file mode 100644
index 0000000..5ab93dc
--- /dev/null
+++ b/doze/res/values-sr/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">Амбијент приказ</string>
+ <string name="ambient_display_summary">Пробуди екран кад добијеш обавештење</string>
+ <string name="always_enabled_title">Увек омогући</string>
+ <string name="always_enabled_summary">Праћење сензора чим се екран искључи</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Тилт сензор</string>
+ <string name="pick_up_title">Купљење</string>
+ <string name="pick_up_summary">Пулсно обавештење када је уређај покупљен</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Сензор близине</string>
+ <string name="hand_wave_gesture_title">Покрет руком</string>
+ <string name="hand_wave_gesture_summary">Пулсно обавештење при покрету руком</string>
+ <string name="pocket_gesture_title">Џеп</string>
+ <string name="pocket_gesture_summary">Пулсно обавештење при уклањању из џепа</string>
+ <!-- Help text -->
+ <string name="dlg_ok">У реду</string>
+ <string name="doze_settings_help_title">Помоћ</string>
+ <string name="doze_settings_help_text">Ова функција користи активирање сензора да покрене пулсно обавештење. Изабрани сензор је омогућен једино када уређај прима обавештење, то помаже смањењу потрожње батерије. Ту је и опција омогућења изабраног сензора чим се екран искључи, то ће узроковати већој потрожњи батерије.</string>
+</resources>
diff --git a/doze/res/values-sv/strings.xml b/doze/res/values-sv/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-sv/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-sw/strings.xml b/doze/res/values-sw/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-sw/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ta-rIN/strings.xml b/doze/res/values-ta-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ta-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-te-rIN/strings.xml b/doze/res/values-te-rIN/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-te-rIN/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-th/strings.xml b/doze/res/values-th/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-th/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-tr/strings.xml b/doze/res/values-tr/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-tr/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ug/strings.xml b/doze/res/values-ug/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ug/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-uk/strings.xml b/doze/res/values-uk/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-uk/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-ur-rPK/strings.xml b/doze/res/values-ur-rPK/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-ur-rPK/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-uz-rUZ/strings.xml b/doze/res/values-uz-rUZ/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-uz-rUZ/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-vi/strings.xml b/doze/res/values-vi/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-vi/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-zh-rCN/strings.xml b/doze/res/values-zh-rCN/strings.xml
new file mode 100644
index 0000000..6d8f437
--- /dev/null
+++ b/doze/res/values-zh-rCN/strings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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 name="ambient_display_title">环境显示</string>
+ <string name="ambient_display_summary">当接收到通知时唤醒屏幕</string>
+ <string name="always_enabled_title">始终启用</string>
+ <string name="always_enabled_summary">当屏幕关闭后立即监听传感器事件</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">倾斜传感器</string>
+ <string name="pick_up_title">拿起</string>
+ <string name="pick_up_summary">当拿起设备时闪烁通知灯</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">距离传感器</string>
+ <string name="hand_wave_gesture_title">挥手</string>
+ <string name="hand_wave_gesture_summary">挥手时闪烁通知呼吸灯</string>
+ <string name="pocket_gesture_title">口袋</string>
+ <string name="pocket_gesture_summary">从口袋中拿出时闪烁通知呼吸灯</string>
+ <!-- Help text -->
+ <string name="dlg_ok">确定</string>
+ <string name="doze_settings_help_title">帮助</string>
+ <string name="doze_settings_help_text">这些功能使用传感器启用打盹通知指示灯,选择的传感器将仅在设备收到通知时开启,这将有助于优化电池用量。还有一个选项是当屏幕关闭后立即启用传感器,这会导致更多的电池用量。</string>
+</resources>
diff --git a/doze/res/values-zh-rHK/strings.xml b/doze/res/values-zh-rHK/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-zh-rHK/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-zh-rTW/strings.xml b/doze/res/values-zh-rTW/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-zh-rTW/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values-zu/strings.xml b/doze/res/values-zu/strings.xml
new file mode 100644
index 0000000..c023c08
--- /dev/null
+++ b/doze/res/values-zu/strings.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--Generated by crowdin.com-->
+<!--
+ Copyright (C) 2015 The CyanogenMod 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">
+ <!-- Tilt sensor -->
+ <!-- Proximity sensor -->
+ <!-- Help text -->
+</resources>
diff --git a/doze/res/values/strings.xml b/doze/res/values/strings.xml
index 79b3747..9643190 100644
--- a/doze/res/values/strings.xml
+++ b/doze/res/values/strings.xml
@@ -13,23 +13,26 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <!-- Gesture shortcuts -->
- <string name="screen_gestures_panel_title">Doze</string>
-
<string name="ambient_display_title">Ambient display</string>
+ <string name="ambient_display_summary">Wake screen when you receive notifications</string>
+
+ <string name="always_enabled_title">Always enable</string>
+ <string name="always_enabled_summary">Listen for sensor events as soon as the screen turns off</string>
- <string name="ambient_display_enable_title">Ambient display</string>
- <string name="ambient_display_enable_summary">Wake screen when you receive notifications</string>
+ <!-- Tilt sensor -->
+ <string name="tilt_sensor_title">Tilt sensor</string>
+ <string name="pick_up_title">Pick up</string>
+ <string name="pick_up_summary">Pulse notifications when device is picked up</string>
+ <!-- Proximity sensor -->
+ <string name="priximity_sensor_title">Proximity sensor</string>
<string name="hand_wave_gesture_title">Hand wave</string>
<string name="hand_wave_gesture_summary">Pulse notifications on hand wave</string>
-
<string name="pocket_gesture_title">Pocket</string>
<string name="pocket_gesture_summary">Pulse notifications on removal from pocket</string>
- <string name="proximity_wake_title">Proximity wake</string>
-
- <string name="proximity_wake_enable_title">Proximity wake</string>
- <string name="proximity_wake_enable_summary">Wake device on hand wave</string>
-
+ <!-- Help text -->
+ <string name="dlg_ok">OK</string>
+ <string name="doze_settings_help_title">Help</string>
+ <string name="doze_settings_help_text">These features use sensor events to launch a doze notification pulse. The chosen sensor is only enabled when the device receives a notification, this helps to reduce battery usage. There is also an option to enable the chosen sensor as soon as the screen turns off, this will cause higher battery usage.</string>
</resources>
diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml
new file mode 100644
index 0000000..09e27b5
--- /dev/null
+++ b/doze/res/xml/doze_settings.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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.
+-->
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <SwitchPreference
+ android:key="ambient_display"
+ android:defaultValue="true"
+ android:title="@string/ambient_display_title"
+ android:summary="@string/ambient_display_summary" />
+
+ <PreferenceCategory
+ android:key="tilt_sensor"
+ android:title="@string/tilt_sensor_title" >
+
+ <SwitchPreference
+ android:key="pick_up"
+ android:defaultValue="false"
+ android:title="@string/pick_up_title"
+ android:summary="@string/pick_up_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="tilt_always"
+ android:defaultValue="false"
+ android:title="@string/always_enabled_title"
+ android:summary="@string/always_enabled_summary"
+ android:dependency="ambient_display" />
+
+ </PreferenceCategory>
+
+ <PreferenceCategory
+ android:key="priximity_sensor"
+ android:title="@string/priximity_sensor_title" >
+
+ <SwitchPreference
+ android:key="gesture_hand_wave"
+ android:defaultValue="false"
+ android:title="@string/hand_wave_gesture_title"
+ android:summary="@string/hand_wave_gesture_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="gesture_pocket"
+ android:defaultValue="false"
+ android:title="@string/pocket_gesture_title"
+ android:summary="@string/pocket_gesture_summary"
+ android:dependency="ambient_display" />
+
+ <SwitchPreference
+ android:key="proximity_always"
+ android:defaultValue="false"
+ android:title="@string/always_enabled_title"
+ android:summary="@string/always_enabled_summary"
+ android:dependency="ambient_display" />
+
+ </PreferenceCategory>
+
+</PreferenceScreen>
diff --git a/doze/res/xml/gesture_panel.xml b/doze/res/xml/gesture_panel.xml
deleted file mode 100644
index 40a017c..0000000
--- a/doze/res/xml/gesture_panel.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2015 The CyanogenMod 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.
--->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
- <PreferenceCategory
- android:key="ambient_display_key"
- android:title="@string/ambient_display_title" >
-
- <SwitchPreference
- android:key="ambient_display_enable"
- android:defaultValue="true"
- android:title="@string/ambient_display_enable_title"
- android:summary="@string/ambient_display_enable_summary" />
-
- <SwitchPreference
- android:key="gesture_hand_wave"
- android:defaultValue="false"
- android:title="@string/hand_wave_gesture_title"
- android:summary="@string/hand_wave_gesture_summary" />
-
- <SwitchPreference
- android:key="gesture_pocket"
- android:defaultValue="false"
- android:title="@string/pocket_gesture_title"
- android:summary="@string/pocket_gesture_summary" />
- </PreferenceCategory>
-
- <PreferenceCategory
- android:key="proximity_wake_key"
- android:title="@string/proximity_wake_title" >
-
- <SwitchPreference
- android:key="proximity_wake_enable"
- android:defaultValue="false"
- android:title="@string/proximity_wake_enable_title"
- android:summary="@string/proximity_wake_enable_summary" />
- </PreferenceCategory>
-
-</PreferenceScreen> \ No newline at end of file
diff --git a/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java b/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java
index af656fe..e1b2b50 100644
--- a/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java
+++ b/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java
@@ -28,8 +28,10 @@ public class BootCompletedReceiver extends BroadcastReceiver {
@Override
public void onReceive(final Context context, Intent intent) {
- if (DEBUG) Log.d(TAG, "Starting service");
- context.startService(new Intent(context, ZukDozeService.class));
+ if (Utils.isDozeEnabled(context) && Utils.sensorsEnabled(context)) {
+ if (DEBUG) Log.d(TAG, "Starting service");
+ Utils.startService(context);
+ }
}
}
diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeService.java b/doze/src/com/cyanogenmod/settings/doze/DozeService.java
new file mode 100644
index 0000000..354d97f
--- /dev/null
+++ b/doze/src/com/cyanogenmod/settings/doze/DozeService.java
@@ -0,0 +1,97 @@
+/*
+ * Copyright (c) 2015 The CyanogenMod 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.
+ */
+
+package com.cyanogenmod.settings.doze;
+
+import android.app.Service;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+import android.os.IBinder;
+import android.util.Log;
+
+public class DozeService extends Service {
+ private static final String TAG = "DozeService";
+ private static final boolean DEBUG = false;
+
+ private ProximitySensor mProximitySensor;
+ private TiltSensor mTiltSensor;
+
+ @Override
+ public void onCreate() {
+ if (DEBUG) Log.d(TAG, "Creating service");
+ mProximitySensor = new ProximitySensor(this);
+ mTiltSensor = new TiltSensor(this);
+
+ IntentFilter screenStateFilter = new IntentFilter(Intent.ACTION_SCREEN_ON);
+ screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF);
+ registerReceiver(mScreenStateReceiver, screenStateFilter);
+ }
+
+ @Override
+ public int onStartCommand(Intent intent, int flags, int startId) {
+ if (DEBUG) Log.d(TAG, "Starting service");
+ return START_STICKY;
+ }
+
+ @Override
+ public void onDestroy() {
+ if (DEBUG) Log.d(TAG, "Destroying service");
+ super.onDestroy();
+ this.unregisterReceiver(mScreenStateReceiver);
+ mProximitySensor.disable();
+ mTiltSensor.disable();
+ }
+
+ @Override
+ public IBinder onBind(Intent intent) {
+ return null;
+ }
+
+ private void onDisplayOn() {
+ if (DEBUG) Log.d(TAG, "Display on");
+ if (Utils.pickUpEnabled(this)) {
+ mTiltSensor.disable();
+ }
+ if (Utils.handwaveGestureEnabled(this) ||
+ Utils.pocketGestureEnabled(this)) {
+ mProximitySensor.disable();
+ }
+ }
+
+ private void onDisplayOff() {
+ if (DEBUG) Log.d(TAG, "Display off");
+ if (Utils.pickUpEnabled(this) && Utils.tiltAlwaysEnabled(this)) {
+ mTiltSensor.enable();
+ }
+ if (Utils.proximityAlwaysEnabled(this) && (Utils.handwaveGestureEnabled(this) ||
+ Utils.pocketGestureEnabled(this))) {
+ mProximitySensor.enable();
+ }
+ }
+
+ private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() {
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
+ onDisplayOn();
+ } else if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
+ onDisplayOff();
+ }
+ }
+ };
+}
diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java
index d0697db..d2c408a 100644
--- a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java
+++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java
@@ -17,61 +17,84 @@
package com.cyanogenmod.settings.doze;
import android.app.ActionBar;
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.app.Dialog;
+import android.app.DialogFragment;
+import android.content.Context;
+import android.content.DialogInterface;
+import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.Preference;
+import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceActivity;
+import android.preference.PreferenceScreen;
import android.preference.SwitchPreference;
import android.provider.Settings;
import android.view.Menu;
import android.view.MenuItem;
-import org.cyanogenmod.internal.util.ScreenType;
+public class DozeSettings extends PreferenceActivity implements OnPreferenceChangeListener {
-public class DozeSettings extends PreferenceActivity {
-
- private static final String KEY_AMBIENT_DISPLAY_ENABLE = "ambient_display_enable";
- private static final String KEY_HAND_WAVE = "gesture_hand_wave";
- private static final String KEY_GESTURE_POCKET = "gesture_pocket";
- private static final String KEY_PROXIMITY_WAKE = "proximity_wake_enable";
+ private Context mContext;
+ private SharedPreferences mPreferences;
private SwitchPreference mAmbientDisplayPreference;
+ private SwitchPreference mPickUpPreference;
+ private SwitchPreference mTiltAlwaysPreference;
private SwitchPreference mHandwavePreference;
private SwitchPreference mPocketPreference;
- private SwitchPreference mProximityWakePreference;
+ private SwitchPreference mProximityAlwaysPreference;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- addPreferencesFromResource(R.xml.gesture_panel);
- boolean dozeEnabled = isDozeEnabled();
+ addPreferencesFromResource(R.xml.doze_settings);
+ mContext = getApplicationContext();
+ boolean dozeEnabled = Utils.isDozeEnabled(mContext);
+
+ // get shared preference
+ mPreferences = mContext.getSharedPreferences("doze_settings", Activity.MODE_PRIVATE);
+ if (savedInstanceState == null && !mPreferences.getBoolean("first_help_shown", false)) {
+ showHelp();
+ }
+
mAmbientDisplayPreference =
- (SwitchPreference) findPreference(KEY_AMBIENT_DISPLAY_ENABLE);
+ (SwitchPreference) findPreference(Utils.AMBIENT_DISPLAY_KEY);
// Read from DOZE_ENABLED secure setting
mAmbientDisplayPreference.setChecked(dozeEnabled);
- mAmbientDisplayPreference.setOnPreferenceChangeListener(mAmbientDisplayPrefListener);
+ mAmbientDisplayPreference.setOnPreferenceChangeListener(this);
+
+ mTiltAlwaysPreference =
+ (SwitchPreference) findPreference(Utils.TILT_ALWAYS_KEY);
+ mTiltAlwaysPreference.setOnPreferenceChangeListener(this);
+
+ mPickUpPreference =
+ (SwitchPreference) findPreference(Utils.PICK_UP_KEY);
+ mPickUpPreference.setOnPreferenceChangeListener(this);
+
mHandwavePreference =
- (SwitchPreference) findPreference(KEY_HAND_WAVE);
- mHandwavePreference.setEnabled(dozeEnabled);
- mHandwavePreference.setOnPreferenceChangeListener(mProximityListener);
+ (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY);
+ mHandwavePreference.setOnPreferenceChangeListener(this);
+
mPocketPreference =
- (SwitchPreference) findPreference(KEY_GESTURE_POCKET);
- mPocketPreference.setEnabled(dozeEnabled);
- mProximityWakePreference =
- (SwitchPreference) findPreference(KEY_PROXIMITY_WAKE);
- mProximityWakePreference.setOnPreferenceChangeListener(mProximityListener);
+ (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY);
+ mPocketPreference.setOnPreferenceChangeListener(this);
+
+ mProximityAlwaysPreference =
+ (SwitchPreference) findPreference(Utils.PROXIMITY_ALWAYS_KEY);
+ mProximityAlwaysPreference.setOnPreferenceChangeListener(this);
final ActionBar actionBar = getActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
+
+ updateAlwaysEnabledPreference();
}
@Override
protected void onResume() {
super.onResume();
-
- // If running on a phone, remove padding around the listview
- if (!ScreenType.isTablet(this)) {
- getListView().setPadding(0, 0, 0, 0);
- }
+ updateAlwaysEnabledPreference();
}
@Override
@@ -83,42 +106,73 @@ public class DozeSettings extends PreferenceActivity {
return false;
}
- private boolean enableDoze(boolean enable) {
- return Settings.Secure.putInt(getContentResolver(),
- Settings.Secure.DOZE_ENABLED, enable ? 1 : 0);
- }
-
- private boolean isDozeEnabled() {
- return Settings.Secure.getInt(getContentResolver(),
- Settings.Secure.DOZE_ENABLED, 1) != 0;
+ @Override
+ public boolean onPreferenceChange(Preference preference, Object newValue) {
+ final String key = preference.getKey();
+ final boolean value = (Boolean) newValue;
+ if (Utils.AMBIENT_DISPLAY_KEY.equals(key)) {
+ mAmbientDisplayPreference.setChecked(value);
+ Utils.enableDoze(value, mContext);
+ return true;
+ } else if (Utils.PICK_UP_KEY.equals(key)) {
+ mPickUpPreference.setChecked(value);
+ updateAlwaysEnabledPreference();
+ Utils.startService(mContext);
+ return true;
+ } else if (Utils.TILT_ALWAYS_KEY.equals(key)) {
+ mTiltAlwaysPreference.setChecked(value);
+ return true;
+ } else if (Utils.GESTURE_HAND_WAVE_KEY.equals(key)) {
+ mHandwavePreference.setChecked(value);
+ updateAlwaysEnabledPreference();
+ Utils.startService(mContext);
+ return true;
+ } else if (Utils.GESTURE_POCKET_KEY.equals(key)) {
+ mPocketPreference.setChecked(value);
+ updateAlwaysEnabledPreference();
+ Utils.startService(mContext);
+ return true;
+ } else if (Utils.PROXIMITY_ALWAYS_KEY.equals(key)) {
+ mProximityAlwaysPreference.setChecked(value);
+ return true;
+ }
+ return false;
}
- private Preference.OnPreferenceChangeListener mAmbientDisplayPrefListener =
- new Preference.OnPreferenceChangeListener() {
+ public static class HelpDialogFragment extends DialogFragment {
@Override
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- boolean enable = (boolean) newValue;
- boolean ret = enableDoze(enable);
- if (ret) {
- mHandwavePreference.setEnabled(enable);
- mPocketPreference.setEnabled(enable);
- }
- return ret;
+ public Dialog onCreateDialog(Bundle savedInstanceState) {
+ return new AlertDialog.Builder(getActivity())
+ .setTitle(R.string.doze_settings_help_title)
+ .setMessage(R.string.doze_settings_help_text)
+ .setNegativeButton(R.string.dlg_ok, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ dialog.cancel();
+ }
+ })
+ .create();
}
- };
- private Preference.OnPreferenceChangeListener mProximityListener =
- new Preference.OnPreferenceChangeListener() {
@Override
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- if ((boolean) newValue) {
- if (preference.getKey().equals(KEY_HAND_WAVE)) {
- mProximityWakePreference.setChecked(false);
- } else if (preference.getKey().equals(KEY_PROXIMITY_WAKE)) {
- mHandwavePreference.setChecked(false);
- }
- }
- return true;
+ public void onCancel(DialogInterface dialog) {
+ getActivity().getSharedPreferences("doze_settings", Activity.MODE_PRIVATE)
+ .edit()
+ .putBoolean("first_help_shown", true)
+ .commit();
}
- };
+ }
+
+ private void showHelp() {
+ HelpDialogFragment fragment = new HelpDialogFragment();
+ fragment.show(getFragmentManager(), "help_dialog");
+ }
+
+ private void updateAlwaysEnabledPreference() {
+ boolean tiltEnabled = Utils.pickUpEnabled(mContext);
+ boolean proximityEnabled = Utils.handwaveGestureEnabled(mContext)
+ || Utils.pocketGestureEnabled(mContext);
+ mTiltAlwaysPreference.setEnabled(tiltEnabled);
+ mProximityAlwaysPreference.setEnabled(proximityEnabled);
+ }
}
diff --git a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java
new file mode 100644
index 0000000..0f62b11
--- /dev/null
+++ b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright (c) 2015 The CyanogenMod 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.
+ */
+
+package com.cyanogenmod.settings.doze;
+
+import android.content.Context;
+import android.hardware.Sensor;
+import android.hardware.SensorEvent;
+import android.hardware.SensorEventListener;
+import android.hardware.SensorManager;
+import android.util.Log;
+
+public class ProximitySensor implements SensorEventListener {
+
+ private static final boolean DEBUG = false;
+ private static final String TAG = "ProximitySensor";
+
+ private static final int POCKET_DELTA_NS = 1000 * 1000 * 1000;
+
+ private SensorManager mSensorManager;
+ private Sensor mSensor;
+ private Context mContext;
+
+ private boolean mSawNear = false;
+ private long mInPocketTime = 0;
+
+ public ProximitySensor(Context context) {
+ mContext = context;
+ mSensorManager = (SensorManager)
+ mContext.getSystemService(Context.SENSOR_SERVICE);
+ mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
+ }
+
+ @Override
+ public void onSensorChanged(SensorEvent event) {
+ boolean isNear = event.values[0] < mSensor.getMaximumRange();
+ if (mSawNear && !isNear) {
+ if (shouldPulse(event.timestamp)) {
+ Utils.launchDozePulse(mContext);
+ }
+ } else {
+ mInPocketTime = event.timestamp;
+ }
+ mSawNear = isNear;
+ }
+
+ private boolean shouldPulse(long timestamp) {
+ long delta = timestamp - mInPocketTime;
+
+ if (Utils.handwaveGestureEnabled(mContext)
+ && Utils.pocketGestureEnabled(mContext)) {
+ return true;
+ } else if (Utils.handwaveGestureEnabled(mContext)
+ && !Utils.pocketGestureEnabled(mContext)) {
+ return delta < POCKET_DELTA_NS;
+ } else if (!Utils.handwaveGestureEnabled(mContext)
+ && Utils.pocketGestureEnabled(mContext)) {
+ return delta >= POCKET_DELTA_NS;
+ }
+ return false;
+ }
+
+ @Override
+ public void onAccuracyChanged(Sensor sensor, int accuracy) {
+ /* Empty */
+ }
+
+ protected void enable() {
+ if (DEBUG) Log.d(TAG, "Enabling");
+ mSensorManager.registerListener(this, mSensor,
+ SensorManager.SENSOR_DELAY_NORMAL);
+ }
+
+ protected void disable() {
+ if (DEBUG) Log.d(TAG, "Disabling");
+ mSensorManager.unregisterListener(this, mSensor);
+ }
+}
diff --git a/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java
new file mode 100644
index 0000000..443a10d
--- /dev/null
+++ b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java
@@ -0,0 +1,87 @@
+/*
+ * Copyright (c) 2015 The CyanogenMod 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.
+ */
+
+package com.cyanogenmod.settings.doze;
+
+import android.content.Context;
+import android.hardware.Sensor;
+import android.hardware.SensorEvent;
+import android.hardware.SensorEventListener;
+import android.hardware.SensorManager;
+import android.os.PowerManager;
+import android.os.PowerManager.WakeLock;
+import android.os.SystemClock;
+import android.util.Log;
+
+public class TiltSensor implements SensorEventListener {
+
+ private static final boolean DEBUG = false;
+ private static final String TAG = "TiltSensor";
+
+ private static final int SENSOR_WAKELOCK_DURATION = 200;
+ private static final int BATCH_LATENCY_IN_MS = 100;
+ private static final int MIN_PULSE_INTERVAL_MS = 2500;
+
+ private PowerManager mPowerManager;
+ private SensorManager mSensorManager;
+ private Sensor mSensor;
+ private WakeLock mSensorWakeLock;
+ private Context mContext;
+
+ private long mEntryTimestamp;
+
+ public TiltSensor(Context context) {
+ mContext = context;
+ mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
+ mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);
+ mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_TILT_DETECTOR);
+ mSensorWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
+ "SensorWakeLock");
+ }
+
+ @Override
+ public void onSensorChanged(SensorEvent event) {
+ if (DEBUG) Log.d(TAG, "Got sensor event: " + event.values[0]);
+
+ long delta = SystemClock.elapsedRealtime() - mEntryTimestamp;
+ if (delta < MIN_PULSE_INTERVAL_MS) {
+ return;
+ } else {
+ mEntryTimestamp = SystemClock.elapsedRealtime();
+ }
+
+ if (event.values[0] == 1) {
+ Utils.launchDozePulse(mContext);
+ }
+ }
+
+ @Override
+ public void onAccuracyChanged(Sensor sensor, int accuracy) {
+ /* Empty */
+ }
+
+ protected void enable() {
+ if (DEBUG) Log.d(TAG, "Enabling");
+ mSensorManager.registerListener(this, mSensor,
+ SensorManager.SENSOR_DELAY_NORMAL, BATCH_LATENCY_IN_MS * 1000);
+ mEntryTimestamp = SystemClock.elapsedRealtime();
+ }
+
+ protected void disable() {
+ if (DEBUG) Log.d(TAG, "Disabling");
+ mSensorManager.unregisterListener(this, mSensor);
+ }
+}
diff --git a/doze/src/com/cyanogenmod/settings/doze/Utils.java b/doze/src/com/cyanogenmod/settings/doze/Utils.java
new file mode 100644
index 0000000..bdc696b
--- /dev/null
+++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java
@@ -0,0 +1,104 @@
+/*
+ * Copyright (c) 2015 The CyanogenMod 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.
+ */
+
+package com.cyanogenmod.settings.doze;
+
+import android.app.ActivityManager;
+import android.app.ActivityManager.RunningServiceInfo;
+import android.content.Context;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.UserHandle;
+import android.preference.PreferenceManager;
+import android.provider.Settings;
+import android.util.Log;
+
+public final class Utils {
+
+ private static final String TAG = "DozeUtils";
+ private static final boolean DEBUG = false;
+
+ private static final String DOZE_INTENT = "com.android.systemui.doze.pulse";
+
+ protected static final String AMBIENT_DISPLAY_KEY = "ambient_display";
+ protected static final String PICK_UP_KEY = "pick_up";
+ protected static final String TILT_ALWAYS_KEY = "tilt_always";
+ protected static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave";
+ protected static final String GESTURE_POCKET_KEY = "gesture_pocket";
+ protected static final String PROXIMITY_ALWAYS_KEY = "proximity_always";
+
+ protected static void startService(Context context) {
+ if (DEBUG) Log.d(TAG, "Starting service");
+ context.startService(new Intent(context, DozeService.class));
+ }
+
+ protected static void stopService(Context context) {
+ if (DEBUG) Log.d(TAG, "Stopping service");
+ context.stopService(new Intent(context, DozeService.class));
+ }
+
+ protected static boolean isDozeEnabled(Context context) {
+ return Settings.Secure.getInt(context.getContentResolver(),
+ Settings.Secure.DOZE_ENABLED, 1) != 0;
+ }
+
+ protected static boolean enableDoze(boolean enable, Context context) {
+ boolean dozeEnabled = Settings.Secure.putInt(context.getContentResolver(),
+ Settings.Secure.DOZE_ENABLED, enable ? 1 : 0);
+ if (enable) {
+ startService(context);
+ } else {
+ stopService(context);
+ }
+ return dozeEnabled;
+ }
+
+ protected static void launchDozePulse(Context context) {
+ if (DEBUG) Log.d(TAG, "Launch doze pulse");
+ context.sendBroadcastAsUser(new Intent(DOZE_INTENT),
+ new UserHandle(UserHandle.USER_CURRENT));
+ }
+
+ protected static boolean pickUpEnabled(Context context) {
+ return PreferenceManager.getDefaultSharedPreferences(context)
+ .getBoolean(PICK_UP_KEY, false);
+ }
+
+ protected static boolean tiltAlwaysEnabled(Context context) {
+ return PreferenceManager.getDefaultSharedPreferences(context)
+ .getBoolean(TILT_ALWAYS_KEY, false);
+ }
+
+ protected static boolean handwaveGestureEnabled(Context context) {
+ return PreferenceManager.getDefaultSharedPreferences(context)
+ .getBoolean(GESTURE_HAND_WAVE_KEY, false);
+ }
+
+ protected static boolean pocketGestureEnabled(Context context) {
+ return PreferenceManager.getDefaultSharedPreferences(context)
+ .getBoolean(GESTURE_POCKET_KEY, false);
+ }
+
+ protected static boolean proximityAlwaysEnabled(Context context) {
+ return PreferenceManager.getDefaultSharedPreferences(context)
+ .getBoolean(PROXIMITY_ALWAYS_KEY, false);
+ }
+
+ protected static boolean sensorsEnabled(Context context) {
+ return pickUpEnabled(context) || handwaveGestureEnabled(context)
+ || pocketGestureEnabled(context);
+ }
+}
diff --git a/doze/src/com/cyanogenmod/settings/doze/ZukDozeService.java b/doze/src/com/cyanogenmod/settings/doze/ZukDozeService.java
deleted file mode 100644
index 4163972..0000000
--- a/doze/src/com/cyanogenmod/settings/doze/ZukDozeService.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * Copyright (c) 2015 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.doze;
-
-import android.app.Service;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.SharedPreferences;
-import android.hardware.Sensor;
-import android.hardware.SensorEvent;
-import android.hardware.SensorEventListener;
-import android.hardware.SensorManager;
-import android.os.IBinder;
-import android.os.PowerManager;
-import android.preference.PreferenceManager;
-import android.provider.Settings;
-import android.util.Log;
-
-import java.lang.System;
-import java.util.ArrayList;
-import java.util.concurrent.TimeUnit;
-import java.util.List;
-
-public class ZukDozeService extends Service {
- private static final String TAG = "ZukDozeService";
- private static final boolean DEBUG = false;
-
- private static final String DOZE_INTENT = "com.android.systemui.doze.pulse";
-
- private static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave";
- private static final String GESTURE_POCKET_KEY = "gesture_pocket";
- private static final String PROXIMITY_WAKE_KEY = "proximity_wake_enable";
-
- private static final int POCKET_DELTA_NS = 1000 * 1000 * 1000;
-
- private Context mContext;
- private OneplusProximitySensor mSensor;
- private PowerManager mPowerManager;
-
- private boolean mHandwaveGestureEnabled = false;
- private boolean mPocketGestureEnabled = false;
- private boolean mProximityWakeEnabled = false;
-
- class OneplusProximitySensor implements SensorEventListener {
- private SensorManager mSensorManager;
- private Sensor mSensor;
-
- private boolean mSawNear = false;
- private long mInPocketTime = 0;
-
- public OneplusProximitySensor(Context context) {
- mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
- mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
- }
-
- @Override
- public void onSensorChanged(SensorEvent event) {
- boolean isNear = event.values[0] < mSensor.getMaximumRange();
- if (mSawNear && !isNear) {
- if (shouldPulse(event.timestamp)) {
- launchDozePulse();
- }
- } else {
- mInPocketTime = event.timestamp;
- }
- mSawNear = isNear;
- }
-
- @Override
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- /* Empty */
- }
-
- private boolean shouldPulse(long timestamp) {
- long delta = timestamp - mInPocketTime;
-
- if (mHandwaveGestureEnabled && mPocketGestureEnabled) {
- return true;
- } else if (mProximityWakeEnabled && (delta < POCKET_DELTA_NS)) {
- mPowerManager.wakeUp(TimeUnit.NANOSECONDS.toMillis(System.nanoTime()));
- return false;
- } else if (mHandwaveGestureEnabled && !mPocketGestureEnabled) {
- return delta < POCKET_DELTA_NS;
- } else if (!mHandwaveGestureEnabled && mPocketGestureEnabled) {
- return delta >= POCKET_DELTA_NS;
- }
- return false;
- }
-
- public void testAndEnable() {
- if ((isDozeEnabled() && (mHandwaveGestureEnabled || mPocketGestureEnabled)) ||
- mProximityWakeEnabled) {
- mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
- }
- }
-
- public void disable() {
- mSensorManager.unregisterListener(this, mSensor);
- }
- }
-
- @Override
- public void onCreate() {
- if (DEBUG) Log.d(TAG, "ZukDozeService Started");
- mContext = this;
- mPowerManager = (PowerManager)getSystemService(Context.POWER_SERVICE);
- mSensor = new OneplusProximitySensor(mContext);
- SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);
- loadPreferences(sharedPrefs);
- sharedPrefs.registerOnSharedPreferenceChangeListener(mPrefListener);
- if (!isInteractive()) {
- mSensor.testAndEnable();
- }
- }
-
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
- if (DEBUG) Log.d(TAG, "Starting service");
- IntentFilter screenStateFilter = new IntentFilter(Intent.ACTION_SCREEN_ON);
- screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF);
- mContext.registerReceiver(mScreenStateReceiver, screenStateFilter);
- return START_STICKY;
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- return null;
- }
-
- private void launchDozePulse() {
- mContext.sendBroadcast(new Intent(DOZE_INTENT));
- }
-
- private boolean isInteractive() {
- return mPowerManager.isInteractive();
- }
-
- private boolean isDozeEnabled() {
- return Settings.Secure.getInt(mContext.getContentResolver(),
- Settings.Secure.DOZE_ENABLED, 1) != 0;
- }
-
- private void onDisplayOn() {
- if (DEBUG) Log.d(TAG, "Display on");
- mSensor.disable();
- }
-
- private void onDisplayOff() {
- if (DEBUG) Log.d(TAG, "Display off");
- mSensor.testAndEnable();
- }
-
- private void loadPreferences(SharedPreferences sharedPreferences) {
- mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
- mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
- mProximityWakeEnabled = sharedPreferences.getBoolean(PROXIMITY_WAKE_KEY, false);
- }
-
- private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() {
- @Override
- public void onReceive(Context context, Intent intent) {
- if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
- onDisplayOff();
- } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
- onDisplayOn();
- }
- }
- };
-
- private SharedPreferences.OnSharedPreferenceChangeListener mPrefListener =
- new SharedPreferences.OnSharedPreferenceChangeListener() {
- @Override
- public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
- if (GESTURE_HAND_WAVE_KEY.equals(key)) {
- mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
- } else if (GESTURE_POCKET_KEY.equals(key)) {
- mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
- } else if (PROXIMITY_WAKE_KEY.equals(key)) {
- mProximityWakeEnabled = sharedPreferences.getBoolean(PROXIMITY_WAKE_KEY, false);
- }
- }
- };
-}