diff options
| author | fluxi <linflux@arcor.de> | 2016-10-26 18:24:20 +0200 |
|---|---|---|
| committer | Izumi Inami <droidfivex@gmail.com> | 2016-11-16 13:13:00 +0100 |
| commit | 8523cb9c46e3a740483ca378ebfa69fa368a726c (patch) | |
| tree | 9d856ca01e50d54f555f5065c222ec3669850168 | |
| parent | b262e6bda05d3b5c927826ba08d6ca94a02b2035 (diff) | |
hammerheadcaf: Update doze package
Kanged from op3 at ea281936
Change-Id: I0cb6db93d51582c4548bcf79b7021f627807c737
118 files changed, 2457 insertions, 1344 deletions
diff --git a/doze/Android.mk b/doze/Android.mk index f23d37d..0e28770 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -5,13 +5,10 @@ LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, src) -LOCAL_PACKAGE_NAME := DeviceSettings +LOCAL_PACKAGE_NAME := HammerheadDoze LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true -LOCAL_STATIC_JAVA_LIBRARIES := \ - org.cyanogenmod.platform.sdk - LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml index fcec017..f0379e2 100644 --- a/doze/AndroidManifest.xml +++ b/doze/AndroidManifest.xml @@ -1,40 +1,36 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.cyanogenmod.settings.device" - android:versionCode="2" - android:versionName="2.0" + package="com.cyanogenmod.settings.doze" + android:versionCode="1" + 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.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-sdk - android:minSdkVersion="23" - android:targetSdkVersion="23" /> + android:minSdkVersion="21" + android:targetSdkVersion="21"/> <application - android:allowBackup="true" - android:label="@*cyanogenmod.platform:string/device_settings_app_name" - android:persistent="true" - android:theme="@android:style/Theme.Material.Settings"> + android:label="HammerheadDoze" + android:persistent="true"> - <receiver android:name="com.cyanogenmod.settings.device.BootCompletedReceiver"> + <receiver android:name="com.cyanogenmod.settings.doze.BootCompletedReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </receiver> - - <service android:name="com.cyanogenmod.settings.device.SensorsDozeService" - android:permission="SensorsDozeService"> + <service android:name="com.cyanogenmod.settings.doze.DozeService" + android:permission="HammerheadDozeService"> </service> <activity - android:name=".TouchscreenGestureSettings" - android:label="@*cyanogenmod.platform:string/screen_gestures_panel_title"> + android:name=".DozeSettings" + android:label="@string/ambient_display_title" + android:theme="@android:style/Theme.Material.Settings"> <intent-filter> <action android:name="com.android.settings.action.EXTRA_SETTINGS" /> </intent-filter> @@ -43,7 +39,7 @@ android:value="com.android.settings.category.device" /> <meta-data android:name="com.android.settings.icon" - android:resource="@drawable/ic_settings_gestures" /> + android:resource="@drawable/ic_settings_doze" /> </activity> </application> diff --git a/doze/proguard.flags b/doze/proguard.flags index 3bb1f2c..a21e62f 100644 --- a/doze/proguard.flags +++ b/doze/proguard.flags @@ -1,3 +1,3 @@ --keep class com.cyanogenmod.settings.device.* { +-keep class com.cyanogenmod.settings.doze.* { *; } diff --git a/doze/res/drawable/ic_settings_doze.xml b/doze/res/drawable/ic_settings_doze.xml new file mode 100644 index 0000000..8386024 --- /dev/null +++ b/doze/res/drawable/ic_settings_doze.xml @@ -0,0 +1,51 @@ +<!-- +Copyright (C) 2014 The Android Open Source 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. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="64" + android:viewportHeight="64"> + + <group + android:translateY="-988.583"> + <path + android:fillColor="@android:color/white" + android:pathData="M15.0133 +1051.24c-1.3615-0.2479-2.37425-1.2789-2.57968-2.6262-0.06554-0.4298-0.06571-55.8484-0.00018-56.28 +0.09875-0.65024 0.367851-1.20544 0.812983-1.6773 0.402211-0.42637 +0.920053-0.7356 1.49909-0.8952l0.299302-0.0825h16.845 16.845l0.291174 +0.0804c1.24697 0.34447 2.13039 1.32473 2.32019 2.57456 0.06515 0.42898 0.06541 +55.8484 0.0003 56.28-0.188067 1.2461-1.07608 2.2305-2.32306 2.5752l-0.288567 +0.08h-16.755c-13.5267 0-16.7958 +0-16.9665-0.034zm29.8065-31.1862v-19.23h-12.99-12.99v19.23 19.23h12.99 +12.99v-19.23zm-13.459 +11.687c-1.03547-0.2354-1.77837-1.1208-1.83292-2.1845l-0.01654-0.3225h1.87175c1.02946 +0 2.10645 0.01 2.3933 0.02l0.521553 0.02-0.01945 0.253c-0.02847 0.3705-0.09559 +0.6134-0.267159 0.9672-0.135477 0.2794-0.18522 0.3474-0.439626 0.6013-0.31197 +0.3114-0.571617 0.4707-0.976866 0.5995-0.269196 0.085-0.949163 0.111-1.23404 +0.046zm-9.04096-4.1842v-0.6872l1.10534-1.0831 1.10534-1.0831 +0.02483-1.2072c0.01366-0.664 0.02781-2.213 0.03145-3.4422 0.007-2.3727 +0.01776-2.5909 0.162279-3.3 0.234013-1.1483 0.861931-2.2993 1.7263-3.1643 +0.762874-0.7634 1.91951-1.4813 3.00204-1.8633 0.262572-0.093 0.512691-0.1813 +0.555819-0.1969l0.07842-0.029 0.01577-0.426c0.01284-0.3469 0.03018-0.4706 +0.09332-0.666 0.197394-0.6109 0.642609-1.0525 1.21018-1.2004 0.365688-0.095 +0.860153-0.043 1.2089 0.1282 0.234414 0.1149 0.589851 0.4783 0.725931 0.7422 +0.171483 0.3325 0.207933 0.491 0.225975 0.9825 0.01148 0.3126 0.02671 0.4425 +0.0519 0.4425 0.01961 0 0.2844 0.088 0.588423 0.1954 2.74734 0.9715 4.21726 +2.7794 4.71985 5.805 0.171696 1.0336 0.211308 1.7926 0.259098 4.9646l0.03345 +2.22 1.10911 1.095 1.1091 1.095-0.0014 0.6825-0.0014 0.6825h-9.57-9.57v-0.6872z" /> + </group> +</vector> diff --git a/doze/res/drawable/ic_settings_gestures.xml b/doze/res/drawable/ic_settings_gestures.xml deleted file mode 100644 index 95cdede..0000000 --- a/doze/res/drawable/ic_settings_gestures.xml +++ /dev/null @@ -1,32 +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. ---> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24" - android:viewportHeight="24"> - - <path - android:fillColor="@android:color/white" - android:pathData="M4.7,6.9c0.7-0.7,1.4-1.4,1.7-1.2c0.5,0.2,0,1-0.3,1.5c-0.2,0.4-2.8,3.9-2.8,6.3c0,1.3,0.5,2.3,1.3,3 -c0.7,0.6,1.7,0.7,2.6,0.5c1.1-0.3,1.9-1.4,3-2.8c1.2-1.5,2.8-3.4,4-3.4c1.6,0,1.6,1,1.7,1.8c-3.7,0.6-5.3,3.7-5.3,5.4 -s1.4,3.1,3.2,3.1c1.6,0,4.3-1.3,4.6-6.1H21v-2.5h-2.4c-0.1-1.7-1.1-4.2-4-4.2c-2.2,0-4.1,1.9-4.9,2.8c-0.6,0.7-2,2.5-2.3,2.7 -c-0.2,0.3-0.7,0.8-1.1,0.8c-0.4,0-0.7-0.8-0.4-1.9c0.3-1.1,1.4-2.9,1.8-3.5C8.5,8,9.1,7.2,9.1,5.9C9.1,3.7,7.4,3,6.6,3 -C5.3,3,4.1,4,3.9,4.3C3.5,4.6,3.2,4.9,3,5.2L4.7,6.9z -M13.9,18.6c-0.3,0-0.7-0.3-0.7-0.7c0-0.6,0.7-2.2,2.8-2.8 -C15.8,17.8,14.6,18.6,13.9,18.6z" /> -</vector> 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 index 042fa24..c023c08 100644 --- a/doze/res/values-ast-rES/strings.xml +++ b/doze/res/values-ast-rES/strings.xml @@ -13,15 +13,7 @@ limitations under the License. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="ambient_display_title">Pantalla ambiente</string> - <string name="ambient_display_enable_title">Pantalla ambiente</string> - <string name="ambient_display_enable_summary">Esconsona la pantalla al recibir avisos</string> - <string name="hand_wave_gesture_title">Pasar la mano</string> - <string name="hand_wave_gesture_summary">Amosar notificaciones al pasar la mano</string> - <string name="pick_up_gesture_title">Contestar</string> - <string name="pick_up_gesture_summary">Amosar notificaciones al contestar</string> - <string name="pocket_gesture_title">Bolsiellu</string> - <string name="pocket_gesture_summary">Amosar notificaciones cuando se saque del bolsiellu</string> - <string name="proximity_wake_enable_title">Esconsone de proximidá</string> - <string name="proximity_wake_enable_summary">Esconsonar el preséu al ximelgar</string> + <!-- 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 index ab7d5ed..c023c08 100644 --- a/doze/res/values-be/strings.xml +++ b/doze/res/values-be/strings.xml @@ -13,10 +13,7 @@ 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_enable_title">Індыкацыя падзей</string> - <string name="ambient_display_enable_summary">Улучаць экран падчас атрымання паведамленняў</string> - <string name="hand_wave_gesture_title">Узмах рукою</string> - <string name="pick_up_gesture_title">Падняць</string> - <string name="pocket_gesture_title">Кішэня</string> + <!-- Tilt sensor --> + <!-- Proximity sensor --> + <!-- Help text --> </resources> diff --git a/doze/res/values-bg/strings.xml b/doze/res/values-bg/strings.xml index e6924e1..404898b 100644 --- a/doze/res/values-bg/strings.xml +++ b/doze/res/values-bg/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Атмосферен екран</string> - <string name="ambient_display_enable_title">Атмосферен екран</string> - <string name="ambient_display_enable_summary">Събуждане на екрана при получаване на известие</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="pick_up_gesture_title">Повдигане</string> - <string name="pick_up_gesture_summary">Светлинна индикация при входящо повикване</string> + <string name="hand_wave_gesture_summary">Показва известията при прекарване на ръка над екрана</string> <string name="pocket_gesture_title">Джоб</string> - <string name="pocket_gesture_summary">Светлинна индикация при изваждане от джоб</string> - <string name="proximity_wake_enable_title">Събуждане при засичане на близки устройства</string> - <string name="proximity_wake_enable_summary">Събуди устройство с махане с ръка</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-bs-rBA/strings.xml b/doze/res/values-bs-rBA/strings.xml new file mode 100644 index 0000000..c023c08 --- /dev/null +++ b/doze/res/values-bs-rBA/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 index 4a46915..a948814 100644 --- a/doze/res/values-ca/strings.xml +++ b/doze/res/values-ca/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Pantalla ambient</string> - <string name="ambient_display_enable_title">Pantalla ambient</string> - <string name="ambient_display_enable_summary">Encen la pantalla quan rebis notificacions</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="pick_up_gesture_title">Contesta</string> - <string name="pick_up_gesture_summary">Mostra notificacions en contestar</string> <string name="pocket_gesture_title">Butxaca</string> <string name="pocket_gesture_summary">Mostra notificacions quan te\'l treguis de la butxaca</string> - <string name="proximity_wake_enable_title">Desperta en apropar-se</string> - <string name="proximity_wake_enable_summary">Desperta el dispositiu en passar la mà</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 index 589acaa..4738828 100644 --- a/doze/res/values-cs/strings.xml +++ b/doze/res/values-cs/strings.xml @@ -13,15 +13,22 @@ limitations under the License. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="ambient_display_title">Ambientní zobrazení</string> - <string name="ambient_display_enable_title">Ambientní zobrazení</string> - <string name="ambient_display_enable_summary">Probudit obrazovku při upozornění</string> + <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="pick_up_gesture_title">Sebrání</string> - <string name="pick_up_gesture_summary">Upozornit pulsováním při sebrání</string> <string name="pocket_gesture_title">Kapsa</string> <string name="pocket_gesture_summary">Upozornit pulsováním při vyjmutí z kapsy</string> - <string name="proximity_wake_enable_title">Probudit přiblížením</string> - <string name="proximity_wake_enable_summary">Probudit zařízení pomocí zamávání rukou</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 index 059f03a..cf7c98e 100644 --- a/doze/res/values-de/strings.xml +++ b/doze/res/values-de/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Inaktivitätsdisplay</string> - <string name="ambient_display_enable_title">Inaktivitätsdisplay</string> - <string name="ambient_display_enable_summary">Bildschirm aktivieren, wenn Sie Benachrichtigungen erhalten</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="pick_up_gesture_title">Aufheben</string> - <string name="pick_up_gesture_summary">Beim Aufheben 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> - <string name="proximity_wake_enable_title">Aufwecken bei Annäherung</string> - <string name="proximity_wake_enable_summary">Gerät durch Winken aufwecken</string> + <!-- Help text --> + <string name="dlg_ok">OK</string> + <string name="doze_settings_help_title">Hilfe</string> + <string name="doze_settings_help_text">Diese Features verwenden Sensoren, um im Standby kurz Benachrichtigungen einzublenden. Der gewählte Sensor wird nur bei Eingang einer Benachrichtigung aktiviert. Dies hilft dabei, den Stromverbrauch zu reduzieren. Alternativ kann der Sensor sofort beim Abschalten des Bildschirms aktiviert werden, wodurch sich jedoch der Stromverbrauch erhöht.</string> </resources> diff --git a/doze/res/values-el/strings.xml b/doze/res/values-el/strings.xml index 4226a05..dff5c14 100644 --- a/doze/res/values-el/strings.xml +++ b/doze/res/values-el/strings.xml @@ -14,14 +14,18 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Οθόνη ambient</string> - <string name="ambient_display_enable_title">Οθόνη ambient</string> - <string name="ambient_display_enable_summary">Ενεργοποίηση της οθόνης όταν λαμβάνετε ειδοποιήσεις</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="pick_up_gesture_title">Σήκωμα συσκευής</string> - <string name="pick_up_gesture_summary">Παλμός ειδοποιήσεων κατά το σήκωμα της συσκευής</string> <string name="pocket_gesture_title">Τσέπη</string> <string name="pocket_gesture_summary">Παλμός ειδοποιήσεων κατά την έξοδο από την τσέπη</string> - <string name="proximity_wake_enable_title">Αφύπνιση εγγύτητας</string> - <string name="proximity_wake_enable_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-rCO/strings.xml b/doze/res/values-es-rCO/strings.xml new file mode 100644 index 0000000..c023c08 --- /dev/null +++ b/doze/res/values-es-rCO/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 index 1ec4725..c023c08 100644 --- a/doze/res/values-es/strings.xml +++ b/doze/res/values-es/strings.xml @@ -13,15 +13,7 @@ limitations under the License. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="ambient_display_title">Pantalla ambiental</string> - <string name="ambient_display_enable_title">Pantalla ambiental</string> - <string name="ambient_display_enable_summary">Activar la pantalla cuando se reciben notificaciones</string> - <string name="hand_wave_gesture_title">Pasar la mano</string> - <string name="hand_wave_gesture_summary">Mostrar notificaciones cuando se pase la mano por el dispositivo</string> - <string name="pick_up_gesture_title">Contestar</string> - <string name="pick_up_gesture_summary">Mostrar notificaciones al contestar</string> - <string name="pocket_gesture_title">Bolsillo</string> - <string name="pocket_gesture_summary">Mostrar notificaciones cuando se saque del bolsillo</string> - <string name="proximity_wake_enable_title">Despertar por proximidad</string> - <string name="proximity_wake_enable_summary">Despertar el dispositivo al agitar</string> + <!-- 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 index 3609417..5a2ad35 100644 --- a/doze/res/values-eu-rES/strings.xml +++ b/doze/res/values-eu-rES/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Ambient display</string> - <string name="ambient_display_enable_title">Ambient display</string> - <string name="ambient_display_enable_summary">Esnatu pantaila jakinarazpenak jasotzean</string> - <string name="hand_wave_gesture_title">Eskuarekin agurtu</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="pick_up_gesture_title">Hartu</string> - <string name="pick_up_gesture_summary">Bistarazi jakinarazpenak hartzean</string> <string name="pocket_gesture_title">Poltsikoratu</string> <string name="pocket_gesture_summary">Jakinarazpen argia poltsikotik ateratzean</string> - <string name="proximity_wake_enable_title">Hurbiltasun bidezko esnatzea</string> - <string name="proximity_wake_enable_summary">Esnatu gailua eskuarekin agurtzean</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 index b7c5754..6806978 100644 --- a/doze/res/values-fi/strings.xml +++ b/doze/res/values-fi/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Ambient-näyttö</string> - <string name="ambient_display_enable_title">Ambient-näyttö</string> - <string name="ambient_display_enable_summary">Herätä näyttö kun saat ilmoituksia</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="pick_up_gesture_title">Nosto</string> - <string name="pick_up_gesture_summary">Näytä ilmoitukset nostaessa laitetta</string> <string name="pocket_gesture_title">Tasku</string> <string name="pocket_gesture_summary">Näytä ilmoitukset kun laite otetaan taskusta</string> - <string name="proximity_wake_enable_title">Läheisyysanturin herätys</string> - <string name="proximity_wake_enable_summary">Herätä laite heilauttamalla kättä</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..81cbcab --- /dev/null +++ b/doze/res/values-fr/strings.xml @@ -0,0 +1,27 @@ +<?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">Affichage ambiant</string> + <string name="always_enabled_title">Toujours activer</string> + <!-- Tilt sensor --> + <string name="tilt_sensor_title">Capteur d’inclinaison</string> + <string name="pick_up_title">Prise en main</string> + <!-- Proximity sensor --> + <string name="priximity_sensor_title">Capteur de proximité</string> + <string name="hand_wave_gesture_title">Passage de la main</string> + <string name="pocket_gesture_title">Poche</string> + <!-- Help text --> + <string name="dlg_ok">OK</string> +</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-ga-rIE/strings.xml b/doze/res/values-ga-rIE/strings.xml new file mode 100644 index 0000000..c023c08 --- /dev/null +++ b/doze/res/values-ga-rIE/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 index 90cf9ad..1742320 100644 --- a/doze/res/values-hr/strings.xml +++ b/doze/res/values-hr/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Ambijentni zaslon</string> - <string name="ambient_display_enable_title">Ambijentni zaslon</string> - <string name="ambient_display_enable_summary">Probudi zaslon kada primite obavijesti</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="pick_up_gesture_title">Podizanje</string> - <string name="pick_up_gesture_summary">Prikaz obavijesti kod podizanja</string> <string name="pocket_gesture_title">Džep</string> <string name="pocket_gesture_summary">Prikaz obavijesti kada izvadite uređaj iz džepa</string> - <string name="proximity_wake_enable_title">Probudi zaslon na blizinu</string> - <string name="proximity_wake_enable_summary">Probudi uređaj na zamah rukom</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 index b7ab3d7..d4ac1cc 100644 --- a/doze/res/values-hu/strings.xml +++ b/doze/res/values-hu/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Környezeti kijelző</string> - <string name="ambient_display_enable_title">Környezeti kijelző</string> - <string name="ambient_display_enable_summary">Képernyő ébresztése értesítések fogadásakor</string> + <string name="ambient_display_summary">Képernyő felébresztése értesítések fogadásakor</string> + <string name="always_enabled_title">Mindig engedélyezze</string> + <string name="always_enabled_summary">Figyelje az érzékelő eseményeket, amint a képernyő kikapcsol</string> + <!-- Tilt sensor --> + <string name="tilt_sensor_title">Dőlés érzékelő</string> + <string name="pick_up_title">Kézbevétel</string> + <string name="pick_up_summary">Villantsa fel az értesítéseket kézbevételkor</string> + <!-- Proximity sensor --> + <string name="priximity_sensor_title">Közelség érzékelő</string> <string name="hand_wave_gesture_title">Lebegő simítás</string> <string name="hand_wave_gesture_summary">Értesítések felvillantása lebegő simításnál</string> - <string name="pick_up_gesture_title">Kézbevétel</string> - <string name="pick_up_gesture_summary">Értesítések felvillantása kézbevételkor</string> <string name="pocket_gesture_title">Zseb</string> <string name="pocket_gesture_summary">Értesítések felvillantása zsebből való kivételkor</string> - <string name="proximity_wake_enable_title">Közelség ébresztés</string> - <string name="proximity_wake_enable_summary">Készülék ébresztése lebegő simításra</string> + <!-- Help text --> + <string name="dlg_ok">Rendben</string> + <string name="doze_settings_help_title">Súgó</string> + <string name="doze_settings_help_text">Ezen funkció az érzékelő eseményeket használja a környezeti kijelző értesítési impulzusaihoz. A választott érzékelő csak akkor engedélyezett, ha a készülék értesítést kap, ez segít csökkenteni az akkumulátor használatát. Lehetőség van a választott érzékelő engedélyezésére is, amint a képernyő kikapcsol, de ez nagyobb akkumulátor használatot jelent.</string> </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 index dc60f6f..15530e7 100644 --- a/doze/res/values-it/strings.xml +++ b/doze/res/values-it/strings.xml @@ -13,15 +13,22 @@ 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_enable_title">Ambient display</string> - <string name="ambient_display_enable_summary">Attiva lo schermo quando ricevi notifiche</string> + <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 notifiche al passaggio della mano</string> - <string name="pick_up_gesture_title">Sollevamento</string> - <string name="pick_up_gesture_summary">Mostra notifiche al sollavamento</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 notifiche quando togli dalla tasca</string> - <string name="proximity_wake_enable_title">Risveglio prossimità</string> - <string name="proximity_wake_enable_summary">Risveglia il dispositivo al passaggio della mano</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 index 912e19b..caff68b 100644 --- a/doze/res/values-iw/strings.xml +++ b/doze/res/values-iw/strings.xml @@ -13,15 +13,18 @@ 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_enable_title">התראות ברקע</string> - <string name="ambient_display_enable_summary">הפעל את המסך בעת קבלת התראות</string> - <string name="hand_wave_gesture_title">נפנוף יד</string> - <string name="hand_wave_gesture_summary">הצג התראות בנפנוף יד</string> - <string name="pick_up_gesture_title">הרמה</string> - <string name="pick_up_gesture_summary">הצג התראות בעת הרמה</string> + <string name="ambient_display_title">תצוגת התראות עמומה</string> + <string name="ambient_display_summary">הפעל את המסך כשמתקבלות התראות</string> + <string name="always_enabled_title">אפשר תמיד</string> + <!-- Tilt sensor --> + <string name="tilt_sensor_title">חיישן הטייה</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> - <string name="proximity_wake_enable_title">הפעלה בקירוב</string> - <string name="proximity_wake_enable_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..7a07c4c --- /dev/null +++ b/doze/res/values-ja/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">これらの機能はdoze通知点滅表示を起動するためにセンサーイベントを使用します。電池の使用量を削減するために、端末が通知を受信した時にのみ選択したセンサーが有効になります。画面を消灯した直後から選択したセンサーを有効にするオプションもありますが、電池の使用量が多くなります。</string> +</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 index 7778258..fb4db6e 100644 --- a/doze/res/values-nb/strings.xml +++ b/doze/res/values-nb/strings.xml @@ -13,15 +13,22 @@ limitations under the License. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="ambient_display_title">Ambient skjerm</string> - <string name="ambient_display_enable_title">Ambient skjerm</string> - <string name="ambient_display_enable_summary">Skru på skjermen når du mottar varsler</string> + <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="pick_up_gesture_title">Opp-plukking</string> - <string name="pick_up_gesture_summary">Pulseringsnotifikasjon når plukket opp</string> <string name="pocket_gesture_title">Lomme</string> <string name="pocket_gesture_summary">Pulseringsnotifikasjon når telefonen er tatt opp av lommen</string> - <string name="proximity_wake_enable_title">Berøringsfri vekking</string> - <string name="proximity_wake_enable_summary">Vekk enheten med håndvink</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..a9db278 --- /dev/null +++ b/doze/res/values-nl/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">Omgevingsdisplay</string> + <string name="ambient_display_summary">Scherm aan bij het ontvangen van meldingen</string> + <string name="always_enabled_title">Altijd inschakelen</string> + <string name="always_enabled_summary">Sensoren gebruiken zodra het scherm uit is</string> + <!-- Tilt sensor --> + <string name="tilt_sensor_title">Hellingssensor</string> + <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> + <string name="doze_settings_help_text">Deze functies gebruiken sensoren om een Doze-puls te versturen. De gekozen sensor is alleen ingeschakeld als het apparaat een melding ontvangt. Dit helpt het batterijgebruik te verminderen. Er is ook een optie om de sensor te activeren zodra het scherm uitschakelt, maar dit leidt tot hoger batterijgebruik.</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 index 7b985ab..aa010bf 100644 --- a/doze/res/values-pl/strings.xml +++ b/doze/res/values-pl/strings.xml @@ -14,14 +14,18 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Aktywny wyświetlacz</string> - <string name="ambient_display_enable_title">Aktywny wyświetlacz</string> - <string name="ambient_display_enable_summary">Wybudź ekran, po otrzymaniu powiadomienia</string> - <string name="hand_wave_gesture_title">Machnij ręką</string> - <string name="hand_wave_gesture_summary">Pulsujące powiadomienia po machnięciu ręką</string> - <string name="pick_up_gesture_title">Podnieś</string> - <string name="pick_up_gesture_summary">Pulsujące powiadomienia podczas podnoszenia</string> - <string name="pocket_gesture_title">Kieszeń</string> - <string name="pocket_gesture_summary">Pulsujące powiadomienia po wyjęciu z kieszeni</string> - <string name="proximity_wake_enable_title">Wybudzenie czujnikiem zbliżeniowym</string> - <string name="proximity_wake_enable_summary">Wybudź urządzenie machnięciem ręką</string> + <string name="ambient_display_summary">Wybudź ekran po odebraniu powiadomienia</string> + <string name="always_enabled_summary">Nasłuchiwanie zdarzeń z czujników zaraz po wyłączeniu ekranu</string> + <!-- Tilt sensor --> + <string name="tilt_sensor_title">Czujnik pochylenia</string> + <string name="pick_up_summary">Pokaż powiadomienia, gdy urządzenie zostało podniesione</string> + <!-- Proximity sensor --> + <string name="priximity_sensor_title">Czujnik zbliżeniowy</string> + <string name="hand_wave_gesture_title">Gest fali</string> + <string name="hand_wave_gesture_summary">Pokaż powiadomienia po geście fali</string> + <string name="pocket_gesture_title">Wyjęcie z kieszeni</string> + <string name="pocket_gesture_summary">Pokaż powiadomienia po wyjęciu z kieszeni</string> + <!-- Help text --> + <string name="dlg_ok">OK</string> + <string name="doze_settings_help_title">Pomoc</string> </resources> diff --git a/doze/res/values-pt-rBR/strings.xml b/doze/res/values-pt-rBR/strings.xml index fcec0ba..957fec1 100644 --- a/doze/res/values-pt-rBR/strings.xml +++ b/doze/res/values-pt-rBR/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Tela ambiente</string> - <string name="ambient_display_enable_title">Tela ambiente</string> - <string name="ambient_display_enable_summary">Ligar a tela quando receber notificações</string> - <string name="hand_wave_gesture_title">Agitar a mão</string> - <string name="hand_wave_gesture_summary">Pulsar notificações agitando a mão</string> - <string name="pick_up_gesture_title">Pegar</string> - <string name="pick_up_gesture_summary">Mostrar as notificações ao pegar no dispositivo</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 após remover do bolso</string> - <string name="proximity_wake_enable_title">Acordar aproximando</string> - <string name="proximity_wake_enable_summary">Acordar dispositivo quando chacoalhar a mão</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 index b573b79..688003d 100644 --- a/doze/res/values-pt-rPT/strings.xml +++ b/doze/res/values-pt-rPT/strings.xml @@ -14,14 +14,21 @@ --> <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_enable_title">Visualização de ambiente</string> - <string name="ambient_display_enable_summary">Ligar o ecrã quando receber notificações</string> + <string name="ambient_display_summary">Ligar o ecrã quando receber notificações</string> + <string name="always_enabled_title">Permitir sempre</string> + <string name="always_enabled_summary">Prestar atenção a eventos dos sensores assim que o ecrã é desligado</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">Notificações Led ao passar a mão</string> - <string name="pick_up_gesture_title">Pegar</string> - <string name="pick_up_gesture_summary">Mostrar as notificações ao pegar no dispositivo</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">Notificações Led ao retirar do bolso</string> - <string name="proximity_wake_enable_title">Sensor de proximidade</string> - <string name="proximity_wake_enable_summary">Ligar o dispositivo ao passar a mão pelo sensor de proximidade</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 index 46acdef..dce20e4 100644 --- a/doze/res/values-ru/strings.xml +++ b/doze/res/values-ru/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Индикация событий</string> - <string name="ambient_display_enable_title">Индикация событий</string> - <string name="ambient_display_enable_summary">Включать экран при получении уведомлений</string> - <string name="hand_wave_gesture_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="pick_up_gesture_title">Поднять</string> - <string name="pick_up_gesture_summary">Отображать уведомления при поднятии устройства</string> <string name="pocket_gesture_title">Карман</string> <string name="pocket_gesture_summary">Отображать уведомления при извлечении устройства из кармана</string> - <string name="proximity_wake_enable_title">Включение по датчикам</string> - <string name="proximity_wake_enable_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 index c31ed7d..690ae7c 100644 --- a/doze/res/values-sl/strings.xml +++ b/doze/res/values-sl/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Okoliški zaslon</string> - <string name="ambient_display_enable_title">Okoliški zaslon</string> - <string name="ambient_display_enable_summary">Zbudi zaslon, ko prejmem obvestila</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="pick_up_gesture_title">Dvig</string> - <string name="pick_up_gesture_summary">Utripaj obvestila ob dvigu</string> <string name="pocket_gesture_title">Žep</string> <string name="pocket_gesture_summary">Utripaj obvestila ob odstranitvi iz žepa</string> - <string name="proximity_wake_enable_title">Bujenje ob bližini</string> - <string name="proximity_wake_enable_summary">Zbudi napravo ob mahanju z roko</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 index b89547a..5ab93dc 100644 --- a/doze/res/values-sr/strings.xml +++ b/doze/res/values-sr/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Амбијент приказ</string> - <string name="ambient_display_enable_title">Амбијент приказ</string> - <string name="ambient_display_enable_summary">Пробуди екран кад добијеш обавештење</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="pick_up_gesture_title">Купљење</string> - <string name="pick_up_gesture_summary">Пулсно обавештење при купљењу</string> <string name="pocket_gesture_title">Џеп</string> <string name="pocket_gesture_summary">Пулсно обавештење при уклањању из џепа</string> - <string name="proximity_wake_enable_title">Буђење близином</string> - <string name="proximity_wake_enable_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..030a831 --- /dev/null +++ b/doze/res/values-sv/strings.xml @@ -0,0 +1,23 @@ +<?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 --> + <string name="pick_up_title">Plocka upp</string> + <!-- Proximity sensor --> + <string name="priximity_sensor_title">Närhetscensor</string> + <!-- Help text --> + <string name="dlg_ok">OK</string> + <string name="doze_settings_help_title">Hjälp</string> +</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 index 34566c6..6d8f437 100644 --- a/doze/res/values-zh-rCN/strings.xml +++ b/doze/res/values-zh-rCN/strings.xml @@ -14,14 +14,21 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">环境显示</string> - <string name="ambient_display_enable_title">环境显示</string> - <string name="ambient_display_enable_summary">当接收到通知时唤醒屏幕</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="pick_up_gesture_title">拿起</string> - <string name="pick_up_gesture_summary">拿起时显示通知</string> <string name="pocket_gesture_title">口袋</string> <string name="pocket_gesture_summary">从口袋中拿出时闪烁通知呼吸灯</string> - <string name="proximity_wake_enable_title">距离传感器唤醒</string> - <string name="proximity_wake_enable_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 be45337..63146cb 100644 --- a/doze/res/values/strings.xml +++ b/doze/res/values/strings.xml @@ -14,20 +14,22 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="ambient_display_title">Ambient display</string> + <string name="ambient_display_summary">Wake screen when you receive notifications</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="pick_up_gesture_title">Pick-up</string> - <string name="pick_up_gesture_summary">Pulse notifications on pick-up</string> - <string name="pocket_gesture_title">Pocket</string> <string name="pocket_gesture_summary">Pulse notifications on removal from pocket</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..dfa608b --- /dev/null +++ b/doze/res/xml/doze_settings.xml @@ -0,0 +1,58 @@ +<?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" /> + + </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" /> + + </PreferenceCategory> + +</PreferenceScreen> diff --git a/doze/res/xml/gesture_panel.xml b/doze/res/xml/gesture_panel.xml deleted file mode 100644 index 7cab220..0000000 --- a/doze/res/xml/gesture_panel.xml +++ /dev/null @@ -1,67 +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_pick_up" - android:defaultValue="false" - android:title="@string/pick_up_gesture_title" - android:summary="@string/pick_up_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="category_extras" - android:title="@*cyanogenmod.platform:string/touchscreen_gesture_extras"> - - <SwitchPreference - android:key="proximity_wake_enable" - android:defaultValue="false" - android:title="@string/proximity_wake_enable_title" - android:summary="@string/proximity_wake_enable_summary" /> - - <SwitchPreference - android:key="touchscreen_gesture_haptic_feedback" - android:persistent="false" - android:title="@*cyanogenmod.platform:string/touchscreen_gesture_haptic_feedback" - android:summary="@*cyanogenmod.platform:string/touchscreen_gesture_haptic_feedback_summary" /> - - </PreferenceCategory> - -</PreferenceScreen> diff --git a/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java b/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java deleted file mode 100644 index 64851cd..0000000 --- a/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java +++ /dev/null @@ -1,48 +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.device; - -import android.content.BroadcastReceiver; -import android.content.ComponentName; -import android.content.Context; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.util.Log; - -public class BootCompletedReceiver extends BroadcastReceiver { - - private static final boolean DEBUG = false; - private static final String TAG = "SettingsDevice"; - - @Override - public void onReceive(final Context context, Intent intent) { - if (DEBUG) Log.d(TAG, "Starting service"); - enableComponent(context, TouchscreenGestureSettings.class.getName()); - context.startService(new Intent(context, SensorsDozeService.class)); - } - - private void enableComponent(Context context, String component) { - ComponentName name = new ComponentName(context, component); - PackageManager pm = context.getPackageManager(); - if (pm.getComponentEnabledSetting(name) - == PackageManager.COMPONENT_ENABLED_STATE_DISABLED) { - pm.setComponentEnabledSetting(name, - PackageManager.COMPONENT_ENABLED_STATE_ENABLED, - PackageManager.DONT_KILL_APP); - } - } -} diff --git a/doze/src/com/cyanogenmod/settings/device/OrientationSensor.java b/doze/src/com/cyanogenmod/settings/device/OrientationSensor.java deleted file mode 100644 index 4d32b79..0000000 --- a/doze/src/com/cyanogenmod/settings/device/OrientationSensor.java +++ /dev/null @@ -1,152 +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.device; - -import android.content.Context; -import android.hardware.Sensor; -import android.hardware.SensorEvent; -import android.hardware.SensorEventListener; -import android.hardware.SensorManager; - -public class OrientationSensor implements SensorEventListener { - - public static final int ORIENTATION_UNKNOWN = 0; - public static final int ORIENTATION_FACE_DOWN = 1; - public static final int ORIENTATION_FACE_UP = 2; - public static final int ORIENTATION_VERTICAL = 3; - - private static final int ORIENTATION_DELAY = 60 * 1000; - private static final int ORIENTATION_LATENCY = 0; - private static final float MATH_PI_1_4 = 0.785398F; - private static final float MATH_PI_3_4 = 2.35619F; - - private boolean mEnabled; - private boolean mReady; - private int mState; - private float mGravity[]; - private float mMagnetic[]; - private OrientationListener mOrientationListener; - private Sensor mAccelerometerSensor; - private Sensor mMagneticFieldSensor; - private SensorManager mSensorManager; - - public static interface OrientationListener { - public abstract void onEvent(); - } - - public boolean isFaceDown() { - return mReady && mState == ORIENTATION_FACE_DOWN; - } - - public boolean isFaceUp() { - return mReady && mState == ORIENTATION_FACE_UP; - } - - public boolean isVertical() { - return mReady && mState == ORIENTATION_VERTICAL; - } - - public OrientationSensor(Context context, SensorManager sensorManager, - OrientationListener orientationListener) { - mEnabled = false; - reset(); - mAccelerometerSensor = sensorManager.getDefaultSensor( - Sensor.TYPE_ACCELEROMETER, false); - mMagneticFieldSensor = sensorManager.getDefaultSensor( - Sensor.TYPE_MAGNETIC_FIELD, false); - - mOrientationListener = orientationListener; - mSensorManager = sensorManager; - } - - public void onAccuracyChanged(Sensor sensor, int accuracy) { - } - - public void onSensorChanged(SensorEvent event) { - if (event.values.length == 0) return; - - switch (event.sensor.getType()) { - case Sensor.TYPE_ACCELEROMETER: - mGravity = event.values; - break; - case Sensor.TYPE_MAGNETIC_FIELD: - mMagnetic = event.values; - break; - default: - break; - } - - if (mGravity != null && mMagnetic != null) { - float[] rotationMatrix = new float[9]; - if (SensorManager.getRotationMatrix(rotationMatrix, new float[9], - mGravity, mMagnetic)) - { - float[] values = new float[3]; - mState = ORIENTATION_UNKNOWN; - SensorManager.getOrientation(rotationMatrix, values); - - // Orientation is flat - if (values[1] > -MATH_PI_1_4 && values[1] < MATH_PI_1_4) { - // Device is face up - if (values[2] > -MATH_PI_1_4 && values[2] < MATH_PI_1_4) { - mState = ORIENTATION_FACE_UP; - } - // Device is face down - else if (values[2] < -MATH_PI_3_4 || values[2] > MATH_PI_3_4) { - mState = ORIENTATION_FACE_DOWN; - } - } - // Orientation is vertical - if (values[1] < -MATH_PI_1_4 || values[1] > MATH_PI_1_4 || - (values[2] > MATH_PI_1_4 && values[2] < MATH_PI_3_4) || - (values[2] > -MATH_PI_3_4 && values[2] < -MATH_PI_1_4)) { - mState = ORIENTATION_VERTICAL; - } - - // Launch an event - mReady = true; - mOrientationListener.onEvent(); - } - } - } - - public void enable() { - if (!mEnabled && mAccelerometerSensor != null && mMagneticFieldSensor != null) { - reset(); - mState = ORIENTATION_UNKNOWN; - mSensorManager.registerListener(this, mAccelerometerSensor, - ORIENTATION_DELAY, ORIENTATION_LATENCY); - mSensorManager.registerListener(this, mMagneticFieldSensor, - ORIENTATION_DELAY, ORIENTATION_LATENCY); - mEnabled = true; - } - } - - public void reset() { - mGravity = null; - mMagnetic = null; - mReady = false; - } - - public void disable() { - if (mEnabled && mAccelerometerSensor != null && mMagneticFieldSensor != null) { - mSensorManager.unregisterListener(this,mAccelerometerSensor); - mSensorManager.unregisterListener(this, mMagneticFieldSensor); - mEnabled = false; - } - } -} diff --git a/doze/src/com/cyanogenmod/settings/device/PickUpSensor.java b/doze/src/com/cyanogenmod/settings/device/PickUpSensor.java deleted file mode 100644 index 79e3d9b..0000000 --- a/doze/src/com/cyanogenmod/settings/device/PickUpSensor.java +++ /dev/null @@ -1,122 +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.device; - -import android.content.Context; -import android.hardware.Sensor; -import android.hardware.SensorEvent; -import android.hardware.SensorEventListener; -import android.hardware.SensorManager; - -public class PickUpSensor implements SensorEventListener { - - public static final int PICK_UP_UNKNOWN = 0; - public static final int PICK_UP_FALSE = 1; - public static final int PICK_UP_TRUE = 2; - - private static final int PICKUP_DELAY = 500 * 1000; - private static final int PICKUP_LATENCY = 100 * 1000; - private static final float PICK_UP_SAFEZONE = 5; - private static final float PICK_UP_THRESHOLD = 6; - - private boolean mEnabled; - private boolean mReady; - private int mState; - private Sensor mPickUpSensor; - private PickUpListener mPickUpListener; - private SensorManager mSensorManager; - - public static interface PickUpListener { - public abstract void onEvent(); - public abstract void onInit(); - } - - public boolean isPickedUp() { - return mReady && mState == PICK_UP_TRUE; - } - - public PickUpSensor(Context context, SensorManager sensorManager, - PickUpListener pickUpListener) { - mEnabled = false; - reset(); - mPickUpSensor = sensorManager.getDefaultSensor( - Sensor.TYPE_ACCELEROMETER, false); - - mPickUpListener = pickUpListener; - mSensorManager = sensorManager; - } - - public void onAccuracyChanged(Sensor sensor, int accuracy) { - } - - public void onSensorChanged(SensorEvent event) { - if (event.values.length == 0) return; - float x = event.values[0]; - float y = event.values[1]; - float z = event.values[2]; - - // Device is picked-up - if (isPickUpAbove(x, y, PICK_UP_SAFEZONE)) { - if (isPickUpAbove(x, y, PICK_UP_THRESHOLD)) { - if (mState != PICK_UP_TRUE) { - mState = PICK_UP_TRUE; - if (mReady) { - mPickUpListener.onEvent(); - } - } - } - } - // Device is layed down - else if (mState != PICK_UP_FALSE) { - mState = mState = PICK_UP_FALSE; - if (mReady) { - mPickUpListener.onEvent(); - } - } - - // Init the sensor - if (!mReady) { - mReady = true; - mPickUpListener.onInit(); - } - } - - public boolean isPickUpAbove(float x, float y, float threshold) { - return (x < -threshold || x > threshold || y > threshold); - } - - public void enable() { - if (!mEnabled && mPickUpSensor != null) { - reset(); - mSensorManager.registerListener(this, mPickUpSensor, - PICKUP_DELAY, PICKUP_LATENCY); - mEnabled = true; - } - } - - public void reset() { - mReady = false; - mState = PICK_UP_UNKNOWN; - } - - public void disable() { - if (mEnabled && mPickUpSensor != null) { - mSensorManager.unregisterListener(this, mPickUpSensor); - mEnabled = false; - } - } -} diff --git a/doze/src/com/cyanogenmod/settings/device/ProximitySensor.java b/doze/src/com/cyanogenmod/settings/device/ProximitySensor.java deleted file mode 100644 index a2ba9e9..0000000 --- a/doze/src/com/cyanogenmod/settings/device/ProximitySensor.java +++ /dev/null @@ -1,99 +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.device; - -import android.content.Context; -import android.hardware.Sensor; -import android.hardware.SensorEvent; -import android.hardware.SensorEventListener; -import android.hardware.SensorManager; - -public class ProximitySensor implements SensorEventListener { - - private static final int PROXIMITY_DELAY = 1000 * 1000; - private static final int PROXIMITY_LATENCY = 100 * 1000; - - private boolean mEnabled; - private boolean mReady; - private boolean mState; - private float mMaxRange; - private ProximityListener mProximityListener; - private Sensor mProximitySensor; - private SensorManager mSensorManager; - - public static interface ProximityListener { - public abstract void onEvent(boolean isNear, long timestamp); - public abstract void onInit(boolean isNear, long timestamp); - } - - public ProximitySensor(Context context, SensorManager sensorManager, - ProximityListener proximitylistener) { - mEnabled = false; - reset(); - mProximitySensor = sensorManager.getDefaultSensor( - Sensor.TYPE_PROXIMITY, true); - - mProximityListener = proximitylistener; - mSensorManager = sensorManager; - - if (mProximitySensor != null) { - mMaxRange = mProximitySensor.getMaximumRange(); - } - } - - public void onAccuracyChanged(Sensor sensor, int accuracy) { - } - - public void onSensorChanged(SensorEvent event) { - if (event.values.length == 0) return; - boolean isNear = (event.values[0] < mMaxRange); - - // Launch an event - if (mState != isNear) { - mState = isNear; - if (mReady) { - mProximityListener.onEvent(mState, event.timestamp); - } - } - - // Init the sensor - if (!mReady) { - mProximityListener.onInit(mState, event.timestamp); - mReady = true; - } - } - - public void enable() { - if (!mEnabled && mProximitySensor != null) { - mSensorManager.registerListener(this, mProximitySensor, - PROXIMITY_DELAY, PROXIMITY_LATENCY); - mEnabled = true; - } - } - - public void reset() { - mReady = false; - mState = false; - } - - public void disable() { - if (mEnabled && mProximitySensor != null) { - mSensorManager.unregisterListener(this, mProximitySensor); - mEnabled = false; - } - } -} diff --git a/doze/src/com/cyanogenmod/settings/device/SensorsDozeService.java b/doze/src/com/cyanogenmod/settings/device/SensorsDozeService.java deleted file mode 100644 index cc0929c..0000000 --- a/doze/src/com/cyanogenmod/settings/device/SensorsDozeService.java +++ /dev/null @@ -1,485 +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.device; - -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.SensorManager; -import android.media.AudioManager; -import android.os.IBinder; -import android.os.PowerManager; -import android.os.PowerManager.WakeLock; -import android.os.SystemClock; -import android.os.UserHandle; -import android.os.Vibrator; -import android.preference.PreferenceManager; -import android.provider.Settings; -import android.util.Log; - -import cyanogenmod.providers.CMSettings; - -public class SensorsDozeService extends Service { - - public static final boolean DEBUG = false; - public static final String TAG = "SensorsDozeService"; - - private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; - - private static final int HANDWAVE_DELTA_NS = 1000 * 1000 * 1000; - private static final int PULSE_MIN_INTERVAL_MS = 5000; - private static final int SENSORS_WAKELOCK_DURATION = 1000; - private static final int VIBRATOR_ACKNOWLEDGE = 40; - - private static final String KEY_GESTURE_HAND_WAVE = "gesture_hand_wave"; - private static final String KEY_GESTURE_PICK_UP = "gesture_pick_up"; - private static final String KEY_GESTURE_POCKET = "gesture_pocket"; - private static final String KEY_PROXIMITY_WAKE = "proximity_wake_enable"; - - private Context mContext; - private OrientationSensor mOrientationSensor; - private PickUpSensor mPickUpSensor; - private PowerManager mPowerManager; - private ProximitySensor mProximitySensor; - private SensorManager mSensorManager; - private WakeLock mSensorsWakeLock; - - private boolean mDozeEnabled = false; - private boolean mHandwaveDoze = false; - private boolean mHandwaveGestureEnabled = false; - private boolean mPickUpDoze = false; - private boolean mPickUpGestureEnabled = false; - private boolean mPickUpState = false; - private boolean mPocketDoze = false; - private boolean mPocketGestureEnabled = false; - private boolean mProximityNear = false; - private boolean mProximityWake = false; - private boolean mProximityWakeEnabled = false; - private long mLastPulseTimestamp = 0; - private long mLastStowedTimestamp = 0; - - private OrientationSensor.OrientationListener mOrientationListener = - new OrientationSensor.OrientationListener() { - public void onEvent() { - setOrientationSensor(false, false); - handleOrientation(); - } - }; - - private PickUpSensor.PickUpListener mPickUpListener = - new PickUpSensor.PickUpListener() { - public void onEvent() { - mPickUpState = mPickUpSensor.isPickedUp(); - handlePickUp(); - } - public void onInit() { - mPickUpState = mPickUpSensor.isPickedUp(); - if (DEBUG) Log.d(TAG, "Pick-up sensor init : " + mPickUpState); - } - }; - - private ProximitySensor.ProximityListener mProximityListener = - new ProximitySensor.ProximityListener() { - public void onEvent(boolean isNear, long timestamp) { - mProximityNear = isNear; - handleProximity(timestamp); - } - public void onInit(boolean isNear, long timestamp) { - if (DEBUG) Log.d(TAG, "Proximity sensor init : " + isNear); - mLastStowedTimestamp = timestamp; - mProximityNear = isNear; - - // Pick-up or Orientation sensor initialization - if (!isEventPending() && !isNear && isPickUpEnabled()) { - setPickUpSensor(true, false); - } - } - }; - - public void onCreate() { - if (DEBUG) Log.d(TAG, "Creating service"); - - super.onCreate(); - mContext = this; - - mPowerManager = (PowerManager) mContext.getSystemService( - Context.POWER_SERVICE); - mSensorManager = (SensorManager) mContext.getSystemService( - Context.SENSOR_SERVICE); - mSensorsWakeLock = mPowerManager.newWakeLock( - PowerManager.PARTIAL_WAKE_LOCK, TAG + "WakeLock"); - - mOrientationSensor = new OrientationSensor(mContext, mSensorManager, - mOrientationListener); - mPickUpSensor = new PickUpSensor(mContext, mSensorManager, - mPickUpListener); - mProximitySensor = new ProximitySensor(mContext, mSensorManager, - mProximityListener); - - SharedPreferences sharedPrefs = PreferenceManager. - getDefaultSharedPreferences(mContext); - loadPreferences(sharedPrefs); - sharedPrefs.registerOnSharedPreferenceChangeListener(mPrefListener); - } - - public int onStartCommand(Intent intent, int flags, int startId) { - if (DEBUG) Log.d(TAG, "Starting service"); - - IntentFilter intentScreen = new IntentFilter(Intent.ACTION_SCREEN_ON); - intentScreen.addAction(Intent.ACTION_SCREEN_OFF); - mContext.registerReceiver(mScreenStateReceiver, intentScreen); - if (!mPowerManager.isInteractive()) { - onDisplayOff(); - } - - return START_STICKY; - } - - public void onDestroy() { - if (DEBUG) Log.d(TAG, "Destroying service"); - - super.onDestroy(); - setOrientationSensor(false, true); - setPickUpSensor(false, true); - setProximitySensor(false, true); - } - - public IBinder onBind(Intent intent) { - return null; - } - - private void getDozeEnabled() { - boolean enabled = true; - if (android.provider.Settings.Secure.getInt( - mContext.getContentResolver(), Settings.Secure.DOZE_ENABLED, - 1) == 0) { - enabled = false; - } - mDozeEnabled = enabled; - } - - private boolean isDozeEnabled() { - return mDozeEnabled; - } - - private boolean isHandwaveEnabled() { - return mHandwaveGestureEnabled && isDozeEnabled(); - } - - private boolean isPickUpEnabled() { - return mPickUpGestureEnabled && isDozeEnabled(); - } - - private boolean isPocketEnabled() { - return mPocketGestureEnabled && isDozeEnabled(); - } - - private boolean isProximityWakeEnabled() { - return mProximityWakeEnabled; - } - - private boolean isEventPending() { - return mHandwaveDoze || mPickUpDoze || mPocketDoze || mProximityWake; - } - - private void handleProximity(long timestamp) { - long delta = timestamp - mLastStowedTimestamp; - boolean quickWave = delta < HANDWAVE_DELTA_NS; - getDozeEnabled(); - if (DEBUG) Log.d(TAG, "Proximity sensor : isNear " + mProximityNear); - - // Proximity sensor released - if (!mProximityNear) { - mHandwaveDoze = false; - mPickUpDoze = false; - mPocketDoze = false; - mProximityWake = false; - - // Handwave / Pick-up / Pocket gestures activated - if (isHandwaveEnabled() && isPickUpEnabled() && - isPocketEnabled()) { - mHandwaveDoze = quickWave; - mPickUpDoze = !quickWave; - mPocketDoze = !quickWave; - setOrientationSensor(true, false); - } - // Proximity Wake detected - else if (isProximityWakeEnabled() && quickWave) { - mProximityWake = true; - setOrientationSensor(true, false); - } - // Handwave Doze detected - else if (isHandwaveEnabled() && quickWave) { - mHandwaveDoze = true; - setOrientationSensor(true, false); - } - // Pick-up / Pocket Doze detected - else if ((isPickUpEnabled() || isPocketEnabled()) && !quickWave) { - mPickUpDoze = isPickUpEnabled(); - mPocketDoze = isPocketEnabled(); - setOrientationSensor(true, false); - } - // Start the pick-up sensor - else if (isPickUpEnabled()) { - setPickUpSensor(true, false); - } - } - // Proximity sensor stowed - else { - mLastStowedTimestamp = timestamp; - setOrientationSensor(false, false); - setPickUpSensor(false, false); - } - } - - private void handleOrientation() { - if (DEBUG) Log.d(TAG, "Orientation sensor : " + - "FaceDown " + mOrientationSensor.isFaceDown() + - ", FaceUp " + mOrientationSensor.isFaceUp() + - ", Vertical " + mOrientationSensor.isVertical()); - - // Orientation Doze analysis - if (!mProximityNear) { - analyseDoze(); - } - } - - private void handlePickUp() { - getDozeEnabled(); - if (DEBUG) Log.d(TAG, "Pick-up sensor : " + mPickUpState); - - // Pick-up Doze analysis - if (mPickUpState && isPickUpEnabled()) { - mPickUpDoze = true; - launchWakeLock(); - analyseDoze(); - } - // Picked-down - else { - mPickUpDoze = false; - } - } - - private void analyseDoze() { - getDozeEnabled(); - if (DEBUG) - Log.d(TAG, "Doze analysis : HandwaveDoze " + mHandwaveDoze + - ", PickUpDoze " + mPickUpDoze + - ", PocketDoze " + mPocketDoze + - ", ProximityWake " + mProximityWake + - ", PickUpState " + mPickUpState); - - // Handwave Doze launch - if (mHandwaveDoze && !mOrientationSensor.isFaceDown()) { - launchDozePulse(); - } - // Pocket Doze launch - else if (mPickUpDoze && - ((mPickUpState && !mProximityNear) || - (!mPickUpState && mOrientationSensor.isFaceDown()))) { - launchDozePulse(); - } - // Pocket Doze launch - else if (mPocketDoze && mOrientationSensor.isVertical()) { - launchDozePulse(); - } - // Proximity Wake launch - else if (mProximityWake && !mOrientationSensor.isFaceDown()) { - launchDeviceWake(); - } - - // Restore the pick-up sensor - if (!mProximityNear && isPickUpEnabled()) { - setPickUpSensor(true, false); - } - - resetValues(); - return; - } - - private void launchDozePulse() { - long delta; - if (mLastPulseTimestamp != 0) { - delta = SystemClock.elapsedRealtime() - mLastPulseTimestamp; - } else { - delta = PULSE_MIN_INTERVAL_MS; - } - - if (delta >= PULSE_MIN_INTERVAL_MS) { - if (DEBUG) Log.d(TAG, "Doze launch. Time since last : " + delta); - - launchWakeLock(); - launchAcknowledge(); - mLastPulseTimestamp = SystemClock.elapsedRealtime(); - mContext.sendBroadcastAsUser(new Intent(DOZE_INTENT), - UserHandle.ALL); - } - else if (DEBUG) Log.d(TAG, "Doze avoided. Time since last : " + delta); - } - - private void launchDeviceWake() { - if (DEBUG) Log.d(TAG, "Waking device."); - - mSensorsWakeLock.acquire(SENSORS_WAKELOCK_DURATION); - launchAcknowledge(); - mPowerManager.wakeUp(SystemClock.uptimeMillis()); - } - - private void launchWakeLock() { - mSensorsWakeLock.acquire(SENSORS_WAKELOCK_DURATION); - } - - private void launchAcknowledge() { - AudioManager audioManager = (AudioManager) mContext.getSystemService( - Context.AUDIO_SERVICE); - Vibrator vibrator = (Vibrator) mContext.getSystemService( - Context.VIBRATOR_SERVICE); - - boolean enabled = CMSettings.System.getInt(mContext.getContentResolver(), - CMSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK, 1) != 0; - - switch (audioManager.getRingerMode()) { - case AudioManager.RINGER_MODE_SILENT: - break; - case AudioManager.RINGER_MODE_VIBRATE: - case AudioManager.RINGER_MODE_NORMAL: - default: - if (enabled) { - vibrator.vibrate(VIBRATOR_ACKNOWLEDGE); - } - break; - } - } - - private void resetValues() { - mHandwaveDoze = false; - mPickUpDoze = false; - mPocketDoze = false; - mProximityWake = false; - } - - private void setOrientationSensor(boolean enabled, boolean reset) { - if (mOrientationSensor == null) return; - - if (reset) { - mOrientationSensor.reset(); - } - if (enabled) { - setPickUpSensor(false, false); - launchWakeLock(); - mOrientationSensor.enable(); - } else { - mOrientationSensor.disable(); - } - } - - private void setPickUpSensor(boolean enabled, boolean reset) { - if (mPickUpSensor == null) return; - - if (reset) { - mPickUpSensor.reset(); - } - if (enabled) { - setOrientationSensor(false, false); - mPickUpSensor.enable(); - } else { - mPickUpSensor.disable(); - } - } - - private void setProximitySensor(boolean enabled, boolean reset) { - if (mProximitySensor == null) return; - - if (reset) { - mProximitySensor.reset(); - } - if (enabled) { - mProximitySensor.enable(); - } else { - mProximitySensor.disable(); - } - } - - private void onDisplayOn() { - if (DEBUG) Log.d(TAG, "Display on"); - - setOrientationSensor(false, true); - setPickUpSensor(false, true); - setProximitySensor(false, true); - } - - private void onDisplayOff() { - if (DEBUG) Log.d(TAG, "Display off"); - - getDozeEnabled(); - mLastPulseTimestamp = 0; - if (isHandwaveEnabled() || isPickUpEnabled() || isPocketEnabled() || - isProximityWakeEnabled()) { - resetValues(); - setOrientationSensor(false, true); - setPickUpSensor(false, true); - setProximitySensor(true, true); - } - } - - private void loadPreferences(SharedPreferences sharedPreferences) { - mHandwaveGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_HAND_WAVE, false); - mPickUpGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_PICK_UP, false); - mPocketGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_POCKET, false); - mProximityWakeEnabled = sharedPreferences.getBoolean( - KEY_PROXIMITY_WAKE, 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 (KEY_GESTURE_HAND_WAVE.equals(key)) { - mHandwaveGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_HAND_WAVE, false); - } else if (KEY_GESTURE_PICK_UP.equals(key)) { - mPickUpGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_PICK_UP, false); - } else if (KEY_GESTURE_POCKET.equals(key)) { - mPocketGestureEnabled = sharedPreferences.getBoolean( - KEY_GESTURE_POCKET, false); - } else if (KEY_PROXIMITY_WAKE.equals(key)) { - mProximityWakeEnabled = sharedPreferences.getBoolean( - KEY_PROXIMITY_WAKE, false); - } - } - }; -} diff --git a/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java b/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java deleted file mode 100644 index 58f9f7a..0000000 --- a/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java +++ /dev/null @@ -1,143 +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.device; - -import android.app.ActionBar; -import android.os.Bundle; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.preference.SwitchPreference; -import android.provider.Settings; -import android.view.Menu; -import android.view.MenuItem; - -import cyanogenmod.providers.CMSettings; - -public class TouchscreenGestureSettings extends PreferenceActivity { - - private static final String KEY_AMBIENT_DISPLAY_ENABLE = "ambient_display_enable"; - private static final String KEY_GESTURE_HAND_WAVE = "gesture_hand_wave"; - private static final String KEY_GESTURE_PICK_UP = "gesture_pick_up"; - private static final String KEY_GESTURE_POCKET = "gesture_pocket"; - private static final String KEY_HAPTIC_FEEDBACK = "touchscreen_gesture_haptic_feedback"; - private static final String KEY_PROXIMITY_WAKE = "proximity_wake_enable"; - - private SwitchPreference mAmbientDisplayPreference; - private SwitchPreference mHandwavePreference; - private SwitchPreference mHapticFeedback; - private SwitchPreference mPickupPreference; - private SwitchPreference mPocketPreference; - private SwitchPreference mProximityWakePreference; - - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - addPreferencesFromResource(R.xml.gesture_panel); - boolean dozeEnabled = isDozeEnabled(); - mAmbientDisplayPreference = (SwitchPreference) findPreference(KEY_AMBIENT_DISPLAY_ENABLE); - mAmbientDisplayPreference.setChecked(dozeEnabled); - mAmbientDisplayPreference.setOnPreferenceChangeListener(mAmbientDisplayPrefListener); - mHandwavePreference = (SwitchPreference) findPreference(KEY_GESTURE_HAND_WAVE); - mHandwavePreference.setEnabled(dozeEnabled); - mHandwavePreference.setOnPreferenceChangeListener(mGesturePrefListener); - mPickupPreference = (SwitchPreference) findPreference(KEY_GESTURE_PICK_UP); - mPickupPreference.setEnabled(dozeEnabled); - mPocketPreference = (SwitchPreference) findPreference(KEY_GESTURE_POCKET); - mPocketPreference.setEnabled(dozeEnabled); - mProximityWakePreference = (SwitchPreference) findPreference(KEY_PROXIMITY_WAKE); - mProximityWakePreference.setOnPreferenceChangeListener(mGesturePrefListener); - mHapticFeedback = (SwitchPreference) findPreference(KEY_HAPTIC_FEEDBACK); - mHapticFeedback.setOnPreferenceChangeListener(mHapticPrefListener); - - final ActionBar actionBar = getActionBar(); - actionBar.setDisplayHomeAsUpEnabled(true); - } - - @Override - protected void onResume() { - super.onResume(); - mHapticFeedback.setChecked(CMSettings.System.getInt(getContentResolver(), - CMSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK, 1) != 0); - getListView().setPadding(0, 0, 0, 0); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == android.R.id.home) { - onBackPressed(); - return true; - } - 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; - } - - private Preference.OnPreferenceChangeListener mAmbientDisplayPrefListener = - new Preference.OnPreferenceChangeListener() { - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - boolean enable = (boolean) newValue; - boolean ret = enableDoze(enable); - if (ret) { - mHandwavePreference.setEnabled(enable); - mPickupPreference.setEnabled(enable); - mPocketPreference.setEnabled(enable); - } - return ret; - } - }; - - private Preference.OnPreferenceChangeListener mGesturePrefListener = - new Preference.OnPreferenceChangeListener() { - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - if ((boolean) newValue) { - final String key = preference.getKey(); - if (KEY_GESTURE_HAND_WAVE.equals(key)) { - mProximityWakePreference.setChecked(false); - } else if (KEY_PROXIMITY_WAKE.equals(key)) { - mHandwavePreference.setChecked(false); - } - } - return true; - } - }; - - private Preference.OnPreferenceChangeListener mHapticPrefListener = - new Preference.OnPreferenceChangeListener() { - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - final String key = preference.getKey(); - if (KEY_HAPTIC_FEEDBACK.equals(key)) { - final boolean value = (Boolean) newValue; - CMSettings.System.putInt(getContentResolver(), - CMSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK, value ? 1 : 0); - return true; - } - return false; - } - }; - -} diff --git a/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java b/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java new file mode 100644 index 0000000..2b3c35a --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/BootCompletedReceiver.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2016 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.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.util.Log; + +public class BootCompletedReceiver extends BroadcastReceiver { + + private static final boolean DEBUG = false; + private static final String TAG = "HammerheadDoze"; + + @Override + public void onReceive(final Context context, Intent intent) { + 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..fda63a4 --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/DozeService.java @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2016 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)) { + mTiltSensor.enable(); + } + if (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 new file mode 100644 index 0000000..314d5bc --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java @@ -0,0 +1,148 @@ +/* + * Copyright (C) 2016 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.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; + +public class DozeSettings extends PreferenceActivity implements OnPreferenceChangeListener { + + private Context mContext; + private SharedPreferences mPreferences; + + private SwitchPreference mAmbientDisplayPreference; + private SwitchPreference mPickUpPreference; + private SwitchPreference mHandwavePreference; + private SwitchPreference mPocketPreference; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + 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(Utils.AMBIENT_DISPLAY_KEY); + // Read from DOZE_ENABLED secure setting + mAmbientDisplayPreference.setChecked(dozeEnabled); + mAmbientDisplayPreference.setOnPreferenceChangeListener(this); + + mPickUpPreference = + (SwitchPreference) findPreference(Utils.PICK_UP_KEY); + mPickUpPreference.setOnPreferenceChangeListener(this); + + mHandwavePreference = + (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY); + mHandwavePreference.setOnPreferenceChangeListener(this); + + mPocketPreference = + (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); + mPocketPreference.setOnPreferenceChangeListener(this); + + final ActionBar actionBar = getActionBar(); + actionBar.setDisplayHomeAsUpEnabled(true); + } + + @Override + protected void onResume() { + super.onResume(); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == android.R.id.home) { + onBackPressed(); + return true; + } + return false; + } + + @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); + Utils.startService(mContext); + return true; + } else if (Utils.GESTURE_HAND_WAVE_KEY.equals(key)) { + mHandwavePreference.setChecked(value); + Utils.startService(mContext); + return true; + } else if (Utils.GESTURE_POCKET_KEY.equals(key)) { + mPocketPreference.setChecked(value); + Utils.startService(mContext); + return true; + } + return false; + } + + public static class HelpDialogFragment extends DialogFragment { + @Override + 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(); + } + + @Override + 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"); + } +} 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..e5de942 --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2016 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..4802f5c --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2016 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 GESTURE_HAND_WAVE_KEY = "gesture_hand_wave"; + protected static final String GESTURE_POCKET_KEY = "gesture_pocket"; + + 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 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 sensorsEnabled(Context context) { + return pickUpEnabled(context) || handwaveGestureEnabled(context) + || pocketGestureEnabled(context); + } +} |
