From bc309d28f6f4c016fbf04189ac955ad73980d3c7 Mon Sep 17 00:00:00 2001 From: rohan Date: Mon, 26 Jun 2017 19:09:43 +0000 Subject: [PATCH 01/62] Minor fixups --- aosp_gemini.mk | 5 ++--- device.mk | 7 +++---- jdc.dependencies | 12 ------------ .../frameworks/base/core/res/res/values/config.xml | 2 -- 4 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 jdc.dependencies diff --git a/aosp_gemini.mk b/aosp_gemini.mk index 9e1a5aad..432e2f22 100644 --- a/aosp_gemini.mk +++ b/aosp_gemini.mk @@ -22,7 +22,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) $(call inherit-product, device/xiaomi/gemini/device.mk) # Inherit some common CM stuff. -$(call inherit-product, vendor/aosp/config/common_full_phone.mk) +$(call inherit-product, vendor/aosp/common.mk) # Device identifier. This must come after all inclusions. PRODUCT_NAME := aosp_gemini @@ -40,5 +40,4 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ PRIVATE_BUILD_DESC="gemini-user 7.0 NRD90M V8.2.1.0.NAACNEB release-keys" TARGET_VENDOR := Xiaomi - -JDC_BUILD_TYPE := STABLE-EAS +DEFAULT_ROOT_METHOD := supersu diff --git a/device.mk b/device.mk index 3b354085..6f1b5baa 100644 --- a/device.mk +++ b/device.mk @@ -273,10 +273,9 @@ PRODUCT_PACKAGES += \ libstagefrighthw # OTA Updates -PRODUCT_PROPERTY_OVERRIDES += \ - ro.ota.romname=AOSP-GEMINI-7.1 \ - ro.ota.version=$(shell date -u +%Y%m%d) \ - ro.ota.manifest=https://romhut.com/roms/aosp-gemini-7-1-309/ota.xml +PRODUCT_PACKAGES += \ + AEXOTA \ + libbypass # Power PRODUCT_PACKAGES += \ diff --git a/jdc.dependencies b/jdc.dependencies deleted file mode 100644 index 05c1fee7..00000000 --- a/jdc.dependencies +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "repository": "AOSP-JF-MM/platform_kernel_xiaomi_msm8996", - "target_path": "kernel/xiaomi/msm8996", - "branch": "aosp-7.1.2" - }, - { - "repository": "AOSP-JF-MM/proprietary_vendor_xiaomi", - "target_path": "vendor/xiaomi", - "branch": "aosp-7.1.2" - } -] diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 966c5a89..8bb10d8d 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -487,7 +487,6 @@ 64 - Volume rocker For example, a device with Home, Back and Menu keys would set this config to 7. --> - 65 - 1 From d30e3f6d25005d5e6765b964890dfaa17756db4d Mon Sep 17 00:00:00 2001 From: rohan Date: Mon, 26 Jun 2017 19:20:49 +0000 Subject: [PATCH 02/62] Revert "webview: move to chromium patched webview" This reverts commit a98b321a48b8c4fa3a7a1aafe4d6313527268e98. --- BoardConfig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 6166a5cc..1b37c5a9 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -196,7 +196,7 @@ TARGET_INIT_VENDOR_LIB := libinit_gemini TARGET_RECOVERY_DEVICE_MODULES := libinit_gemini # WebView Beta -PREBUILT_WEBVIEW_VERSION := chromium +PREBUILT_WEBVIEW_VERSION := beta # Wifi BOARD_HAS_QCOM_WLAN := true From 0a115cd2d787f9dfa7190cb4243db5f7d246527a Mon Sep 17 00:00:00 2001 From: rohan Date: Sat, 8 Jul 2017 08:55:47 +0000 Subject: [PATCH 03/62] minor webview fixes --- BoardConfig.mk | 2 +- aosp_gemini.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 1b37c5a9..695e6316 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -196,7 +196,7 @@ TARGET_INIT_VENDOR_LIB := libinit_gemini TARGET_RECOVERY_DEVICE_MODULES := libinit_gemini # WebView Beta -PREBUILT_WEBVIEW_VERSION := beta +#PREBUILT_WEBVIEW_VERSION := beta # Wifi BOARD_HAS_QCOM_WLAN := true diff --git a/aosp_gemini.mk b/aosp_gemini.mk index 432e2f22..9ce76f34 100644 --- a/aosp_gemini.mk +++ b/aosp_gemini.mk @@ -40,4 +40,4 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ PRIVATE_BUILD_DESC="gemini-user 7.0 NRD90M V8.2.1.0.NAACNEB release-keys" TARGET_VENDOR := Xiaomi -DEFAULT_ROOT_METHOD := supersu +DEFAULT_ROOT_METHOD := magisk From 1d0ae608433a1374a781155ea96e08dc2c89e64c Mon Sep 17 00:00:00 2001 From: Offain Date: Wed, 21 Jun 2017 02:00:37 +0200 Subject: [PATCH 04/62] gemini: bluetooth: Update configs * Clean up and match those from CAF, according to LA.UM.5.5.r1-04900-8x96.0 * Enable extended QC features (BLUETOOTH_QTI_SW) in addition Change-Id: I50f1da48624a18261cd6f028113bbd1d2f94d749 --- bluetooth/bdroid_buildcfg.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index 54481b31..dd89a914 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -1,6 +1,10 @@ /* + * + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Not a Contribution, Apache license notifications and license are retained + * for attribution purposes only. + * * Copyright (C) 2012 The Android Open Source Project - * 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. @@ -17,10 +21,10 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H - #define BTM_DEF_LOCAL_NAME "Xiaomi MI 5" -#define BTA_DISABLE_DELAY 1000 /* in milliseconds */ -#define BLUETOOTH_QCOM_SW TRUE -#define BLUETOOTH_QCOM_LE_INTL_SCAN TRUE -#define BTC_INCLUDED TRUE +#define BLUETOOTH_QTI_SW TRUE +#define MAX_ACL_CONNECTIONS 16 +#define MAX_L2CAP_CHANNELS 16 +#define BLE_VND_INCLUDED TRUE +#define BT_CLEAN_TURN_ON_DISABLED 1 #endif From 5c1c08c29500a76e02e2d02d6464d75257728787 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 26 Oct 2016 15:57:46 -0700 Subject: [PATCH 05/62] msm8996-common: Remove hw_acc effect * Not used. Change-Id: I68882a0435b8459031ae31ecc46af6bb62eacf17 --- audio/audio_effects.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf index 7f41e4d4..2a96945c 100644 --- a/audio/audio_effects.conf +++ b/audio/audio_effects.conf @@ -218,10 +218,6 @@ effects { library downmix uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f } - hw_acc { - library offload_bundle - uuid 7d1580bd-297f-4683-9239-e475b6d1d69f - } loudness_enhancer { library loudness_enhancer uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c From 1339ef2c51af1027e124ec556e204eb30841d18e Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 7 Jul 2017 18:20:04 +0100 Subject: [PATCH 06/62] msm8996-common: Update to MIUI 7.7.6 Global dev blobs Change-Id: I8c68d6889f9cecff014762b486f86b9dbd06f7cc --- proprietary-files.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index d7ba7877..a3e83029 100755 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -725,9 +725,7 @@ vendor/lib/libqmi.so vendor/lib/libsmemlog.so # RIL --app/datastatusnotification/datastatusnotification.apk -app/embms/embms.apk --app/fastdormancy/fastdormancy.apk -app/QtiTelephonyService/QtiTelephonyService.apk -app/shutdownlistener/shutdownlistener.apk bin/netmgrd From 2b9650bc76214ac785d580a41412f0b47a8c23ad Mon Sep 17 00:00:00 2001 From: B--B Date: Wed, 12 Jul 2017 15:37:04 +0200 Subject: [PATCH 07/62] Ramdisk: enable adaptive LMK --- rootdir/etc/init.qcom.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index b89c4ff5..78698c74 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -449,6 +449,10 @@ on property:sys.boot_completed=1 # Set RT bandwidth copy /dev/cpuctl/cpu.rt_runtime_us /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us + # Enable Adaptive LMK + write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 + write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 81250 + on property:vold.decrypt=trigger_restart_framework start config_bt_addr From a102a39e7b97e7ab235a4439ad88d4c43d93d067 Mon Sep 17 00:00:00 2001 From: Offain Date: Sun, 9 Jul 2017 11:45:07 +0200 Subject: [PATCH 08/62] gemini: Set MIUI 7.7.6 dev firmware as minimal requirement * If using an older firmware, headphones won't work Change-Id: Ic7ae737f4ee4ac515c3c028bd389a77175444556 --- board-info.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board-info.txt b/board-info.txt index 35c8406e..bf881fa3 100644 --- a/board-info.txt +++ b/board-info.txt @@ -1 +1 @@ -require version-modem=2017-04-11 00:05:12 \ No newline at end of file +require version-modem=2017-07-05 22:52:07 From fdda51b423768191f13d7424214c381e1dfbe0ab Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 14 Oct 2016 21:18:03 -0700 Subject: [PATCH 09/62] gemini: Bring DozeSettings up to date * Rework the UI with a SwitchBar * Change to the preferences support library and use fragments * Use all the new fancy RemotePreference stuff * Slot into display settings instead of the dashboard Change-Id: I0850f7d9558a14f739f752f76002db993381a0e5 --- doze/Android.mk | 20 ++ doze/AndroidManifest.xml | 21 +- doze/proguard.flags | 5 + doze/res/drawable/switchbar_background.xml | 21 ++ doze/res/layout/doze.xml | 28 +++ doze/res/layout/switch_bar.xml | 48 +++++ doze/res/values/colors.xml | 23 ++ doze/res/values/strings.xml | 10 +- doze/res/values/styles.xml | 34 +++ doze/res/xml/doze_settings.xml | 18 +- .../settings/doze/DozeReceiver.java | 54 +++++ .../settings/doze/DozeSettings.java | 122 ++--------- .../settings/doze/DozeSettingsFragment.java | 197 ++++++++++++++++++ .../com/cyanogenmod/settings/doze/Utils.java | 16 +- 14 files changed, 477 insertions(+), 140 deletions(-) create mode 100644 doze/res/drawable/switchbar_background.xml create mode 100644 doze/res/layout/doze.xml create mode 100644 doze/res/layout/switch_bar.xml create mode 100644 doze/res/values/colors.xml create mode 100644 doze/res/values/styles.xml create mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java create mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java diff --git a/doze/Android.mk b/doze/Android.mk index bdac401c..d356c1fd 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -8,9 +8,29 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := XiaomiDoze LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true +LOCAL_STATIC_JAVA_LIBRARIES := \ + android-support-v4 \ + android-support-v13 \ + android-support-v7-recyclerview \ + android-support-v7-preference \ + android-support-v7-appcompat \ + android-support-v14-preference \ + org.cyanogenmod.platform.internal + +LOCAL_RESOURCE_DIR := \ + $(LOCAL_PATH)/res \ + frameworks/support/v7/preference/res \ + frameworks/support/v14/preference/res \ + frameworks/support/v7/appcompat/res \ + frameworks/support/v7/recyclerview/res + +LOCAL_AAPT_FLAGS := --auto-add-overlay \ + --extra-packages android.support.v7.preference:android.support.v14.preference:android.support.v17.preference:android.support.v7.appcompat:android.support.v7.recyclerview LOCAL_PROGUARD_FLAG_FILES := proguard.flags +include frameworks/base/packages/SettingsLib/common.mk + include $(BUILD_PACKAGE) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml index ec7e5bed..95d52967 100644 --- a/doze/AndroidManifest.xml +++ b/doze/AndroidManifest.xml @@ -7,20 +7,22 @@ + + android:minSdkVersion="24" + android:targetSdkVersion="24"/> - + + @@ -32,16 +34,17 @@ + android:theme="@style/DozeSettings"> - + + + android:name="org.cyanogenmod.settings.summary.receiver" + android:value="com.cyanogenmod.settings.doze.DozeReceiver" /> + android:name="org.cyanogenmod.settings.summary.key" + android:value="doze_device_settings" /> diff --git a/doze/proguard.flags b/doze/proguard.flags index a21e62fb..7f3d4c73 100644 --- a/doze/proguard.flags +++ b/doze/proguard.flags @@ -1,3 +1,8 @@ +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keep class ** extends android.support.v14.preference.PreferenceFragment -keep class com.cyanogenmod.settings.doze.* { *; } diff --git a/doze/res/drawable/switchbar_background.xml b/doze/res/drawable/switchbar_background.xml new file mode 100644 index 00000000..45f15788 --- /dev/null +++ b/doze/res/drawable/switchbar_background.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/doze/res/layout/doze.xml b/doze/res/layout/doze.xml new file mode 100644 index 00000000..941cdf68 --- /dev/null +++ b/doze/res/layout/doze.xml @@ -0,0 +1,28 @@ + + + + + + + + + diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml new file mode 100644 index 00000000..f98de96a --- /dev/null +++ b/doze/res/layout/switch_bar.xml @@ -0,0 +1,48 @@ + + + + + + + + + + diff --git a/doze/res/values/colors.xml b/doze/res/values/colors.xml new file mode 100644 index 00000000..d598598b --- /dev/null +++ b/doze/res/values/colors.xml @@ -0,0 +1,23 @@ + + + + #ff37474f + #ff7fcac3 + #ff37474F + diff --git a/doze/res/values/strings.xml b/doze/res/values/strings.xml index 63146cb8..fed5b053 100644 --- a/doze/res/values/strings.xml +++ b/doze/res/values/strings.xml @@ -13,8 +13,16 @@ --> + + On + + + Off + Ambient display Wake screen when you receive notifications + Screen will wake when you receive notifications + Screen will not wake when you receive notifications Tilt sensor @@ -31,5 +39,5 @@ OK Help - 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. + These features use sensor events to launch a doze notification pulse, this will cause higher battery usage. diff --git a/doze/res/values/styles.xml b/doze/res/values/styles.xml new file mode 100644 index 00000000..78d2d592 --- /dev/null +++ b/doze/res/values/styles.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml index dfa608b9..acc19d2f 100644 --- a/doze/res/xml/doze_settings.xml +++ b/doze/res/xml/doze_settings.xml @@ -14,13 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - + + android:summary="@string/pick_up_summary" /> @@ -43,15 +37,13 @@ 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" /> + android:summary="@string/hand_wave_gesture_summary" /> + android:summary="@string/pocket_gesture_summary" /> diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java b/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java new file mode 100644 index 00000000..6ab3e0d1 --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java @@ -0,0 +1,54 @@ +/* + * 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.content.Intent; +import android.util.Log; + +import cyanogenmod.preference.RemotePreferenceUpdater; + +public class DozeReceiver extends RemotePreferenceUpdater { + + private static final boolean DEBUG = false; + private static final String TAG = "OneplusDoze"; + + private static final String DOZE_CATEGORY_KEY = "doze_device_settings"; + + @Override + public void onReceive(Context context, Intent intent) { + super.onReceive(context, intent); + + if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { + if (Utils.isDozeEnabled(context) && Utils.sensorsEnabled(context)) { + if (DEBUG) Log.d(TAG, "Starting service"); + Utils.startService(context); + } + } + } + + @Override + public String getSummary(Context context, String key) { + if (DOZE_CATEGORY_KEY.equals(key)) { + return DozeSettingsFragment.getDozeSummary(context); + } + return null; + } + + static void notifyChanged(Context context) { + notifyChanged(context, DOZE_CATEGORY_KEY); + } +} diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java index 2e179bcf..76ac5fe7 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 The CyanogenMod Project + * 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. @@ -13,75 +13,30 @@ * 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 { +import com.android.settingslib.drawer.SettingsDrawerActivity; + +/** + * Created by shade on 10/14/16. + */ - private Context mContext; - private SharedPreferences mPreferences; +public class DozeSettings extends SettingsDrawerActivity { - private SwitchPreference mAmbientDisplayPreference; - private SwitchPreference mPickUpPreference; - private SwitchPreference mHandwavePreference; - private SwitchPreference mPocketPreference; + private static final String TAG_DOZE = "doze"; @Override - public void onCreate(Bundle savedInstanceState) { + protected 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); + setContentView(R.layout.doze); - mPocketPreference = - (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); - mPocketPreference.setOnPreferenceChangeListener(this); - - final ActionBar actionBar = getActionBar(); - actionBar.setDisplayHomeAsUpEnabled(true); - } - - @Override - protected void onResume() { - super.onResume(); + getFragmentManager().beginTransaction().replace(R.id.content_frame, + new DozeSettingsFragment(), TAG_DOZE).commit(); } @Override @@ -92,57 +47,4 @@ public boolean onOptionsItemSelected(MenuItem item) { } 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/DozeSettingsFragment.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java new file mode 100644 index 00000000..ec1c9d85 --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java @@ -0,0 +1,197 @@ +/* + * Copyright (C) 2015 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.cyanogenmod.settings.doze; + +import android.app.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.database.ContentObserver; +import android.os.Bundle; +import android.os.Handler; +import android.support.v14.preference.PreferenceFragment; +import android.support.v14.preference.SwitchPreference; +import android.support.v7.preference.Preference; +import android.support.v7.preference.Preference.OnPreferenceChangeListener; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CompoundButton; +import android.widget.Switch; + +public class DozeSettingsFragment extends PreferenceFragment implements OnPreferenceChangeListener, + CompoundButton.OnCheckedChangeListener { + + private SharedPreferences mPreferences; + + private Switch mSwitch; + + private SwitchPreference mPickUpPreference; + private SwitchPreference mHandwavePreference; + private SwitchPreference mPocketPreference; + + private ContentObserver mDozeObserver = new ContentObserver(new Handler()) { + @Override + public void onChange(boolean selfChange) { + super.onChange(selfChange); + + boolean enabled = Utils.isDozeEnabled(getActivity()); + + updateSwitches(Utils.isDozeEnabled(getActivity())); + DozeReceiver.notifyChanged(getActivity()); + } + }; + + static String getDozeSummary(Context context) { + if (Utils.isDozeEnabled(context)) { + return context.getString(R.string.ambient_display_summary_on); + } + return context.getString(R.string.ambient_display_summary_off); + } + + @Override + public void onActivityCreated(Bundle savedInstanceState) { + super.onActivityCreated(savedInstanceState); + getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + final View view = LayoutInflater.from(getContext()).inflate(R.layout.doze, container, false); + ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState)); + return view; + } + + @Override + public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { + addPreferencesFromResource(R.xml.doze_settings); + + // get shared preference + mPreferences = getActivity().getSharedPreferences("doze_settings", Activity.MODE_PRIVATE); + + if (savedInstanceState == null && !mPreferences.getBoolean("first_help_shown", false)) { + showHelp(); + } + + 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); + } + + @Override + public void onResume() { + super.onResume(); + getActivity().getContentResolver().registerContentObserver( + Utils.DOZE_ENABLED_URI, false, mDozeObserver); + updateSwitches(Utils.isDozeEnabled(getActivity())); + } + + @Override + public void onPause() { + super.onPause(); + getActivity().getContentResolver().unregisterContentObserver(mDozeObserver); + } + + private void updateSwitches(boolean enabled) { + mPickUpPreference.setEnabled(enabled); + mHandwavePreference.setEnabled(enabled); + mPocketPreference.setEnabled(enabled); + } + + @Override + public void onViewCreated(View view, Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); + + View switchBar = view.findViewById(R.id.switch_bar); + mSwitch = (Switch) switchBar.findViewById(android.R.id.switch_widget); + mSwitch.setChecked(Utils.isDozeEnabled(getActivity())); + mSwitch.setOnCheckedChangeListener(this); + + switchBar.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + mSwitch.setChecked(!mSwitch.isChecked()); + } + }); + } + + + @Override + public boolean onPreferenceChange(Preference preference, Object newValue) { + final String key = preference.getKey(); + final boolean value = (Boolean) newValue; + if (Utils.PICK_UP_KEY.equals(key)) { + mPickUpPreference.setChecked(value); + } else if (Utils.GESTURE_HAND_WAVE_KEY.equals(key)) { + mHandwavePreference.setChecked(value); + } else if (Utils.GESTURE_POCKET_KEY.equals(key)) { + mPocketPreference.setChecked(value); + } else { + return false; + } + + Utils.startService(getActivity()); + return true; + } + + @Override + public void onCheckedChanged(CompoundButton compoundButton, boolean b) { + Utils.enableDoze(b, getActivity()); + } + + 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/Utils.java b/doze/src/com/cyanogenmod/settings/doze/Utils.java index 9a462be4..37fcf635 100644 --- a/doze/src/com/cyanogenmod/settings/doze/Utils.java +++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java @@ -16,16 +16,16 @@ 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.net.Uri; import android.os.UserHandle; -import android.preference.PreferenceManager; +import android.support.v7.preference.PreferenceManager; import android.provider.Settings; import android.util.Log; +import static android.provider.Settings.Secure.DOZE_ENABLED; + public final class Utils { private static final String TAG = "DozeUtils"; @@ -33,11 +33,13 @@ public final class Utils { private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; - protected static final String AMBIENT_DISPLAY_KEY = "ambient_display"; + protected static final String AMBIENT_DISPLAY_KEY = "doze_enabled"; 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"; + public static final Uri DOZE_ENABLED_URI = Settings.Secure.getUriFor(DOZE_ENABLED); + protected static void startService(Context context) { if (DEBUG) Log.d(TAG, "Starting service"); context.startServiceAsUser(new Intent(context, DozeService.class), @@ -52,12 +54,12 @@ protected static void stopService(Context context) { protected static boolean isDozeEnabled(Context context) { return Settings.Secure.getInt(context.getContentResolver(), - Settings.Secure.DOZE_ENABLED, 1) != 0; + 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); + DOZE_ENABLED, enable ? 1 : 0); if (enable) { startService(context); } else { From b87a81ef0842bd897f1cf5950ef90fbfa6bdc359 Mon Sep 17 00:00:00 2001 From: Abhisek Devkota Date: Wed, 23 Nov 2016 18:13:45 -0800 Subject: [PATCH 10/62] gemini: doze: Commonize strings translations * Translations moved to the new project android_packages_resources_devicesettings Change-Id: I06536915e1963a2fe464c3d6c46dd8728aba0cb4 Signed-off-by: Adrian DC --- doze/Android.mk | 1 + doze/AndroidManifest.xml | 2 +- doze/res/values-af/strings.xml | 19 -------- doze/res/values-am/strings.xml | 19 -------- doze/res/values-ar/strings.xml | 19 -------- doze/res/values-as-rIN/strings.xml | 19 -------- doze/res/values-ast-rES/strings.xml | 19 -------- doze/res/values-az-rAZ/strings.xml | 19 -------- doze/res/values-be/strings.xml | 19 -------- doze/res/values-bg/strings.xml | 32 -------------- doze/res/values-bn-rBD/strings.xml | 19 -------- doze/res/values-br-rFR/strings.xml | 19 -------- doze/res/values-bs-rBA/strings.xml | 19 -------- doze/res/values-ca/strings.xml | 32 -------------- doze/res/values-cs/strings.xml | 32 -------------- doze/res/values-csb-rPL/strings.xml | 19 -------- doze/res/values-cy/strings.xml | 19 -------- doze/res/values-da/strings.xml | 32 -------------- doze/res/values-de/strings.xml | 32 -------------- doze/res/values-el/strings.xml | 31 ------------- doze/res/values-en-rAU/strings.xml | 19 -------- doze/res/values-en-rGB/strings.xml | 19 -------- doze/res/values-en-rIN/strings.xml | 19 -------- doze/res/values-en-rPT/strings.xml | 19 -------- doze/res/values-eo/strings.xml | 19 -------- doze/res/values-es-rCO/strings.xml | 19 -------- doze/res/values-es-rMX/strings.xml | 19 -------- doze/res/values-es-rUS/strings.xml | 19 -------- doze/res/values-es/strings.xml | 19 -------- doze/res/values-et-rEE/strings.xml | 19 -------- doze/res/values-eu-rES/strings.xml | 32 -------------- doze/res/values-fa/strings.xml | 19 -------- doze/res/values-fi/strings.xml | 32 -------------- doze/res/values-fil-rPH/strings.xml | 19 -------- doze/res/values-fr-rCA/strings.xml | 19 -------- doze/res/values-fr/strings.xml | 26 ----------- doze/res/values-frp-rIT/strings.xml | 19 -------- doze/res/values-fy-rNL/strings.xml | 19 -------- doze/res/values-ga-rIE/strings.xml | 19 -------- doze/res/values-gd-rGB/strings.xml | 19 -------- doze/res/values-gl-rES/strings.xml | 32 -------------- doze/res/values-gu-rIN/strings.xml | 19 -------- doze/res/values-hi/strings.xml | 19 -------- doze/res/values-hr/strings.xml | 32 -------------- doze/res/values-hu/strings.xml | 32 -------------- doze/res/values-hy-rAM/strings.xml | 19 -------- doze/res/values-in/strings.xml | 19 -------- doze/res/values-is-rIS/strings.xml | 19 -------- doze/res/values-it/strings.xml | 32 -------------- doze/res/values-iw/strings.xml | 30 ------------- doze/res/values-ja/strings.xml | 32 -------------- doze/res/values-ka-rGE/strings.xml | 19 -------- doze/res/values-kk-rKZ/strings.xml | 19 -------- doze/res/values-km-rKH/strings.xml | 19 -------- doze/res/values-kn-rIN/strings.xml | 19 -------- doze/res/values-ko/strings.xml | 19 -------- doze/res/values-ku/strings.xml | 19 -------- doze/res/values-ky-rKG/strings.xml | 19 -------- doze/res/values-lb/strings.xml | 19 -------- doze/res/values-lo-rLA/strings.xml | 19 -------- doze/res/values-lt/strings.xml | 19 -------- doze/res/values-lv/strings.xml | 19 -------- doze/res/values-mk-rMK/strings.xml | 19 -------- doze/res/values-ml-rIN/strings.xml | 19 -------- doze/res/values-mn-rMN/strings.xml | 19 -------- doze/res/values-mr-rIN/strings.xml | 19 -------- doze/res/values-ms-rMY/strings.xml | 19 -------- doze/res/values-my-rMM/strings.xml | 19 -------- doze/res/values-nb/strings.xml | 32 -------------- doze/res/values-ne-rNP/strings.xml | 19 -------- doze/res/values-nl/strings.xml | 32 -------------- doze/res/values-oc-rFR/strings.xml | 19 -------- doze/res/values-or-rIN/strings.xml | 19 -------- doze/res/values-pa-rIN/strings.xml | 19 -------- doze/res/values-pl/strings.xml | 31 ------------- doze/res/values-pt-rBR/strings.xml | 32 -------------- doze/res/values-pt-rPT/strings.xml | 32 -------------- doze/res/values-rm/strings.xml | 19 -------- doze/res/values-ro/strings.xml | 19 -------- doze/res/values-ru/strings.xml | 32 -------------- doze/res/values-si-rLK/strings.xml | 19 -------- doze/res/values-sk/strings.xml | 19 -------- doze/res/values-sl/strings.xml | 32 -------------- doze/res/values-sq-rAL/strings.xml | 19 -------- doze/res/values-sr/strings.xml | 32 -------------- doze/res/values-sv/strings.xml | 25 ----------- doze/res/values-sw/strings.xml | 19 -------- doze/res/values-ta-rIN/strings.xml | 19 -------- doze/res/values-te-rIN/strings.xml | 19 -------- doze/res/values-th/strings.xml | 19 -------- doze/res/values-tr/strings.xml | 19 -------- doze/res/values-ug/strings.xml | 19 -------- doze/res/values-uk/strings.xml | 19 -------- doze/res/values-ur-rPK/strings.xml | 19 -------- doze/res/values-uz-rUZ/strings.xml | 19 -------- doze/res/values-vi/strings.xml | 19 -------- doze/res/values-zh-rCN/strings.xml | 32 -------------- doze/res/values-zh-rHK/strings.xml | 19 -------- doze/res/values-zh-rTW/strings.xml | 19 -------- doze/res/values-zu/strings.xml | 19 -------- doze/res/values/strings.xml | 43 ------------------- doze/res/xml/doze_settings.xml | 15 +++---- .../settings/doze/DozeSettingsFragment.java | 6 +-- .../com/cyanogenmod/settings/doze/Utils.java | 4 +- jdc.dependencies | 17 ++++++++ 105 files changed, 31 insertions(+), 2227 deletions(-) delete mode 100644 doze/res/values-af/strings.xml delete mode 100644 doze/res/values-am/strings.xml delete mode 100644 doze/res/values-ar/strings.xml delete mode 100644 doze/res/values-as-rIN/strings.xml delete mode 100644 doze/res/values-ast-rES/strings.xml delete mode 100644 doze/res/values-az-rAZ/strings.xml delete mode 100644 doze/res/values-be/strings.xml delete mode 100644 doze/res/values-bg/strings.xml delete mode 100644 doze/res/values-bn-rBD/strings.xml delete mode 100644 doze/res/values-br-rFR/strings.xml delete mode 100644 doze/res/values-bs-rBA/strings.xml delete mode 100644 doze/res/values-ca/strings.xml delete mode 100644 doze/res/values-cs/strings.xml delete mode 100644 doze/res/values-csb-rPL/strings.xml delete mode 100644 doze/res/values-cy/strings.xml delete mode 100644 doze/res/values-da/strings.xml delete mode 100644 doze/res/values-de/strings.xml delete mode 100644 doze/res/values-el/strings.xml delete mode 100644 doze/res/values-en-rAU/strings.xml delete mode 100644 doze/res/values-en-rGB/strings.xml delete mode 100644 doze/res/values-en-rIN/strings.xml delete mode 100644 doze/res/values-en-rPT/strings.xml delete mode 100644 doze/res/values-eo/strings.xml delete mode 100644 doze/res/values-es-rCO/strings.xml delete mode 100644 doze/res/values-es-rMX/strings.xml delete mode 100644 doze/res/values-es-rUS/strings.xml delete mode 100644 doze/res/values-es/strings.xml delete mode 100644 doze/res/values-et-rEE/strings.xml delete mode 100644 doze/res/values-eu-rES/strings.xml delete mode 100644 doze/res/values-fa/strings.xml delete mode 100644 doze/res/values-fi/strings.xml delete mode 100644 doze/res/values-fil-rPH/strings.xml delete mode 100644 doze/res/values-fr-rCA/strings.xml delete mode 100644 doze/res/values-fr/strings.xml delete mode 100644 doze/res/values-frp-rIT/strings.xml delete mode 100644 doze/res/values-fy-rNL/strings.xml delete mode 100644 doze/res/values-ga-rIE/strings.xml delete mode 100644 doze/res/values-gd-rGB/strings.xml delete mode 100644 doze/res/values-gl-rES/strings.xml delete mode 100644 doze/res/values-gu-rIN/strings.xml delete mode 100644 doze/res/values-hi/strings.xml delete mode 100644 doze/res/values-hr/strings.xml delete mode 100644 doze/res/values-hu/strings.xml delete mode 100644 doze/res/values-hy-rAM/strings.xml delete mode 100644 doze/res/values-in/strings.xml delete mode 100644 doze/res/values-is-rIS/strings.xml delete mode 100644 doze/res/values-it/strings.xml delete mode 100644 doze/res/values-iw/strings.xml delete mode 100644 doze/res/values-ja/strings.xml delete mode 100644 doze/res/values-ka-rGE/strings.xml delete mode 100644 doze/res/values-kk-rKZ/strings.xml delete mode 100644 doze/res/values-km-rKH/strings.xml delete mode 100644 doze/res/values-kn-rIN/strings.xml delete mode 100644 doze/res/values-ko/strings.xml delete mode 100644 doze/res/values-ku/strings.xml delete mode 100644 doze/res/values-ky-rKG/strings.xml delete mode 100644 doze/res/values-lb/strings.xml delete mode 100644 doze/res/values-lo-rLA/strings.xml delete mode 100644 doze/res/values-lt/strings.xml delete mode 100644 doze/res/values-lv/strings.xml delete mode 100644 doze/res/values-mk-rMK/strings.xml delete mode 100644 doze/res/values-ml-rIN/strings.xml delete mode 100644 doze/res/values-mn-rMN/strings.xml delete mode 100644 doze/res/values-mr-rIN/strings.xml delete mode 100644 doze/res/values-ms-rMY/strings.xml delete mode 100644 doze/res/values-my-rMM/strings.xml delete mode 100644 doze/res/values-nb/strings.xml delete mode 100644 doze/res/values-ne-rNP/strings.xml delete mode 100644 doze/res/values-nl/strings.xml delete mode 100644 doze/res/values-oc-rFR/strings.xml delete mode 100644 doze/res/values-or-rIN/strings.xml delete mode 100644 doze/res/values-pa-rIN/strings.xml delete mode 100644 doze/res/values-pl/strings.xml delete mode 100644 doze/res/values-pt-rBR/strings.xml delete mode 100644 doze/res/values-pt-rPT/strings.xml delete mode 100644 doze/res/values-rm/strings.xml delete mode 100644 doze/res/values-ro/strings.xml delete mode 100644 doze/res/values-ru/strings.xml delete mode 100644 doze/res/values-si-rLK/strings.xml delete mode 100644 doze/res/values-sk/strings.xml delete mode 100644 doze/res/values-sl/strings.xml delete mode 100644 doze/res/values-sq-rAL/strings.xml delete mode 100644 doze/res/values-sr/strings.xml delete mode 100644 doze/res/values-sv/strings.xml delete mode 100644 doze/res/values-sw/strings.xml delete mode 100644 doze/res/values-ta-rIN/strings.xml delete mode 100644 doze/res/values-te-rIN/strings.xml delete mode 100644 doze/res/values-th/strings.xml delete mode 100644 doze/res/values-tr/strings.xml delete mode 100644 doze/res/values-ug/strings.xml delete mode 100644 doze/res/values-uk/strings.xml delete mode 100644 doze/res/values-ur-rPK/strings.xml delete mode 100644 doze/res/values-uz-rUZ/strings.xml delete mode 100644 doze/res/values-vi/strings.xml delete mode 100644 doze/res/values-zh-rCN/strings.xml delete mode 100644 doze/res/values-zh-rHK/strings.xml delete mode 100644 doze/res/values-zh-rTW/strings.xml delete mode 100644 doze/res/values-zu/strings.xml delete mode 100644 doze/res/values/strings.xml create mode 100644 jdc.dependencies diff --git a/doze/Android.mk b/doze/Android.mk index d356c1fd..095f7d89 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -19,6 +19,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \ LOCAL_RESOURCE_DIR := \ $(LOCAL_PATH)/res \ + $(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \ frameworks/support/v7/preference/res \ frameworks/support/v14/preference/res \ frameworks/support/v7/appcompat/res \ diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml index 95d52967..b74543cb 100644 --- a/doze/AndroidManifest.xml +++ b/doze/AndroidManifest.xml @@ -16,7 +16,7 @@ android:targetSdkVersion="24"/> diff --git a/doze/res/values-af/strings.xml b/doze/res/values-af/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-af/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-am/strings.xml b/doze/res/values-am/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-am/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ar/strings.xml b/doze/res/values-ar/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ar/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-as-rIN/strings.xml b/doze/res/values-as-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-as-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ast-rES/strings.xml b/doze/res/values-ast-rES/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ast-rES/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-az-rAZ/strings.xml b/doze/res/values-az-rAZ/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-az-rAZ/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-be/strings.xml b/doze/res/values-be/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-be/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-bg/strings.xml b/doze/res/values-bg/strings.xml deleted file mode 100644 index 6853d8f9..00000000 --- a/doze/res/values-bg/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Атмосферен екран - Събуждане на екрана при получаване на известие - - Сензор за наклон - Отговор - Светлинна индикация, когато устройството е вдигнато - - Сензор за близост - Махане с ръка - Показва известията при прекарване на ръка над екрана - Джоб - Показва известията, когато извадите устройството от джоба си - - ОK - Помощ - Тези функции използват сензорни събития да показват известия, когато устройството е в състояние на покой. Избраният сензор се активира само когато устройството получава уведомление, което помага за намаляване на използването на батерията. Има и опция за активиране на избрания сензор, така че екранът се изключва, което ще доведе до увеличаване на използването на батерията. - diff --git a/doze/res/values-bn-rBD/strings.xml b/doze/res/values-bn-rBD/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-bn-rBD/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-br-rFR/strings.xml b/doze/res/values-br-rFR/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-br-rFR/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-bs-rBA/strings.xml b/doze/res/values-bs-rBA/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-bs-rBA/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ca/strings.xml b/doze/res/values-ca/strings.xml deleted file mode 100644 index 8903c2c5..00000000 --- a/doze/res/values-ca/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Pantalla ambient - Encen la pantalla quan rebis notificacions - - Sensor d\'inclinació - Contesta - Mostra les notificacions quan es reculli el dispositiu - - Sensor de proximitat - Passa la mà - Mostra notificacions quan es passi la mà - Butxaca - Mostra notificacions quan te\'l treguis de la butxaca - - D\'ACORD - Ajuda - 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. - diff --git a/doze/res/values-cs/strings.xml b/doze/res/values-cs/strings.xml deleted file mode 100644 index 3c6e7a64..00000000 --- a/doze/res/values-cs/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Ambientní displej - Probudit obrazovku při upozornění - - Senzor náklonu - Sebrání - Pulzovat oznámení při zvednutí zařízení - - Senzor přiblížení - Mávání rukou - Upozornit pulsováním při zamáváním rukou - Kapsa - Upozornit pulsováním při vyjmutí z kapsy - - OK - Uživatelská příručka - 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í. - diff --git a/doze/res/values-csb-rPL/strings.xml b/doze/res/values-csb-rPL/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-csb-rPL/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-cy/strings.xml b/doze/res/values-cy/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-cy/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-da/strings.xml b/doze/res/values-da/strings.xml deleted file mode 100644 index f6f9e6fc..00000000 --- a/doze/res/values-da/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Inaktivitetsvisning - Tænder skærmen, når du modtager notifikationer - - Tilt-sensor - Samle op - Blink med notifikationerne når enheden tages op - - Berøringssensor - Vink med hånden - Vibrér, hvis der er notifikationer, når du vinker over skærmen - Lomme - Vibrér, hvis der er notifikationer, når telefonen tages op ad lommen - - OK - Hjælp - 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. - diff --git a/doze/res/values-de/strings.xml b/doze/res/values-de/strings.xml deleted file mode 100644 index 75e5cb13..00000000 --- a/doze/res/values-de/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Inaktivitätsdisplay - Bildschirm einschalten, wenn Sie Benachrichtigungen erhalten - - Neigungssensor - Aufnehmen - Benachrichtigungen kurz einblenden, wenn das Gerät aufgenommen wird - - Näherungssensor - Winken - Beim Winken Benachrichtigungen kurzzeitig einblenden - Tasche - Benachrichtigungen kurz einblenden, wenn das Gerät aus der Tasche genommen wird - - OK - Hilfe - 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. - diff --git a/doze/res/values-el/strings.xml b/doze/res/values-el/strings.xml deleted file mode 100644 index dff5c149..00000000 --- a/doze/res/values-el/strings.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - Οθόνη ambient - Ενεργοποίηση της οθόνης όταν λαμβάνετε ειδοποιήσεις - - Αισθητήρας κλίσης - Σήκωμα συσκευής - Παλμός ειδοποιήσεων κατά το σήκωμα της συσκευής - - Αισθητήρας εγγύτητας - Αιώρηση χεριού - Παλμός ειδοποιήσεων κατά την αιώρηση του χεριού - Τσέπη - Παλμός ειδοποιήσεων κατά την έξοδο από την τσέπη - - OK - Βοήθεια - diff --git a/doze/res/values-en-rAU/strings.xml b/doze/res/values-en-rAU/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-en-rAU/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-en-rGB/strings.xml b/doze/res/values-en-rGB/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-en-rGB/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-en-rIN/strings.xml b/doze/res/values-en-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-en-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-en-rPT/strings.xml b/doze/res/values-en-rPT/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-en-rPT/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-eo/strings.xml b/doze/res/values-eo/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-eo/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-es-rCO/strings.xml b/doze/res/values-es-rCO/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-es-rCO/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-es-rMX/strings.xml b/doze/res/values-es-rMX/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-es-rMX/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-es-rUS/strings.xml b/doze/res/values-es-rUS/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-es-rUS/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-es/strings.xml b/doze/res/values-es/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-es/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-et-rEE/strings.xml b/doze/res/values-et-rEE/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-et-rEE/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-eu-rES/strings.xml b/doze/res/values-eu-rES/strings.xml deleted file mode 100644 index 1c9a9c37..00000000 --- a/doze/res/values-eu-rES/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Ambient display - Piztu pantaila jakinarazpenak jasotzean - - Inklinazio sentsorea - Hartu - Led jakinarazpenak gailua hartzean - - Hurbiltasun sentsorea - Agurtu eskuarekin - Jakinarazpen argia eskuarekin agurtzean - Poltsikoratu - Jakinarazpen argia poltsikotik ateratzean - - Ados - Laguntza - 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. - diff --git a/doze/res/values-fa/strings.xml b/doze/res/values-fa/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-fa/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-fi/strings.xml b/doze/res/values-fi/strings.xml deleted file mode 100644 index 56ad4856..00000000 --- a/doze/res/values-fi/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Ambient-näyttö - Herätä näyttö kun saat ilmoituksia - - Kallistussensori - Nosto - Väläytä ilmoituksia kun laite nostetaan - - Läheisyysanturi - Käden heilautus - Näytä ilmoitukset heilautettaessa kättä - Tasku - Näytä ilmoitukset kun laite otetaan taskusta - - OK - Apua - 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. - diff --git a/doze/res/values-fil-rPH/strings.xml b/doze/res/values-fil-rPH/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-fil-rPH/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-fr-rCA/strings.xml b/doze/res/values-fr-rCA/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-fr-rCA/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-fr/strings.xml b/doze/res/values-fr/strings.xml deleted file mode 100644 index a705beb2..00000000 --- a/doze/res/values-fr/strings.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Affichage ambiant - - Capteur d’inclinaison - Prise en main - - Capteur de proximité - Passage de la main - Poche - - OK - diff --git a/doze/res/values-frp-rIT/strings.xml b/doze/res/values-frp-rIT/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-frp-rIT/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-fy-rNL/strings.xml b/doze/res/values-fy-rNL/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-fy-rNL/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ga-rIE/strings.xml b/doze/res/values-ga-rIE/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ga-rIE/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-gd-rGB/strings.xml b/doze/res/values-gd-rGB/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-gd-rGB/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-gl-rES/strings.xml b/doze/res/values-gl-rES/strings.xml deleted file mode 100644 index 1bd3acd6..00000000 --- a/doze/res/values-gl-rES/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Visualización ambiente - Activar a pantalla ao recibir notificacións - - Sensor de inclinación - Coller - Amosar notificacións ao coller o dispositivo - - Sensor de proximidade - Pasar a man - Amosar notificacións ao pasar a man - Peto - Amosar notificacións ao sacar do peto - - ACEPTAR - Axuda - Estas características usan eventos do sensor para amosar unha notificación latente. O sensor seleccionado habilitarase só cando reciba unha notificación axudando a reducir o consumo da batería. Tamén existe unha opción para activar o sensor así que se apague a pantalla, pero isto causará un maior uso da batería. - diff --git a/doze/res/values-gu-rIN/strings.xml b/doze/res/values-gu-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-gu-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-hi/strings.xml b/doze/res/values-hi/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-hi/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-hr/strings.xml b/doze/res/values-hr/strings.xml deleted file mode 100644 index 0424dc07..00000000 --- a/doze/res/values-hr/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Ambijentni zaslon - Probudi zaslon kada primite obavijesti - - Senzor nagiba - Podizanje - Prikazuj obavijesti kada je uređaj podignut - - Senzor blizine - Zamah rukom - Prikaz obavijesti na zamah rukom - Džep - Prikaz obavijesti kada izvadite uređaj iz džepa - - OK - Pomoć - 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. - diff --git a/doze/res/values-hu/strings.xml b/doze/res/values-hu/strings.xml deleted file mode 100644 index ddbfce34..00000000 --- a/doze/res/values-hu/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Környezeti kijelző - Képernyő felébresztése értesítések fogadásakor - - Dőlés érzékelő - Kézbevétel - Villantsa fel az értesítéseket kézbevételkor - - Közelség érzékelő - Lebegő simítás - Értesítések felvillantása lebegő simításnál - Zseb - Értesítések felvillantása zsebből való kivételkor - - Rendben - Súgó - 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. - diff --git a/doze/res/values-hy-rAM/strings.xml b/doze/res/values-hy-rAM/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-hy-rAM/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-in/strings.xml b/doze/res/values-in/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-in/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-is-rIS/strings.xml b/doze/res/values-is-rIS/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-is-rIS/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-it/strings.xml b/doze/res/values-it/strings.xml deleted file mode 100644 index a941fe27..00000000 --- a/doze/res/values-it/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Display Ambient - Accendi lo schermo quando ricevi una notifica - - Sensore inclinazione - Solleva - Mostra le notifiche quando il dispositivo viene sollevato - - Sensore prossimità - Movimento della mano - Mostra le notifiche al passaggio della mano - Tasca - Mostra le notifiche quando il telefono viene rimosso dalla tasca - - OK - Guida - 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. - diff --git a/doze/res/values-iw/strings.xml b/doze/res/values-iw/strings.xml deleted file mode 100644 index 15c28902..00000000 --- a/doze/res/values-iw/strings.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - תצוגת התראות עמומה - הפעל את המסך כשמתקבלות התראות - - חיישן הטייה - - חיישן קרבה - הנפת יד - הדגש התראות בהנפת יד - כיס - הצג התראות בהוצאה מהכיס - - אישור - עזרה - התכונות נעזרות בחיישני אירועים כדי להפעיל הדגשת התראות עם Doze. החיישן הנבחר מופעל רק כאשר המכשיר מקבל התראה, מה שעוזר להקטין את השימוש בסוללה. בנוסף, יש אפשרות להפעיל את החיישן הנבחר ברגע שהמסך נכבה, מה שעלול לגרום לשימוש רב יותר בסוללה. - diff --git a/doze/res/values-ja/strings.xml b/doze/res/values-ja/strings.xml deleted file mode 100644 index 70e7d491..00000000 --- a/doze/res/values-ja/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 常に画面表示ディスプレイ - 通知を受信したときに画面を点灯する - - 傾きセンサー - 持ち上げ - 端末を持ち上げたときに通知を点滅表示する - - 接近センサー - 手を振る - 手を振ったときに通知を点滅表示する - ポケット - ポケットから取り出したときに通知を点滅表示する - - OK - ヘルプ - これらの機能はdoze通知点滅表示を起動するためにセンサーイベントを使用します。電池の使用量を削減するために、端末が通知を受信した時にのみ選択したセンサーが有効になります。画面を消灯した直後から選択したセンサーを有効にするオプションもありますが、電池の使用量が多くなります。 - diff --git a/doze/res/values-ka-rGE/strings.xml b/doze/res/values-ka-rGE/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ka-rGE/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-kk-rKZ/strings.xml b/doze/res/values-kk-rKZ/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-kk-rKZ/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-km-rKH/strings.xml b/doze/res/values-km-rKH/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-km-rKH/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-kn-rIN/strings.xml b/doze/res/values-kn-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-kn-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ko/strings.xml b/doze/res/values-ko/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ko/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ku/strings.xml b/doze/res/values-ku/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ku/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ky-rKG/strings.xml b/doze/res/values-ky-rKG/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ky-rKG/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-lb/strings.xml b/doze/res/values-lb/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-lb/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-lo-rLA/strings.xml b/doze/res/values-lo-rLA/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-lo-rLA/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-lt/strings.xml b/doze/res/values-lt/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-lt/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-lv/strings.xml b/doze/res/values-lv/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-lv/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-mk-rMK/strings.xml b/doze/res/values-mk-rMK/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-mk-rMK/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ml-rIN/strings.xml b/doze/res/values-ml-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ml-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-mn-rMN/strings.xml b/doze/res/values-mn-rMN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-mn-rMN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-mr-rIN/strings.xml b/doze/res/values-mr-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-mr-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ms-rMY/strings.xml b/doze/res/values-ms-rMY/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ms-rMY/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-my-rMM/strings.xml b/doze/res/values-my-rMM/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-my-rMM/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-nb/strings.xml b/doze/res/values-nb/strings.xml deleted file mode 100644 index 9e609c49..00000000 --- a/doze/res/values-nb/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Ambient visning - Våkne skjermen når du får varsler - - Tilt sensor - Opp-plukking - Pulseringsnotifikasjon når telefonen er plukket opp - - Avstandsmåler - Håndvink - Pulseringsnotifikasjon ved håndvink - Lomme - Pulseringsnotifikasjon når telefonen er tatt opp av lommen - - OK - Hjelp - 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. - diff --git a/doze/res/values-ne-rNP/strings.xml b/doze/res/values-ne-rNP/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ne-rNP/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-nl/strings.xml b/doze/res/values-nl/strings.xml deleted file mode 100644 index 6eb179d6..00000000 --- a/doze/res/values-nl/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Omgevingsdisplay - Scherm aan bij het ontvangen van meldingen - - Hellingssensor - Oppakken - Meldingen laten knipperen bij oppakken - - Nabijheidssensor - Handgebaar - Meldingen laten knipperen bij handgebaar - Broekzak - Meldingen laten knipperen bij verwijderen uit broekzak - - OK - Help - 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 accugebruik te verminderen. Er is ook een optie om de sensor te activeren zodra het scherm uitschakelt, maar dit leidt tot hoger accugebruik. - diff --git a/doze/res/values-oc-rFR/strings.xml b/doze/res/values-oc-rFR/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-oc-rFR/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-or-rIN/strings.xml b/doze/res/values-or-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-or-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-pa-rIN/strings.xml b/doze/res/values-pa-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-pa-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-pl/strings.xml b/doze/res/values-pl/strings.xml deleted file mode 100644 index 5f022439..00000000 --- a/doze/res/values-pl/strings.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - Aktywny wyświetlacz - Wybudź ekran po odebraniu powiadomienia - - Czujnik pochylenia - Pokaż powiadomienia, gdy urządzenie zostało podniesione - - Czujnik zbliżeniowy - Gest fali - Pokaż powiadomienia po geście fali - Wyjęcie z kieszeni - Pokaż powiadomienia po wyjęciu z kieszeni - - OK - Pomoc - Te funkcje używają czujników, aby pokazywać powiadomienia tylko w odpowiednim momencie. Czujniki są wykorzystywane, kiedy telefon odbierze powiadomienie. Pozwala to w oszczędzaniu baterii. Istnieje również możliwość, aby włączyć wybrany czujnik zaraz po wyłączeniu ekranu, spowoduje to większe zużycie baterii. - diff --git a/doze/res/values-pt-rBR/strings.xml b/doze/res/values-pt-rBR/strings.xml deleted file mode 100644 index 444ffc43..00000000 --- a/doze/res/values-pt-rBR/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Tela ambiente - Ligar a tela ao receber notificações - - Sensor de inclinação - Pegar - Pulsar notificações ao pegar o dispositivo - - Sensor de proximidade - Acenar com a mão - Pulsar notificações ao acenar com a mão - Bolso - Pulsar notificações ao retirar do bolso - - OK - Ajuda - 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. - diff --git a/doze/res/values-pt-rPT/strings.xml b/doze/res/values-pt-rPT/strings.xml deleted file mode 100644 index bedd3d69..00000000 --- a/doze/res/values-pt-rPT/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Visualização de ambiente - Ligar o ecrã quando receber notificações - - Sensor de inclinação - Pegar - Mostrar as notificações ao pegar no dispositivo - - Sensor de proximidade - Passar a mão - Mostrar notificações ao passar a mão - Bolso - Mostrar notificações ao retirar do bolso - - OK - Ajuda - 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. - diff --git a/doze/res/values-rm/strings.xml b/doze/res/values-rm/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-rm/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ro/strings.xml b/doze/res/values-ro/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ro/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ru/strings.xml b/doze/res/values-ru/strings.xml deleted file mode 100644 index 326454bd..00000000 --- a/doze/res/values-ru/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Индикация событий - Включать экран при получении уведомлений - - Датчик наклона - Поднять - Отображать уведомления при поднятии устройства - - Датчик приближения - Взмах - Проведите ладонью над экраном для просмотра уведомлений - Карман - Отображать уведомления при извлечении устройства из кармана - - OK - Информация - Эти функции используют события датчиков для отображения уведомлений. Датчик проверяется только при поступлении нового уведомления, что помогает сэкономить заряд батареи. Можно активировать включение датчика сразу при отключении экрана устройства, однако это может ускорить разряд батареи. - diff --git a/doze/res/values-si-rLK/strings.xml b/doze/res/values-si-rLK/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-si-rLK/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-sk/strings.xml b/doze/res/values-sk/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-sk/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-sl/strings.xml b/doze/res/values-sl/strings.xml deleted file mode 100644 index 24e40497..00000000 --- a/doze/res/values-sl/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Okoliški zaslon - Zbudi zaslon ob prejemu obvestila - - Tipalo nagiba - Dvig - Utripaj obvestila ob dvigu naprave - - Tipalo bližine - Mahanje z roko - Utripaj obvestila ob mahanju z roko - Žep - Utripaj obvestila ob odstranitvi iz žepa - - V redu - Pomoč - 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. - diff --git a/doze/res/values-sq-rAL/strings.xml b/doze/res/values-sq-rAL/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-sq-rAL/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-sr/strings.xml b/doze/res/values-sr/strings.xml deleted file mode 100644 index fa30ca78..00000000 --- a/doze/res/values-sr/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Амбијент приказ - Пробуди екран кад добијеш обавештење - - Тилт сензор - Купљење - Пулсно обавештење када је уређај покупљен - - Сензор близине - Покрет руком - Пулсно обавештење при покрету руком - Џеп - Пулсно обавештење при уклањању из џепа - - У реду - Помоћ - Ова функција користи активирање сензора да покрене пулсно обавештење. Изабрани сензор је омогућен једино када уређај прима обавештење, то помаже смањењу потрожње батерије. Ту је и опција омогућења изабраног сензора чим се екран искључи, то ће узроковати већој потрожњи батерије. - diff --git a/doze/res/values-sv/strings.xml b/doze/res/values-sv/strings.xml deleted file mode 100644 index 225a2b8b..00000000 --- a/doze/res/values-sv/strings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - Plocka upp - Pulsera aviseringarna när enheten plockas upp - - Närhetscensor - Pulsera aviseringar när telefonen tas upp ur fickan - - OK - Hjälp - diff --git a/doze/res/values-sw/strings.xml b/doze/res/values-sw/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-sw/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ta-rIN/strings.xml b/doze/res/values-ta-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ta-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-te-rIN/strings.xml b/doze/res/values-te-rIN/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-te-rIN/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-th/strings.xml b/doze/res/values-th/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-th/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-tr/strings.xml b/doze/res/values-tr/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-tr/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ug/strings.xml b/doze/res/values-ug/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ug/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-uk/strings.xml b/doze/res/values-uk/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-uk/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-ur-rPK/strings.xml b/doze/res/values-ur-rPK/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-ur-rPK/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-uz-rUZ/strings.xml b/doze/res/values-uz-rUZ/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-uz-rUZ/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-vi/strings.xml b/doze/res/values-vi/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-vi/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-zh-rCN/strings.xml b/doze/res/values-zh-rCN/strings.xml deleted file mode 100644 index ee50805b..00000000 --- a/doze/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - 环境显示 - 当接收到通知时唤醒屏幕 - - 倾斜传感器 - 拿起 - 当拿起设备时闪烁通知灯 - - 距离传感器 - 挥手 - 挥手时闪烁通知呼吸灯 - 口袋 - 从口袋中拿出时闪烁通知呼吸灯 - - 确定 - 帮助 - 这些功能使用传感器启用打盹通知指示灯,选择的传感器将仅在设备收到通知时开启,这将有助于优化电池用量。还有一个选项是当屏幕关闭后立即启用传感器,这会导致更多的电池用量。 - diff --git a/doze/res/values-zh-rHK/strings.xml b/doze/res/values-zh-rHK/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-zh-rHK/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-zh-rTW/strings.xml b/doze/res/values-zh-rTW/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-zh-rTW/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values-zu/strings.xml b/doze/res/values-zu/strings.xml deleted file mode 100644 index c023c089..00000000 --- a/doze/res/values-zu/strings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/doze/res/values/strings.xml b/doze/res/values/strings.xml deleted file mode 100644 index fed5b053..00000000 --- a/doze/res/values/strings.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - On - - - Off - - Ambient display - Wake screen when you receive notifications - Screen will wake when you receive notifications - Screen will not wake when you receive notifications - - - Tilt sensor - Pick up - Pulse notifications when device is picked up - - - Proximity sensor - Hand wave - Pulse notifications on hand wave - Pocket - Pulse notifications on removal from pocket - - - OK - Help - These features use sensor events to launch a doze notification pulse, this will cause higher battery usage. - diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml index acc19d2f..005c6ae8 100644 --- a/doze/res/xml/doze_settings.xml +++ b/doze/res/xml/doze_settings.xml @@ -14,24 +14,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + android:title="@string/tilt_sensor_title"> + android:title="@string/pick_up_gesture_title" + android:summary="@string/pick_up_gesture_summary" /> + android:key="proximity_sensor" + android:title="@string/proximity_sensor_title"> Date: Tue, 3 Jan 2017 03:12:22 +0100 Subject: [PATCH 11/62] gemini: doze: Cleanup * Rename missing OnePlus occurance * Remove unneccessary newlines * Remove redundancy * Remove unused variables and imports * Make variables local when sufficient Change-Id: I48f5dfc24275388f1deb31dc27716ed75aae898e --- .../settings/doze/DozeReceiver.java | 3 ++- .../settings/doze/DozeSettings.java | 5 +---- .../settings/doze/DozeSettingsFragment.java | 22 +++++++------------ .../settings/doze/ProximitySensor.java | 16 +++++--------- .../cyanogenmod/settings/doze/TiltSensor.java | 9 +------- .../com/cyanogenmod/settings/doze/Utils.java | 2 +- 6 files changed, 19 insertions(+), 38 deletions(-) diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java b/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java index 6ab3e0d1..ee92ab43 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +25,7 @@ public class DozeReceiver extends RemotePreferenceUpdater { private static final boolean DEBUG = false; - private static final String TAG = "OneplusDoze"; + private static final String TAG = "XiaomiDoze"; private static final String DOZE_CATEGORY_KEY = "doze_device_settings"; diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java index 76ac5fe7..603e5ef6 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,10 +22,6 @@ import com.android.settingslib.drawer.SettingsDrawerActivity; -/** - * Created by shade on 10/14/16. - */ - public class DozeSettings extends SettingsDrawerActivity { private static final String TAG_DOZE = "doze"; diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java index 0da6f691..8b56e678 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2015 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,8 +43,6 @@ public class DozeSettingsFragment extends PreferenceFragment implements OnPrefer private SharedPreferences mPreferences; - private Switch mSwitch; - private SwitchPreference mPickUpPreference; private SwitchPreference mHandwavePreference; private SwitchPreference mPocketPreference; @@ -53,8 +52,6 @@ public class DozeSettingsFragment extends PreferenceFragment implements OnPrefer public void onChange(boolean selfChange) { super.onChange(selfChange); - boolean enabled = Utils.isDozeEnabled(getActivity()); - updateSwitches(Utils.isDozeEnabled(getActivity())); DozeReceiver.notifyChanged(getActivity()); } @@ -92,16 +89,13 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { showHelp(); } - mPickUpPreference = - (SwitchPreference) findPreference(Utils.GESTURE_PICK_UP_KEY); + mPickUpPreference = (SwitchPreference) findPreference(Utils.GESTURE_PICK_UP_KEY); mPickUpPreference.setOnPreferenceChangeListener(this); - mHandwavePreference = - (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY); + mHandwavePreference = (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY); mHandwavePreference.setOnPreferenceChangeListener(this); - mPocketPreference = - (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); + mPocketPreference = (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); mPocketPreference.setOnPreferenceChangeListener(this); } @@ -130,14 +124,14 @@ public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); View switchBar = view.findViewById(R.id.switch_bar); - mSwitch = (Switch) switchBar.findViewById(android.R.id.switch_widget); - mSwitch.setChecked(Utils.isDozeEnabled(getActivity())); - mSwitch.setOnCheckedChangeListener(this); + Switch switchWidget = (Switch) switchBar.findViewById(android.R.id.switch_widget); + switchWidget.setChecked(Utils.isDozeEnabled(getActivity())); + switchWidget.setOnCheckedChangeListener(this); switchBar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - mSwitch.setChecked(!mSwitch.isChecked()); + switchWidget.setChecked(!switchWidget.isChecked()); } }); } diff --git a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java index 0f62b11b..eb330275 100644 --- a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java +++ b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java @@ -1,5 +1,6 @@ /* * Copyright (c) 2015 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,8 +40,7 @@ public class ProximitySensor implements SensorEventListener { public ProximitySensor(Context context) { mContext = context; - mSensorManager = (SensorManager) - mContext.getSystemService(Context.SENSOR_SERVICE); + mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); } @@ -60,14 +60,11 @@ public void onSensorChanged(SensorEvent event) { private boolean shouldPulse(long timestamp) { long delta = timestamp - mInPocketTime; - if (Utils.handwaveGestureEnabled(mContext) - && Utils.pocketGestureEnabled(mContext)) { + if (Utils.handwaveGestureEnabled(mContext) && Utils.pocketGestureEnabled(mContext)) { return true; - } else if (Utils.handwaveGestureEnabled(mContext) - && !Utils.pocketGestureEnabled(mContext)) { + } else if (Utils.handwaveGestureEnabled(mContext)) { return delta < POCKET_DELTA_NS; - } else if (!Utils.handwaveGestureEnabled(mContext) - && Utils.pocketGestureEnabled(mContext)) { + } else if (Utils.pocketGestureEnabled(mContext)) { return delta >= POCKET_DELTA_NS; } return false; @@ -80,8 +77,7 @@ public void onAccuracyChanged(Sensor sensor, int accuracy) { protected void enable() { if (DEBUG) Log.d(TAG, "Enabling"); - mSensorManager.registerListener(this, mSensor, - SensorManager.SENSOR_DELAY_NORMAL); + mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL); } protected void disable() { diff --git a/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java index 443a10d7..b3316e80 100644 --- a/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java +++ b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java @@ -1,5 +1,6 @@ /* * Copyright (c) 2015 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +22,6 @@ 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; @@ -31,25 +30,19 @@ 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 diff --git a/doze/src/com/cyanogenmod/settings/doze/Utils.java b/doze/src/com/cyanogenmod/settings/doze/Utils.java index ce7fea59..7e13eb15 100644 --- a/doze/src/com/cyanogenmod/settings/doze/Utils.java +++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java @@ -1,5 +1,6 @@ /* * Copyright (c) 2015 The CyanogenMod Project + * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +34,6 @@ public final class Utils { private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; - protected static final String AMBIENT_DISPLAY_KEY = "doze_enabled"; protected static final String GESTURE_PICK_UP_KEY = "gesture_pick_up"; protected static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave"; protected static final String GESTURE_POCKET_KEY = "gesture_pocket"; From 709c5f5f0cd014b1ee68e1d669bd75cc2967c988 Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 3 Jan 2017 02:22:40 +0100 Subject: [PATCH 12/62] gemini: doze: Set different timings for wave and pocket detection * One second is a little bit short for pocket Change-Id: Id27bba6f01a3a4d54ae9096fae87505f38ee5062 --- .../com/cyanogenmod/settings/doze/ProximitySensor.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java index eb330275..31fe15dc 100644 --- a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java +++ b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java @@ -29,7 +29,11 @@ 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; + // Maximum time for the hand to cover the sensor: 1s + private static final int HANDWAVE_MAX_DELTA_NS = 1000 * 1000 * 1000; + + // Minimum time until the device is considered to have been in the pocket: 2s + private static final int POCKET_MIN_DELTA_NS = 2000 * 1000 * 1000; private SensorManager mSensorManager; private Sensor mSensor; @@ -63,9 +67,9 @@ private boolean shouldPulse(long timestamp) { if (Utils.handwaveGestureEnabled(mContext) && Utils.pocketGestureEnabled(mContext)) { return true; } else if (Utils.handwaveGestureEnabled(mContext)) { - return delta < POCKET_DELTA_NS; + return delta < HANDWAVE_MAX_DELTA_NS; } else if (Utils.pocketGestureEnabled(mContext)) { - return delta >= POCKET_DELTA_NS; + return delta >= POCKET_MIN_DELTA_NS; } return false; } From edad045106c14973aea37319c509b85804b9c45d Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 30 Mar 2017 22:45:48 +0100 Subject: [PATCH 13/62] msm8996-common: Doze: Refactor * Fix Ambient Display's switchbar on/off text. * Get rid of unnecessary receiver and all its related code, permissions and meta-data. * Keep the service running only if Doze is enabled system-wide along with at least one of the additional Ambient Display features. Change-Id: Id1f7f5e099f289a20f5757b7869e297e0ce74f7a --- doze/AndroidManifest.xml | 32 ++++-- doze/res/layout/switch_bar.xml | 3 +- doze/res/values/styles.xml | 14 +-- .../settings/doze/DozeReceiver.java | 55 --------- ...ettings.java => DozeSettingsActivity.java} | 19 ++-- .../settings/doze/DozeSettingsFragment.java | 106 ++++++------------ .../com/cyanogenmod/settings/doze/Utils.java | 21 ++-- 7 files changed, 78 insertions(+), 172 deletions(-) delete mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java rename doze/src/com/cyanogenmod/settings/doze/{DozeSettings.java => DozeSettingsActivity.java} (74%) diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml index b74543cb..5e311766 100644 --- a/doze/AndroidManifest.xml +++ b/doze/AndroidManifest.xml @@ -1,4 +1,20 @@ + - @@ -19,32 +34,25 @@ android:label="@string/device_settings_app_name" android:persistent="true"> - + - - + android:theme="@style/Theme.Main"> - - diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml index f98de96a..d25948bb 100644 --- a/doze/res/layout/switch_bar.xml +++ b/doze/res/layout/switch_bar.xml @@ -34,8 +34,7 @@ android:ellipsize="end" android:textAppearance="@android:style/TextAppearance.Material.Title" android:textColor="?android:attr/textColorPrimaryInverse" - android:textAlignment="viewStart" - android:text="@string/switch_bar_on" /> + android:textAlignment="viewStart" /> - - - - - diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java b/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java deleted file mode 100644 index ee92ab43..00000000 --- a/doze/src/com/cyanogenmod/settings/doze/DozeReceiver.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2016 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS 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.content.Intent; -import android.util.Log; - -import cyanogenmod.preference.RemotePreferenceUpdater; - -public class DozeReceiver extends RemotePreferenceUpdater { - - private static final boolean DEBUG = false; - private static final String TAG = "XiaomiDoze"; - - private static final String DOZE_CATEGORY_KEY = "doze_device_settings"; - - @Override - public void onReceive(Context context, Intent intent) { - super.onReceive(context, intent); - - if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { - if (Utils.isDozeEnabled(context) && Utils.sensorsEnabled(context)) { - if (DEBUG) Log.d(TAG, "Starting service"); - Utils.startService(context); - } - } - } - - @Override - public String getSummary(Context context, String key) { - if (DOZE_CATEGORY_KEY.equals(key)) { - return DozeSettingsFragment.getDozeSummary(context); - } - return null; - } - - static void notifyChanged(Context context) { - notifyChanged(context, DOZE_CATEGORY_KEY); - } -} diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java similarity index 74% rename from doze/src/com/cyanogenmod/settings/doze/DozeSettings.java rename to doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java index 603e5ef6..7e3620a5 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java @@ -1,6 +1,6 @@ /* - * Copyright (C) 2016 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS Project + * Copyright (C) 2015-2016 The CyanogenMod Project + * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,15 +14,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.cyanogenmod.settings.doze; -import android.app.Activity; import android.os.Bundle; import android.view.MenuItem; import com.android.settingslib.drawer.SettingsDrawerActivity; -public class DozeSettings extends SettingsDrawerActivity { +public class DozeSettingsActivity extends SettingsDrawerActivity { private static final String TAG_DOZE = "doze"; @@ -31,17 +31,18 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.doze); - + getActionBar().setDisplayHomeAsUpEnabled(true); getFragmentManager().beginTransaction().replace(R.id.content_frame, new DozeSettingsFragment(), TAG_DOZE).commit(); } @Override public boolean onOptionsItemSelected(MenuItem item) { - if (item.getItemId() == android.R.id.home) { - onBackPressed(); - return true; + switch (item.getItemId()) { + case android.R.id.home: + onBackPressed(); + return true; } - return false; + return super.onOptionsItemSelected(item); } } diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java index 8b56e678..6aff232d 100644 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS Project + * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package com.cyanogenmod.settings.doze; -import android.app.ActionBar; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; @@ -37,95 +36,60 @@ import android.view.ViewGroup; import android.widget.CompoundButton; import android.widget.Switch; +import android.widget.TextView; public class DozeSettingsFragment extends PreferenceFragment implements OnPreferenceChangeListener, CompoundButton.OnCheckedChangeListener { - private SharedPreferences mPreferences; + private TextView mTextView; private SwitchPreference mPickUpPreference; private SwitchPreference mHandwavePreference; private SwitchPreference mPocketPreference; - private ContentObserver mDozeObserver = new ContentObserver(new Handler()) { - @Override - public void onChange(boolean selfChange) { - super.onChange(selfChange); - - updateSwitches(Utils.isDozeEnabled(getActivity())); - DozeReceiver.notifyChanged(getActivity()); - } - }; - - static String getDozeSummary(Context context) { - if (Utils.isDozeEnabled(context)) { - return context.getString(R.string.ambient_display_summary_on); - } - return context.getString(R.string.ambient_display_summary_off); - } - - @Override - public void onActivityCreated(Bundle savedInstanceState) { - super.onActivityCreated(savedInstanceState); - getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - final View view = LayoutInflater.from(getContext()).inflate(R.layout.doze, container, false); - ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState)); - return view; - } - @Override public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { addPreferencesFromResource(R.xml.doze_settings); - // get shared preference - mPreferences = getActivity().getSharedPreferences("doze_settings", Activity.MODE_PRIVATE); - - if (savedInstanceState == null && !mPreferences.getBoolean("first_help_shown", false)) { + SharedPreferences prefs = getActivity().getSharedPreferences("doze_settings", + Activity.MODE_PRIVATE); + if (savedInstanceState == null && !prefs.getBoolean("first_help_shown", false)) { showHelp(); } + boolean dozeEnabled = Utils.isDozeEnabled(getActivity()); + mPickUpPreference = (SwitchPreference) findPreference(Utils.GESTURE_PICK_UP_KEY); - mPickUpPreference.setOnPreferenceChangeListener(this); + mPickUpPreference.setEnabled(dozeEnabled); mHandwavePreference = (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY); - mHandwavePreference.setOnPreferenceChangeListener(this); + mHandwavePreference.setEnabled(dozeEnabled); mPocketPreference = (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); - mPocketPreference.setOnPreferenceChangeListener(this); + mPocketPreference.setEnabled(dozeEnabled); } @Override - public void onResume() { - super.onResume(); - getActivity().getContentResolver().registerContentObserver( - Utils.DOZE_ENABLED_URI, false, mDozeObserver); - updateSwitches(Utils.isDozeEnabled(getActivity())); - } - - @Override - public void onPause() { - super.onPause(); - getActivity().getContentResolver().unregisterContentObserver(mDozeObserver); - } - - private void updateSwitches(boolean enabled) { - mPickUpPreference.setEnabled(enabled); - mHandwavePreference.setEnabled(enabled); - mPocketPreference.setEnabled(enabled); + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + final View view = LayoutInflater.from(getContext()).inflate(R.layout.doze, container, false); + ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState)); + return view; } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); + boolean dozeEnabled = Utils.isDozeEnabled(getActivity()); + + mTextView = (TextView) view.findViewById(R.id.switch_text); + mTextView.setText(getString(dozeEnabled ? + R.string.switch_bar_on : R.string.switch_bar_off)); + View switchBar = view.findViewById(R.id.switch_bar); Switch switchWidget = (Switch) switchBar.findViewById(android.R.id.switch_widget); - switchWidget.setChecked(Utils.isDozeEnabled(getActivity())); + switchWidget.setChecked(dozeEnabled); switchWidget.setOnCheckedChangeListener(this); switchBar.setOnClickListener(new View.OnClickListener() { @@ -136,31 +100,25 @@ public void onClick(View v) { }); } - @Override public boolean onPreferenceChange(Preference preference, Object newValue) { - final String key = preference.getKey(); - final boolean value = (Boolean) newValue; - if (Utils.GESTURE_PICK_UP_KEY.equals(key)) { - mPickUpPreference.setChecked(value); - } else if (Utils.GESTURE_HAND_WAVE_KEY.equals(key)) { - mHandwavePreference.setChecked(value); - } else if (Utils.GESTURE_POCKET_KEY.equals(key)) { - mPocketPreference.setChecked(value); - } else { - return false; - } - - Utils.startService(getActivity()); + Utils.checkDozeService(getActivity()); return true; } @Override public void onCheckedChanged(CompoundButton compoundButton, boolean b) { Utils.enableDoze(b, getActivity()); + Utils.checkDozeService(getActivity()); + + mTextView.setText(getString(b ? R.string.switch_bar_on : R.string.switch_bar_off)); + + mPickUpPreference.setEnabled(b); + mHandwavePreference.setEnabled(b); + mPocketPreference.setEnabled(b); } - public static class HelpDialogFragment extends DialogFragment { + private static class HelpDialogFragment extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { return new AlertDialog.Builder(getActivity()) diff --git a/doze/src/com/cyanogenmod/settings/doze/Utils.java b/doze/src/com/cyanogenmod/settings/doze/Utils.java index 7e13eb15..65f1d996 100644 --- a/doze/src/com/cyanogenmod/settings/doze/Utils.java +++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java @@ -1,6 +1,6 @@ /* * Copyright (c) 2015 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS Project + * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ import android.content.Context; import android.content.Intent; -import android.net.Uri; import android.os.UserHandle; import android.support.v7.preference.PreferenceManager; import android.provider.Settings; @@ -38,8 +37,6 @@ public final class Utils { protected static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave"; protected static final String GESTURE_POCKET_KEY = "gesture_pocket"; - public static final Uri DOZE_ENABLED_URI = Settings.Secure.getUriFor(DOZE_ENABLED); - protected static void startService(Context context) { if (DEBUG) Log.d(TAG, "Starting service"); context.startServiceAsUser(new Intent(context, DozeService.class), @@ -52,20 +49,22 @@ protected static void stopService(Context context) { UserHandle.CURRENT); } + protected static void checkDozeService(Context context) { + if (isDozeEnabled(context) && sensorsEnabled(context)) { + startService(context); + } else { + stopService(context); + } + } + protected static boolean isDozeEnabled(Context context) { return Settings.Secure.getInt(context.getContentResolver(), DOZE_ENABLED, 1) != 0; } protected static boolean enableDoze(boolean enable, Context context) { - boolean dozeEnabled = Settings.Secure.putInt(context.getContentResolver(), + return Settings.Secure.putInt(context.getContentResolver(), DOZE_ENABLED, enable ? 1 : 0); - if (enable) { - startService(context); - } else { - stopService(context); - } - return dozeEnabled; } protected static void launchDozePulse(Context context) { From 5c65fe51369dc5bee3add26dfffacbe36a777ffa Mon Sep 17 00:00:00 2001 From: B--B Date: Wed, 12 Jul 2017 16:10:35 +0200 Subject: [PATCH 14/62] Fix compiling after doze updates --- doze/Android.mk | 3 +-- jdc.dependencies | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doze/Android.mk b/doze/Android.mk index 095f7d89..734d48b2 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -14,8 +14,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v7-recyclerview \ android-support-v7-preference \ android-support-v7-appcompat \ - android-support-v14-preference \ - org.cyanogenmod.platform.internal + android-support-v14-preference LOCAL_RESOURCE_DIR := \ $(LOCAL_PATH)/res \ diff --git a/jdc.dependencies b/jdc.dependencies index e3a1a53d..fab54efc 100644 --- a/jdc.dependencies +++ b/jdc.dependencies @@ -8,7 +8,7 @@ "repository": "AOSP-JF-MM/proprietary_vendor_xiaomi", "target_path": "vendor/xiaomi", "branch": "aosp-7.1.2" - } + }, { "repository": "AOSP-JF-MM/platform_packages_resources_devicesettings", "target_path": "packages/resources/devicesettings", From 3c61787c4c0895669c11a4d65622311ba91407b2 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 25 Mar 2017 11:08:28 +0000 Subject: [PATCH 15/62] msm8996-common: Integrate KeyHandler into ConfigPanel * KeyHandler is device-specific (gemini only), but can't really work without ConfigPanel, so merge into a single package * On the other hand, move the overlays out of the common tree to allow other devices to build ConfigPanel without being forced to use the KeyHandler Change-Id: I0236ceca21ae47657d43868a4217e3db4699346e Conflicts: keyhandler/Android.mk overlay/vendor/cmsdk/cm/res/res/values/config.xml --- configpanel/AndroidManifest.xml | 2 ++ .../src/com/cyanogenmod/settings/device/KeyHandler.java | 0 keyhandler/Android.mk | 9 --------- 3 files changed, 2 insertions(+), 9 deletions(-) rename {keyhandler => configpanel}/src/com/cyanogenmod/settings/device/KeyHandler.java (100%) delete mode 100644 keyhandler/Android.mk diff --git a/configpanel/AndroidManifest.xml b/configpanel/AndroidManifest.xml index 432970e9..b3eceeda 100644 --- a/configpanel/AndroidManifest.xml +++ b/configpanel/AndroidManifest.xml @@ -58,6 +58,8 @@ android:value="com.android.settings.category.device" /> + + diff --git a/keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java b/configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java similarity index 100% rename from keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java rename to configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java diff --git a/keyhandler/Android.mk b/keyhandler/Android.mk deleted file mode 100644 index b6007805..00000000 --- a/keyhandler/Android.mk +++ /dev/null @@ -1,9 +0,0 @@ -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_MODULE := com.cyanogenmod.keyhandler -LOCAL_SRC_FILES := $(call all-java-files-under,src) -LOCAL_MODULE_TAGS := optional -LOCAL_DEX_PREOPT := false -include $(BUILD_JAVA_LIBRARY) From c61a717a4f66c0413dd903bffcc74d33b3cac543 Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 16 Jul 2017 12:47:27 +0200 Subject: [PATCH 16/62] Updates and cleaning after KeyHandler changes --- device.mk | 4 ---- overlay/frameworks/base/core/res/res/values/config.xml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/device.mk b/device.mk index 6f1b5baa..403fa8cf 100644 --- a/device.mk +++ b/device.mk @@ -224,10 +224,6 @@ PRODUCT_PACKAGES += \ ethertypes \ libebtc -# KeyHandler -PRODUCT_PACKAGES += \ - com.cyanogenmod.keyhandler - # Lights PRODUCT_PACKAGES += \ lights.msm8996 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 8bb10d8d..1836b25d 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -513,7 +513,7 @@ - /system/framework/com.cyanogenmod.keyhandler.jar + /system/priv-app/ConfigPanel/ConfigPanel.apk From 2d0c6d5b793e00d53ac9008127e7e31236145fc6 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 29 Mar 2017 18:09:37 +0100 Subject: [PATCH 17/62] msm8996-common: ConfigPanel: Refactor * Integrate more nicely with Settings * Remove unnecessary permissions and unused resources * Reorganize constants and helper methods Change-Id: Id49e3aff5a243201cff5177de78cca26d932a055 Conflicts: configpanel/Android.mk configpanel/AndroidManifest.xml configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java configpanel/src/com/cyanogenmod/settings/device/Startup.java --- configpanel/Android.mk | 41 ++++++++----- configpanel/AndroidManifest.xml | 5 +- configpanel/proguard.flags | 3 + .../res/drawable-xhdpi/locator_icon.png | Bin 2303 -> 0 bytes .../res/drawable-xxhdpi/locator_icon.png | Bin 1254 -> 0 bytes configpanel/res/values/colors.xml | 22 ------- configpanel/res/values/dimens.xml | 20 ------ configpanel/res/values/styles.xml | 13 +--- ...tings.java => ButtonSettingsActivity.java} | 14 +++-- ...ivity.java => ButtonSettingsFragment.java} | 42 ++++--------- .../ConfigPanelSearchIndexablesProvider.java | 2 +- .../device/{utils => }/Constants.java | 39 +----------- .../cyanogenmod/settings/device/Startup.java | 16 ++--- .../cyanogenmod/settings/device/Utils.java | 57 ++++++++++++++++++ 14 files changed, 121 insertions(+), 153 deletions(-) create mode 100644 configpanel/proguard.flags delete mode 100644 configpanel/res/drawable-xhdpi/locator_icon.png delete mode 100644 configpanel/res/drawable-xxhdpi/locator_icon.png delete mode 100644 configpanel/res/values/colors.xml delete mode 100644 configpanel/res/values/dimens.xml rename configpanel/src/com/cyanogenmod/settings/device/{ButtonSettings.java => ButtonSettingsActivity.java} (65%) rename configpanel/src/com/cyanogenmod/settings/device/{utils/NodePreferenceActivity.java => ButtonSettingsFragment.java} (74%) rename configpanel/src/com/cyanogenmod/settings/device/{utils => }/Constants.java (60%) create mode 100644 configpanel/src/com/cyanogenmod/settings/device/Utils.java diff --git a/configpanel/Android.mk b/configpanel/Android.mk index a8e33b3b..4f19fba9 100644 --- a/configpanel/Android.mk +++ b/configpanel/Android.mk @@ -1,19 +1,3 @@ -# -# 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. -# - LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -22,7 +6,32 @@ LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true LOCAL_PACKAGE_NAME := ConfigPanel +LOCAL_STATIC_JAVA_LIBRARIES := \ + android-support-v14-preference \ + android-support-v7-appcompat \ + android-support-v7-preference \ + android-support-v7-recyclerview + +LOCAL_AAPT_FLAGS := \ + --auto-add-overlay \ + --extra-packages android.support.v14.preference \ + --extra-packages android.support.v7.appcompat \ + --extra-packages android.support.v7.preference \ + --extra-packages android.support.v7.recyclerview + +LOCAL_RESOURCE_DIR := \ + $(LOCAL_PATH)/res \ + $(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \ + frameworks/support/v14/preference/res \ + frameworks/support/v7/appcompat/res \ + frameworks/support/v7/preference/res \ + frameworks/support/v7/recyclerview/res + +LOCAL_PROGUARD_FLAG_FILES := proguard.flags + LOCAL_PRIVILEGED_MODULE := true LOCAL_MODULE_TAGS := optional +include frameworks/base/packages/SettingsLib/common.mk + include $(BUILD_PACKAGE) diff --git a/configpanel/AndroidManifest.xml b/configpanel/AndroidManifest.xml index b3eceeda..6ffa59c0 100644 --- a/configpanel/AndroidManifest.xml +++ b/configpanel/AndroidManifest.xml @@ -1,8 +1,9 @@ - - - #ff212121 - #ff000000 - #ff009688 - diff --git a/configpanel/res/values/dimens.xml b/configpanel/res/values/dimens.xml deleted file mode 100644 index 62f1899d..00000000 --- a/configpanel/res/values/dimens.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - 72dp - diff --git a/configpanel/res/values/styles.xml b/configpanel/res/values/styles.xml index 710f4b5a..e4113387 100644 --- a/configpanel/res/values/styles.xml +++ b/configpanel/res/values/styles.xml @@ -1,6 +1,7 @@ - - - diff --git a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java similarity index 65% rename from configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java rename to configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java index 02d16aad..83b68e1b 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java @@ -16,16 +16,18 @@ package com.cyanogenmod.settings.device; +import android.app.Fragment; +import android.app.FragmentTransaction; import android.os.Bundle; -import com.cyanogenmod.settings.device.utils.NodePreferenceActivity; +import com.android.settingslib.drawer.SettingsDrawerActivity; -import com.android.internal.util.cm.ScreenType; +public class ButtonSettingsActivity extends SettingsDrawerActivity { -public class ButtonSettings extends NodePreferenceActivity { - @Override - public void onCreate(Bundle savedInstanceState) { + protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - addPreferencesFromResource(R.xml.button_panel); + + getFragmentManager().beginTransaction().replace(R.id.content_frame, + new ButtonSettingsFragment()).commit(); } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java similarity index 74% rename from configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java rename to configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java index 998ffc21..f32f1911 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java @@ -15,40 +15,35 @@ * limitations under the License. */ -package com.cyanogenmod.settings.device.utils; +package com.cyanogenmod.settings.device; import android.os.Bundle; -import android.preference.Preference; -import android.preference.Preference.OnPreferenceChangeListener; -import android.preference.PreferenceActivity; -import android.preference.ListPreference; -import android.preference.SwitchPreference; +import android.support.v14.preference.PreferenceFragment; +import android.support.v14.preference.SwitchPreference; +import android.support.v7.preference.ListPreference; +import android.support.v7.preference.Preference; +import android.support.v7.preference.Preference.OnPreferenceChangeListener; import android.text.TextUtils; import android.view.MenuItem; import java.io.File; +import com.android.settingslib.drawer.SettingsDrawerActivity; + import com.android.internal.util.cm.FileUtils; -import com.android.internal.util.cm.ScreenType; -public class NodePreferenceActivity extends PreferenceActivity +public class ButtonSettingsFragment extends PreferenceFragment implements OnPreferenceChangeListener { @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - getActionBar().setDisplayHomeAsUpEnabled(true); + public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { + addPreferencesFromResource(R.xml.button_panel); } @Override - protected void onResume() { + public void onResume() { super.onResume(); updatePreferencesBasedOnDependencies(); - - // If running on a phone, remove padding around the listview - if (!ScreenType.isTablet(this)) { - getListView().setPadding(0, 0, 0, 0); - } } @Override @@ -96,17 +91,6 @@ public void addPreferencesFromResource(int preferencesResId) { } } - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - // Respond to the action bar's Up/Home button - case android.R.id.home: - finish(); - return true; - } - return super.onOptionsItemSelected(item); - } - private void updatePreferencesBasedOnDependencies() { for (String pref : Constants.sNodeDependencyMap.keySet()) { SwitchPreference b = (SwitchPreference) findPreference(pref); @@ -116,7 +100,7 @@ private void updatePreferencesBasedOnDependencies() { String dependencyNodeValue = FileUtils.readOneLine(dependencyNode); boolean shouldSetEnabled = dependencyNodeValue.equals( Constants.sNodeDependencyMap.get(pref)[1]); - Constants.updateDependentPreference(this, b, pref, shouldSetEnabled); + Utils.updateDependentPreference(getContext(), b, pref, shouldSetEnabled); } } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java index 13e74f50..33c5fe54 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java @@ -43,7 +43,7 @@ public class ConfigPanelSearchIndexablesProvider extends SearchIndexablesProvide private static SearchIndexableResource[] INDEXABLE_RES = new SearchIndexableResource[]{ new SearchIndexableResource(1, R.xml.button_panel, - ButtonSettings.class.getName(), + ButtonSettingsActivity.class.getName(), R.drawable.ic_settings_additional_buttons), }; diff --git a/configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java b/configpanel/src/com/cyanogenmod/settings/device/Constants.java similarity index 60% rename from configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java rename to configpanel/src/com/cyanogenmod/settings/device/Constants.java index ea33e2a7..0009d8d4 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Constants.java @@ -15,16 +15,11 @@ * limitations under the License. */ -package com.cyanogenmod.settings.device.utils; +package com.cyanogenmod.settings.device; import java.util.HashMap; import java.util.Map; -import android.content.Context; -import android.content.SharedPreferences; -import android.preference.PreferenceManager; -import android.preference.SwitchPreference; - public class Constants { // Preference keys @@ -54,7 +49,7 @@ public class Constants { public static final String[] sButtonPrefKeys = { BUTTON_SWAP_KEY, FP_HOME_KEY, - FP_WAKEUP_KEY, + FP_WAKEUP_KEY }; static { @@ -68,34 +63,4 @@ public class Constants { sNodeDependencyMap.put(FP_HOME_KEY, new String[]{ VIRTUAL_KEYS_NODE, "1" }); } - - public static boolean isPreferenceEnabled(Context context, String key) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - return preferences.getBoolean(key, (Boolean) sNodeDefaultMap.get(key)); - } - - public static String getPreferenceString(Context context, String key) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - return preferences.getString(key, (String) sNodeDefaultMap.get(key)); - } - - public static void updateDependentPreference(Context context, SwitchPreference b, - String key, Boolean shouldSetEnabled) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - boolean prefActualValue = preferences.getBoolean(key, false); - - if (shouldSetEnabled) { - if (sNodeUserSetValuesMap.get(key) != null && - (Boolean) sNodeUserSetValuesMap.get(key)[1] && - (Boolean) sNodeUserSetValuesMap.get(key)[1] != prefActualValue) { - b.setChecked(true); - sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, false }); - } - } else { - if (b.isEnabled() && prefActualValue) - sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, true }); - b.setEnabled(false); - b.setChecked(false); - } - } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/Startup.java b/configpanel/src/com/cyanogenmod/settings/device/Startup.java index ca7e2e1f..f6a8d1df 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Startup.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Startup.java @@ -41,8 +41,6 @@ import java.io.File; -import com.cyanogenmod.settings.device.utils.Constants; - import com.android.internal.util.cm.FileUtils; public class Startup extends BroadcastReceiver { @@ -50,27 +48,25 @@ public class Startup extends BroadcastReceiver { private static final String TAG = Startup.class.getSimpleName(); @Override - public void onReceive(final Context context, final Intent intent) { + public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (Intent.ACTION_BOOT_COMPLETED.equals(action) || Intent.ACTION_PRE_BOOT_COMPLETED.equals(action)) { // Disable button settings if needed if (!hasButtonProcs()) { - disableComponent(context, ButtonSettings.class.getName()); + disableComponent(context, ButtonSettingsActivity.class.getName()); } else { - enableComponent(context, ButtonSettings.class.getName()); + enableComponent(context, ButtonSettingsActivity.class.getName()); // Restore nodes to saved preference values for (String pref : Constants.sButtonPrefKeys) { - String value; - String node; + String node, value; if (Constants.sStringNodePreferenceMap.containsKey(pref)) { - value = Constants.getPreferenceString(context, pref); node = Constants.sStringNodePreferenceMap.get(pref); + value = Utils.getPreferenceString(context, pref); } else { - value = Constants.isPreferenceEnabled(context, pref) ? - "1" : "0"; node = Constants.sBooleanNodePreferenceMap.get(pref); + value = Utils.isPreferenceEnabled(context, pref) ? "1" : "0"; } if (!FileUtils.writeLine(node, value)) { Log.w(TAG, "Write to node " + node + diff --git a/configpanel/src/com/cyanogenmod/settings/device/Utils.java b/configpanel/src/com/cyanogenmod/settings/device/Utils.java new file mode 100644 index 00000000..533a4647 --- /dev/null +++ b/configpanel/src/com/cyanogenmod/settings/device/Utils.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2016 The CyanogenMod Project + * (C) 2017 The LineageOS 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.content.SharedPreferences; +import android.support.v14.preference.SwitchPreference; +import android.support.v7.preference.PreferenceManager; + +public class Utils { + + public static boolean isPreferenceEnabled(Context context, String key) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + return preferences.getBoolean(key, (Boolean) Constants.sNodeDefaultMap.get(key)); + } + + public static String getPreferenceString(Context context, String key) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + return preferences.getString(key, (String) Constants.sNodeDefaultMap.get(key)); + } + + public static void updateDependentPreference(Context context, SwitchPreference b, + String key, boolean shouldSetEnabled) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + boolean prefActualValue = preferences.getBoolean(key, false); + + if (shouldSetEnabled) { + if (Constants.sNodeUserSetValuesMap.get(key) != null && + (Boolean) Constants.sNodeUserSetValuesMap.get(key)[1] && + (Boolean) Constants.sNodeUserSetValuesMap.get(key)[1] != prefActualValue) { + b.setChecked(true); + Constants.sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, false }); + } + } else { + if (b.isEnabled() && prefActualValue) { + Constants.sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, true }); + } + b.setEnabled(false); + b.setChecked(false); + } + } +} From fb4d19c34f4a5a608083e9b30fbc3a1c24ab919a Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sat, 7 Jan 2017 21:14:20 +0000 Subject: [PATCH 18/62] gemini: ConfigPanel: Remove unused code Change-Id: I14a48c4ab1b138bfba93d0508764b748f5dc9009 --- .../device/ButtonSettingsActivity.java | 1 + .../ConfigPanelSearchIndexablesProvider.java | 5 +--- .../cyanogenmod/settings/device/Startup.java | 23 +------------------ 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java index 83b68e1b..1b0e49b8 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java index 33c5fe54..2223f0f9 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +17,6 @@ package com.cyanogenmod.settings.device; - import android.database.Cursor; import android.database.MatrixCursor; import android.provider.SearchIndexableResource; @@ -37,9 +37,6 @@ public class ConfigPanelSearchIndexablesProvider extends SearchIndexablesProvide private static final String TAG = "ConfigPanelSearchIndexablesProvider"; public static final int SEARCH_IDX_BUTTON_PANEL = 0; - public static final int SEARCH_IDX_GESTURE_PANEL = 1; - public static final int SEARCH_IDX_OCLICK_PANEL = 2; - public static final int SEARCH_IDX_TOUCHSCREEN_PANEL = 3; private static SearchIndexableResource[] INDEXABLE_RES = new SearchIndexableResource[]{ new SearchIndexableResource(1, R.xml.button_panel, diff --git a/configpanel/src/com/cyanogenmod/settings/device/Startup.java b/configpanel/src/com/cyanogenmod/settings/device/Startup.java index f6a8d1df..7e91c7d3 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Startup.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Startup.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,28 +17,12 @@ package com.cyanogenmod.settings.device; -import android.app.PendingIntent; -import android.bluetooth.BluetoothAdapter; -import android.bluetooth.BluetoothManager; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; -import android.content.SharedPreferences; import android.content.pm.PackageManager; -import android.hardware.input.InputManager; -import android.os.Build; -import android.os.IBinder; -import android.os.RemoteException; -import android.os.ServiceManager; -import android.os.SystemClock; -import android.os.UserHandle; -import android.preference.PreferenceManager; import android.util.Log; -import android.view.InputDevice; -import android.view.InputEvent; -import android.view.KeyCharacterMap; -import android.view.KeyEvent; import java.io.File; @@ -77,12 +62,6 @@ public void onReceive(Context context, Intent intent) { } } - private void sendInputEvent(InputEvent event) { - InputManager inputManager = InputManager.getInstance(); - inputManager.injectInputEvent(event, - InputManager.INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH); - } - static boolean hasButtonProcs() { return new File(Constants.BUTTON_SWAP_NODE).exists() || new File(Constants.FP_HOME_KEY_NODE).exists() || From cf6e5110e9eaf4b3b5d4197d91250bf219b6e4a3 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 29 Mar 2017 23:22:37 +0100 Subject: [PATCH 19/62] Gemini: Allow control over PocketMode service * Once the service is running, proximity sensor is constantly active when the display is turned off, resulting into a residual increase in battery consumption. Add a toggle so that users can decide whether they accept that and prefer to prevent accidental wake-ups triggered by the fingerprint sensor. * Keep the receiver that listens for the screen status registered only if the fingerprint wake-up feature is enabled at the same time as the accidental wake-up prevention feature. * Set PocketMode as a required module of ConfigPanel, to make sure it is only shipped on devices building the latter. Change-Id: I5941f445d0bd77be1efa9ffcde2d9854e6446c3d @B--B edits: fixed for our AOSP Conflicts: configpanel/AndroidManifest.xml configpanel/src/com/cyanogenmod/settings/device/Startup.java pocketmode/src/com/cyanogenmod/pocketmode/PocketModeService.java --- configpanel/Android.mk | 1 + configpanel/AndroidManifest.xml | 1 + configpanel/res/xml/button_panel.xml | 6 +++ .../device/ButtonSettingsFragment.java | 18 +++++++++ .../settings/device/Constants.java | 5 +++ .../cyanogenmod/settings/device/Startup.java | 10 +++++ .../cyanogenmod/settings/device/Utils.java | 8 ++++ device.mk | 3 +- pocketmode/AndroidManifest.xml | 31 +++++++++++---- .../pocketmode/PocketModeService.java | 39 ++++++++++++++----- ...ootCompletedReceiver.java => Startup.java} | 15 +++++-- 11 files changed, 114 insertions(+), 23 deletions(-) rename pocketmode/src/com/cyanogenmod/pocketmode/{BootCompletedReceiver.java => Startup.java} (61%) diff --git a/configpanel/Android.mk b/configpanel/Android.mk index 4f19fba9..7056d182 100644 --- a/configpanel/Android.mk +++ b/configpanel/Android.mk @@ -5,6 +5,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true LOCAL_PACKAGE_NAME := ConfigPanel +LOCAL_REQUIRED_MODULES := XiaomiPocketMode LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v14-preference \ diff --git a/configpanel/AndroidManifest.xml b/configpanel/AndroidManifest.xml index 6ffa59c0..2919d60e 100644 --- a/configpanel/AndroidManifest.xml +++ b/configpanel/AndroidManifest.xml @@ -22,6 +22,7 @@ android:versionName="2.4" > + diff --git a/configpanel/res/xml/button_panel.xml b/configpanel/res/xml/button_panel.xml index 001e59de..fdfa67d8 100644 --- a/configpanel/res/xml/button_panel.xml +++ b/configpanel/res/xml/button_panel.xml @@ -36,6 +36,12 @@ android:title="@string/fp_wakeup_title" android:summary="@string/fp_wakeup_summary" /> + + diff --git a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java index f32f1911..b6fadf72 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java @@ -17,12 +17,14 @@ package com.cyanogenmod.settings.device; +import android.content.SharedPreferences; import android.os.Bundle; import android.support.v14.preference.PreferenceFragment; import android.support.v14.preference.SwitchPreference; import android.support.v7.preference.ListPreference; import android.support.v7.preference.Preference; import android.support.v7.preference.Preference.OnPreferenceChangeListener; +import android.support.v7.preference.PreferenceManager; import android.text.TextUtils; import android.view.MenuItem; @@ -48,10 +50,16 @@ public void onResume() { @Override public boolean onPreferenceChange(Preference preference, Object newValue) { + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + String node = Constants.sBooleanNodePreferenceMap.get(preference.getKey()); if (!TextUtils.isEmpty(node)) { Boolean value = (Boolean) newValue; FileUtils.writeLine(node, value ? "1" : "0"); + if (Constants.FP_WAKEUP_KEY.equals(preference.getKey())) { + value &= prefs.getBoolean(Constants.FP_POCKETMODE_KEY, false); + Utils.broadcastCustIntent(getContext(), value); + } return true; } node = Constants.sStringNodePreferenceMap.get(preference.getKey()); @@ -59,6 +67,12 @@ public boolean onPreferenceChange(Preference preference, Object newValue) { FileUtils.writeLine(node, (String) newValue); return true; } + + if (Constants.FP_POCKETMODE_KEY.equals(preference.getKey())) { + Utils.broadcastCustIntent(getContext(), (Boolean) newValue); + return true; + } + return false; } @@ -89,6 +103,10 @@ public void addPreferencesFromResource(int preferencesResId) { l.setEnabled(false); } } + + // Initialize other preferences whose keys are not associated with nodes + SwitchPreference b = (SwitchPreference) findPreference(Constants.FP_POCKETMODE_KEY); + b.setOnPreferenceChangeListener(this); } private void updatePreferencesBasedOnDependencies() { diff --git a/configpanel/src/com/cyanogenmod/settings/device/Constants.java b/configpanel/src/com/cyanogenmod/settings/device/Constants.java index 0009d8d4..26c6474f 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Constants.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Constants.java @@ -25,6 +25,7 @@ public class Constants { // Preference keys public static final String BUTTON_SWAP_KEY = "button_swap"; public static final String FP_HOME_KEY = "fp_home"; + public static final String FP_POCKETMODE_KEY = "fp_pocketmode"; public static final String FP_WAKEUP_KEY = "fp_wakeup"; // Nodes @@ -33,6 +34,10 @@ public class Constants { public static final String FP_WAKEUP_NODE = "/sys/devices/soc/soc:fpc_fpc1020/enable_wakeup"; public static final String VIRTUAL_KEYS_NODE = "/proc/touchpanel/capacitive_keys_enable"; + // Intents + public static final String CUST_INTENT = "com.cyanogenmod.settings.device.CUST_UPDATE"; + public static final String CUST_INTENT_EXTRA = "pocketmode_service"; + // Holds -> mapping public static final Map sBooleanNodePreferenceMap = new HashMap<>(); public static final Map sStringNodePreferenceMap = new HashMap<>(); diff --git a/configpanel/src/com/cyanogenmod/settings/device/Startup.java b/configpanel/src/com/cyanogenmod/settings/device/Startup.java index 7e91c7d3..130c3e67 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Startup.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Startup.java @@ -22,6 +22,8 @@ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; +import android.content.SharedPreferences; +import android.support.v7.preference.PreferenceManager; import android.util.Log; import java.io.File; @@ -37,6 +39,8 @@ public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); if (Intent.ACTION_BOOT_COMPLETED.equals(action) || Intent.ACTION_PRE_BOOT_COMPLETED.equals(action)) { + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); + // Disable button settings if needed if (!hasButtonProcs()) { disableComponent(context, ButtonSettingsActivity.class.getName()); @@ -58,6 +62,12 @@ public void onReceive(Context context, Intent intent) { " failed while restoring saved preference values"); } } + + // Send initial broadcasts + final boolean shouldEnablePocketMode = + prefs.getBoolean(Constants.FP_WAKEUP_KEY, false) && + prefs.getBoolean(Constants.FP_POCKETMODE_KEY, false); + Utils.broadcastCustIntent(context, shouldEnablePocketMode); } } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/Utils.java b/configpanel/src/com/cyanogenmod/settings/device/Utils.java index 533a4647..f0c33569 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Utils.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Utils.java @@ -18,7 +18,9 @@ package com.cyanogenmod.settings.device; import android.content.Context; +import android.content.Intent; import android.content.SharedPreferences; +import android.os.UserHandle; import android.support.v14.preference.SwitchPreference; import android.support.v7.preference.PreferenceManager; @@ -54,4 +56,10 @@ public static void updateDependentPreference(Context context, SwitchPreference b b.setChecked(false); } } + + public static void broadcastCustIntent(Context context, boolean value) { + final Intent intent = new Intent(Constants.CUST_INTENT); + intent.putExtra(Constants.CUST_INTENT_EXTRA, value); + context.sendBroadcastAsUser(intent, UserHandle.CURRENT); + } } diff --git a/device.mk b/device.mk index 403fa8cf..7a30aeb7 100644 --- a/device.mk +++ b/device.mk @@ -177,8 +177,7 @@ PRODUCT_PACKAGES += \ # Fingerprint PRODUCT_PACKAGES += \ - fingerprintd \ - XiaomiPocketMode + fingerprintd # For android_filesystem_config.h PRODUCT_PACKAGES += \ diff --git a/pocketmode/AndroidManifest.xml b/pocketmode/AndroidManifest.xml index af83743d..440c5faf 100644 --- a/pocketmode/AndroidManifest.xml +++ b/pocketmode/AndroidManifest.xml @@ -1,8 +1,24 @@ + @@ -13,17 +29,18 @@ + android:persistent="true" + android:defaultToDeviceProtectedStorage="true" + android:directBootAware="true"> - - + + - - + receivers = new ArrayList(); private ProximitySensor mProximitySensor; @@ -40,9 +44,8 @@ public void onCreate() { if (DEBUG) Log.d(TAG, "Creating service"); mProximitySensor = new ProximitySensor(this); - IntentFilter screenStateFilter = new IntentFilter(Intent.ACTION_SCREEN_ON); - screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF); - registerReceiver(mScreenStateReceiver, screenStateFilter); + IntentFilter custFilter = new IntentFilter(CUST_INTENT); + registerReceiver(mUpdateReceiver, custFilter); } @Override @@ -55,7 +58,10 @@ public int onStartCommand(Intent intent, int flags, int startId) { public void onDestroy() { if (DEBUG) Log.d(TAG, "Destroying service"); super.onDestroy(); - this.unregisterReceiver(mScreenStateReceiver); + if (receivers.contains(mScreenStateReceiver)) { + this.unregisterReceiver(mScreenStateReceiver); + } + this.unregisterReceiver(mUpdateReceiver); mProximitySensor.disable(); } @@ -71,10 +77,7 @@ private void onDisplayOn() { private void onDisplayOff() { if (DEBUG) Log.d(TAG, "Display off"); - if (FileUtils.isFileReadable(FP_WAKEUP_NODE) && - FileUtils.readOneLine(FP_WAKEUP_NODE).equals("1")) { - mProximitySensor.enable(); - } + mProximitySensor.enable(); } private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() { @@ -87,4 +90,20 @@ public void onReceive(Context context, Intent intent) { } } }; + + private BroadcastReceiver mUpdateReceiver = new BroadcastReceiver() { + @Override + public void onReceive(Context context, Intent intent) { + if (intent.getBooleanExtra(CUST_INTENT_EXTRA, false)) { + IntentFilter screenStateFilter = new IntentFilter(Intent.ACTION_SCREEN_ON); + screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF); + registerReceiver(mScreenStateReceiver, screenStateFilter); + receivers.add(mScreenStateReceiver); + } else if (receivers.contains(mScreenStateReceiver)) { + unregisterReceiver(mScreenStateReceiver); + receivers.remove(mScreenStateReceiver); + mProximitySensor.disable(); + } + } + }; } diff --git a/pocketmode/src/com/cyanogenmod/pocketmode/BootCompletedReceiver.java b/pocketmode/src/com/cyanogenmod/pocketmode/Startup.java similarity index 61% rename from pocketmode/src/com/cyanogenmod/pocketmode/BootCompletedReceiver.java rename to pocketmode/src/com/cyanogenmod/pocketmode/Startup.java index 64168fb8..69c66b8a 100644 --- a/pocketmode/src/com/cyanogenmod/pocketmode/BootCompletedReceiver.java +++ b/pocketmode/src/com/cyanogenmod/pocketmode/Startup.java @@ -1,5 +1,6 @@ /* * Copyright (c) 2016 The CyanogenMod Project + * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,15 +20,21 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.os.UserHandle; import android.util.Log; -public class BootCompletedReceiver extends BroadcastReceiver { +public class Startup extends BroadcastReceiver { private static final String TAG = "XiaomiPocketMode"; @Override - public void onReceive(final Context context, Intent intent) { - Log.d(TAG, "Starting"); - context.startService(new Intent(context, PocketModeService.class)); + public void onReceive(Context context, Intent intent) { + final String action = intent.getAction(); + if (Intent.ACTION_BOOT_COMPLETED.equals(action) + || Intent.ACTION_PRE_BOOT_COMPLETED.equals(action)) { + Log.d(TAG, "Starting"); + context.startServiceAsUser(new Intent(context, PocketModeService.class), + UserHandle.CURRENT); + } } } From 87123adfc8a543ee68e8c0d2a1d81898f9303b40 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sat, 15 Jul 2017 16:37:47 +0200 Subject: [PATCH 20/62] msm8996-common: Fix modem time-stamp regex Change-Id: I964d4effbdf6af778361ef79cb4598e24a46fe8b Conflicts: releasetools.py --- releasetools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releasetools.py b/releasetools.py index c3008de8..f49dbe00 100644 --- a/releasetools.py +++ b/releasetools.py @@ -28,10 +28,10 @@ def IncrementalOTA_Assertions(info): def AddModemAssertion(info, input_zip): android_info = info.input_zip.read("OTA/android-info.txt") - m = re.search(r'require\s+version-modem\s*=\s*(\S+)', android_info) + m = re.search(r'require\s+version-modem\s*=(.+)', android_info) if m: versions = m.group(1).split('|') if len(versions) and '*' not in versions: - cmd = 'assert(gemini.verify_modem(' + ','.join(['"%s"' % modem for modem in versions]) + ') == "1");' + cmd = 'assert(gemini.verify_modem(' + ','.join(['"%s"' % modem.strip() for modem in versions]) + ') == "1");' info.script.AppendExtra(cmd) return From a37a57cdf78b1a23eab980a153fb559463b673ab Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 18 Jul 2017 18:23:59 +0200 Subject: [PATCH 21/62] msm8996-common: data-ipa-cfg-mgr: Remove verbose cflag Change-Id: I7d028b4b606f209bd6c27f9f74f4fc04ff69d8c7 --- data-ipa-cfg-mgr/ipacm/src/Android.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data-ipa-cfg-mgr/ipacm/src/Android.mk b/data-ipa-cfg-mgr/ipacm/src/Android.mk index e5b6e3dd..608a71b7 100644 --- a/data-ipa-cfg-mgr/ipacm/src/Android.mk +++ b/data-ipa-cfg-mgr/ipacm/src/Android.mk @@ -20,8 +20,7 @@ LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr -LOCAL_CFLAGS := -v -LOCAL_CFLAGS += -DFEATURE_IPA_ANDROID +LOCAL_CFLAGS := -DFEATURE_IPA_ANDROID ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) LOCAL_CFLAGS += -DDEBUG endif From c74632bce481328fbcbd61551b3128004dd8aa03 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 18 Jul 2017 18:24:43 +0200 Subject: [PATCH 22/62] msm8996-common: data-ipa-cfg-mgr: Disable DEBUG for userdebug builds Change-Id: Idaee3e6d5b3759028918559b70e04547809bc09b --- data-ipa-cfg-mgr/ipacm/src/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-ipa-cfg-mgr/ipacm/src/Android.mk b/data-ipa-cfg-mgr/ipacm/src/Android.mk index 608a71b7..6a3f8478 100644 --- a/data-ipa-cfg-mgr/ipacm/src/Android.mk +++ b/data-ipa-cfg-mgr/ipacm/src/Android.mk @@ -21,7 +21,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr LOCAL_CFLAGS := -DFEATURE_IPA_ANDROID -ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) LOCAL_CFLAGS += -DDEBUG endif From 3466a1831c06f67edf528604807c333ff73697d7 Mon Sep 17 00:00:00 2001 From: B--B Date: Sat, 22 Jul 2017 14:44:38 +0200 Subject: [PATCH 23/62] Use SnapBrowser instead of Jelly --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index 7a30aeb7..56d80225 100644 --- a/device.mk +++ b/device.mk @@ -297,6 +297,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libshims_ims +# SnapDragon Browser +PRODUCT_PACKAGES += \ + SnapBrowser + # WiFi PRODUCT_PACKAGES += \ libqsap_sdk \ From 38bb48463a3f63991be4d3814d2d4b7b4f746709 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sun, 23 Jul 2017 15:26:53 +0200 Subject: [PATCH 24/62] msm8996-common: overlay: Remove custom wifi score thresholds Change-Id: I63907c20ae174865b28d524c13e6b5d8726e5bec --- overlay/frameworks/base/core/res/res/values/config.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1836b25d..c609da5b 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -448,13 +448,6 @@ rotations as the default behavior. --> true - - -100 - -100 - -100 - -100 - true From 2d17c4679685f20a223ea71bfe73b02e2ef8c4bc Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Fri, 23 Jun 2017 17:04:39 +0200 Subject: [PATCH 25/62] msm8996-common: Add readfem * This binary will dynamically load wlan firmware based on device and if it needs fem fix * Fem fix is read from NV thanks to libqminvapi from Xiaomi and then stored in clear text in /persist/ff_flag Change-Id: I4e7e1916dc30bc95342f451852ec74ecde0453cb --- readfem/Android.mk | 11 +++ readfem/xiaomi_readfem.c | 155 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 readfem/Android.mk create mode 100644 readfem/xiaomi_readfem.c diff --git a/readfem/Android.mk b/readfem/Android.mk new file mode 100644 index 00000000..2d9be5e8 --- /dev/null +++ b/readfem/Android.mk @@ -0,0 +1,11 @@ +LOCAL_PATH:= $(call my-dir) + +ifeq ($(strip $(BOARD_HAS_QCOM_WLAN)),true) +include $(CLEAR_VARS) +LOCAL_MODULE := readfem +LOCAL_MODULE_TAGS := optional +LOCAL_SRC_FILES := xiaomi_readfem.c +LOCAL_CFLAGS += -Wall -Werror +LOCAL_SHARED_LIBRARIES := libcutils liblog +include $(BUILD_EXECUTABLE) +endif diff --git a/readfem/xiaomi_readfem.c b/readfem/xiaomi_readfem.c new file mode 100644 index 00000000..2ee7f084 --- /dev/null +++ b/readfem/xiaomi_readfem.c @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2017 The LineageOS 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. + */ + +#define LOG_TAG "xiaomi_readfem" +#define LOG_NDEBUG 0 + +#include +#include + +#include +#include +#include + +#define ISMATCH(a, b) (!strncmp(a, b, PROP_VALUE_MAX)) + +#define BDWLAN_FILE "/sys/module/cnss_common/parameters/bdwlan_file" +#define FF_FLAG_FILE "/persist/ff_flag" + +#define SCORPIO_BDWLAN "bd30_a4.bin" +#define CAPRICORN_BDWLAN "bd30_a7.bin" +#define CAPRICORN_BDWLAN_FEM "bd30_a7.b02" +#define LITHIUM_BDWLAN "bd30_a8.bin" +#define NATRIUM_BDWLAN "bd30_b7.bin" +#define NATRIUM_BDWLAN_FEM "bd30_b7.b02" + +#define LIB_QMINVAPI "libqminvapi.so" + +typedef int (*qmi_nv_read_oem_item_3_t)(unsigned int** ff_flag); + +static int read_ff_flag_file() { + int ff_flag; + FILE* fp; + + fp = fopen(FF_FLAG_FILE, "r"); + if (fp == NULL) return -1; + + fscanf(fp, "%d", &ff_flag); + fclose(fp); + + if (ff_flag == 0 || ff_flag == 1) + return ff_flag; + else + return -1; +} + +static int write_ff_flag_file(int need_fem_fix) { + FILE* fp; + + fp = fopen(FF_FLAG_FILE, "w"); + if (fp == NULL) return 0; + + fprintf(fp, "%d\n", need_fem_fix); + fclose(fp); + + return 1; +} + +static int need_fem_fix() { + unsigned int* ff_flag; + int need_fem_fix = 0; // Disabled by default + + int ret = read_ff_flag_file(); + if (ret >= 0) { + need_fem_fix = ret; + ALOGV("%s already exists and is valid", FF_FLAG_FILE); + goto out; + } + + void* handle = dlopen(LIB_QMINVAPI, RTLD_NOW); + if (!handle) { + ALOGE("%s", dlerror()); + goto out; + } + + qmi_nv_read_oem_item_3_t qmi_nv_read_oem_item_3 = + (qmi_nv_read_oem_item_3_t)dlsym(handle, "qmi_nv_read_oem_item_3"); + + if (!qmi_nv_read_oem_item_3) { + ALOGE("%s", dlerror()); + goto out_dlclose; + } + + // Read ff_flag from modem NV + qmi_nv_read_oem_item_3(&ff_flag); + need_fem_fix = *ff_flag; + + if (!write_ff_flag_file(need_fem_fix)) { + ALOGE("Failed to write %s", FF_FLAG_FILE); + } else { + ALOGV("%s was successfully generated", FF_FLAG_FILE); + } + +out_dlclose: + if (handle) dlclose(handle); + +out: + return need_fem_fix; +} + +int main() { + char product_device[PROPERTY_VALUE_MAX]; + FILE* fp; + int ret = 0; + + fp = fopen(BDWLAN_FILE, "w"); + if (fp == NULL) return 1; + + property_get("ro.product.device", product_device, ""); + + if (ISMATCH(product_device, "gemini")) { + goto out; + } else if (ISMATCH(product_device, "scorpio")) { + fprintf(fp, "%s", SCORPIO_BDWLAN); + } else if (ISMATCH(product_device, "capricorn")) { + if (need_fem_fix()) { + fprintf(fp, "%s", CAPRICORN_BDWLAN_FEM); + } else { + fprintf(fp, "%s", CAPRICORN_BDWLAN); + } + } else if (ISMATCH(product_device, "lithium")) { + fprintf(fp, "%s", LITHIUM_BDWLAN); + } else if (ISMATCH(product_device, "natrium")) { + if (need_fem_fix()) { + fprintf(fp, "%s", NATRIUM_BDWLAN_FEM); + } else { + fprintf(fp, "%s", NATRIUM_BDWLAN); + } + } else { + ALOGE("Unknown product device %s", product_device); + ret = 1; + } + + if (ret) { + ALOGE("Failed to write %s", BDWLAN_FILE); + } else { + ALOGV("%s was successfully written", BDWLAN_FILE); + } + +out: + fclose(fp); + return ret; +} From 64d449537654b05021957633d58b2dc71c59a3ad Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Fri, 23 Jun 2017 18:18:11 +0200 Subject: [PATCH 26/62] msm8996-common: Build readfem * Remove init.cnss.sh * Add rootdir entry and selinux rules for readfem Change-Id: I6ac3a18fdf9795eefc6dd037ddb50f6b899b39f8 Conflicts: rootdir/etc/init.qcom.rc --- device.mk | 2 +- rootdir/Android.mk | 8 -------- rootdir/etc/init.cnss.sh | 27 --------------------------- rootdir/etc/init.qcom.rc | 6 ++++++ sepolicy/file_contexts | 4 +++- sepolicy/readfem.te | 21 +++++++++++++++++++++ 6 files changed, 31 insertions(+), 37 deletions(-) delete mode 100755 rootdir/etc/init.cnss.sh create mode 100644 sepolicy/readfem.te diff --git a/device.mk b/device.mk index 56d80225..f82e1a9f 100644 --- a/device.mk +++ b/device.mk @@ -129,7 +129,6 @@ PRODUCT_PACKAGES += \ # Device config scripts PRODUCT_PACKAGES += \ - init.cnss.sh \ init.panel.sh # Consumerir @@ -307,6 +306,7 @@ PRODUCT_PACKAGES += \ libQWiFiSoftApCfg \ libwpa_client \ hostapd \ + readfem \ readmac \ wpa_supplicant \ wpa_supplicant.conf diff --git a/rootdir/Android.mk b/rootdir/Android.mk index b57aa427..1793c34f 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -3,14 +3,6 @@ include $(CLEAR_VARS) # Device config scripts -include $(CLEAR_VARS) -LOCAL_MODULE := init.cnss.sh -LOCAL_MODULE_TAGS := optional eng -LOCAL_MODULE_CLASS := ETC -LOCAL_SRC_FILES := etc/init.cnss.sh -LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES) -include $(BUILD_PREBUILT) - include $(CLEAR_VARS) LOCAL_MODULE := init.panel.sh LOCAL_MODULE_TAGS := optional eng diff --git a/rootdir/etc/init.cnss.sh b/rootdir/etc/init.cnss.sh deleted file mode 100755 index b3c48e80..00000000 --- a/rootdir/etc/init.cnss.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/system/bin/sh - -hw_version=$(getprop ro.boot.hwversion | cut -c 1) -need_fem_fix=$(grep -c "$(printf '\x01')" /persist/wlan_bt/ff_flag) - -case $hw_version in - "4") - echo -n "bd30_a4.bin" > /sys/module/cnss_common/parameters/bdwlan_file - ;; - "7") - if [ $need_fem_fix -ne 1 ]; then - echo -n "bd30_a7.b02" > /sys/module/cnss_common/parameters/bdwlan_file - else - echo -n "bd30_a7.bin" > /sys/module/cnss_common/parameters/bdwlan_file - fi - ;; - "8") - echo -n "bd30_a8.bin" > /sys/module/cnss_common/parameters/bdwlan_file - ;; - "9") - if [ $need_fem_fix -ne 1 ]; then - echo -n "bd30_b7.b02" > /sys/module/cnss_common/parameters/bdwlan_file - else - echo -n "bd30_b7.bin" > /sys/module/cnss_common/parameters/bdwlan_file - fi - ;; -esac diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 78698c74..e29719c2 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -702,6 +702,12 @@ on property:init.svc.per_mgr=running on property:sys.shutdown.requested=* stop per_proxy +service readfem /system/bin/readfem + class main + user root + group root qcom_diag + oneshot + service readmac /system/bin/readmac class main user root diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 53c907e3..75023a83 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -26,8 +26,10 @@ /persist/qc_senseid(/.*)? u:object_r:persist_qc_senseid_file:s0 # Binaries +/system/bin/readfem u:object_r:readfem_exec:s0 /system/bin/readmac u:object_r:readmac_exec:s0 -/system/bin/init\.cnss\.sh u:object_r:init_cnss_exec:s0 + +# Shell scripts /system/bin/init\.panel\.sh u:object_r:init_panel_exec:s0 # CPU tunable for EAS diff --git a/sepolicy/readfem.te b/sepolicy/readfem.te new file mode 100644 index 00000000..c0bd043c --- /dev/null +++ b/sepolicy/readfem.te @@ -0,0 +1,21 @@ +type readfem, domain; +type readfem_exec, exec_type, file_type; + +# Allow for transition from init domain to readfem +init_daemon_domain(readfem) + +# Allow readfem to communicate with qmuxd via qmux_radio socket +qmux_socket(readfem) + +# Allow reading files in /persist, mainly /persist/ff_flag +allow readfem persist_file:dir rw_dir_perms; +allow readfem persist_file:file create_file_perms; + +# Allow writing to /sys/module/cnss_common/parameters/bdwlan_file +allow readfem sysfs_cnss_common:dir search; +allow readfem sysfs_cnss_common:file rw_file_perms; + +allow readfem self:socket create_socket_perms; + +allow readfem diag_device:chr_file rw_file_perms; +allow readfem sysfs:file r_file_perms; From 4088403cc7a40298d4610ee6830beab2a78d0bfb Mon Sep 17 00:00:00 2001 From: Alex Naidis Date: Tue, 18 Jul 2017 17:28:25 +0000 Subject: [PATCH 27/62] gemini: Remove world_phone_bool from carrier config This has to be handled individually. Change-Id: If88a0aa2d560bafc585011203384875dbc8e90c9 Signed-off-by: Alex Naidis --- overlay/packages/apps/CarrierConfig/res/xml/vendor.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml b/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml index d28cf9e1..8ea3bd26 100644 --- a/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml +++ b/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml @@ -45,7 +45,6 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.--> - From 94a65665ec7d11d0a845f1a7d7af4da8c35533db Mon Sep 17 00:00:00 2001 From: rk2810 Date: Sun, 6 Aug 2017 09:15:19 +0000 Subject: [PATCH 28/62] remove audio config file --- audio/audio_effects.conf | 411 --------------------------------------- device.mk | 1 - jdc.dependencies | 17 -- 3 files changed, 429 deletions(-) delete mode 100644 audio/audio_effects.conf delete mode 100644 jdc.dependencies diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf deleted file mode 100644 index 2a96945c..00000000 --- a/audio/audio_effects.conf +++ /dev/null @@ -1,411 +0,0 @@ -# List of effect libraries to load. Each library element must contain a "path" element -# giving the full path of the library .so file. -# libraries { -# { -# path -# } -# } -libraries { - bundle { - path /system/lib/soundfx/libbundlewrapper.so - } - reverb { - path /system/lib/soundfx/libreverbwrapper.so - } - qcbassboost { - path /vendor/lib/soundfx/libqcbassboost.so - } - qcvirt { - path /vendor/lib/soundfx/libqcvirt.so - } - qcreverb { - path /vendor/lib/soundfx/libqcreverb.so - } - visualizer_sw { - path /system/lib/soundfx/libvisualizer.so - } - visualizer_hw { - path /system/lib/soundfx/libqcomvisualizer.so - } - downmix { - path /system/lib/soundfx/libdownmix.so - } - loudness_enhancer { - path /system/lib/soundfx/libldnhncr.so - } - proxy { - path /system/lib/soundfx/libeffectproxy.so - } - offload_bundle { - path /system/lib/soundfx/libqcompostprocbundle.so - } - audio_pre_processing { - path /system/lib/soundfx/libqcomvoiceprocessing.so - } - loudness_enhancer { - path /system/lib/soundfx/libldnhncr.so - } - volume_listener { - path /system/lib/soundfx/libvolumelistener.so - } - dirac { - path /system/lib/soundfx/libdirac.so - } -} - -# Default pre-processing library. Add to audio_effect.conf "libraries" section if -# audio HAL implements support for default software audio pre-processing effects -# -# pre_processing { -# path /system/lib/soundfx/libaudiopreprocessing.so -# } - -# list of effects to load. Each effect element must contain a "library" and a "uuid" element. -# The value of the "library" element must correspond to the name of one library element in the -# "libraries" element. -# The name of the effect element is indicative, only the value of the "uuid" element -# designates the effect. -# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the -# generic effect type UUID. -# effects { -# { -# library -# uuid -# } -# ... -# } - -effects { - -# additions for the proxy implementation -# Proxy implementation - #effectname { - #library proxy - #uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - - # SW implemetation of the effect. Added as a node under the proxy to - # indicate this as a sub effect. - #libsw { - #library libSW - #uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy - #} End of SW effect - - # HW implementation of the effect. Added as a node under the proxy to - # indicate this as a sub effect. - #libhw { - #library libHW - #uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz - #}End of HW effect - #} End of effect proxy - - bassboost { - library proxy - uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b - - libsw { - library qcbassboost - uuid 23aca180-44bd-11e2-bcfd-0800200c9a66 - } - - libhw { - library offload_bundle - uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b - } - } - virtualizer { - library proxy - uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b - - libsw { - library qcvirt - uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e - } - - libhw { - library offload_bundle - uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b - } - } - equalizer { - library proxy - uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b - - libsw { - library bundle - uuid ce772f20-847d-11df-bb17-0002a5d5c51b - } - - libhw { - library offload_bundle - uuid a0dac280-401c-11e3-9379-0002a5d5c51b - } - } - volume { - library bundle - uuid 119341a0-8469-11df-81f9-0002a5d5c51b - } - reverb_env_aux { - library proxy - uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b - - libsw { - library qcreverb - uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217 - } - - libhw { - library offload_bundle - uuid 79a18026-18fd-4185-8233-0002a5d5c51b - } - } - reverb_env_ins { - library proxy - uuid b707403a-a1c1-4291-9573-0002a5d5c51b - - libsw { - library qcreverb - uuid 791fff8b-8129-4655-83a4-59bc61034c3a - } - - libhw { - library offload_bundle - uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b - } - } - reverb_pre_aux { - library proxy - uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b - - libsw { - library qcreverb - uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a - } - - libhw { - library offload_bundle - uuid 6987be09-b142-4b41-9056-0002a5d5c51b - } - } - reverb_pre_ins { - library proxy - uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b - - libsw { - library qcreverb - uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e - } - - libhw { - library offload_bundle - uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b - } - } - visualizer { - library proxy - uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c - - libsw { - library visualizer_sw - uuid d069d9e0-8329-11df-9168-0002a5d5c51b - } - - libhw { - library visualizer_hw - uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b - } - } - downmix { - library downmix - uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f - } - loudness_enhancer { - library loudness_enhancer - uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c - } - aec { - library audio_pre_processing - uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109 - } - ns { - library audio_pre_processing - uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8 - } - music_helper { - library volume_listener - uuid 08b8b058-0590-11e5-ac71-0025b32654a0 - } - ring_helper { - library volume_listener - uuid 0956df94-0590-11e5-bdbe-0025b32654a0 - } - alarm_helper { - library volume_listener - uuid 09f303e2-0590-11e5-8fdb-0025b32654a0 - } - # voice_helper is called when stream type is voice_call in VoIP usecase - voice_helper { - library volume_listener - uuid 0ace5c08-0590-11e5-ae9e-0025b32654a0 - } - notification_helper { - library volume_listener - uuid 0b776dde-0590-11e5-81ba-0025b32654a0 - } - dirac { - library dirac - uuid e069d9e0-8329-11df-9168-0002a5d5c51b - } -} - -# additional effect from vendor -# UUID generated using version 1 - -output_session_processing { - music { - music_helper { - } - } - ring { - ring_helper { - } - } - alarm { - alarm_helper { - } - } - # stream type voice_call is used for VoIP call - voice_call { - voice_helper { - } - } - notification { - notification_helper { - } - } -} - -# Audio global processor configurations. -# The global processor configuration consists in a list of effects elements. -# The name of the effect element must be the name of one of the effects in -# the "effects" list of the file. -# Each effect element may optionally contain a list of parameters and their -# default value to apply when the pre processor effect is created. -# A parameter is defined by a "param" element and a "value" element. Each of these elements -# consists in one or more elements specifying a type followed by a value. -# The types defined are: "int", "short", "float", "bool" and "string" -# When both "param" and "value" are a single int, a simple form is allowed where just -# the param and value pair is present in the parameter description -# global_processing { -# { -# { -# param { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# value { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# } -# { } -# ... -# } -# ... -# } -global_processing { - dirac { - bl@lakala { - param { - int 6 - } - value { - string *com.lakala.android - } - } - bl@jawboneup { - param { - int 6 - } - value { - string *com.jawbone.up - } - } - bl@hojyremote { - param { - int 6 - } - value { - string *com.hojy.hremote - } - } - } - } - -# Added aec, ns effects for voice_communication, which are supported by the board - -pre_processing { - voice_communication { - aec { - } - ns { - } - } -} - -# Default pre-processing effects. Add to audio_effect.conf "effects" section if -# audio HAL implements support for them. -# -# agc { -# library pre_processing -# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b -# } -# aec { -# library pre_processing -# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b -# } -# ns { -# library pre_processing -# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b -# } - -# Audio preprocessor configurations. -# The pre processor configuration consists in a list of elements each describing -# pre processor settings for a given input source. Valid input source names are: -# "mic", "camcorder", "voice_recognition", "voice_communication" -# Each input source element contains a list of effects elements. The name of the effect -# element must be the name of one of the effects in the "effects" list of the file. -# Each effect element may optionally contain a list of parameters and their -# default value to apply when the pre processor effect is created. -# A parameter is defined by a "param" element and a "value" element. Each of these elements -# consists in one or more elements specifying a type followed by a value. -# The types defined are: "int", "short", "float", "bool" and "string" -# When both "param" and "value" are a single int, a simple form is allowed where just -# the param and value pair is present in the parameter description -# pre_processing { -# { -# { -# { -# param { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# value { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# } -# { } -# ... -# } -# ... -# } -# ... -# } - -# -# TODO: add default audio pre processor configurations after debug and tuning phase -# diff --git a/device.mk b/device.mk index f82e1a9f..d834a04e 100644 --- a/device.mk +++ b/device.mk @@ -106,7 +106,6 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ - $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \ $(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ $(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \ diff --git a/jdc.dependencies b/jdc.dependencies deleted file mode 100644 index fab54efc..00000000 --- a/jdc.dependencies +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "repository": "AOSP-JF-MM/platform_kernel_xiaomi_msm8996", - "target_path": "kernel/xiaomi/msm8996", - "branch": "aosp-7.1.2" - }, - { - "repository": "AOSP-JF-MM/proprietary_vendor_xiaomi", - "target_path": "vendor/xiaomi", - "branch": "aosp-7.1.2" - }, - { - "repository": "AOSP-JF-MM/platform_packages_resources_devicesettings", - "target_path": "packages/resources/devicesettings", - "branch": "aosp-7.1.2" - } -] From c1b3d57ee80220e388735a96b259d77dc956ed67 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 6 Aug 2017 17:02:50 +0200 Subject: [PATCH 29/62] gemini: Use handset-stereo-dmic-ef for camcorder-mic usecase * Some apps seem to be using this and that results in better audio volume and quality. The example app that uses handset-stereo-dmic-ef is: Footej. Change-Id: I70e5e9461c4108dd0bb22603a5b45c2a4add13be --- audio/audio_platform_info.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml index d4faf005..096cc849 100644 --- a/audio/audio_platform_info.xml +++ b/audio/audio_platform_info.xml @@ -50,7 +50,7 @@ - + @@ -85,6 +85,9 @@ + + + From fe51b7069dd66d6d0a93e047ec9a5d079c300fa1 Mon Sep 17 00:00:00 2001 From: B--B Date: Sat, 12 Aug 2017 15:46:51 +0200 Subject: [PATCH 30/62] Power HAL: EAS: really set the value of foreground schedtune boost to 10 The value is hexadecimal, not decimal Test: tested on Gemini, build and boots Test: manually checked /dev/stune/top-app/schedtune.boost Test: value during boost and now it's correct --- power/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/power/power.c b/power/power.c index 7b541fe4..f8e34246 100644 --- a/power/power.c +++ b/power/power.c @@ -448,7 +448,7 @@ static void power_hint(struct power_module *module, power_hint_t hint, if (strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) { // Setting the value of foreground schedtune boost to 10 and // scaling_min_freq to 900MHz. - int resources[] = {0x40800000, 900, 0x40800100, 900, 0x42C0C000, 0x10, 0x41800000, 0x33}; + int resources[] = {0x40800000, 900, 0x40800100, 900, 0x42C0C000, 0xA, 0x41800000, 0x33}; interaction(duration, sizeof(resources)/sizeof(resources[0]), resources); } else { // Scheduler is HMP. int resources[] = {0x41800000, 0x33, 0x40800000, 1000, 0x40800100, 1000, 0x40C00000, 0x1}; From a254b9c46e4d347c6529cbfb2cea01f7af6993ef Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 13 Aug 2017 17:59:52 +0200 Subject: [PATCH 31/62] Gemini: set QCOM location and dpm jars as boot jars We are still getting tons of spam on logcats regarding missing boot jars, so add them and fix this mess Test: Build and boots fine on Gemini, Test: checked logcat and all warns/errors Test: are gone --- BoardConfig.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 695e6316..0b39e49b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -167,6 +167,7 @@ BOARD_HAL_STATIC_LIBRARIES := libdumpstate.msm8996 # QCOM BOARD_USES_QCOM_HARDWARE := true BOARD_USES_QC_TIME_SERVICES := true +PRODUCT_BOOT_JARS += tcmclient com.qti.dpmframework dpmapi com.qti.location.sdk # Recovery TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom From 4e0182a7705615c850a9f856238e535b3d0c931c Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 13 Aug 2017 18:03:21 +0200 Subject: [PATCH 32/62] Revert "Remove not needed graphics props" This reverts commit 455889b0a5731c7ced9eb4b04e935fe2f492bd08. --- system_prop.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system_prop.mk b/system_prop.mk index 59ca07cb..be8d3ac8 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -86,10 +86,16 @@ PRODUCT_PROPERTY_OVERRIDES += \ # Graphics PRODUCT_PROPERTY_OVERRIDES += \ + debug.egl.hw=1 \ debug.gralloc.enable_fb_ubwc=1 \ + debug.sf.hw=1 \ + dev.pm.dyn_samplingrate=1 \ + persist.demo.hdmirotationlock=false \ persist.hwc.enable_vds=1 \ + persist.sys.wfd.virtual=0 \ ro.opengles.version=196610 \ ro.sf.lcd_density=480 \ + sdm.debug.disable_rotator_split=1 \ sdm.perf_hint_window=50 # GPS From 5677be7ecead0eafd6cd90d215d11752f2636f51 Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 13 Aug 2017 18:06:05 +0200 Subject: [PATCH 33/62] Revert "Use SnapBrowser instead of Jelly" This reverts commit 7b896a0a501c927f35323e2c2e97bde39da41e1f. Still issues with this, cannot login with Google account, revert to Jelly for now --- device.mk | 4 ---- 1 file changed, 4 deletions(-) diff --git a/device.mk b/device.mk index d834a04e..3258ea47 100644 --- a/device.mk +++ b/device.mk @@ -295,10 +295,6 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libshims_ims -# SnapDragon Browser -PRODUCT_PACKAGES += \ - SnapBrowser - # WiFi PRODUCT_PACKAGES += \ libqsap_sdk \ From 421eef1d0b057a90fcc31a51834d7dcf3589433e Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 13 Aug 2017 18:16:39 +0200 Subject: [PATCH 34/62] From system_prop.mk to system.prop --- BoardConfig.mk | 3 + device.mk | 3 - system.prop | 168 ++++++++++++++++++++++++++++++++++++++++++ system_prop.mk | 193 ------------------------------------------------- 4 files changed, 171 insertions(+), 196 deletions(-) create mode 100644 system.prop delete mode 100644 system_prop.mk diff --git a/BoardConfig.mk b/BoardConfig.mk index 0b39e49b..241c711d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -58,6 +58,9 @@ TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- TARGET_BOARD_PLATFORM := msm8996 TARGET_BOARD_PLATFORM_GPU := qcom-adreno530 +# System properties +TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop + # ANT+ BOARD_ANT_WIRELESS_DEVICE := "qualcomm-uart" diff --git a/device.mk b/device.mk index 3258ea47..c5c0678d 100644 --- a/device.mk +++ b/device.mk @@ -20,9 +20,6 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) $(call inherit-product-if-exists, vendor/xiaomi/gemini/gemini-vendor.mk) $(call inherit-product-if-exists, vendor/xiaomi/msm8996-common/msm8996-common-vendor.mk) -# System properties --include $(LOCAL_PATH)/system_prop.mk - # Overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay diff --git a/system.prop b/system.prop new file mode 100644 index 00000000..dc710086 --- /dev/null +++ b/system.prop @@ -0,0 +1,168 @@ +# Audio +af.fast_track_multiplier=1 +audio_hal.period_size=192 +audio.deep_buffer.media=true +audio.heap.size.multiplier=7 +audio.offload.buffer.size.kb=64 +audio.offload.gapless.enabled=true +audio.offload.min.duration.secs=15 +audio.offload.multiaac.enable=true +audio.offload.multiple.enabled=false +audio.offload.passthrough=false +audio.offload.pcm.16bit.enable=true +audio.offload.pcm.24bit.enable=true +audio.offload.track.enable=true +audio.offload.video=true +audio.safx.pbe.enabled=true +audio.parser.ip.buffer.size=262144 +audio.dolby.ds2.enabled=false +audio.dolby.ds2.hardbypass=false +qcom.hw.aac.encoder=true +tunnel.audio.encode=false +use.voice.path.for.pcm.voip=true + +ro.qc.sdk.audio.ssr=false +ro.qc.sdk.audio.fluencetype=fluence +persist.audio.fluence.voicecall=true +persist.audio.fluence.voicerec=false +persist.audio.fluence.speaker=true + +# Bluetooth +bt.max.hfpclient.connections=1 +qcom.bluetooth.soc=rome +ro.bluetooth.dun=true +ro.bluetooth.hfp.ver=1.7 +ro.bluetooth.sap=true +ro.btconfig.if=uart +ro.btconfig.vendor=qcom +ro.btconfig.chip=QCA6164 +ro.btconfig.dev=/dev/ttyHS0 + +# Camera +media.camera.ts.monotonic=0 +persist.camera.HAL3.enabled=1 +persist.camera.gyro.disable=0 +persist.camera.imglib.fddsp=1 + +# CNE +persist.cne.feature=1 + +# Data modules +persist.data.iwlan.enable=true +persist.data.mode=concurrent +persist.data.netmgrd.qos.enable=true +ro.use_data_netmgrd=true + +# Display (Qualcomm AD) +ro.qualcomm.cabl=0 +ro.qcom.ad=1 +ro.qcom.ad.calib.data=/system/etc/calib.cfg +ro.qcom.ad.sensortype=2 + +# Display feature (bit0-ColorPrefer bit1-EyeCare bit2-AD bit3-CE bit4-CABC bit5-SRGB) +ro.sys.display.support=63 + +# DRM +drm.service.enabled=true + +# Fingerprint +persist.qfp=false +ro.hardware.fingerprint=fpc +sys.fpc.tu.disabled=0 + +# FRP +ro.frp.pst=/dev/block/bootdevice/by-name/frp + +# Graphics +debug.egl.hw=1 +debug.gralloc.enable_fb_ubwc=1 +debug.sf.hw=1 +dev.pm.dyn_samplingrate=1 +persist.demo.hdmirotationlock=false +persist.hwc.enable_vds=1 +persist.sys.wfd.virtual=0 +ro.opengles.version=196610 +ro.sf.lcd_density=480 +sdm.debug.disable_rotator_split=1 +sdm.perf_hint_window=50 + +# GPS +persist.gps.qc_nlp_in_use=1 +persist.loc.nlp_name=com.qualcomm.location +ro.gps.agps_provider=1 + +# IMS +persist.dbg.volte_avail_ovr=1 +persist.dbg.vt_avail_ovr=1 +persist.radio.NO_STAPA=1 +persist.radio.VT_HYBRID_ENABLE=1 + +# NFC +ro.nfc.port=I2C +persist.nfc.smartcard.config=SIM1,SIM2,eSE1 + +# NITZ +persist.rild.nitz_plmn="" +persist.rild.nitz_long_ons_0="" +persist.rild.nitz_long_ons_1="" +persist.rild.nitz_long_ons_2="" +persist.rild.nitz_long_ons_3="" +persist.rild.nitz_short_ons_0="" +persist.rild.nitz_short_ons_1="" +persist.rild.nitz_short_ons_2="" +persist.rild.nitz_short_ons_3="" + +# Perf +ro.am.reschedule_service=true +ro.min_freq_0=307200 +ro.min_freq_4=307200 +ro.sys.fw.bg_apps_limit=60 +ro.vendor.extension_library=libqti-perfd-client.so + +# Qualcomm BT aptXHD +persist.bt.enableAptXHD=true + +# Radio +DEVICE_PROVISIONED=1 +rild.libpath=/vendor/lib64/libril-qc-qmi-1.so +ril.subscription.types=NV,RUIM +ro.telephony.call_ring.multiple=false +ro.telephony.default_cdma_sub=0 +ro.telephony.default_network=20,20 +ro.telephony.ril_class=GeminiRIL +persist.data.qmi.adb_logmask=0 +persist.net.doxlat=true +persist.radio.apm_sim_not_pwdn=1 +persist.radio.custom_ecc=1 +persist.radio.force_on_dc=true +persist.radio.multisim.config=dsds +persist.radio.rat_on=combine +persist.radio.redir_party_num=1 +persist.radio.sib16_support=1 +persist.radio.add_power_save=1 + +# RmNet Data +persist.rmnet.data.enable=true +persist.data.wda.enable=true +persist.data.df.dl_mode=5 +persist.data.df.ul_mode=5 +persist.data.df.agg.dl_pkt=10 +persist.data.df.agg.dl_size=4096 +persist.data.df.mux_count=8 +persist.data.df.iwlan_mux=9 +persist.data.df.dev_name=rmnet_usb0 + +# Storage +ro.sys.sdcardfs=true + +# Tethering +net.tethering.noprovisioning=true + +# TimeService +persist.timed.enable=true + +# USB +sys.usb.controller=6a00000.dwc3 + +# Wifi +wifi.interface=wlan0 diff --git a/system_prop.mk b/system_prop.mk deleted file mode 100644 index be8d3ac8..00000000 --- a/system_prop.mk +++ /dev/null @@ -1,193 +0,0 @@ -# Audio -PRODUCT_PROPERTY_OVERRIDES += \ - af.fast_track_multiplier=1 \ - audio_hal.period_size=192 \ - audio.deep_buffer.media=true \ - audio.heap.size.multiplier=7 \ - audio.offload.buffer.size.kb=64 \ - audio.offload.gapless.enabled=true \ - audio.offload.min.duration.secs=15 \ - audio.offload.multiaac.enable=true \ - audio.offload.multiple.enabled=false \ - audio.offload.passthrough=false \ - audio.offload.pcm.16bit.enable=true \ - audio.offload.pcm.24bit.enable=true \ - audio.offload.track.enable=true \ - audio.offload.video=true \ - audio.safx.pbe.enabled=true \ - audio.parser.ip.buffer.size=262144 \ - audio.dolby.ds2.enabled=false \ - audio.dolby.ds2.hardbypass=false \ - qcom.hw.aac.encoder=true \ - tunnel.audio.encode=false \ - use.voice.path.for.pcm.voip=true - -PRODUCT_PROPERTY_OVERRIDES += \ - ro.qc.sdk.audio.ssr=false \ - ro.qc.sdk.audio.fluencetype=fluence \ - persist.audio.fluence.voicecall=true \ - persist.audio.fluence.voicerec=false \ - persist.audio.fluence.speaker=true - -# Bluetooth -PRODUCT_PROPERTY_OVERRIDES += \ - bt.max.hfpclient.connections=1 \ - qcom.bluetooth.soc=rome \ - ro.bluetooth.dun=true \ - ro.bluetooth.hfp.ver=1.7 \ - ro.bluetooth.sap=true \ - ro.btconfig.if=uart \ - ro.btconfig.vendor=qcom \ - ro.btconfig.chip=QCA6164 \ - ro.btconfig.dev=/dev/ttyHS0 - -# Camera -PRODUCT_PROPERTY_OVERRIDES += \ - media.camera.ts.monotonic=0 \ - persist.camera.HAL3.enabled=1 \ - persist.camera.gyro.disable=0 \ - persist.camera.imglib.fddsp=1 - -# CNE -PRODUCT_PROPERTY_OVERRIDES += \ - persist.cne.feature=1 - -# Data modules -PRODUCT_PROPERTY_OVERRIDES += \ - persist.data.iwlan.enable=true \ - persist.data.mode=concurrent \ - persist.data.netmgrd.qos.enable=true \ - ro.use_data_netmgrd=true - -# Display (Qualcomm AD) -PRODUCT_PROPERTY_OVERRIDES += \ - ro.qualcomm.cabl=0 \ - ro.qcom.ad=1 \ - ro.qcom.ad.calib.data=/system/etc/calib.cfg \ - ro.qcom.ad.sensortype=2 - -# Display feature (bit0-ColorPrefer bit1-EyeCare bit2-AD bit3-CE bit4-CABC bit5-SRGB) -PRODUCT_PROPERTY_OVERRIDES += \ - ro.sys.display.support=63 - -# DRM -PRODUCT_PROPERTY_OVERRIDES += \ - drm.service.enabled=true - -# Fingerprint -PRODUCT_PROPERTY_OVERRIDES += \ - persist.qfp=false \ - ro.hardware.fingerprint=fpc \ - sys.fpc.tu.disabled=0 - -# FRP -PRODUCT_PROPERTY_OVERRIDES += \ - ro.frp.pst=/dev/block/bootdevice/by-name/frp - -# Graphics -PRODUCT_PROPERTY_OVERRIDES += \ - debug.egl.hw=1 \ - debug.gralloc.enable_fb_ubwc=1 \ - debug.sf.hw=1 \ - dev.pm.dyn_samplingrate=1 \ - persist.demo.hdmirotationlock=false \ - persist.hwc.enable_vds=1 \ - persist.sys.wfd.virtual=0 \ - ro.opengles.version=196610 \ - ro.sf.lcd_density=480 \ - sdm.debug.disable_rotator_split=1 \ - sdm.perf_hint_window=50 - -# GPS -PRODUCT_PROPERTY_OVERRIDES += \ - persist.gps.qc_nlp_in_use=1 \ - persist.loc.nlp_name=com.qualcomm.location \ - ro.gps.agps_provider=1 - -# IMS -PRODUCT_PROPERTY_OVERRIDES += \ - persist.dbg.volte_avail_ovr=1 \ - persist.dbg.vt_avail_ovr=1 \ - persist.radio.NO_STAPA=1 \ - persist.radio.VT_HYBRID_ENABLE=1 - -# NFC -PRODUCT_PROPERTY_OVERRIDES += \ - ro.nfc.port=I2C \ - persist.nfc.smartcard.config=SIM1,SIM2,eSE1 - -# NITZ -PRODUCT_PROPERTY_OVERRIDES += \ - persist.rild.nitz_plmn="" \ - persist.rild.nitz_long_ons_0="" \ - persist.rild.nitz_long_ons_1="" \ - persist.rild.nitz_long_ons_2="" \ - persist.rild.nitz_long_ons_3="" \ - persist.rild.nitz_short_ons_0="" \ - persist.rild.nitz_short_ons_1="" \ - persist.rild.nitz_short_ons_2="" \ - persist.rild.nitz_short_ons_3="" - -# Perf -PRODUCT_PROPERTY_OVERRIDES += \ - ro.am.reschedule_service=true \ - ro.min_freq_0=307200 \ - ro.min_freq_4=307200 \ - ro.sys.fw.bg_apps_limit=60 \ - ro.vendor.extension_library=libqti-perfd-client.so - -# Qualcomm BT aptXHD -PRODUCT_PROPERTY_OVERRIDES += \ - persist.bt.enableAptXHD=true - -# Radio -PRODUCT_PROPERTY_OVERRIDES += \ - DEVICE_PROVISIONED=1 \ - rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \ - ril.subscription.types=NV,RUIM \ - ro.telephony.call_ring.multiple=false \ - ro.telephony.default_cdma_sub=0 \ - ro.telephony.default_network=20,20 \ - ro.telephony.ril_class=GeminiRIL \ - persist.data.qmi.adb_logmask=0 \ - persist.net.doxlat=true \ - persist.radio.apm_sim_not_pwdn=1 \ - persist.radio.custom_ecc=1 \ - persist.radio.force_on_dc=true \ - persist.radio.multisim.config=dsds \ - persist.radio.rat_on=combine \ - persist.radio.redir_party_num=1 \ - persist.radio.sib16_support=1 \ - persist.radio.add_power_save=1 - -# RmNet Data -PRODUCT_PROPERTY_OVERRIDES += \ - persist.rmnet.data.enable=true \ - persist.data.wda.enable=true \ - persist.data.df.dl_mode=5 \ - persist.data.df.ul_mode=5 \ - persist.data.df.agg.dl_pkt=10 \ - persist.data.df.agg.dl_size=4096 \ - persist.data.df.mux_count=8 \ - persist.data.df.iwlan_mux=9 \ - persist.data.df.dev_name=rmnet_usb0 - -# Storage -PRODUCT_PROPERTY_OVERRIDES += \ - ro.sys.sdcardfs=true - -# Tethering -PRODUCT_PROPERTY_OVERRIDES += \ - net.tethering.noprovisioning=true - -# TimeService -PRODUCT_PROPERTY_OVERRIDES += \ - persist.timed.enable=true - -# USB -PRODUCT_PROPERTY_OVERRIDES += \ - sys.usb.controller=6a00000.dwc3 - -# Wifi -PRODUCT_PROPERTY_OVERRIDES += \ - wifi.interface=wlan0 From 8404a45f6c23f3b90fef63996120c80c64d01120 Mon Sep 17 00:00:00 2001 From: B--B Date: Sun, 13 Aug 2017 23:20:25 +0200 Subject: [PATCH 35/62] Gemini: really enable speaker protection, and set calibration time I took a look at msm8996 audio HAL, and i realized that in order to enable speaker protection we must set persist.speaker.prot.enable as true, the flag is not enough Also set calibration time to 5 minutes, as CAF set it to 30 minutes as default(!), see here: https://github.com/AOSP-JF-MM/android_hardware_qcom_audio/blob/msm8996-7.1.2/hal/audio_extn/spkr_protection.c#L673 Test: tested on Gemini, build and boots fine, Tsst: speaker protection works as expected, Test: calibration stops after 5 minutes --- system.prop | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system.prop b/system.prop index dc710086..73b7322a 100644 --- a/system.prop +++ b/system.prop @@ -20,6 +20,8 @@ audio.dolby.ds2.hardbypass=false qcom.hw.aac.encoder=true tunnel.audio.encode=false use.voice.path.for.pcm.voip=true +persist.speaker.prot.enable=true +persist.spkr.cal.duration=5 ro.qc.sdk.audio.ssr=false ro.qc.sdk.audio.fluencetype=fluence From 235e735e95cb6902108907a22eec12a32ec6d804 Mon Sep 17 00:00:00 2001 From: B--B Date: Mon, 14 Aug 2017 16:12:53 +0200 Subject: [PATCH 36/62] Ramdisk: remove Adaptive LMK conf Dropped on kernel side, no more used --- rootdir/etc/init.qcom.rc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index e29719c2..99147386 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -449,10 +449,6 @@ on property:sys.boot_completed=1 # Set RT bandwidth copy /dev/cpuctl/cpu.rt_runtime_us /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us - # Enable Adaptive LMK - write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 - write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 81250 - on property:vold.decrypt=trigger_restart_framework start config_bt_addr From 1d4de16191e318f394ae15e4f90b5e2c6d693bc9 Mon Sep 17 00:00:00 2001 From: B--B Date: Mon, 14 Aug 2017 16:18:47 +0200 Subject: [PATCH 37/62] Gemini: init: remove Power off Alarm support --- init/init_gemini.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/init/init_gemini.cpp b/init/init_gemini.cpp index d0d3a37e..3435b936 100644 --- a/init/init_gemini.cpp +++ b/init/init_gemini.cpp @@ -40,37 +40,6 @@ char const *heapminfree; char const *heapmaxfree; -static void init_alarm_boot_properties() -{ - int boot_reason; - FILE *fp; - - fp = fopen("/proc/sys/kernel/boot_reason", "r"); - fscanf(fp, "%d", &boot_reason); - fclose(fp); - - /* - * Setup ro.alarm_boot value to true when it is RTC triggered boot up - * For existing PMIC chips, the following mapping applies - * for the value of boot_reason: - * - * 0 -> unknown - * 1 -> hard reset - * 2 -> sudden momentary power loss (SMPL) - * 3 -> real time clock (RTC) - * 4 -> DC charger inserted - * 5 -> USB charger inserted - * 6 -> PON1 pin toggled (for secondary PMICs) - * 7 -> CBLPWR_N pin toggled (for external power supply) - * 8 -> KPDPWR_N pin toggled (power key pressed) - */ - if (boot_reason == 3) { - property_set("ro.alarm_boot", "true"); - } else { - property_set("ro.alarm_boot", "false"); - } -} - void check_device() { struct sysinfo sys; @@ -104,6 +73,4 @@ void vendor_load_properties() property_set("dalvik.vm.heaptargetutilization", "0.75"); property_set("dalvik.vm.heapminfree", heapminfree); property_set("dalvik.vm.heapmaxfree", heapmaxfree); - - init_alarm_boot_properties(); } From 5412690389efde3487779abef13b94d8ebb1fe6d Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sat, 1 Jul 2017 11:41:48 +0200 Subject: [PATCH 38/62] msm8996-common: Update media_codecs_performance * From natrium-user 7.0 NRD90M 7.7.13 release-keys Change-Id: I112c9d596a702ba37ffaf6b275bcbb317002c987 --- configs/media_codecs_performance.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/media_codecs_performance.xml b/configs/media_codecs_performance.xml index 8badf0af..d7791507 100644 --- a/configs/media_codecs_performance.xml +++ b/configs/media_codecs_performance.xml @@ -115,9 +115,9 @@ limitations under the License. - - - + + + From 6e5d5f1d9fcdfc82109157f77e6a2d078b5b9753 Mon Sep 17 00:00:00 2001 From: rk2810 Date: Sat, 19 Aug 2017 20:44:38 +0000 Subject: [PATCH 39/62] Bootanimation texture cache and prreload --- BoardConfig.mk | 4 ++++ aosp_gemini.mk | 2 ++ 2 files changed, 6 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 241c711d..f0b8dc43 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -100,6 +100,10 @@ BOARD_HAVE_BLUETOOTH := true BOARD_HAVE_BLUETOOTH_QCOM := true QCOM_BT_USE_BTNV := true +# Bootanimation +TARGET_BOOTANIMATION_PRELOAD := true +TARGET_BOOTANIMATION_TEXTURE_CACHE := true + # Camera BOARD_QTI_CAMERA_32BIT_ONLY := true TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES := true diff --git a/aosp_gemini.mk b/aosp_gemini.mk index 9ce76f34..3fed224b 100644 --- a/aosp_gemini.mk +++ b/aosp_gemini.mk @@ -41,3 +41,5 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ TARGET_VENDOR := Xiaomi DEFAULT_ROOT_METHOD := magisk +# Boot animation resolution +TARGET_BOOT_ANIMATION_RES := 1080 From 5413a64921c0c1e73833a11dc38b30cda25477e1 Mon Sep 17 00:00:00 2001 From: rk2810 Date: Sat, 19 Aug 2017 20:55:16 +0000 Subject: [PATCH 40/62] Add Framework boost by @billchen1977 --- .../base/core/res/res/values/config.xml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index c609da5b..3665c2bd 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -536,4 +536,79 @@ true + + + true + 2000 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40400000 + 0x00000001 + 0x41000000 + 0x00000004 + 0x42804000 + 0x00000001 + + + + true + 5000 + + 0x40C04000 + 0x00000001 + 0x40C0C000 + 0x00000001 + 0x40C14000 + 0x00000001 + 0x40C10000 + 0x00000001 + + + + true + 600 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x0000044C + 0x42804000 + 0x00000001 + + + + true + 0 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40C04000 + 0x00000001 + + + + true + 0 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40C04000 + 0x00000001 + + + false + + 0x40C00000 + 0x1 + 0x40800000 + 0x514 + + From 0449862ac7473b38212282d10d93384ab89a8583 Mon Sep 17 00:00:00 2001 From: rk2810 Date: Sat, 19 Aug 2017 22:00:23 +0000 Subject: [PATCH 41/62] Enable home to wake --- overlay/frameworks/base/core/res/res/values/config.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 3665c2bd..31eed85b 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -610,5 +610,7 @@ 0x40800000 0x514 + + true From 533bb2ab6ec3b120aa996f7651fc103bc3d5c8a9 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:36:08 +0300 Subject: [PATCH 42/62] AEX mod setup --- BoardConfig.mk | 23 ++++++++++++++++++++--- aosp_gemini.mk | 12 +++++++++--- device.mk | 6 +++--- 3 files changed, 32 insertions(+), 9 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index f0b8dc43..a0a8804a 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -50,9 +50,26 @@ BOARD_KERNEL_TAGS_OFFSET := 0x00000100 BOARD_RAMDISK_OFFSET := 0x01000000 TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_HEADER_ARCH := arm64 -TARGET_KERNEL_CONFIG := aosp_gemini_defconfig -TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8996 -TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- +#TARGET_KERNEL_CONFIG := aosp_gemini_defconfig +#TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8996 +#TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- + +#Stock kernel build definitions +#TARGET_KERNEL_CONFIG := gemini_defconfig +#TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8996 +#TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- + +#UberTC +#KERNEL_TOOLCHAIN := /home/android/aex/toolchain/ubertc/bin + + +#EAS kernel build definitions +TARGET_KERNEL_CONFIG := b--b_defconfig +TARGET_KERNEL_SOURCE := kernel/xiaomi/b-b_msm8996 +KERNEL_TOOLCHAIN := /home/android/aex/kernel/xiaomi/b-b_msm8996/android-toolchain-arm64/bin +TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi- + + # Platform TARGET_BOARD_PLATFORM := msm8996 diff --git a/aosp_gemini.mk b/aosp_gemini.mk index 3fed224b..3a292269 100644 --- a/aosp_gemini.mk +++ b/aosp_gemini.mk @@ -1,5 +1,6 @@ # # Copyright (C) 2016 The CyanogenMod Project +# Copyright (C) 2017 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,7 +22,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) # Inherit from gemini device $(call inherit-product, device/xiaomi/gemini/device.mk) -# Inherit some common CM stuff. +# Inherit some common Du stuff. $(call inherit-product, vendor/aosp/common.mk) # Device identifier. This must come after all inclusions. @@ -40,6 +41,11 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ PRIVATE_BUILD_DESC="gemini-user 7.0 NRD90M V8.2.1.0.NAACNEB release-keys" TARGET_VENDOR := Xiaomi -DEFAULT_ROOT_METHOD := magisk -# Boot animation resolution + +# build variables +SET_V4A := true +TARGET_NO_DSPMANAGER := true TARGET_BOOT_ANIMATION_RES := 1080 +#DEFAULT_ROOT_METHOD := magisk +#SET_DMOD := false +#TARGET_PREBUILT_KERNEL="/home/android/aex/kernel/xiaomi/b-b_msm8996/arch/arm64/boot/Image.gz-dtb" \ No newline at end of file diff --git a/device.mk b/device.mk index c5c0678d..f2c9f324 100644 --- a/device.mk +++ b/device.mk @@ -121,7 +121,7 @@ PRODUCT_COPY_FILES += \ # Camera PRODUCT_PACKAGES += \ - SnapdragonCamera + Snap # Device config scripts PRODUCT_PACKAGES += \ @@ -167,8 +167,8 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/calib.cfg:system/etc/calib.cfg # Doze mode -PRODUCT_PACKAGES += \ - XiaomiDoze +#PRODUCT_PACKAGES += \ +# XiaomiDoze # Fingerprint PRODUCT_PACKAGES += \ From 3659bb8fc7b73b7db0b470d32a885648e18aabb1 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:36:47 +0300 Subject: [PATCH 43/62] AEX mod: configpanel --- configpanel/Android.mk | 42 ++++---- configpanel/AndroidManifest.xml | 8 +- .../res/drawable-xhdpi/locator_icon.png | Bin 0 -> 2303 bytes .../res/drawable-xxhdpi/locator_icon.png | Bin 0 -> 1254 bytes configpanel/res/values-ru/strings.xml | 9 ++ configpanel/res/values/colors.xml | 22 +++++ configpanel/res/values/dimens.xml | 20 ++++ configpanel/res/values/strings.xml | 4 +- configpanel/res/values/styles.xml | 13 ++- configpanel/res/xml/button_panel.xml | 6 -- ...tingsActivity.java => ButtonSettings.java} | 15 ++- .../ConfigPanelSearchIndexablesProvider.java | 7 +- .../settings/device/KeyHandler.java | 90 ------------------ .../cyanogenmod/settings/device/Startup.java | 49 ++++++---- .../cyanogenmod/settings/device/Utils.java | 65 ------------- .../device/{ => utils}/Constants.java | 44 +++++++-- .../NodePreferenceActivity.java} | 58 ++++++----- 17 files changed, 189 insertions(+), 263 deletions(-) create mode 100644 configpanel/res/drawable-xhdpi/locator_icon.png create mode 100644 configpanel/res/drawable-xxhdpi/locator_icon.png create mode 100644 configpanel/res/values/colors.xml create mode 100644 configpanel/res/values/dimens.xml rename configpanel/src/com/cyanogenmod/settings/device/{ButtonSettingsActivity.java => ButtonSettings.java} (62%) delete mode 100644 configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java delete mode 100644 configpanel/src/com/cyanogenmod/settings/device/Utils.java rename configpanel/src/com/cyanogenmod/settings/device/{ => utils}/Constants.java (60%) rename configpanel/src/com/cyanogenmod/settings/device/{ButtonSettingsFragment.java => utils/NodePreferenceActivity.java} (69%) diff --git a/configpanel/Android.mk b/configpanel/Android.mk index 7056d182..a8e33b3b 100644 --- a/configpanel/Android.mk +++ b/configpanel/Android.mk @@ -1,3 +1,19 @@ +# +# 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. +# + LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -5,34 +21,8 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true LOCAL_PACKAGE_NAME := ConfigPanel -LOCAL_REQUIRED_MODULES := XiaomiPocketMode - -LOCAL_STATIC_JAVA_LIBRARIES := \ - android-support-v14-preference \ - android-support-v7-appcompat \ - android-support-v7-preference \ - android-support-v7-recyclerview - -LOCAL_AAPT_FLAGS := \ - --auto-add-overlay \ - --extra-packages android.support.v14.preference \ - --extra-packages android.support.v7.appcompat \ - --extra-packages android.support.v7.preference \ - --extra-packages android.support.v7.recyclerview - -LOCAL_RESOURCE_DIR := \ - $(LOCAL_PATH)/res \ - $(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \ - frameworks/support/v14/preference/res \ - frameworks/support/v7/appcompat/res \ - frameworks/support/v7/preference/res \ - frameworks/support/v7/recyclerview/res - -LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_PRIVILEGED_MODULE := true LOCAL_MODULE_TAGS := optional -include frameworks/base/packages/SettingsLib/common.mk - include $(BUILD_PACKAGE) diff --git a/configpanel/AndroidManifest.xml b/configpanel/AndroidManifest.xml index 2919d60e..432970e9 100644 --- a/configpanel/AndroidManifest.xml +++ b/configpanel/AndroidManifest.xml @@ -1,9 +1,8 @@ + Сканер отпечатков пальца + + Сканер отпечатков как кнопка + Использовать сканер отпечатков пальца в качестве дополнительной кнопки + + Сканер отпечатков будит устройство + Позволить сканеру отпечатков пальца будить устройство при выключенном экране diff --git a/configpanel/res/values/colors.xml b/configpanel/res/values/colors.xml new file mode 100644 index 00000000..8055aeb0 --- /dev/null +++ b/configpanel/res/values/colors.xml @@ -0,0 +1,22 @@ + + + + + #ff212121 + #ff000000 + #ff009688 + diff --git a/configpanel/res/values/dimens.xml b/configpanel/res/values/dimens.xml new file mode 100644 index 00000000..62f1899d --- /dev/null +++ b/configpanel/res/values/dimens.xml @@ -0,0 +1,20 @@ + + + + + 72dp + diff --git a/configpanel/res/values/strings.xml b/configpanel/res/values/strings.xml index 8f66c57d..4ab9d295 100644 --- a/configpanel/res/values/strings.xml +++ b/configpanel/res/values/strings.xml @@ -28,8 +28,8 @@ Fingerprint - Fingerprint as home button - Use fingerprint reader as a home button + Fingerprint as button + Use fingerprint reader as a button Fingerprint wakes device Allow fingerprint to wake the device while screen is off diff --git a/configpanel/res/values/styles.xml b/configpanel/res/values/styles.xml index e4113387..710f4b5a 100644 --- a/configpanel/res/values/styles.xml +++ b/configpanel/res/values/styles.xml @@ -1,7 +1,6 @@ - + + diff --git a/configpanel/res/xml/button_panel.xml b/configpanel/res/xml/button_panel.xml index fdfa67d8..001e59de 100644 --- a/configpanel/res/xml/button_panel.xml +++ b/configpanel/res/xml/button_panel.xml @@ -36,12 +36,6 @@ android:title="@string/fp_wakeup_title" android:summary="@string/fp_wakeup_summary" /> - - diff --git a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java similarity index 62% rename from configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java rename to configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java index 1b0e49b8..02d16aad 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsActivity.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ButtonSettings.java @@ -1,6 +1,5 @@ /* * Copyright (C) 2016 The CyanogenMod Project - * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,18 +16,16 @@ package com.cyanogenmod.settings.device; -import android.app.Fragment; -import android.app.FragmentTransaction; import android.os.Bundle; -import com.android.settingslib.drawer.SettingsDrawerActivity; +import com.cyanogenmod.settings.device.utils.NodePreferenceActivity; -public class ButtonSettingsActivity extends SettingsDrawerActivity { +import com.android.internal.util.cm.ScreenType; - protected void onCreate(Bundle savedInstanceState) { +public class ButtonSettings extends NodePreferenceActivity { + @Override + public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - - getFragmentManager().beginTransaction().replace(R.id.content_frame, - new ButtonSettingsFragment()).commit(); + addPreferencesFromResource(R.xml.button_panel); } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java index 2223f0f9..13e74f50 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java +++ b/configpanel/src/com/cyanogenmod/settings/device/ConfigPanelSearchIndexablesProvider.java @@ -1,6 +1,5 @@ /* * Copyright (C) 2016 The CyanogenMod Project - * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +16,7 @@ package com.cyanogenmod.settings.device; + import android.database.Cursor; import android.database.MatrixCursor; import android.provider.SearchIndexableResource; @@ -37,10 +37,13 @@ public class ConfigPanelSearchIndexablesProvider extends SearchIndexablesProvide private static final String TAG = "ConfigPanelSearchIndexablesProvider"; public static final int SEARCH_IDX_BUTTON_PANEL = 0; + public static final int SEARCH_IDX_GESTURE_PANEL = 1; + public static final int SEARCH_IDX_OCLICK_PANEL = 2; + public static final int SEARCH_IDX_TOUCHSCREEN_PANEL = 3; private static SearchIndexableResource[] INDEXABLE_RES = new SearchIndexableResource[]{ new SearchIndexableResource(1, R.xml.button_panel, - ButtonSettingsActivity.class.getName(), + ButtonSettings.class.getName(), R.drawable.ic_settings_additional_buttons), }; diff --git a/configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java b/configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java deleted file mode 100644 index cbadaf08..00000000 --- a/configpanel/src/com/cyanogenmod/settings/device/KeyHandler.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (C) 2017 The LineageOS 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.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.provider.Settings; -import android.util.Log; -import android.view.KeyEvent; - -import com.android.internal.os.DeviceKeyHandler; - -import com.android.internal.util.cm.FileUtils; - -public class KeyHandler implements DeviceKeyHandler { - - private static final String TAG = KeyHandler.class.getSimpleName(); - private static final String VIRTUAL_KEYS_NODE = "/proc/touchpanel/capacitive_keys_enable"; - private static final String FP_HOME_NODE = "/sys/devices/soc/soc:fpc_fpc1020/enable_key_events"; - - private static boolean sScreenTurnedOn = true; - private static final boolean DEBUG = false; - - private final Context mContext; - - private final BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) { - sScreenTurnedOn = false; - } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) { - sScreenTurnedOn = true; - } - } - }; - - public KeyHandler(Context context) { - mContext = context; - - IntentFilter screenStateFilter = new IntentFilter(); - screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF); - screenStateFilter.addAction(Intent.ACTION_SCREEN_ON); - mContext.registerReceiver(mScreenStateReceiver, screenStateFilter); - } - - public boolean handleKeyEvent(KeyEvent event) { - boolean virtualKeysEnabled = FileUtils.isFileReadable(VIRTUAL_KEYS_NODE) && - FileUtils.readOneLine(VIRTUAL_KEYS_NODE).equals("0"); - boolean fingerprintHomeButtonEnabled = FileUtils.isFileReadable(FP_HOME_NODE) && - FileUtils.readOneLine(FP_HOME_NODE).equals("1"); - - if (!hasSetupCompleted()) { - return false; - } - - if (event.getKeyCode() == KeyEvent.KEYCODE_HOME) { - if (event.getScanCode() == 96) { - if (DEBUG) Log.d(TAG, "Fingerprint home button tapped"); - return virtualKeysEnabled; - } - if (event.getScanCode() == 102) { - if (DEBUG) Log.d(TAG, "Mechanical home button pressed"); - return sScreenTurnedOn && - (virtualKeysEnabled || fingerprintHomeButtonEnabled); - } - } - return false; - } - - private boolean hasSetupCompleted() { - return Settings.Secure.getInt(mContext.getContentResolver(), - Settings.Secure.USER_SETUP_COMPLETE, 0) != 0; - } -} diff --git a/configpanel/src/com/cyanogenmod/settings/device/Startup.java b/configpanel/src/com/cyanogenmod/settings/device/Startup.java index 130c3e67..ca7e2e1f 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Startup.java +++ b/configpanel/src/com/cyanogenmod/settings/device/Startup.java @@ -1,6 +1,5 @@ /* * Copyright (C) 2016 The CyanogenMod Project - * (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,17 +16,33 @@ package com.cyanogenmod.settings.device; +import android.app.PendingIntent; +import android.bluetooth.BluetoothAdapter; +import android.bluetooth.BluetoothManager; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; -import android.content.pm.PackageManager; import android.content.SharedPreferences; -import android.support.v7.preference.PreferenceManager; +import android.content.pm.PackageManager; +import android.hardware.input.InputManager; +import android.os.Build; +import android.os.IBinder; +import android.os.RemoteException; +import android.os.ServiceManager; +import android.os.SystemClock; +import android.os.UserHandle; +import android.preference.PreferenceManager; import android.util.Log; +import android.view.InputDevice; +import android.view.InputEvent; +import android.view.KeyCharacterMap; +import android.view.KeyEvent; import java.io.File; +import com.cyanogenmod.settings.device.utils.Constants; + import com.android.internal.util.cm.FileUtils; public class Startup extends BroadcastReceiver { @@ -35,43 +50,43 @@ public class Startup extends BroadcastReceiver { private static final String TAG = Startup.class.getSimpleName(); @Override - public void onReceive(Context context, Intent intent) { + public void onReceive(final Context context, final Intent intent) { final String action = intent.getAction(); if (Intent.ACTION_BOOT_COMPLETED.equals(action) || Intent.ACTION_PRE_BOOT_COMPLETED.equals(action)) { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - // Disable button settings if needed if (!hasButtonProcs()) { - disableComponent(context, ButtonSettingsActivity.class.getName()); + disableComponent(context, ButtonSettings.class.getName()); } else { - enableComponent(context, ButtonSettingsActivity.class.getName()); + enableComponent(context, ButtonSettings.class.getName()); // Restore nodes to saved preference values for (String pref : Constants.sButtonPrefKeys) { - String node, value; + String value; + String node; if (Constants.sStringNodePreferenceMap.containsKey(pref)) { + value = Constants.getPreferenceString(context, pref); node = Constants.sStringNodePreferenceMap.get(pref); - value = Utils.getPreferenceString(context, pref); } else { + value = Constants.isPreferenceEnabled(context, pref) ? + "1" : "0"; node = Constants.sBooleanNodePreferenceMap.get(pref); - value = Utils.isPreferenceEnabled(context, pref) ? "1" : "0"; } if (!FileUtils.writeLine(node, value)) { Log.w(TAG, "Write to node " + node + " failed while restoring saved preference values"); } } - - // Send initial broadcasts - final boolean shouldEnablePocketMode = - prefs.getBoolean(Constants.FP_WAKEUP_KEY, false) && - prefs.getBoolean(Constants.FP_POCKETMODE_KEY, false); - Utils.broadcastCustIntent(context, shouldEnablePocketMode); } } } + private void sendInputEvent(InputEvent event) { + InputManager inputManager = InputManager.getInstance(); + inputManager.injectInputEvent(event, + InputManager.INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH); + } + static boolean hasButtonProcs() { return new File(Constants.BUTTON_SWAP_NODE).exists() || new File(Constants.FP_HOME_KEY_NODE).exists() || diff --git a/configpanel/src/com/cyanogenmod/settings/device/Utils.java b/configpanel/src/com/cyanogenmod/settings/device/Utils.java deleted file mode 100644 index f0c33569..00000000 --- a/configpanel/src/com/cyanogenmod/settings/device/Utils.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2016 The CyanogenMod Project - * (C) 2017 The LineageOS 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.content.Intent; -import android.content.SharedPreferences; -import android.os.UserHandle; -import android.support.v14.preference.SwitchPreference; -import android.support.v7.preference.PreferenceManager; - -public class Utils { - - public static boolean isPreferenceEnabled(Context context, String key) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - return preferences.getBoolean(key, (Boolean) Constants.sNodeDefaultMap.get(key)); - } - - public static String getPreferenceString(Context context, String key) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - return preferences.getString(key, (String) Constants.sNodeDefaultMap.get(key)); - } - - public static void updateDependentPreference(Context context, SwitchPreference b, - String key, boolean shouldSetEnabled) { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); - boolean prefActualValue = preferences.getBoolean(key, false); - - if (shouldSetEnabled) { - if (Constants.sNodeUserSetValuesMap.get(key) != null && - (Boolean) Constants.sNodeUserSetValuesMap.get(key)[1] && - (Boolean) Constants.sNodeUserSetValuesMap.get(key)[1] != prefActualValue) { - b.setChecked(true); - Constants.sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, false }); - } - } else { - if (b.isEnabled() && prefActualValue) { - Constants.sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, true }); - } - b.setEnabled(false); - b.setChecked(false); - } - } - - public static void broadcastCustIntent(Context context, boolean value) { - final Intent intent = new Intent(Constants.CUST_INTENT); - intent.putExtra(Constants.CUST_INTENT_EXTRA, value); - context.sendBroadcastAsUser(intent, UserHandle.CURRENT); - } -} diff --git a/configpanel/src/com/cyanogenmod/settings/device/Constants.java b/configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java similarity index 60% rename from configpanel/src/com/cyanogenmod/settings/device/Constants.java rename to configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java index 26c6474f..ea33e2a7 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/Constants.java +++ b/configpanel/src/com/cyanogenmod/settings/device/utils/Constants.java @@ -15,17 +15,21 @@ * limitations under the License. */ -package com.cyanogenmod.settings.device; +package com.cyanogenmod.settings.device.utils; import java.util.HashMap; import java.util.Map; +import android.content.Context; +import android.content.SharedPreferences; +import android.preference.PreferenceManager; +import android.preference.SwitchPreference; + public class Constants { // Preference keys public static final String BUTTON_SWAP_KEY = "button_swap"; public static final String FP_HOME_KEY = "fp_home"; - public static final String FP_POCKETMODE_KEY = "fp_pocketmode"; public static final String FP_WAKEUP_KEY = "fp_wakeup"; // Nodes @@ -34,10 +38,6 @@ public class Constants { public static final String FP_WAKEUP_NODE = "/sys/devices/soc/soc:fpc_fpc1020/enable_wakeup"; public static final String VIRTUAL_KEYS_NODE = "/proc/touchpanel/capacitive_keys_enable"; - // Intents - public static final String CUST_INTENT = "com.cyanogenmod.settings.device.CUST_UPDATE"; - public static final String CUST_INTENT_EXTRA = "pocketmode_service"; - // Holds -> mapping public static final Map sBooleanNodePreferenceMap = new HashMap<>(); public static final Map sStringNodePreferenceMap = new HashMap<>(); @@ -54,7 +54,7 @@ public class Constants { public static final String[] sButtonPrefKeys = { BUTTON_SWAP_KEY, FP_HOME_KEY, - FP_WAKEUP_KEY + FP_WAKEUP_KEY, }; static { @@ -68,4 +68,34 @@ public class Constants { sNodeDependencyMap.put(FP_HOME_KEY, new String[]{ VIRTUAL_KEYS_NODE, "1" }); } + + public static boolean isPreferenceEnabled(Context context, String key) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + return preferences.getBoolean(key, (Boolean) sNodeDefaultMap.get(key)); + } + + public static String getPreferenceString(Context context, String key) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + return preferences.getString(key, (String) sNodeDefaultMap.get(key)); + } + + public static void updateDependentPreference(Context context, SwitchPreference b, + String key, Boolean shouldSetEnabled) { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + boolean prefActualValue = preferences.getBoolean(key, false); + + if (shouldSetEnabled) { + if (sNodeUserSetValuesMap.get(key) != null && + (Boolean) sNodeUserSetValuesMap.get(key)[1] && + (Boolean) sNodeUserSetValuesMap.get(key)[1] != prefActualValue) { + b.setChecked(true); + sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, false }); + } + } else { + if (b.isEnabled() && prefActualValue) + sNodeUserSetValuesMap.put(key, new Boolean[]{ prefActualValue, true }); + b.setEnabled(false); + b.setChecked(false); + } + } } diff --git a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java b/configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java similarity index 69% rename from configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java rename to configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java index b6fadf72..998ffc21 100644 --- a/configpanel/src/com/cyanogenmod/settings/device/ButtonSettingsFragment.java +++ b/configpanel/src/com/cyanogenmod/settings/device/utils/NodePreferenceActivity.java @@ -15,51 +15,48 @@ * limitations under the License. */ -package com.cyanogenmod.settings.device; +package com.cyanogenmod.settings.device.utils; -import android.content.SharedPreferences; import android.os.Bundle; -import android.support.v14.preference.PreferenceFragment; -import android.support.v14.preference.SwitchPreference; -import android.support.v7.preference.ListPreference; -import android.support.v7.preference.Preference; -import android.support.v7.preference.Preference.OnPreferenceChangeListener; -import android.support.v7.preference.PreferenceManager; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceChangeListener; +import android.preference.PreferenceActivity; +import android.preference.ListPreference; +import android.preference.SwitchPreference; import android.text.TextUtils; import android.view.MenuItem; import java.io.File; -import com.android.settingslib.drawer.SettingsDrawerActivity; - import com.android.internal.util.cm.FileUtils; +import com.android.internal.util.cm.ScreenType; -public class ButtonSettingsFragment extends PreferenceFragment +public class NodePreferenceActivity extends PreferenceActivity implements OnPreferenceChangeListener { @Override - public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { - addPreferencesFromResource(R.xml.button_panel); + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + getActionBar().setDisplayHomeAsUpEnabled(true); } @Override - public void onResume() { + protected void onResume() { super.onResume(); updatePreferencesBasedOnDependencies(); + + // If running on a phone, remove padding around the listview + if (!ScreenType.isTablet(this)) { + getListView().setPadding(0, 0, 0, 0); + } } @Override public boolean onPreferenceChange(Preference preference, Object newValue) { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); - String node = Constants.sBooleanNodePreferenceMap.get(preference.getKey()); if (!TextUtils.isEmpty(node)) { Boolean value = (Boolean) newValue; FileUtils.writeLine(node, value ? "1" : "0"); - if (Constants.FP_WAKEUP_KEY.equals(preference.getKey())) { - value &= prefs.getBoolean(Constants.FP_POCKETMODE_KEY, false); - Utils.broadcastCustIntent(getContext(), value); - } return true; } node = Constants.sStringNodePreferenceMap.get(preference.getKey()); @@ -67,12 +64,6 @@ public boolean onPreferenceChange(Preference preference, Object newValue) { FileUtils.writeLine(node, (String) newValue); return true; } - - if (Constants.FP_POCKETMODE_KEY.equals(preference.getKey())) { - Utils.broadcastCustIntent(getContext(), (Boolean) newValue); - return true; - } - return false; } @@ -103,10 +94,17 @@ public void addPreferencesFromResource(int preferencesResId) { l.setEnabled(false); } } + } - // Initialize other preferences whose keys are not associated with nodes - SwitchPreference b = (SwitchPreference) findPreference(Constants.FP_POCKETMODE_KEY); - b.setOnPreferenceChangeListener(this); + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + // Respond to the action bar's Up/Home button + case android.R.id.home: + finish(); + return true; + } + return super.onOptionsItemSelected(item); } private void updatePreferencesBasedOnDependencies() { @@ -118,7 +116,7 @@ private void updatePreferencesBasedOnDependencies() { String dependencyNodeValue = FileUtils.readOneLine(dependencyNode); boolean shouldSetEnabled = dependencyNodeValue.equals( Constants.sNodeDependencyMap.get(pref)[1]); - Utils.updateDependentPreference(getContext(), b, pref, shouldSetEnabled); + Constants.updateDependentPreference(this, b, pref, shouldSetEnabled); } } } From e67073e11da7fb1a2a0aa90f9657eacabb7ed3ab Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:37:30 +0300 Subject: [PATCH 44/62] AEX.mod: configpanel remove unused proguard --- configpanel/proguard.flags | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 configpanel/proguard.flags diff --git a/configpanel/proguard.flags b/configpanel/proguard.flags deleted file mode 100644 index 43b57d98..00000000 --- a/configpanel/proguard.flags +++ /dev/null @@ -1,3 +0,0 @@ --keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet); -} From 7eb9cba184b86b1f167c5d264361bcba591aa313 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:37:56 +0300 Subject: [PATCH 45/62] AEX.mod: media_profiles for google slow motion --- configs/media_profiles.xml | 106 ++++++++++++++++++------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/configs/media_profiles.xml b/configs/media_profiles.xml index a2e2b7c7..fc20cd27 100644 --- a/configs/media_profiles.xml +++ b/configs/media_profiles.xml @@ -445,59 +445,59 @@ channels="2" /> - - - - - - - - - - - - - + + + + + + + + + + + + + From 90ce066414fddd245ef1db941be64900d17a8ed9 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:38:18 +0300 Subject: [PATCH 46/62] AEX.mod: GPS tweak --- gps/etc/gps.conf | 126 ++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 83 deletions(-) diff --git a/gps/etc/gps.conf b/gps/etc/gps.conf index 48ad14fa..8c3db58a 100644 --- a/gps/etc/gps.conf +++ b/gps/etc/gps.conf @@ -1,8 +1,8 @@ #Uncommenting these urls would only enable #the power up auto injection and force injection(test case). -XTRA_SERVER_1=https://xtrapath1.izatcloud.net/xtra3grc.bin -XTRA_SERVER_2=https://xtrapath2.izatcloud.net/xtra3grc.bin -XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra3grc.bin +#XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin +#XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin +#XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin #Version check for XTRA #DISABLE = 0 @@ -16,8 +16,14 @@ XTRA_VERSION_CHECK=0 # _CLEAR = 0 ERR_ESTIMATE=0 -#NTP server -NTP_SERVER=time.izatcloud.net +#Test +NTP_SERVER=time.gpsonextra.net +#Russia +NTP_SERVER=ru.pool.ntp.org +NTP_SERVER=0.ru.pool.ntp.org +NTP_SERVER=1.ru.pool.ntp.org +NTP_SERVER=2.ru.pool.ntp.org +NTP_SERVER=3.ru.pool.ntp.org #Asia # NTP_SERVER=asia.pool.ntp.org #Europe @@ -25,13 +31,10 @@ NTP_SERVER=time.izatcloud.net #North America # NTP_SERVER=north-america.pool.ntp.org -#XTRA CA path -XTRA_CA_PATH=/system/etc/security/cacerts - # DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info # 4 - Debug, 5 - Verbose # If DEBUG_LEVEL is commented, Android's logging levels will be used -DEBUG_LEVEL = 2 +DEBUG_LEVEL = 0 # Intermediate position report, 1=enable, 0=disable INTERMEDIATE_POS=0 @@ -43,7 +46,7 @@ INTERMEDIATE_POS=0 # default - non is locked for backward compatibility GPS_LOCK = 3 -# supl version 2.0 +# supl version 1.0 SUPL_VER=0x20000 # Emergency SUPL, 1=enable, 0=disable @@ -59,7 +62,7 @@ USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=1 #config.xml. #MSA=0X2 #MSB=0X1 -SUPL_MODE=1 +SUPL_MODE=3 # GPS Capabilities bit mask # SCHEDULING = 0x01 @@ -72,7 +75,7 @@ CAPABILITIES=0x37 # Accuracy threshold for intermediate positions # less accurate positions are ignored, 0 for passing all positions -# ACCURACY_THRES=5000 +ACCURACY_THRES=5000 ################################ ##### AGPS server settings ##### @@ -94,6 +97,8 @@ SUPL_PORT=7275 # and the remaining 7 slots unwritable. #AGPS_CERT_WRITABLE_MASK=0 +DEFAULT_AGPS_ENABLE=TRUE + #################################### # LTE Positioning Profile Settings #################################### @@ -110,6 +115,8 @@ LPP_PROFILE = 0 NMEA_PROVIDER=0 # Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE) SGLTE_TARGET=0 +# Enable or Disable Wiper (1=Enable, 0=Disable) +ENABLE_WIPER=1 ################################################## # Select Positioning Protocol on A-GLONASS system @@ -118,74 +125,27 @@ SGLTE_TARGET=0 # 0x2: RRLP UPlane # 0x4: LLP Uplane A_GLONASS_POS_PROTOCOL_SELECT = 0 - -################################################## -# Select technology for LPPe Control Plane -################################################## -# 0x1: DBH for LPPe CP -# 0x2: WLAN AP Measurements for LPPe CP -LPPE_CP_TECHNOLOGY = 0 - -################################################## -# Select technology for LPPe User Plane -################################################## -# 0x1: DBH for LPPe UP -# 0x2: WLAN AP Measurements for LPPe UP -LPPE_UP_TECHNOLOGY = 0 - -################################################## -# AGPS_CONFIG_INJECT -################################################## -# enable/disable injection of AGPS configurations: -# SUPL_VER -# SUPL_HOST -# SUPL_PORT -# C2K_HOST -# C2K_PORT -# LPP_PROFILE -# A_GLONASS_POS_PROTOCOL_SELECT -# 0: disable -# 1: enable -AGPS_CONFIG_INJECT = 1 -# AP Coarse Timestamp Uncertainty -################################################## -# default : 10 -# or as per clock uncertainty of product -AP_TIMESTAMP_UNCERTAINTY = 10 - -##################################### -# GNSS PPS settings -##################################### -#AP DR engine availability status -# 0 : NO AP DR (default) -# 1 : AP DR enabled -#EXTERNAL_DR_ENABLED = 0 - -##################################### -#DR_SYNC Pulse Availability -##################################### -# 0 : DR_SYNC pulse not available (default) -# 1 : DR_SYNC pulse available -DR_SYNC_ENABLED = 0 - -##################################### -#PPS Device name -##################################### -PPS_DEVICENAME = /dev/pps0 - -##################################### -#AP Clock Accuracy -##################################### -AP_CLOCK_PPM = 100 - -##################################### -#MAX ms difference to detect missing pulse -##################################### -MISSING_PULSE_TIME_DELTA = 900 - -##################################### -#Propagation time uncertainty -##################################### -PROPAGATION_TIME_UNCERTAINTY = 1 -XTRA_TEST_ENABLED = 1 -XTRA_THROTTLE_ENABLED = 0 + +################################ +# Sensor Settings +################################ + +# Sensor Sampling Rate Parameters for Low-Data Rate Filter (should be greater than 0) +SENSOR_ACCEL_BATCHES_PER_SEC=2 +SENSOR_ACCEL_SAMPLES_PER_BATCH=5 +SENSOR_GYRO_BATCHES_PER_SEC=2 +SENSOR_GYRO_SAMPLES_PER_BATCH=5 +# Sensor Sampling Rate Parameters for High-Data Rate Filter (should be greater than 0) +SENSOR_ACCEL_BATCHES_PER_SEC_HIGH=4 +SENSOR_ACCEL_SAMPLES_PER_BATCH_HIGH=25 +SENSOR_GYRO_BATCHES_PER_SEC_HIGH=4 +SENSOR_GYRO_SAMPLES_PER_BATCH_HIGH=25 + +# Sensor Control Mode (0=AUTO, 1=FORCE_ON) +SENSOR_CONTROL_MODE=0 + +# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable) +SENSOR_USAGE=0 + +# Choose GSIFF sensor provider (1=DSPS, 2=Android NDK) +# SENSOR_PROVIDER=1 #MG commented this From b1efab37c40d1a59fc717f850afa1d5c3067fa87 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:38:48 +0300 Subject: [PATCH 47/62] AEX.mod: Fingerprint map to menu key --- keylayout/uinput-fpc.kl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keylayout/uinput-fpc.kl b/keylayout/uinput-fpc.kl index 83c7e53d..9011585d 100644 --- a/keylayout/uinput-fpc.kl +++ b/keylayout/uinput-fpc.kl @@ -7,5 +7,5 @@ # modify it under the terms of the GNU General Public License Version 2 # as published by the Free Software Foundation. # - -key 96 HOME VIRTUAL +# +key 96 MENU VIRTUAL From b8e6bf7a9ee4ae324cfc5635c295d21e7f4c7c6e Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:39:12 +0300 Subject: [PATCH 48/62] AEX.mod: cm keyhandler --- keyhandler/Android.mk | 9 ++ .../settings/device/KeyHandler.java | 90 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 keyhandler/Android.mk create mode 100644 keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java diff --git a/keyhandler/Android.mk b/keyhandler/Android.mk new file mode 100644 index 00000000..efdaee4e --- /dev/null +++ b/keyhandler/Android.mk @@ -0,0 +1,9 @@ +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := com.cyanogenmod.keyhandler +LOCAL_SRC_FILES := $(call all-java-files-under,src) +LOCAL_MODULE_TAGS := optional +LOCAL_DEX_PREOPT := false +include $(BUILD_JAVA_LIBRARY) \ No newline at end of file diff --git a/keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java b/keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java new file mode 100644 index 00000000..5a9b9ada --- /dev/null +++ b/keyhandler/src/com/cyanogenmod/settings/device/KeyHandler.java @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2017 The LineageOS 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.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.provider.Settings; +import android.util.Log; +import android.view.KeyEvent; + +import com.android.internal.os.DeviceKeyHandler; + +import com.android.internal.util.cm.FileUtils; + +public class KeyHandler implements DeviceKeyHandler { + + private static final String TAG = KeyHandler.class.getSimpleName(); + private static final String VIRTUAL_KEYS_NODE = "/proc/touchpanel/capacitive_keys_enable"; + private static final String FP_HOME_NODE = "/sys/devices/soc/soc:fpc_fpc1020/enable_key_events"; + + private static boolean sScreenTurnedOn = true; + private static final boolean DEBUG = false; + + private final Context mContext; + + private final BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() { + @Override + public void onReceive(Context context, Intent intent) { + if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) { + sScreenTurnedOn = false; + } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) { + sScreenTurnedOn = true; + } + } + }; + + public KeyHandler(Context context) { + mContext = context; + + IntentFilter screenStateFilter = new IntentFilter(); + screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF); + screenStateFilter.addAction(Intent.ACTION_SCREEN_ON); + mContext.registerReceiver(mScreenStateReceiver, screenStateFilter); + } + + public boolean handleKeyEvent(KeyEvent event) { + boolean virtualKeysEnabled = FileUtils.isFileReadable(VIRTUAL_KEYS_NODE) && + FileUtils.readOneLine(VIRTUAL_KEYS_NODE).equals("0"); + boolean fingerprintHomeButtonEnabled = FileUtils.isFileReadable(FP_HOME_NODE) && + FileUtils.readOneLine(FP_HOME_NODE).equals("1"); + + if (!hasSetupCompleted()) { + return false; + } + + if (event.getKeyCode() == KeyEvent.KEYCODE_HOME) { + if (event.getScanCode() == 96) { + if (DEBUG) Log.d(TAG, "Fingerprint home button tapped"); + return virtualKeysEnabled; + } + if (event.getScanCode() == 102) { + if (DEBUG) Log.d(TAG, "Mechanical home button pressed"); + return sScreenTurnedOn && + (virtualKeysEnabled || fingerprintHomeButtonEnabled); + } + } + return false; + } + + private boolean hasSetupCompleted() { + return Settings.Secure.getInt(mContext.getContentResolver(), + Settings.Secure.USER_SETUP_COMPLETE, 0) != 0; + } +} \ No newline at end of file From 5602b52acbed255bb2e3d6cc441300f6ddd0d47e Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:39:44 +0300 Subject: [PATCH 49/62] AEX.mod: framework overlay --- .../base/core/res/res/values/config.xml | 63 ++++++++----------- 1 file changed, 27 insertions(+), 36 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 31eed85b..5705754a 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -146,20 +146,11 @@ true - - - - - - - + true - - + + 2000 true - - - true @@ -323,6 +311,12 @@ The default is false. --> true + + true + 300 + true + @@ -413,10 +407,6 @@ evdo:4094,87380,524288,4096,16384,262144 - - - true @@ -466,7 +456,13 @@ 64 - Volume rocker For example, a device with Home, Back and Menu keys would set this config to 7. --> - 83 + 87 + + + true + + + true + + - - /system/priv-app/ConfigPanel/ConfigPanel.apk + + true - - com.cyanogenmod.settings.device.KeyHandler + + true 3300 @@ -524,7 +520,7 @@ - + @@ -532,12 +528,9 @@ "/system/framework/oat/arm64/services.odex" "/system/framework/arm64/boot.oat" "/system/framework/arm64/boot-core-libart.oat" + "/data/dalvik-cache/arm64/system@framework@services.jar@classes.dex" - - - true - - + true 2000 @@ -601,7 +594,7 @@ 0x00000708 0x40C04000 0x00000001 - + false @@ -610,7 +603,5 @@ 0x40800000 0x514 - - true - + \ No newline at end of file From 8bb475986e4fe85310ac9c697d255cc2d27e167d Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:40:17 +0300 Subject: [PATCH 50/62] AEX.mod: assert for modem timestamp check --- releasetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/releasetools.py b/releasetools.py index f49dbe00..314e0efa 100644 --- a/releasetools.py +++ b/releasetools.py @@ -34,4 +34,4 @@ def AddModemAssertion(info, input_zip): if len(versions) and '*' not in versions: cmd = 'assert(gemini.verify_modem(' + ','.join(['"%s"' % modem.strip() for modem in versions]) + ') == "1");' info.script.AppendExtra(cmd) - return + return \ No newline at end of file From ba76e223aae872e6657f3910a80179f7c0fe15eb Mon Sep 17 00:00:00 2001 From: DennySPB Date: Tue, 22 Aug 2017 10:41:42 +0300 Subject: [PATCH 51/62] AEX.mod: scroll modify --- system.prop | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system.prop b/system.prop index 73b7322a..f7e127ea 100644 --- a/system.prop +++ b/system.prop @@ -168,3 +168,8 @@ sys.usb.controller=6a00000.dwc3 # Wifi wifi.interface=wlan0 + +#scrolling +ro.max.fling_velocity=14000 +ro.min.fling_velocity=1000 +ro.min_pointer_dur=1 \ No newline at end of file From 14cc11b2d865410f4debad2dd981842fde0d9296 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 09:02:53 +0300 Subject: [PATCH 52/62] Use EAS kernel --- BoardConfig.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index a0a8804a..fd1d391e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -43,7 +43,8 @@ TARGET_NO_BOOTLOADER := true # Kernel BOARD_KERNEL_BASE := 0x80000000 -BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.selinux=permissive +BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff +#androidboot.selinux=permissive BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb BOARD_KERNEL_PAGESIZE := 4096 BOARD_KERNEL_TAGS_OFFSET := 0x00000100 From a58638397794d96572fb4308fd8cffd762f122ae Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 09:03:14 +0300 Subject: [PATCH 53/62] AEX.mod: add more boost patterns --- .../base/core/res/res/values/config.xml | 78 ++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 5705754a..e9a4f3f3 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -546,6 +546,24 @@ 0x00000001 + + true + + 30 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40400000 + 0x00000001 + 0x41000000 + 0x00000004 + 0x42804000 + 0x00000001 + + true 5000 @@ -572,6 +590,33 @@ 0x00000001 + + true + + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40C04000 + 0x00000001 + + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000514 + 0x40C04000 + 0x00000001 + + + + true + 1200 + true 0 @@ -584,9 +629,21 @@ 0x00000001 + + true + 500 + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000514 + 0x40C04000 + 0x00000001 + + true - 0 + 500 0x40C00000 0x00000001 @@ -602,6 +659,23 @@ 0x1 0x40800000 0x514 - + + + + true + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40400000 + 0x00000001 + 0x41000000 + 0x00000004 + 0x42804000 + 0x00000001 + + \ No newline at end of file From 4c9f2b31ae78a87c6671625013e19facfb570eba Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 12:24:14 +0300 Subject: [PATCH 54/62] AEX.mod: add vendor audio_effects.conf --- audio/audio_effects.conf | 411 +++++++++++++++++++++++++++++++++++++++ device.mk | 1 + 2 files changed, 412 insertions(+) create mode 100644 audio/audio_effects.conf diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf new file mode 100644 index 00000000..2a96945c --- /dev/null +++ b/audio/audio_effects.conf @@ -0,0 +1,411 @@ +# List of effect libraries to load. Each library element must contain a "path" element +# giving the full path of the library .so file. +# libraries { +# { +# path +# } +# } +libraries { + bundle { + path /system/lib/soundfx/libbundlewrapper.so + } + reverb { + path /system/lib/soundfx/libreverbwrapper.so + } + qcbassboost { + path /vendor/lib/soundfx/libqcbassboost.so + } + qcvirt { + path /vendor/lib/soundfx/libqcvirt.so + } + qcreverb { + path /vendor/lib/soundfx/libqcreverb.so + } + visualizer_sw { + path /system/lib/soundfx/libvisualizer.so + } + visualizer_hw { + path /system/lib/soundfx/libqcomvisualizer.so + } + downmix { + path /system/lib/soundfx/libdownmix.so + } + loudness_enhancer { + path /system/lib/soundfx/libldnhncr.so + } + proxy { + path /system/lib/soundfx/libeffectproxy.so + } + offload_bundle { + path /system/lib/soundfx/libqcompostprocbundle.so + } + audio_pre_processing { + path /system/lib/soundfx/libqcomvoiceprocessing.so + } + loudness_enhancer { + path /system/lib/soundfx/libldnhncr.so + } + volume_listener { + path /system/lib/soundfx/libvolumelistener.so + } + dirac { + path /system/lib/soundfx/libdirac.so + } +} + +# Default pre-processing library. Add to audio_effect.conf "libraries" section if +# audio HAL implements support for default software audio pre-processing effects +# +# pre_processing { +# path /system/lib/soundfx/libaudiopreprocessing.so +# } + +# list of effects to load. Each effect element must contain a "library" and a "uuid" element. +# The value of the "library" element must correspond to the name of one library element in the +# "libraries" element. +# The name of the effect element is indicative, only the value of the "uuid" element +# designates the effect. +# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the +# generic effect type UUID. +# effects { +# { +# library +# uuid +# } +# ... +# } + +effects { + +# additions for the proxy implementation +# Proxy implementation + #effectname { + #library proxy + #uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx + + # SW implemetation of the effect. Added as a node under the proxy to + # indicate this as a sub effect. + #libsw { + #library libSW + #uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy + #} End of SW effect + + # HW implementation of the effect. Added as a node under the proxy to + # indicate this as a sub effect. + #libhw { + #library libHW + #uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz + #}End of HW effect + #} End of effect proxy + + bassboost { + library proxy + uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b + + libsw { + library qcbassboost + uuid 23aca180-44bd-11e2-bcfd-0800200c9a66 + } + + libhw { + library offload_bundle + uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b + } + } + virtualizer { + library proxy + uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b + + libsw { + library qcvirt + uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e + } + + libhw { + library offload_bundle + uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b + } + } + equalizer { + library proxy + uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b + + libsw { + library bundle + uuid ce772f20-847d-11df-bb17-0002a5d5c51b + } + + libhw { + library offload_bundle + uuid a0dac280-401c-11e3-9379-0002a5d5c51b + } + } + volume { + library bundle + uuid 119341a0-8469-11df-81f9-0002a5d5c51b + } + reverb_env_aux { + library proxy + uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b + + libsw { + library qcreverb + uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217 + } + + libhw { + library offload_bundle + uuid 79a18026-18fd-4185-8233-0002a5d5c51b + } + } + reverb_env_ins { + library proxy + uuid b707403a-a1c1-4291-9573-0002a5d5c51b + + libsw { + library qcreverb + uuid 791fff8b-8129-4655-83a4-59bc61034c3a + } + + libhw { + library offload_bundle + uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b + } + } + reverb_pre_aux { + library proxy + uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b + + libsw { + library qcreverb + uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a + } + + libhw { + library offload_bundle + uuid 6987be09-b142-4b41-9056-0002a5d5c51b + } + } + reverb_pre_ins { + library proxy + uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b + + libsw { + library qcreverb + uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e + } + + libhw { + library offload_bundle + uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b + } + } + visualizer { + library proxy + uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c + + libsw { + library visualizer_sw + uuid d069d9e0-8329-11df-9168-0002a5d5c51b + } + + libhw { + library visualizer_hw + uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b + } + } + downmix { + library downmix + uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f + } + loudness_enhancer { + library loudness_enhancer + uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c + } + aec { + library audio_pre_processing + uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109 + } + ns { + library audio_pre_processing + uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8 + } + music_helper { + library volume_listener + uuid 08b8b058-0590-11e5-ac71-0025b32654a0 + } + ring_helper { + library volume_listener + uuid 0956df94-0590-11e5-bdbe-0025b32654a0 + } + alarm_helper { + library volume_listener + uuid 09f303e2-0590-11e5-8fdb-0025b32654a0 + } + # voice_helper is called when stream type is voice_call in VoIP usecase + voice_helper { + library volume_listener + uuid 0ace5c08-0590-11e5-ae9e-0025b32654a0 + } + notification_helper { + library volume_listener + uuid 0b776dde-0590-11e5-81ba-0025b32654a0 + } + dirac { + library dirac + uuid e069d9e0-8329-11df-9168-0002a5d5c51b + } +} + +# additional effect from vendor +# UUID generated using version 1 + +output_session_processing { + music { + music_helper { + } + } + ring { + ring_helper { + } + } + alarm { + alarm_helper { + } + } + # stream type voice_call is used for VoIP call + voice_call { + voice_helper { + } + } + notification { + notification_helper { + } + } +} + +# Audio global processor configurations. +# The global processor configuration consists in a list of effects elements. +# The name of the effect element must be the name of one of the effects in +# the "effects" list of the file. +# Each effect element may optionally contain a list of parameters and their +# default value to apply when the pre processor effect is created. +# A parameter is defined by a "param" element and a "value" element. Each of these elements +# consists in one or more elements specifying a type followed by a value. +# The types defined are: "int", "short", "float", "bool" and "string" +# When both "param" and "value" are a single int, a simple form is allowed where just +# the param and value pair is present in the parameter description +# global_processing { +# { +# { +# param { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# value { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# } +# { } +# ... +# } +# ... +# } +global_processing { + dirac { + bl@lakala { + param { + int 6 + } + value { + string *com.lakala.android + } + } + bl@jawboneup { + param { + int 6 + } + value { + string *com.jawbone.up + } + } + bl@hojyremote { + param { + int 6 + } + value { + string *com.hojy.hremote + } + } + } + } + +# Added aec, ns effects for voice_communication, which are supported by the board + +pre_processing { + voice_communication { + aec { + } + ns { + } + } +} + +# Default pre-processing effects. Add to audio_effect.conf "effects" section if +# audio HAL implements support for them. +# +# agc { +# library pre_processing +# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b +# } +# aec { +# library pre_processing +# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b +# } +# ns { +# library pre_processing +# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b +# } + +# Audio preprocessor configurations. +# The pre processor configuration consists in a list of elements each describing +# pre processor settings for a given input source. Valid input source names are: +# "mic", "camcorder", "voice_recognition", "voice_communication" +# Each input source element contains a list of effects elements. The name of the effect +# element must be the name of one of the effects in the "effects" list of the file. +# Each effect element may optionally contain a list of parameters and their +# default value to apply when the pre processor effect is created. +# A parameter is defined by a "param" element and a "value" element. Each of these elements +# consists in one or more elements specifying a type followed by a value. +# The types defined are: "int", "short", "float", "bool" and "string" +# When both "param" and "value" are a single int, a simple form is allowed where just +# the param and value pair is present in the parameter description +# pre_processing { +# { +# { +# { +# param { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# value { +# int|short|float|bool|string +# [ int|short|float|bool|string ] +# ... +# } +# } +# { } +# ... +# } +# ... +# } +# ... +# } + +# +# TODO: add default audio pre processor configurations after debug and tuning phase +# diff --git a/device.mk b/device.mk index f2c9f324..6b8dd213 100644 --- a/device.mk +++ b/device.mk @@ -104,6 +104,7 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ $(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ + $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \ $(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/listen_platform_info.xml:system/etc/listen_platform_info.xml \ From 78528cb3e14f573ea7be6b7baba6da01719d71fe Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 12:24:40 +0300 Subject: [PATCH 55/62] AEX.mod: fix boost config --- .../base/core/res/res/values/config.xml | 88 +++++++++---------- 1 file changed, 41 insertions(+), 47 deletions(-) diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index e9a4f3f3..5a3f1453 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -546,24 +546,6 @@ 0x00000001 - - true - - 30 - - 0x40C00000 - 0x00000001 - 0x40800000 - 0x00000708 - 0x40400000 - 0x00000001 - 0x41000000 - 0x00000004 - 0x42804000 - 0x00000001 - - true 5000 @@ -590,32 +572,6 @@ 0x00000001 - - true - - - 0x40C00000 - 0x00000001 - 0x40800000 - 0x00000708 - 0x40C04000 - 0x00000001 - - - 0x40C00000 - 0x00000001 - 0x40800000 - 0x00000514 - 0x40C04000 - 0x00000001 - - - - true - 1200 true @@ -632,7 +588,7 @@ true 500 - 0x40C00000 0x00000001 0x40800000 @@ -663,8 +619,24 @@ true - - 2000 + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40400000 + 0x00000001 + 0x41000000 + 0x00000004 + 0x42804000 + 0x00000001 + + + + 30 + + 0x40C00000 0x00000001 0x40800000 @@ -676,6 +648,28 @@ 0x42804000 0x00000001 + + + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000708 + 0x40C04000 + 0x00000001 + + + + 0x40C00000 + 0x00000001 + 0x40800000 + 0x00000514 + 0x40C04000 + 0x00000001 + + + 1200 \ No newline at end of file From aa852d56b90170539df000b0e64a510fdcd517d9 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 12:25:16 +0300 Subject: [PATCH 56/62] AEX.mod: disable fsync, enable some wakeblocks --- rootdir/etc/init.qcom.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 99147386..2d6fbdfc 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -442,6 +442,13 @@ on property:sys.boot_completed=1 write /sys/block/dm-0/queue/read_ahead_kb 128 write /sys/block/dm-1/queue/read_ahead_kb 128 write /sys/block/sda/queue/iostats 1 + # Enable wakelocks + write /sys/module/wakeup/parameters/enable_wlan_ws "Y" + write /sys/module/wakeup/parameters/enable_netlink_ws "N" + write /sys/module/wakeup/parameters/enable_ipa_ws "N" + write /sys/module/wakeup/parameters/enable_timerfd_ws "N" + # Disable fsync + write /sys/module/sync/parameters/fsync_enabled "N" # CPE fw_name used by sound trigger HAL chown media audio /sys/kernel/wcd_cpe0/fw_name From 5395114fd1c27b2f46f45d7b3974a56e1d042b69 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 13:45:36 +0300 Subject: [PATCH 57/62] AEX.mod: Add Viperfx entries --- audio/audio_effects.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf index 2a96945c..08f4122a 100644 --- a/audio/audio_effects.conf +++ b/audio/audio_effects.conf @@ -6,6 +6,9 @@ # } # } libraries { + v4a_fx { + path /system/lib/soundfx/libv4a_fx_ics.so + } bundle { path /system/lib/soundfx/libbundlewrapper.so } @@ -98,6 +101,10 @@ effects { #}End of HW effect #} End of effect proxy + v4a_standard_fx { + library v4a_fx + uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b + } bassboost { library proxy uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b From 38a74605c27c138830e3fe3aafc5068788f931c3 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 16:38:14 +0300 Subject: [PATCH 58/62] Revert "AEX.mod: Add Viperfx entries" This reverts commit 5395114fd1c27b2f46f45d7b3974a56e1d042b69. --- audio/audio_effects.conf | 7 ------- 1 file changed, 7 deletions(-) diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf index 08f4122a..2a96945c 100644 --- a/audio/audio_effects.conf +++ b/audio/audio_effects.conf @@ -6,9 +6,6 @@ # } # } libraries { - v4a_fx { - path /system/lib/soundfx/libv4a_fx_ics.so - } bundle { path /system/lib/soundfx/libbundlewrapper.so } @@ -101,10 +98,6 @@ effects { #}End of HW effect #} End of effect proxy - v4a_standard_fx { - library v4a_fx - uuid 41d3c987-e6cf-11e3-a88a-11aba5d5c51b - } bassboost { library proxy uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b From fbb4d30d9016fa0017288dc88ebe131cd5288f50 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Wed, 23 Aug 2017 16:38:22 +0300 Subject: [PATCH 59/62] Revert "AEX.mod: add vendor audio_effects.conf" This reverts commit 4c9f2b31ae78a87c6671625013e19facfb570eba. --- audio/audio_effects.conf | 411 --------------------------------------- device.mk | 1 - 2 files changed, 412 deletions(-) delete mode 100644 audio/audio_effects.conf diff --git a/audio/audio_effects.conf b/audio/audio_effects.conf deleted file mode 100644 index 2a96945c..00000000 --- a/audio/audio_effects.conf +++ /dev/null @@ -1,411 +0,0 @@ -# List of effect libraries to load. Each library element must contain a "path" element -# giving the full path of the library .so file. -# libraries { -# { -# path -# } -# } -libraries { - bundle { - path /system/lib/soundfx/libbundlewrapper.so - } - reverb { - path /system/lib/soundfx/libreverbwrapper.so - } - qcbassboost { - path /vendor/lib/soundfx/libqcbassboost.so - } - qcvirt { - path /vendor/lib/soundfx/libqcvirt.so - } - qcreverb { - path /vendor/lib/soundfx/libqcreverb.so - } - visualizer_sw { - path /system/lib/soundfx/libvisualizer.so - } - visualizer_hw { - path /system/lib/soundfx/libqcomvisualizer.so - } - downmix { - path /system/lib/soundfx/libdownmix.so - } - loudness_enhancer { - path /system/lib/soundfx/libldnhncr.so - } - proxy { - path /system/lib/soundfx/libeffectproxy.so - } - offload_bundle { - path /system/lib/soundfx/libqcompostprocbundle.so - } - audio_pre_processing { - path /system/lib/soundfx/libqcomvoiceprocessing.so - } - loudness_enhancer { - path /system/lib/soundfx/libldnhncr.so - } - volume_listener { - path /system/lib/soundfx/libvolumelistener.so - } - dirac { - path /system/lib/soundfx/libdirac.so - } -} - -# Default pre-processing library. Add to audio_effect.conf "libraries" section if -# audio HAL implements support for default software audio pre-processing effects -# -# pre_processing { -# path /system/lib/soundfx/libaudiopreprocessing.so -# } - -# list of effects to load. Each effect element must contain a "library" and a "uuid" element. -# The value of the "library" element must correspond to the name of one library element in the -# "libraries" element. -# The name of the effect element is indicative, only the value of the "uuid" element -# designates the effect. -# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the -# generic effect type UUID. -# effects { -# { -# library -# uuid -# } -# ... -# } - -effects { - -# additions for the proxy implementation -# Proxy implementation - #effectname { - #library proxy - #uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - - # SW implemetation of the effect. Added as a node under the proxy to - # indicate this as a sub effect. - #libsw { - #library libSW - #uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy - #} End of SW effect - - # HW implementation of the effect. Added as a node under the proxy to - # indicate this as a sub effect. - #libhw { - #library libHW - #uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz - #}End of HW effect - #} End of effect proxy - - bassboost { - library proxy - uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b - - libsw { - library qcbassboost - uuid 23aca180-44bd-11e2-bcfd-0800200c9a66 - } - - libhw { - library offload_bundle - uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b - } - } - virtualizer { - library proxy - uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b - - libsw { - library qcvirt - uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e - } - - libhw { - library offload_bundle - uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b - } - } - equalizer { - library proxy - uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b - - libsw { - library bundle - uuid ce772f20-847d-11df-bb17-0002a5d5c51b - } - - libhw { - library offload_bundle - uuid a0dac280-401c-11e3-9379-0002a5d5c51b - } - } - volume { - library bundle - uuid 119341a0-8469-11df-81f9-0002a5d5c51b - } - reverb_env_aux { - library proxy - uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b - - libsw { - library qcreverb - uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217 - } - - libhw { - library offload_bundle - uuid 79a18026-18fd-4185-8233-0002a5d5c51b - } - } - reverb_env_ins { - library proxy - uuid b707403a-a1c1-4291-9573-0002a5d5c51b - - libsw { - library qcreverb - uuid 791fff8b-8129-4655-83a4-59bc61034c3a - } - - libhw { - library offload_bundle - uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b - } - } - reverb_pre_aux { - library proxy - uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b - - libsw { - library qcreverb - uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a - } - - libhw { - library offload_bundle - uuid 6987be09-b142-4b41-9056-0002a5d5c51b - } - } - reverb_pre_ins { - library proxy - uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b - - libsw { - library qcreverb - uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e - } - - libhw { - library offload_bundle - uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b - } - } - visualizer { - library proxy - uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c - - libsw { - library visualizer_sw - uuid d069d9e0-8329-11df-9168-0002a5d5c51b - } - - libhw { - library visualizer_hw - uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b - } - } - downmix { - library downmix - uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f - } - loudness_enhancer { - library loudness_enhancer - uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c - } - aec { - library audio_pre_processing - uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109 - } - ns { - library audio_pre_processing - uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8 - } - music_helper { - library volume_listener - uuid 08b8b058-0590-11e5-ac71-0025b32654a0 - } - ring_helper { - library volume_listener - uuid 0956df94-0590-11e5-bdbe-0025b32654a0 - } - alarm_helper { - library volume_listener - uuid 09f303e2-0590-11e5-8fdb-0025b32654a0 - } - # voice_helper is called when stream type is voice_call in VoIP usecase - voice_helper { - library volume_listener - uuid 0ace5c08-0590-11e5-ae9e-0025b32654a0 - } - notification_helper { - library volume_listener - uuid 0b776dde-0590-11e5-81ba-0025b32654a0 - } - dirac { - library dirac - uuid e069d9e0-8329-11df-9168-0002a5d5c51b - } -} - -# additional effect from vendor -# UUID generated using version 1 - -output_session_processing { - music { - music_helper { - } - } - ring { - ring_helper { - } - } - alarm { - alarm_helper { - } - } - # stream type voice_call is used for VoIP call - voice_call { - voice_helper { - } - } - notification { - notification_helper { - } - } -} - -# Audio global processor configurations. -# The global processor configuration consists in a list of effects elements. -# The name of the effect element must be the name of one of the effects in -# the "effects" list of the file. -# Each effect element may optionally contain a list of parameters and their -# default value to apply when the pre processor effect is created. -# A parameter is defined by a "param" element and a "value" element. Each of these elements -# consists in one or more elements specifying a type followed by a value. -# The types defined are: "int", "short", "float", "bool" and "string" -# When both "param" and "value" are a single int, a simple form is allowed where just -# the param and value pair is present in the parameter description -# global_processing { -# { -# { -# param { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# value { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# } -# { } -# ... -# } -# ... -# } -global_processing { - dirac { - bl@lakala { - param { - int 6 - } - value { - string *com.lakala.android - } - } - bl@jawboneup { - param { - int 6 - } - value { - string *com.jawbone.up - } - } - bl@hojyremote { - param { - int 6 - } - value { - string *com.hojy.hremote - } - } - } - } - -# Added aec, ns effects for voice_communication, which are supported by the board - -pre_processing { - voice_communication { - aec { - } - ns { - } - } -} - -# Default pre-processing effects. Add to audio_effect.conf "effects" section if -# audio HAL implements support for them. -# -# agc { -# library pre_processing -# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b -# } -# aec { -# library pre_processing -# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b -# } -# ns { -# library pre_processing -# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b -# } - -# Audio preprocessor configurations. -# The pre processor configuration consists in a list of elements each describing -# pre processor settings for a given input source. Valid input source names are: -# "mic", "camcorder", "voice_recognition", "voice_communication" -# Each input source element contains a list of effects elements. The name of the effect -# element must be the name of one of the effects in the "effects" list of the file. -# Each effect element may optionally contain a list of parameters and their -# default value to apply when the pre processor effect is created. -# A parameter is defined by a "param" element and a "value" element. Each of these elements -# consists in one or more elements specifying a type followed by a value. -# The types defined are: "int", "short", "float", "bool" and "string" -# When both "param" and "value" are a single int, a simple form is allowed where just -# the param and value pair is present in the parameter description -# pre_processing { -# { -# { -# { -# param { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# value { -# int|short|float|bool|string -# [ int|short|float|bool|string ] -# ... -# } -# } -# { } -# ... -# } -# ... -# } -# ... -# } - -# -# TODO: add default audio pre processor configurations after debug and tuning phase -# diff --git a/device.mk b/device.mk index 6b8dd213..f2c9f324 100644 --- a/device.mk +++ b/device.mk @@ -104,7 +104,6 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ $(LOCAL_PATH)/audio/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ - $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \ $(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/listen_platform_info.xml:system/etc/listen_platform_info.xml \ From 017983a3e943673a7ad91b22917244e3d1a38a73 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Thu, 24 Aug 2017 09:28:15 +0300 Subject: [PATCH 60/62] AEX.mod: cleanup --- BoardConfig.mk | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index fd1d391e..57cf70ab 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -51,23 +51,15 @@ BOARD_KERNEL_TAGS_OFFSET := 0x00000100 BOARD_RAMDISK_OFFSET := 0x01000000 TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_HEADER_ARCH := arm64 -#TARGET_KERNEL_CONFIG := aosp_gemini_defconfig -#TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8996 -#TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- - #Stock kernel build definitions #TARGET_KERNEL_CONFIG := gemini_defconfig #TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8996 #TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android- -#UberTC -#KERNEL_TOOLCHAIN := /home/android/aex/toolchain/ubertc/bin - - #EAS kernel build definitions -TARGET_KERNEL_CONFIG := b--b_defconfig -TARGET_KERNEL_SOURCE := kernel/xiaomi/b-b_msm8996 -KERNEL_TOOLCHAIN := /home/android/aex/kernel/xiaomi/b-b_msm8996/android-toolchain-arm64/bin +TARGET_KERNEL_CONFIG := mod_defconfig +TARGET_KERNEL_SOURCE := kernel/xiaomi/eas_msm8996 +KERNEL_TOOLCHAIN := /home/android/aex/kernel/xiaomi/eas_msm8996/android-toolchain-arm64/bin TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi- From 8ebc0d8498fa6ddb5d8a891fb777577112af5f5d Mon Sep 17 00:00:00 2001 From: DennySPB Date: Thu, 24 Aug 2017 11:09:03 +0300 Subject: [PATCH 61/62] AEX.Mod: Xiaomi Doze --- device.mk | 4 +- doze/Android.mk | 7 +- doze/AndroidManifest.xml | 39 ++--- doze/proguard.flags | 5 - doze/res/values-af/strings.xml | 19 +++ doze/res/values-am/strings.xml | 19 +++ doze/res/values-ar/strings.xml | 19 +++ doze/res/values-as-rIN/strings.xml | 19 +++ doze/res/values-ast-rES/strings.xml | 19 +++ doze/res/values-az-rAZ/strings.xml | 19 +++ doze/res/values-be/strings.xml | 19 +++ doze/res/values-bg/strings.xml | 32 ++++ doze/res/values-bn-rBD/strings.xml | 19 +++ doze/res/values-br-rFR/strings.xml | 19 +++ doze/res/values-bs-rBA/strings.xml | 19 +++ doze/res/values-ca/strings.xml | 32 ++++ doze/res/values-cs/strings.xml | 32 ++++ doze/res/values-csb-rPL/strings.xml | 19 +++ doze/res/values-cy/strings.xml | 19 +++ doze/res/values-da/strings.xml | 32 ++++ doze/res/values-de/strings.xml | 32 ++++ doze/res/values-el/strings.xml | 31 ++++ doze/res/values-en-rAU/strings.xml | 19 +++ doze/res/values-en-rGB/strings.xml | 19 +++ doze/res/values-en-rIN/strings.xml | 19 +++ doze/res/values-en-rPT/strings.xml | 19 +++ doze/res/values-eo/strings.xml | 19 +++ doze/res/values-es-rCO/strings.xml | 19 +++ doze/res/values-es-rMX/strings.xml | 19 +++ doze/res/values-es-rUS/strings.xml | 19 +++ doze/res/values-es/strings.xml | 19 +++ doze/res/values-et-rEE/strings.xml | 19 +++ doze/res/values-eu-rES/strings.xml | 32 ++++ doze/res/values-fa/strings.xml | 19 +++ doze/res/values-fi/strings.xml | 32 ++++ doze/res/values-fil-rPH/strings.xml | 19 +++ doze/res/values-fr-rCA/strings.xml | 19 +++ doze/res/values-fr/strings.xml | 26 +++ doze/res/values-frp-rIT/strings.xml | 19 +++ doze/res/values-fy-rNL/strings.xml | 19 +++ doze/res/values-ga-rIE/strings.xml | 19 +++ doze/res/values-gd-rGB/strings.xml | 19 +++ doze/res/values-gl-rES/strings.xml | 32 ++++ doze/res/values-gu-rIN/strings.xml | 19 +++ doze/res/values-hi/strings.xml | 19 +++ doze/res/values-hr/strings.xml | 32 ++++ doze/res/values-hu/strings.xml | 32 ++++ doze/res/values-hy-rAM/strings.xml | 19 +++ doze/res/values-in/strings.xml | 19 +++ doze/res/values-is-rIS/strings.xml | 19 +++ doze/res/values-it/strings.xml | 32 ++++ doze/res/values-iw/strings.xml | 30 ++++ doze/res/values-ja/strings.xml | 32 ++++ doze/res/values-ka-rGE/strings.xml | 19 +++ doze/res/values-kk-rKZ/strings.xml | 19 +++ doze/res/values-km-rKH/strings.xml | 19 +++ doze/res/values-kn-rIN/strings.xml | 19 +++ doze/res/values-ko/strings.xml | 19 +++ doze/res/values-ku/strings.xml | 19 +++ doze/res/values-ky-rKG/strings.xml | 19 +++ doze/res/values-lb/strings.xml | 19 +++ doze/res/values-lo-rLA/strings.xml | 19 +++ doze/res/values-lt/strings.xml | 19 +++ doze/res/values-lv/strings.xml | 19 +++ doze/res/values-mk-rMK/strings.xml | 19 +++ doze/res/values-ml-rIN/strings.xml | 19 +++ doze/res/values-mn-rMN/strings.xml | 19 +++ doze/res/values-mr-rIN/strings.xml | 19 +++ doze/res/values-ms-rMY/strings.xml | 19 +++ doze/res/values-my-rMM/strings.xml | 19 +++ doze/res/values-nb/strings.xml | 32 ++++ doze/res/values-ne-rNP/strings.xml | 19 +++ doze/res/values-nl/strings.xml | 32 ++++ doze/res/values-oc-rFR/strings.xml | 19 +++ doze/res/values-or-rIN/strings.xml | 19 +++ doze/res/values-pa-rIN/strings.xml | 19 +++ doze/res/values-pl/strings.xml | 31 ++++ doze/res/values-pt-rBR/strings.xml | 32 ++++ doze/res/values-pt-rPT/strings.xml | 32 ++++ doze/res/values-rm/strings.xml | 19 +++ doze/res/values-ro/strings.xml | 19 +++ doze/res/values-ru/strings.xml | 32 ++++ doze/res/values-si-rLK/strings.xml | 19 +++ doze/res/values-sk/strings.xml | 19 +++ doze/res/values-sl/strings.xml | 32 ++++ doze/res/values-sq-rAL/strings.xml | 19 +++ doze/res/values-sr/strings.xml | 32 ++++ doze/res/values-sv/strings.xml | 25 +++ doze/res/values-sw/strings.xml | 19 +++ doze/res/values-ta-rIN/strings.xml | 19 +++ doze/res/values-te-rIN/strings.xml | 19 +++ doze/res/values-th/strings.xml | 19 +++ doze/res/values-tr/strings.xml | 19 +++ doze/res/values-ug/strings.xml | 19 +++ doze/res/values-uk/strings.xml | 19 +++ doze/res/values-ur-rPK/strings.xml | 19 +++ doze/res/values-uz-rUZ/strings.xml | 19 +++ doze/res/values-vi/strings.xml | 19 +++ doze/res/values-zh-rCN/strings.xml | 32 ++++ doze/res/values-zh-rHK/strings.xml | 19 +++ doze/res/values-zh-rTW/strings.xml | 19 +++ doze/res/values-zu/strings.xml | 19 +++ doze/res/values/strings.xml | 35 ++++ doze/res/xml/doze_settings.xml | 25 ++- .../devicesettings/res/values-af/strings.xml | 129 +++++++++++++++ .../devicesettings/res/values-am/strings.xml | 47 ++++++ .../devicesettings/res/values-ar/strings.xml | 92 +++++++++++ .../res/values-as-rIN/strings.xml | 85 ++++++++++ .../res/values-ast-rES/strings.xml | 127 ++++++++++++++ .../res/values-az-rAZ/strings.xml | 73 ++++++++ .../res/values-be-rBY/strings.xml | 72 ++++++++ .../devicesettings/res/values-be/strings.xml | 85 ++++++++++ .../devicesettings/res/values-bg/strings.xml | 131 +++++++++++++++ .../res/values-bn-rBD/strings.xml | 89 ++++++++++ .../res/values-br-rFR/strings.xml | 47 ++++++ .../res/values-bs-rBA/strings.xml | 47 ++++++ .../devicesettings/res/values-ca/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-cs/strings.xml | 131 +++++++++++++++ .../res/values-csb-rPL/strings.xml | 47 ++++++ .../devicesettings/res/values-cy/strings.xml | 47 ++++++ .../devicesettings/res/values-da/strings.xml | 127 ++++++++++++++ .../devicesettings/res/values-de/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-el/strings.xml | 110 ++++++++++++ .../res/values-en-rAU/strings.xml | 131 +++++++++++++++ .../res/values-en-rGB/strings.xml | 131 +++++++++++++++ .../res/values-en-rIN/strings.xml | 131 +++++++++++++++ .../res/values-en-rPT/strings.xml | 47 ++++++ .../devicesettings/res/values-eo/strings.xml | 62 +++++++ .../res/values-es-rCO/strings.xml | 47 ++++++ .../res/values-es-rMX/strings.xml | 64 +++++++ .../res/values-es-rUS/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-es/strings.xml | 131 +++++++++++++++ .../res/values-et-rEE/strings.xml | 88 ++++++++++ .../res/values-eu-rES/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-fa/strings.xml | 73 ++++++++ .../devicesettings/res/values-fi/strings.xml | 131 +++++++++++++++ .../res/values-fil-rPH/strings.xml | 47 ++++++ .../res/values-fr-rCA/strings.xml | 47 ++++++ .../devicesettings/res/values-fr/strings.xml | 129 +++++++++++++++ .../res/values-frp-rIT/strings.xml | 47 ++++++ .../res/values-fy-rNL/strings.xml | 47 ++++++ .../res/values-ga-rIE/strings.xml | 47 ++++++ .../res/values-gd-rGB/strings.xml | 47 ++++++ .../res/values-gl-rES/strings.xml | 131 +++++++++++++++ .../res/values-gu-rIN/strings.xml | 90 ++++++++++ .../devicesettings/res/values-hi/strings.xml | 47 ++++++ .../devicesettings/res/values-hr/strings.xml | 127 ++++++++++++++ .../devicesettings/res/values-hu/strings.xml | 128 ++++++++++++++ .../res/values-hy-rAM/strings.xml | 47 ++++++ .../devicesettings/res/values-in/strings.xml | 124 ++++++++++++++ .../res/values-is-rIS/strings.xml | 47 ++++++ .../devicesettings/res/values-it/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-iw/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-ja/strings.xml | 131 +++++++++++++++ .../res/values-ka-rGE/strings.xml | 47 ++++++ .../res/values-kk-rKZ/strings.xml | 47 ++++++ .../res/values-km-rKH/strings.xml | 47 ++++++ .../res/values-kn-rIN/strings.xml | 85 ++++++++++ .../devicesettings/res/values-ko/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-ku/strings.xml | 47 ++++++ .../res/values-ky-rKG/strings.xml | 47 ++++++ .../devicesettings/res/values-lb/strings.xml | 92 +++++++++++ .../res/values-lo-rLA/strings.xml | 47 ++++++ .../devicesettings/res/values-lt/strings.xml | 70 ++++++++ .../devicesettings/res/values-lv/strings.xml | 56 +++++++ .../res/values-mk-rMK/strings.xml | 47 ++++++ .../res/values-ml-rIN/strings.xml | 85 ++++++++++ .../res/values-mn-rMN/strings.xml | 47 ++++++ .../res/values-mr-rIN/strings.xml | 85 ++++++++++ .../res/values-ms-rMY/strings.xml | 47 ++++++ .../res/values-my-rMM/strings.xml | 47 ++++++ .../devicesettings/res/values-nb/strings.xml | 131 +++++++++++++++ .../res/values-ne-rNP/strings.xml | 47 ++++++ .../devicesettings/res/values-nl/strings.xml | 131 +++++++++++++++ .../res/values-oc-rFR/strings.xml | 47 ++++++ .../res/values-or-rIN/strings.xml | 85 ++++++++++ .../res/values-pa-rIN/strings.xml | 47 ++++++ .../devicesettings/res/values-pl/strings.xml | 122 ++++++++++++++ .../res/values-pt-rBR/strings.xml | 129 +++++++++++++++ .../res/values-pt-rPT/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-rm/strings.xml | 47 ++++++ .../devicesettings/res/values-ro/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-ru/strings.xml | 129 +++++++++++++++ .../res/values-si-rLK/strings.xml | 47 ++++++ .../devicesettings/res/values-sk/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-sl/strings.xml | 131 +++++++++++++++ .../res/values-sq-rAL/strings.xml | 125 ++++++++++++++ .../res/values-sr-rCS/strings.xml | 47 ++++++ .../devicesettings/res/values-sr/strings.xml | 127 ++++++++++++++ .../devicesettings/res/values-sv/strings.xml | 105 ++++++++++++ .../devicesettings/res/values-sw/strings.xml | 47 ++++++ .../res/values-ta-rIN/strings.xml | 85 ++++++++++ .../res/values-te-rIN/strings.xml | 85 ++++++++++ .../devicesettings/res/values-th/strings.xml | 92 +++++++++++ .../devicesettings/res/values-tr/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-ug/strings.xml | 92 +++++++++++ .../devicesettings/res/values-uk/strings.xml | 131 +++++++++++++++ .../res/values-ur-rPK/strings.xml | 47 ++++++ .../res/values-uz-rUZ/strings.xml | 47 ++++++ .../devicesettings/res/values-vi/strings.xml | 129 +++++++++++++++ .../res/values-zh-rCN/strings.xml | 131 +++++++++++++++ .../res/values-zh-rHK/strings.xml | 64 +++++++ .../res/values-zh-rTW/strings.xml | 131 +++++++++++++++ .../devicesettings/res/values-zu/strings.xml | 47 ++++++ .../devicesettings/res/values/strings.xml | 156 ++++++++++++++++++ .../settings/doze/DozeSettings.java | 148 +++++++++++++++++ .../settings/doze/ProximitySensor.java | 21 ++- .../cyanogenmod/settings/doze/TiltSensor.java | 9 +- .../com/cyanogenmod/settings/doze/Utils.java | 33 ++-- 209 files changed, 11395 insertions(+), 71 deletions(-) create mode 100644 doze/res/values-af/strings.xml create mode 100644 doze/res/values-am/strings.xml create mode 100644 doze/res/values-ar/strings.xml create mode 100644 doze/res/values-as-rIN/strings.xml create mode 100644 doze/res/values-ast-rES/strings.xml create mode 100644 doze/res/values-az-rAZ/strings.xml create mode 100644 doze/res/values-be/strings.xml create mode 100644 doze/res/values-bg/strings.xml create mode 100644 doze/res/values-bn-rBD/strings.xml create mode 100644 doze/res/values-br-rFR/strings.xml create mode 100644 doze/res/values-bs-rBA/strings.xml create mode 100644 doze/res/values-ca/strings.xml create mode 100644 doze/res/values-cs/strings.xml create mode 100644 doze/res/values-csb-rPL/strings.xml create mode 100644 doze/res/values-cy/strings.xml create mode 100644 doze/res/values-da/strings.xml create mode 100644 doze/res/values-de/strings.xml create mode 100644 doze/res/values-el/strings.xml create mode 100644 doze/res/values-en-rAU/strings.xml create mode 100644 doze/res/values-en-rGB/strings.xml create mode 100644 doze/res/values-en-rIN/strings.xml create mode 100644 doze/res/values-en-rPT/strings.xml create mode 100644 doze/res/values-eo/strings.xml create mode 100644 doze/res/values-es-rCO/strings.xml create mode 100644 doze/res/values-es-rMX/strings.xml create mode 100644 doze/res/values-es-rUS/strings.xml create mode 100644 doze/res/values-es/strings.xml create mode 100644 doze/res/values-et-rEE/strings.xml create mode 100644 doze/res/values-eu-rES/strings.xml create mode 100644 doze/res/values-fa/strings.xml create mode 100644 doze/res/values-fi/strings.xml create mode 100644 doze/res/values-fil-rPH/strings.xml create mode 100644 doze/res/values-fr-rCA/strings.xml create mode 100644 doze/res/values-fr/strings.xml create mode 100644 doze/res/values-frp-rIT/strings.xml create mode 100644 doze/res/values-fy-rNL/strings.xml create mode 100644 doze/res/values-ga-rIE/strings.xml create mode 100644 doze/res/values-gd-rGB/strings.xml create mode 100644 doze/res/values-gl-rES/strings.xml create mode 100644 doze/res/values-gu-rIN/strings.xml create mode 100644 doze/res/values-hi/strings.xml create mode 100644 doze/res/values-hr/strings.xml create mode 100644 doze/res/values-hu/strings.xml create mode 100644 doze/res/values-hy-rAM/strings.xml create mode 100644 doze/res/values-in/strings.xml create mode 100644 doze/res/values-is-rIS/strings.xml create mode 100644 doze/res/values-it/strings.xml create mode 100644 doze/res/values-iw/strings.xml create mode 100644 doze/res/values-ja/strings.xml create mode 100644 doze/res/values-ka-rGE/strings.xml create mode 100644 doze/res/values-kk-rKZ/strings.xml create mode 100644 doze/res/values-km-rKH/strings.xml create mode 100644 doze/res/values-kn-rIN/strings.xml create mode 100644 doze/res/values-ko/strings.xml create mode 100644 doze/res/values-ku/strings.xml create mode 100644 doze/res/values-ky-rKG/strings.xml create mode 100644 doze/res/values-lb/strings.xml create mode 100644 doze/res/values-lo-rLA/strings.xml create mode 100644 doze/res/values-lt/strings.xml create mode 100644 doze/res/values-lv/strings.xml create mode 100644 doze/res/values-mk-rMK/strings.xml create mode 100644 doze/res/values-ml-rIN/strings.xml create mode 100644 doze/res/values-mn-rMN/strings.xml create mode 100644 doze/res/values-mr-rIN/strings.xml create mode 100644 doze/res/values-ms-rMY/strings.xml create mode 100644 doze/res/values-my-rMM/strings.xml create mode 100644 doze/res/values-nb/strings.xml create mode 100644 doze/res/values-ne-rNP/strings.xml create mode 100644 doze/res/values-nl/strings.xml create mode 100644 doze/res/values-oc-rFR/strings.xml create mode 100644 doze/res/values-or-rIN/strings.xml create mode 100644 doze/res/values-pa-rIN/strings.xml create mode 100644 doze/res/values-pl/strings.xml create mode 100644 doze/res/values-pt-rBR/strings.xml create mode 100644 doze/res/values-pt-rPT/strings.xml create mode 100644 doze/res/values-rm/strings.xml create mode 100644 doze/res/values-ro/strings.xml create mode 100644 doze/res/values-ru/strings.xml create mode 100644 doze/res/values-si-rLK/strings.xml create mode 100644 doze/res/values-sk/strings.xml create mode 100644 doze/res/values-sl/strings.xml create mode 100644 doze/res/values-sq-rAL/strings.xml create mode 100644 doze/res/values-sr/strings.xml create mode 100644 doze/res/values-sv/strings.xml create mode 100644 doze/res/values-sw/strings.xml create mode 100644 doze/res/values-ta-rIN/strings.xml create mode 100644 doze/res/values-te-rIN/strings.xml create mode 100644 doze/res/values-th/strings.xml create mode 100644 doze/res/values-tr/strings.xml create mode 100644 doze/res/values-ug/strings.xml create mode 100644 doze/res/values-uk/strings.xml create mode 100644 doze/res/values-ur-rPK/strings.xml create mode 100644 doze/res/values-uz-rUZ/strings.xml create mode 100644 doze/res/values-vi/strings.xml create mode 100644 doze/res/values-zh-rCN/strings.xml create mode 100644 doze/res/values-zh-rHK/strings.xml create mode 100644 doze/res/values-zh-rTW/strings.xml create mode 100644 doze/res/values-zu/strings.xml create mode 100644 doze/res/values/strings.xml create mode 100644 doze/resources/devicesettings/res/values-af/strings.xml create mode 100644 doze/resources/devicesettings/res/values-am/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ar/strings.xml create mode 100644 doze/resources/devicesettings/res/values-as-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ast-rES/strings.xml create mode 100644 doze/resources/devicesettings/res/values-az-rAZ/strings.xml create mode 100644 doze/resources/devicesettings/res/values-be-rBY/strings.xml create mode 100644 doze/resources/devicesettings/res/values-be/strings.xml create mode 100644 doze/resources/devicesettings/res/values-bg/strings.xml create mode 100644 doze/resources/devicesettings/res/values-bn-rBD/strings.xml create mode 100644 doze/resources/devicesettings/res/values-br-rFR/strings.xml create mode 100644 doze/resources/devicesettings/res/values-bs-rBA/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ca/strings.xml create mode 100644 doze/resources/devicesettings/res/values-cs/strings.xml create mode 100644 doze/resources/devicesettings/res/values-csb-rPL/strings.xml create mode 100644 doze/resources/devicesettings/res/values-cy/strings.xml create mode 100644 doze/resources/devicesettings/res/values-da/strings.xml create mode 100644 doze/resources/devicesettings/res/values-de/strings.xml create mode 100644 doze/resources/devicesettings/res/values-el/strings.xml create mode 100644 doze/resources/devicesettings/res/values-en-rAU/strings.xml create mode 100644 doze/resources/devicesettings/res/values-en-rGB/strings.xml create mode 100644 doze/resources/devicesettings/res/values-en-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-en-rPT/strings.xml create mode 100644 doze/resources/devicesettings/res/values-eo/strings.xml create mode 100644 doze/resources/devicesettings/res/values-es-rCO/strings.xml create mode 100644 doze/resources/devicesettings/res/values-es-rMX/strings.xml create mode 100644 doze/resources/devicesettings/res/values-es-rUS/strings.xml create mode 100644 doze/resources/devicesettings/res/values-es/strings.xml create mode 100644 doze/resources/devicesettings/res/values-et-rEE/strings.xml create mode 100644 doze/resources/devicesettings/res/values-eu-rES/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fa/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fi/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fil-rPH/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fr-rCA/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fr/strings.xml create mode 100644 doze/resources/devicesettings/res/values-frp-rIT/strings.xml create mode 100644 doze/resources/devicesettings/res/values-fy-rNL/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ga-rIE/strings.xml create mode 100644 doze/resources/devicesettings/res/values-gd-rGB/strings.xml create mode 100644 doze/resources/devicesettings/res/values-gl-rES/strings.xml create mode 100644 doze/resources/devicesettings/res/values-gu-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-hi/strings.xml create mode 100644 doze/resources/devicesettings/res/values-hr/strings.xml create mode 100644 doze/resources/devicesettings/res/values-hu/strings.xml create mode 100644 doze/resources/devicesettings/res/values-hy-rAM/strings.xml create mode 100644 doze/resources/devicesettings/res/values-in/strings.xml create mode 100644 doze/resources/devicesettings/res/values-is-rIS/strings.xml create mode 100644 doze/resources/devicesettings/res/values-it/strings.xml create mode 100644 doze/resources/devicesettings/res/values-iw/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ja/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ka-rGE/strings.xml create mode 100644 doze/resources/devicesettings/res/values-kk-rKZ/strings.xml create mode 100644 doze/resources/devicesettings/res/values-km-rKH/strings.xml create mode 100644 doze/resources/devicesettings/res/values-kn-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ko/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ku/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ky-rKG/strings.xml create mode 100644 doze/resources/devicesettings/res/values-lb/strings.xml create mode 100644 doze/resources/devicesettings/res/values-lo-rLA/strings.xml create mode 100644 doze/resources/devicesettings/res/values-lt/strings.xml create mode 100644 doze/resources/devicesettings/res/values-lv/strings.xml create mode 100644 doze/resources/devicesettings/res/values-mk-rMK/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ml-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-mn-rMN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-mr-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ms-rMY/strings.xml create mode 100644 doze/resources/devicesettings/res/values-my-rMM/strings.xml create mode 100644 doze/resources/devicesettings/res/values-nb/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ne-rNP/strings.xml create mode 100644 doze/resources/devicesettings/res/values-nl/strings.xml create mode 100644 doze/resources/devicesettings/res/values-oc-rFR/strings.xml create mode 100644 doze/resources/devicesettings/res/values-or-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-pa-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-pl/strings.xml create mode 100644 doze/resources/devicesettings/res/values-pt-rBR/strings.xml create mode 100644 doze/resources/devicesettings/res/values-pt-rPT/strings.xml create mode 100644 doze/resources/devicesettings/res/values-rm/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ro/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ru/strings.xml create mode 100644 doze/resources/devicesettings/res/values-si-rLK/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sk/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sl/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sq-rAL/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sr-rCS/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sr/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sv/strings.xml create mode 100644 doze/resources/devicesettings/res/values-sw/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ta-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-te-rIN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-th/strings.xml create mode 100644 doze/resources/devicesettings/res/values-tr/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ug/strings.xml create mode 100644 doze/resources/devicesettings/res/values-uk/strings.xml create mode 100644 doze/resources/devicesettings/res/values-ur-rPK/strings.xml create mode 100644 doze/resources/devicesettings/res/values-uz-rUZ/strings.xml create mode 100644 doze/resources/devicesettings/res/values-vi/strings.xml create mode 100644 doze/resources/devicesettings/res/values-zh-rCN/strings.xml create mode 100644 doze/resources/devicesettings/res/values-zh-rHK/strings.xml create mode 100644 doze/resources/devicesettings/res/values-zh-rTW/strings.xml create mode 100644 doze/resources/devicesettings/res/values-zu/strings.xml create mode 100644 doze/resources/devicesettings/res/values/strings.xml create mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeSettings.java diff --git a/device.mk b/device.mk index f2c9f324..1c048740 100644 --- a/device.mk +++ b/device.mk @@ -167,8 +167,8 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/calib.cfg:system/etc/calib.cfg # Doze mode -#PRODUCT_PACKAGES += \ -# XiaomiDoze +PRODUCT_PACKAGES += \ + XiaomiDoze # Fingerprint PRODUCT_PACKAGES += \ diff --git a/doze/Android.mk b/doze/Android.mk index 734d48b2..beb28bf8 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -8,17 +8,18 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_PACKAGE_NAME := XiaomiDoze LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true + LOCAL_STATIC_JAVA_LIBRARIES := \ android-support-v4 \ android-support-v13 \ android-support-v7-recyclerview \ android-support-v7-preference \ android-support-v7-appcompat \ - android-support-v14-preference + android-support-v14-preference LOCAL_RESOURCE_DIR := \ $(LOCAL_PATH)/res \ - $(LOCAL_PATH)/../../../../packages/resources/devicesettings/res \ + $(LOCAL_PATH)/resources/devicesettings/res \ frameworks/support/v7/preference/res \ frameworks/support/v14/preference/res \ frameworks/support/v7/appcompat/res \ @@ -29,8 +30,6 @@ LOCAL_AAPT_FLAGS := --auto-add-overlay \ LOCAL_PROGUARD_FLAG_FILES := proguard.flags -include frameworks/base/packages/SettingsLib/common.mk - include $(BUILD_PACKAGE) include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml index 5e311766..ec7e5bed 100644 --- a/doze/AndroidManifest.xml +++ b/doze/AndroidManifest.xml @@ -1,20 +1,4 @@ - + android:minSdkVersion="21" + android:targetSdkVersion="21"/> - + - + android:theme="@android:style/Theme.Material.Settings"> - - + + + diff --git a/doze/proguard.flags b/doze/proguard.flags index 7f3d4c73..a21e62fb 100644 --- a/doze/proguard.flags +++ b/doze/proguard.flags @@ -1,8 +1,3 @@ --keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet); -} - --keep class ** extends android.support.v14.preference.PreferenceFragment -keep class com.cyanogenmod.settings.doze.* { *; } diff --git a/doze/res/values-af/strings.xml b/doze/res/values-af/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-af/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-am/strings.xml b/doze/res/values-am/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-am/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ar/strings.xml b/doze/res/values-ar/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ar/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-as-rIN/strings.xml b/doze/res/values-as-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-as-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ast-rES/strings.xml b/doze/res/values-ast-rES/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ast-rES/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-az-rAZ/strings.xml b/doze/res/values-az-rAZ/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-az-rAZ/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-be/strings.xml b/doze/res/values-be/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-be/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-bg/strings.xml b/doze/res/values-bg/strings.xml new file mode 100644 index 00000000..6853d8f9 --- /dev/null +++ b/doze/res/values-bg/strings.xml @@ -0,0 +1,32 @@ + + + + + Атмосферен екран + Събуждане на екрана при получаване на известие + + Сензор за наклон + Отговор + Светлинна индикация, когато устройството е вдигнато + + Сензор за близост + Махане с ръка + Показва известията при прекарване на ръка над екрана + Джоб + Показва известията, когато извадите устройството от джоба си + + ОK + Помощ + Тези функции използват сензорни събития да показват известия, когато устройството е в състояние на покой. Избраният сензор се активира само когато устройството получава уведомление, което помага за намаляване на използването на батерията. Има и опция за активиране на избрания сензор, така че екранът се изключва, което ще доведе до увеличаване на използването на батерията. + diff --git a/doze/res/values-bn-rBD/strings.xml b/doze/res/values-bn-rBD/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-bn-rBD/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-br-rFR/strings.xml b/doze/res/values-br-rFR/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-br-rFR/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-bs-rBA/strings.xml b/doze/res/values-bs-rBA/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-bs-rBA/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ca/strings.xml b/doze/res/values-ca/strings.xml new file mode 100644 index 00000000..8903c2c5 --- /dev/null +++ b/doze/res/values-ca/strings.xml @@ -0,0 +1,32 @@ + + + + + Pantalla ambient + Encen la pantalla quan rebis notificacions + + Sensor d\'inclinació + Contesta + Mostra les notificacions quan es reculli el dispositiu + + Sensor de proximitat + Passa la mà + Mostra notificacions quan es passi la mà + Butxaca + Mostra notificacions quan te\'l treguis de la butxaca + + D\'ACORD + Ajuda + 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. + diff --git a/doze/res/values-cs/strings.xml b/doze/res/values-cs/strings.xml new file mode 100644 index 00000000..3c6e7a64 --- /dev/null +++ b/doze/res/values-cs/strings.xml @@ -0,0 +1,32 @@ + + + + + Ambientní displej + Probudit obrazovku při upozornění + + Senzor náklonu + Sebrání + Pulzovat oznámení při zvednutí zařízení + + Senzor přiblížení + Mávání rukou + Upozornit pulsováním při zamáváním rukou + Kapsa + Upozornit pulsováním při vyjmutí z kapsy + + OK + Uživatelská příručka + 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í. + diff --git a/doze/res/values-csb-rPL/strings.xml b/doze/res/values-csb-rPL/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-csb-rPL/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-cy/strings.xml b/doze/res/values-cy/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-cy/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-da/strings.xml b/doze/res/values-da/strings.xml new file mode 100644 index 00000000..f6f9e6fc --- /dev/null +++ b/doze/res/values-da/strings.xml @@ -0,0 +1,32 @@ + + + + + Inaktivitetsvisning + Tænder skærmen, når du modtager notifikationer + + Tilt-sensor + Samle op + Blink med notifikationerne når enheden tages op + + Berøringssensor + Vink med hånden + Vibrér, hvis der er notifikationer, når du vinker over skærmen + Lomme + Vibrér, hvis der er notifikationer, når telefonen tages op ad lommen + + OK + Hjælp + 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. + diff --git a/doze/res/values-de/strings.xml b/doze/res/values-de/strings.xml new file mode 100644 index 00000000..75e5cb13 --- /dev/null +++ b/doze/res/values-de/strings.xml @@ -0,0 +1,32 @@ + + + + + Inaktivitätsdisplay + Bildschirm einschalten, wenn Sie Benachrichtigungen erhalten + + Neigungssensor + Aufnehmen + Benachrichtigungen kurz einblenden, wenn das Gerät aufgenommen wird + + Näherungssensor + Winken + Beim Winken Benachrichtigungen kurzzeitig einblenden + Tasche + Benachrichtigungen kurz einblenden, wenn das Gerät aus der Tasche genommen wird + + OK + Hilfe + 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. + diff --git a/doze/res/values-el/strings.xml b/doze/res/values-el/strings.xml new file mode 100644 index 00000000..dff5c149 --- /dev/null +++ b/doze/res/values-el/strings.xml @@ -0,0 +1,31 @@ + + + + + Οθόνη ambient + Ενεργοποίηση της οθόνης όταν λαμβάνετε ειδοποιήσεις + + Αισθητήρας κλίσης + Σήκωμα συσκευής + Παλμός ειδοποιήσεων κατά το σήκωμα της συσκευής + + Αισθητήρας εγγύτητας + Αιώρηση χεριού + Παλμός ειδοποιήσεων κατά την αιώρηση του χεριού + Τσέπη + Παλμός ειδοποιήσεων κατά την έξοδο από την τσέπη + + OK + Βοήθεια + diff --git a/doze/res/values-en-rAU/strings.xml b/doze/res/values-en-rAU/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-en-rAU/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-en-rGB/strings.xml b/doze/res/values-en-rGB/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-en-rGB/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-en-rIN/strings.xml b/doze/res/values-en-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-en-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-en-rPT/strings.xml b/doze/res/values-en-rPT/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-en-rPT/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-eo/strings.xml b/doze/res/values-eo/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-eo/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-es-rCO/strings.xml b/doze/res/values-es-rCO/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-es-rCO/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-es-rMX/strings.xml b/doze/res/values-es-rMX/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-es-rMX/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-es-rUS/strings.xml b/doze/res/values-es-rUS/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-es-rUS/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-es/strings.xml b/doze/res/values-es/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-es/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-et-rEE/strings.xml b/doze/res/values-et-rEE/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-et-rEE/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-eu-rES/strings.xml b/doze/res/values-eu-rES/strings.xml new file mode 100644 index 00000000..1c9a9c37 --- /dev/null +++ b/doze/res/values-eu-rES/strings.xml @@ -0,0 +1,32 @@ + + + + + Ambient display + Piztu pantaila jakinarazpenak jasotzean + + Inklinazio sentsorea + Hartu + Led jakinarazpenak gailua hartzean + + Hurbiltasun sentsorea + Agurtu eskuarekin + Jakinarazpen argia eskuarekin agurtzean + Poltsikoratu + Jakinarazpen argia poltsikotik ateratzean + + Ados + Laguntza + 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. + diff --git a/doze/res/values-fa/strings.xml b/doze/res/values-fa/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-fa/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-fi/strings.xml b/doze/res/values-fi/strings.xml new file mode 100644 index 00000000..56ad4856 --- /dev/null +++ b/doze/res/values-fi/strings.xml @@ -0,0 +1,32 @@ + + + + + Ambient-näyttö + Herätä näyttö kun saat ilmoituksia + + Kallistussensori + Nosto + Väläytä ilmoituksia kun laite nostetaan + + Läheisyysanturi + Käden heilautus + Näytä ilmoitukset heilautettaessa kättä + Tasku + Näytä ilmoitukset kun laite otetaan taskusta + + OK + Apua + 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. + diff --git a/doze/res/values-fil-rPH/strings.xml b/doze/res/values-fil-rPH/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-fil-rPH/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-fr-rCA/strings.xml b/doze/res/values-fr-rCA/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-fr-rCA/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-fr/strings.xml b/doze/res/values-fr/strings.xml new file mode 100644 index 00000000..a705beb2 --- /dev/null +++ b/doze/res/values-fr/strings.xml @@ -0,0 +1,26 @@ + + + + + Affichage ambiant + + Capteur d’inclinaison + Prise en main + + Capteur de proximité + Passage de la main + Poche + + OK + diff --git a/doze/res/values-frp-rIT/strings.xml b/doze/res/values-frp-rIT/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-frp-rIT/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-fy-rNL/strings.xml b/doze/res/values-fy-rNL/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-fy-rNL/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ga-rIE/strings.xml b/doze/res/values-ga-rIE/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ga-rIE/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-gd-rGB/strings.xml b/doze/res/values-gd-rGB/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-gd-rGB/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-gl-rES/strings.xml b/doze/res/values-gl-rES/strings.xml new file mode 100644 index 00000000..1bd3acd6 --- /dev/null +++ b/doze/res/values-gl-rES/strings.xml @@ -0,0 +1,32 @@ + + + + + Visualización ambiente + Activar a pantalla ao recibir notificacións + + Sensor de inclinación + Coller + Amosar notificacións ao coller o dispositivo + + Sensor de proximidade + Pasar a man + Amosar notificacións ao pasar a man + Peto + Amosar notificacións ao sacar do peto + + ACEPTAR + Axuda + Estas características usan eventos do sensor para amosar unha notificación latente. O sensor seleccionado habilitarase só cando reciba unha notificación axudando a reducir o consumo da batería. Tamén existe unha opción para activar o sensor así que se apague a pantalla, pero isto causará un maior uso da batería. + diff --git a/doze/res/values-gu-rIN/strings.xml b/doze/res/values-gu-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-gu-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-hi/strings.xml b/doze/res/values-hi/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-hi/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-hr/strings.xml b/doze/res/values-hr/strings.xml new file mode 100644 index 00000000..0424dc07 --- /dev/null +++ b/doze/res/values-hr/strings.xml @@ -0,0 +1,32 @@ + + + + + Ambijentni zaslon + Probudi zaslon kada primite obavijesti + + Senzor nagiba + Podizanje + Prikazuj obavijesti kada je uređaj podignut + + Senzor blizine + Zamah rukom + Prikaz obavijesti na zamah rukom + Džep + Prikaz obavijesti kada izvadite uređaj iz džepa + + OK + Pomoć + 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. + diff --git a/doze/res/values-hu/strings.xml b/doze/res/values-hu/strings.xml new file mode 100644 index 00000000..ddbfce34 --- /dev/null +++ b/doze/res/values-hu/strings.xml @@ -0,0 +1,32 @@ + + + + + Környezeti kijelző + Képernyő felébresztése értesítések fogadásakor + + Dőlés érzékelő + Kézbevétel + Villantsa fel az értesítéseket kézbevételkor + + Közelség érzékelő + Lebegő simítás + Értesítések felvillantása lebegő simításnál + Zseb + Értesítések felvillantása zsebből való kivételkor + + Rendben + Súgó + 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. + diff --git a/doze/res/values-hy-rAM/strings.xml b/doze/res/values-hy-rAM/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-hy-rAM/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-in/strings.xml b/doze/res/values-in/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-in/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-is-rIS/strings.xml b/doze/res/values-is-rIS/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-is-rIS/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-it/strings.xml b/doze/res/values-it/strings.xml new file mode 100644 index 00000000..a941fe27 --- /dev/null +++ b/doze/res/values-it/strings.xml @@ -0,0 +1,32 @@ + + + + + Display Ambient + Accendi lo schermo quando ricevi una notifica + + Sensore inclinazione + Solleva + Mostra le notifiche quando il dispositivo viene sollevato + + Sensore prossimità + Movimento della mano + Mostra le notifiche al passaggio della mano + Tasca + Mostra le notifiche quando il telefono viene rimosso dalla tasca + + OK + Guida + 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. + diff --git a/doze/res/values-iw/strings.xml b/doze/res/values-iw/strings.xml new file mode 100644 index 00000000..15c28902 --- /dev/null +++ b/doze/res/values-iw/strings.xml @@ -0,0 +1,30 @@ + + + + + תצוגת התראות עמומה + הפעל את המסך כשמתקבלות התראות + + חיישן הטייה + + חיישן קרבה + הנפת יד + הדגש התראות בהנפת יד + כיס + הצג התראות בהוצאה מהכיס + + אישור + עזרה + התכונות נעזרות בחיישני אירועים כדי להפעיל הדגשת התראות עם Doze. החיישן הנבחר מופעל רק כאשר המכשיר מקבל התראה, מה שעוזר להקטין את השימוש בסוללה. בנוסף, יש אפשרות להפעיל את החיישן הנבחר ברגע שהמסך נכבה, מה שעלול לגרום לשימוש רב יותר בסוללה. + diff --git a/doze/res/values-ja/strings.xml b/doze/res/values-ja/strings.xml new file mode 100644 index 00000000..70e7d491 --- /dev/null +++ b/doze/res/values-ja/strings.xml @@ -0,0 +1,32 @@ + + + + + 常に画面表示ディスプレイ + 通知を受信したときに画面を点灯する + + 傾きセンサー + 持ち上げ + 端末を持ち上げたときに通知を点滅表示する + + 接近センサー + 手を振る + 手を振ったときに通知を点滅表示する + ポケット + ポケットから取り出したときに通知を点滅表示する + + OK + ヘルプ + これらの機能はdoze通知点滅表示を起動するためにセンサーイベントを使用します。電池の使用量を削減するために、端末が通知を受信した時にのみ選択したセンサーが有効になります。画面を消灯した直後から選択したセンサーを有効にするオプションもありますが、電池の使用量が多くなります。 + diff --git a/doze/res/values-ka-rGE/strings.xml b/doze/res/values-ka-rGE/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ka-rGE/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-kk-rKZ/strings.xml b/doze/res/values-kk-rKZ/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-kk-rKZ/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-km-rKH/strings.xml b/doze/res/values-km-rKH/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-km-rKH/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-kn-rIN/strings.xml b/doze/res/values-kn-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-kn-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ko/strings.xml b/doze/res/values-ko/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ko/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ku/strings.xml b/doze/res/values-ku/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ku/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ky-rKG/strings.xml b/doze/res/values-ky-rKG/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ky-rKG/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-lb/strings.xml b/doze/res/values-lb/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-lb/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-lo-rLA/strings.xml b/doze/res/values-lo-rLA/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-lo-rLA/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-lt/strings.xml b/doze/res/values-lt/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-lt/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-lv/strings.xml b/doze/res/values-lv/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-lv/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-mk-rMK/strings.xml b/doze/res/values-mk-rMK/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-mk-rMK/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ml-rIN/strings.xml b/doze/res/values-ml-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ml-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-mn-rMN/strings.xml b/doze/res/values-mn-rMN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-mn-rMN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-mr-rIN/strings.xml b/doze/res/values-mr-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-mr-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ms-rMY/strings.xml b/doze/res/values-ms-rMY/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ms-rMY/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-my-rMM/strings.xml b/doze/res/values-my-rMM/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-my-rMM/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-nb/strings.xml b/doze/res/values-nb/strings.xml new file mode 100644 index 00000000..9e609c49 --- /dev/null +++ b/doze/res/values-nb/strings.xml @@ -0,0 +1,32 @@ + + + + + Ambient visning + Våkne skjermen når du får varsler + + Tilt sensor + Opp-plukking + Pulseringsnotifikasjon når telefonen er plukket opp + + Avstandsmåler + Håndvink + Pulseringsnotifikasjon ved håndvink + Lomme + Pulseringsnotifikasjon når telefonen er tatt opp av lommen + + OK + Hjelp + 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. + diff --git a/doze/res/values-ne-rNP/strings.xml b/doze/res/values-ne-rNP/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ne-rNP/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-nl/strings.xml b/doze/res/values-nl/strings.xml new file mode 100644 index 00000000..6eb179d6 --- /dev/null +++ b/doze/res/values-nl/strings.xml @@ -0,0 +1,32 @@ + + + + + Omgevingsdisplay + Scherm aan bij het ontvangen van meldingen + + Hellingssensor + Oppakken + Meldingen laten knipperen bij oppakken + + Nabijheidssensor + Handgebaar + Meldingen laten knipperen bij handgebaar + Broekzak + Meldingen laten knipperen bij verwijderen uit broekzak + + OK + Help + 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 accugebruik te verminderen. Er is ook een optie om de sensor te activeren zodra het scherm uitschakelt, maar dit leidt tot hoger accugebruik. + diff --git a/doze/res/values-oc-rFR/strings.xml b/doze/res/values-oc-rFR/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-oc-rFR/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-or-rIN/strings.xml b/doze/res/values-or-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-or-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-pa-rIN/strings.xml b/doze/res/values-pa-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-pa-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-pl/strings.xml b/doze/res/values-pl/strings.xml new file mode 100644 index 00000000..5f022439 --- /dev/null +++ b/doze/res/values-pl/strings.xml @@ -0,0 +1,31 @@ + + + + + Aktywny wyświetlacz + Wybudź ekran po odebraniu powiadomienia + + Czujnik pochylenia + Pokaż powiadomienia, gdy urządzenie zostało podniesione + + Czujnik zbliżeniowy + Gest fali + Pokaż powiadomienia po geście fali + Wyjęcie z kieszeni + Pokaż powiadomienia po wyjęciu z kieszeni + + OK + Pomoc + Te funkcje używają czujników, aby pokazywać powiadomienia tylko w odpowiednim momencie. Czujniki są wykorzystywane, kiedy telefon odbierze powiadomienie. Pozwala to w oszczędzaniu baterii. Istnieje również możliwość, aby włączyć wybrany czujnik zaraz po wyłączeniu ekranu, spowoduje to większe zużycie baterii. + diff --git a/doze/res/values-pt-rBR/strings.xml b/doze/res/values-pt-rBR/strings.xml new file mode 100644 index 00000000..444ffc43 --- /dev/null +++ b/doze/res/values-pt-rBR/strings.xml @@ -0,0 +1,32 @@ + + + + + Tela ambiente + Ligar a tela ao receber notificações + + Sensor de inclinação + Pegar + Pulsar notificações ao pegar o dispositivo + + Sensor de proximidade + Acenar com a mão + Pulsar notificações ao acenar com a mão + Bolso + Pulsar notificações ao retirar do bolso + + OK + Ajuda + 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. + diff --git a/doze/res/values-pt-rPT/strings.xml b/doze/res/values-pt-rPT/strings.xml new file mode 100644 index 00000000..bedd3d69 --- /dev/null +++ b/doze/res/values-pt-rPT/strings.xml @@ -0,0 +1,32 @@ + + + + + Visualização de ambiente + Ligar o ecrã quando receber notificações + + Sensor de inclinação + Pegar + Mostrar as notificações ao pegar no dispositivo + + Sensor de proximidade + Passar a mão + Mostrar notificações ao passar a mão + Bolso + Mostrar notificações ao retirar do bolso + + OK + Ajuda + 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. + diff --git a/doze/res/values-rm/strings.xml b/doze/res/values-rm/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-rm/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ro/strings.xml b/doze/res/values-ro/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ro/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ru/strings.xml b/doze/res/values-ru/strings.xml new file mode 100644 index 00000000..326454bd --- /dev/null +++ b/doze/res/values-ru/strings.xml @@ -0,0 +1,32 @@ + + + + + Индикация событий + Включать экран при получении уведомлений + + Датчик наклона + Поднять + Отображать уведомления при поднятии устройства + + Датчик приближения + Взмах + Проведите ладонью над экраном для просмотра уведомлений + Карман + Отображать уведомления при извлечении устройства из кармана + + OK + Информация + Эти функции используют события датчиков для отображения уведомлений. Датчик проверяется только при поступлении нового уведомления, что помогает сэкономить заряд батареи. Можно активировать включение датчика сразу при отключении экрана устройства, однако это может ускорить разряд батареи. + diff --git a/doze/res/values-si-rLK/strings.xml b/doze/res/values-si-rLK/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-si-rLK/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-sk/strings.xml b/doze/res/values-sk/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-sk/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-sl/strings.xml b/doze/res/values-sl/strings.xml new file mode 100644 index 00000000..24e40497 --- /dev/null +++ b/doze/res/values-sl/strings.xml @@ -0,0 +1,32 @@ + + + + + Okoliški zaslon + Zbudi zaslon ob prejemu obvestila + + Tipalo nagiba + Dvig + Utripaj obvestila ob dvigu naprave + + Tipalo bližine + Mahanje z roko + Utripaj obvestila ob mahanju z roko + Žep + Utripaj obvestila ob odstranitvi iz žepa + + V redu + Pomoč + 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. + diff --git a/doze/res/values-sq-rAL/strings.xml b/doze/res/values-sq-rAL/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-sq-rAL/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-sr/strings.xml b/doze/res/values-sr/strings.xml new file mode 100644 index 00000000..fa30ca78 --- /dev/null +++ b/doze/res/values-sr/strings.xml @@ -0,0 +1,32 @@ + + + + + Амбијент приказ + Пробуди екран кад добијеш обавештење + + Тилт сензор + Купљење + Пулсно обавештење када је уређај покупљен + + Сензор близине + Покрет руком + Пулсно обавештење при покрету руком + Џеп + Пулсно обавештење при уклањању из џепа + + У реду + Помоћ + Ова функција користи активирање сензора да покрене пулсно обавештење. Изабрани сензор је омогућен једино када уређај прима обавештење, то помаже смањењу потрожње батерије. Ту је и опција омогућења изабраног сензора чим се екран искључи, то ће узроковати већој потрожњи батерије. + diff --git a/doze/res/values-sv/strings.xml b/doze/res/values-sv/strings.xml new file mode 100644 index 00000000..225a2b8b --- /dev/null +++ b/doze/res/values-sv/strings.xml @@ -0,0 +1,25 @@ + + + + + + Plocka upp + Pulsera aviseringarna när enheten plockas upp + + Närhetscensor + Pulsera aviseringar när telefonen tas upp ur fickan + + OK + Hjälp + diff --git a/doze/res/values-sw/strings.xml b/doze/res/values-sw/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-sw/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ta-rIN/strings.xml b/doze/res/values-ta-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ta-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-te-rIN/strings.xml b/doze/res/values-te-rIN/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-te-rIN/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-th/strings.xml b/doze/res/values-th/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-th/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-tr/strings.xml b/doze/res/values-tr/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-tr/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ug/strings.xml b/doze/res/values-ug/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ug/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-uk/strings.xml b/doze/res/values-uk/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-uk/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-ur-rPK/strings.xml b/doze/res/values-ur-rPK/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-ur-rPK/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-uz-rUZ/strings.xml b/doze/res/values-uz-rUZ/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-uz-rUZ/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-vi/strings.xml b/doze/res/values-vi/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-vi/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-zh-rCN/strings.xml b/doze/res/values-zh-rCN/strings.xml new file mode 100644 index 00000000..ee50805b --- /dev/null +++ b/doze/res/values-zh-rCN/strings.xml @@ -0,0 +1,32 @@ + + + + + 环境显示 + 当接收到通知时唤醒屏幕 + + 倾斜传感器 + 拿起 + 当拿起设备时闪烁通知灯 + + 距离传感器 + 挥手 + 挥手时闪烁通知呼吸灯 + 口袋 + 从口袋中拿出时闪烁通知呼吸灯 + + 确定 + 帮助 + 这些功能使用传感器启用打盹通知指示灯,选择的传感器将仅在设备收到通知时开启,这将有助于优化电池用量。还有一个选项是当屏幕关闭后立即启用传感器,这会导致更多的电池用量。 + diff --git a/doze/res/values-zh-rHK/strings.xml b/doze/res/values-zh-rHK/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-zh-rHK/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-zh-rTW/strings.xml b/doze/res/values-zh-rTW/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-zh-rTW/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values-zu/strings.xml b/doze/res/values-zu/strings.xml new file mode 100644 index 00000000..c023c089 --- /dev/null +++ b/doze/res/values-zu/strings.xml @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/doze/res/values/strings.xml b/doze/res/values/strings.xml new file mode 100644 index 00000000..63146cb8 --- /dev/null +++ b/doze/res/values/strings.xml @@ -0,0 +1,35 @@ + + + + + Ambient display + Wake screen when you receive notifications + + + Tilt sensor + Pick up + Pulse notifications when device is picked up + + + Proximity sensor + Hand wave + Pulse notifications on hand wave + Pocket + Pulse notifications on removal from pocket + + + OK + Help + 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. + diff --git a/doze/res/xml/doze_settings.xml b/doze/res/xml/doze_settings.xml index 005c6ae8..dfa608b9 100644 --- a/doze/res/xml/doze_settings.xml +++ b/doze/res/xml/doze_settings.xml @@ -16,33 +16,42 @@ --> + + + android:title="@string/tilt_sensor_title" > + android:title="@string/pick_up_title" + android:summary="@string/pick_up_summary" + android:dependency="ambient_display" /> + android:key="priximity_sensor" + android:title="@string/priximity_sensor_title" > + android:summary="@string/hand_wave_gesture_summary" + android:dependency="ambient_display" /> + android:summary="@string/pocket_gesture_summary" + android:dependency="ambient_display" /> diff --git a/doze/resources/devicesettings/res/values-af/strings.xml b/doze/resources/devicesettings/res/values-af/strings.xml new file mode 100644 index 00000000..cdf099d4 --- /dev/null +++ b/doze/resources/devicesettings/res/values-af/strings.xml @@ -0,0 +1,129 @@ + + + + + + Aan + + Af + + Gevorderde instellings + + Gebare + + Ekstras + Haptiese terugvoer + Vibreer wanneer \'n gebaar opgetel word + + Skerm af gebare + Kamera + Teken \'n \"C\" om Kamera to aktiveer + Epos + Teken \'n \"e\" om e-pos toep oop te maak + Boodskappe + Teken \'n \"M\" om boodskappe toep oop te maak + Boodskappe + Teken \'n \"S\" om boodskappe toep oop te maak + Beller + Teken \'n \"V\" om beller oop te maak + Webleser + Teken \'n \"W\" om webleser oop te maak + Flits + Teken \'n \'Z\' om flits aan/af te skakel + Flitslig + Teken \'n sirkel om flitslig aan-af te skakel + Musiek + Gebruik gebare om musiek te speel \n + • Vee af om te speel/pouse\n + • Vee links vir vorige snit\n + • Vee regs vir volgende snit + + Gebruiker bewus skerm + Hou skerm aan terwyl gebruiker voor skerm is + + Omgewings temperatuur skerm + Omgewings temperatuur skerm + Skerm sal wakker word wanneer jy kennisgewings ontvang + Skerm sal wakker word wanneer jy kennisgewings ontvang + Skerm sal aan gaan wanneer jy kennisgewings ontvang + Skerm sal nie aan gaan nie wanneer jy kennisgewings ontvang + + Kantel sensor + + Nabyheid sensor + + Hand waai + Pols kennisgewings met hand waai + + Optel + Pols kennisgewings met optel + + Sak + Pols kennisgewings wanneer jy toestel uit jou sak haal + + Nabyheid wakker word + Nabyheid wakker word + Maak toestel wakker met waai van hand + + Aksies + + Dubbel-draai + Maak kamera oop wanneer die dubbel-draai gebaar gedoen word + + Kap-kap + Skakel flitslig aan/af met die gebruik van die kap-kap gebaar + + Waai vir stilte + Maak inkomende oproepe stil met die waai van jou hand bo-oor jou skerm + + Flip vir steur nie + Plaas die foon gesig af om kennisgewings en oproepe te deaktiveer + + Asseblief, gee Moet Nie Steur toegang tot CMActions om hierdie funksie te gebruik. + + Tel op om luitoon te stop + Tel die foon op om inkomende oproep stil te maak. Dit werk net wanneer jou foon plat lê + + Deaktiveer + Begin kamera + Flits + + Haptiese terugvoer intensiteit + Sterkte van haptiese terugvoer vir die dubbel-draai en kap-kap askies + Af + Laag + Gemiddeld + Hoog + + OK + + Hulp + Hierdie kenmerke gebruik \'n sensor gebaar om \'n slaap kennisgewing pols te laai. Die gekose sensor is slegs geaktiveer wanneer die toestel \'n kennisgewing ontvang, dit help om battery gebruik te verminder. Daar is ook \'n opsie om die gekose sensor te aktiveer sodra die skerm afskakel word, maar dit sal hoër battery gebruik veroorsaak. + + Addisionele knoppies + Ruil knoppies + Verander die volgorde van onlangse en terug knoppies + + Vingerafdruk + Vingerafdruk as tuis + Gebruik die vingerafdruksensor as jou tuisknoppie + Maak wakker met vingerafdruk + Laat die vingerafsruksensor toe om die toestel wakker te maak terwyl die skerm af is + Voorkom toevallige wakker word + Kontroleer die nabyheidsensor voor wakkerword, veroorsaak deur die vingerafdruk sensor + diff --git a/doze/resources/devicesettings/res/values-am/strings.xml b/doze/resources/devicesettings/res/values-am/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-am/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ar/strings.xml b/doze/resources/devicesettings/res/values-ar/strings.xml new file mode 100644 index 00000000..c8784e98 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ar/strings.xml @@ -0,0 +1,92 @@ + + + + + + + + الإعدادات المتقدمة + + الإيماءت + + إضافات + التعليقات اللمسية + الاهتزاز عند اكتشاف إيماءة + + الكاميرا + رسم \"C\" لتنشيط الكاميرا + البريد الإلكتروني + رسم \"e\" لفتح تطبيق البريد الإلكتروني + المراسلة + رسم حرف \"S\" لفتح تطبيق المراسلة + المتصل + رسم \"V\" لفتح تطبيق المتصل + المستعرض + رسم \"W\" لفتح تطبيق المستعرض + كشاف + رسم \'Z\' للتبديل بين الكشاف + + شاشة تراعي المستخدم + تظل الشاشة تعمل طالما ظل المستخدم أمامها + + العرض المحيطي + العرض المحيطي + نشّط الشاشة عند تلقي إخطارات + + + + التلويح باليد + إخطارات انبثاقية عند التلويح باليد + + + الجيب + إخطارات انبثاقية عند الإخراج من الجيب + + ايقاظ تقريبي + ايقاظ تقريبي + ايقاظ الجهاز عند التلويح باليد + + الإجراءات + + التواء-مزدوج + فتح الكاميرا عند استخدام إيماءة الالتواء المزدوج + + تشوب تشوب + تبديل ضوء الفلاش عند استخدام إيماءة تشوب تشوب + + قم بالتلويح للإسكات + إسكات المكالمات الواردة بالتلويح بيدك أمام الشاشة + + + + + تعطيل + تشغيل الكاميرا + تبديل الشعلة + + شدة الاستجابة اللمسية + شدة الاستجابة اللمسية في حالتي التدوير المزدوج والتقطيع + تعطيل + منخفضة + متوسطة + عالية + + + + + diff --git a/doze/resources/devicesettings/res/values-as-rIN/strings.xml b/doze/resources/devicesettings/res/values-as-rIN/strings.xml new file mode 100644 index 00000000..e9591463 --- /dev/null +++ b/doze/resources/devicesettings/res/values-as-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + এডভান্স ছেটিংসমূহ + + ভঙ্গিমা + + অতিৰিক্তবোৰ + হেপটিক ফীডবেক + ভঙ্গিমা চিনাক্ত কৰিব নোৱাৰিলে কম্পন কৰক + + কেমেৰা + কেমেৰা সক্ৰিয় কৰিবলৈ \"C\" আঁকক + ইমেইল + ইমেইল এপ্পটো খোলিবলৈ \"e\" আঁকক + মেছেজিং + মেছেজিং এপ্পটো খোলিবলৈ \"S\" আঁকক + ডায়েলাৰ + ডায়েলাৰ এপ্পটো খোলিবলৈ \"V\" আঁকক + ব্ৰাউজাৰ + ব্ৰাউজাৰ এপ্পটো খোলিবলৈ \"W\" আঁকক + ফ্লেশলাইট + ফ্লেশলাইট টগল কৰিবলৈ \"Z\" আঁকক + + ব্যৱহাৰকৰ্তা-সজগতা প্রদর্শন + ব্যৱহাৰকৰ্তা প্রদর্শনৰ সম্মুখত থাকিলে স্ক্ৰীণ অন কৰি ৰাখক + + পৰিপাৰ্শ্বিক ডিচপ্লে + পৰিপাৰ্শ্বিক ডিচপ্লে + আপুনি অধিসূচনা প্ৰাপ্ত কৰিলে স্ক্ৰীণ ৱেক কৰক + + + + হাত জোকাৰা + হাত জোকাৰিলে পালচ্‌ অধিসূচনা + + + পকেট + পকেটৰ পৰা আঁতৰালে পালচ্‌ অধিসূচনা + + নৈকট্য ৱেক + নৈকট্য ৱেক + হাত জোকাৰিলে ডিভাইচটো ৱেক কৰক + + + + + + + + + নিস্ক্ৰিয় + কেমেৰা লান্চ্চ কৰক + টগল টৰ্চ + + হেপ্টিক ফীডবেক তীব্ৰতা + ডাবল-টুইষ্ট আৰু চপ-চপ ক্ৰিয়াৰ বাবে হেপ্টিক ফীডবেকৰ শক্তি + নিস্ক্ৰিয় কৰা হল + নিম্ন + মাধ্যম + উচ্চ + + + + + diff --git a/doze/resources/devicesettings/res/values-ast-rES/strings.xml b/doze/resources/devicesettings/res/values-ast-rES/strings.xml new file mode 100644 index 00000000..bac0f42d --- /dev/null +++ b/doze/resources/devicesettings/res/values-ast-rES/strings.xml @@ -0,0 +1,127 @@ + + + + + + + + Non + + Axustes avanzaos + + Xestos + + Estres + Feedback hápticu + Vibra al deteutase un xestu + + Xestos de pantalla apagada + Cámara + Dibuxa una «C» p\'activar la cámara + Corréu + Dibuxa una «e» p\'abrir l\'aplicación de corréu + Mensaxería + Dibuxa una «M» p\'abrir l\'aplicación de mensaxería + Mensaxería + Dibuxa una «S» p\'abrir l\'aplicación de mensaxería + Marcador + Dibuxa una «V» p\'abrir el marcador numbéricu + Restolador + Dibuxa una «W» p\'abrir el restolador + Llinterna + Dibuxa una «Z» p\'alternar la llinterna + Llinterna + Dibuxa un círculu p\'alternar la llinterna + Música + Usa xestos pa controlar la reproducción musical\n + • Esliza haza abaxo pa reproducir/posar\n + • Esliza a la izquierda pa la pista previa\n + • Esliza a la drecha pa la pista siguiente + + Pantalla en presencia del usuariu + Caltién la pantalla encesa entrín heba un usuariu enfrente d\'ella + + Pantalla ambiente + Pantalla ambiente + Esconsueña la pantalla al recibir avisos + Esconsueña la pantalla al recibir avisos + La pantalla esconsoñará al recibir avisos + La pantalla nun esconsoñará al recibir avisos + + Sensor d\'inclinación + + Sensor de proximidá + + Pasar la mano + Avisos llatentes al pasar la mano + + Coyer + Avisos llatentes al coyer + + Bolsiellu + Avisos llatentes al sacar del bolsiellu + + Esconsueñu per proximidá + Esconsueñu per proximidá + Esconsueña\'l preséu al pasar la mano + + Aiciones + + Xiru doblu + Abre la cámara al usar xestu de xiru doblu + + Chop-chop + Alterna la llinterna cuando s\'usa\'l xestu chop-chop + + Pasar la mano pa silenciar + Silencia les llames entrantes al pasar la to mano pela pantalla + + Voltiar pa Nun molestar + Pon el teléfonu boca abaxo pa silenciar avisos y llamaes + + Nun-y deas permisu de Nun molestar a CMActions pa usar esta carauterística, por favor. + + Coyer pa parar de sonar + Garra\'l teléfonu pa silenciar llamaes entrantes. Namái furrula cuando\'l teléfonu ta planu + + Deshabilitar + Llanzar cámara + Alternar llinterna + + Intensidá de feedback hápticu + Fuercia del feedback hápticu pa les aiciones de xiru doblu y chop-chop + Deshabilitada + Baxa + Media + Alta + + ACEUTAR + + Ayuda + Estes carauterístiques usen los eventos del sensor pa llanzar un avisu doze. El sensor esbilláu namái s\'habilita cuando\'l preséu recibe un avisu, esto ayuda a amenorgar l\'usu de batería. Tamién hai una opción p\'habilitar el sensor escoyíu namái s\'apague la pantalla, esto causará un usu más altu de batería. + + Botones adicionales + Intercambear botones + Camuda l\'orde de los botones «Recientes» y «Atrás» + + Buelga + Buelga como aniciu + Usa\'l sensor de buelgues como botón d\'aniciu + Esconsueñu per buelga + Permite que\'l sensor de buelgues esconsueñe\'l preséu entrín la pantalla tea apagada + diff --git a/doze/resources/devicesettings/res/values-az-rAZ/strings.xml b/doze/resources/devicesettings/res/values-az-rAZ/strings.xml new file mode 100644 index 00000000..b6a7ffcb --- /dev/null +++ b/doze/resources/devicesettings/res/values-az-rAZ/strings.xml @@ -0,0 +1,73 @@ + + + + + + + + Xüsusi tənzimləmələr + + Jestlər + + Əlavələr + Sensor geri bildiriş + Bir jest aşkarlananda titrəyər + + + İstifadəçini xəbərdar edən ekran + İstifadəçi ekranın qarşısında olanda ekranı açıq saxlayar + + Ekran mühiti + Ekran mühiti + Bildiriş gələndə ekranı oyandırar + + + + Əl yellə + Əl yelləyəndə bildirişləri at + + + Cib + Cibdən çıxaranda bildirişləri at + + Hərəkətdə oyandır + Hərəkətdə oyandır + Əl yelləyəndə cihazı oyandır + + + + + + + + + Ləğv et + Kameranı başlat + Fənəri aç/bağla + + Sensor geri bildiriş gərginliyi + Cüt yelləmə və doğrama hərəkətləri üçün sensor geri bildiriş gücü + Ləğv edildi + Aşağı + Orta + Yüksək + + + + + diff --git a/doze/resources/devicesettings/res/values-be-rBY/strings.xml b/doze/resources/devicesettings/res/values-be-rBY/strings.xml new file mode 100644 index 00000000..50c18392 --- /dev/null +++ b/doze/resources/devicesettings/res/values-be-rBY/strings.xml @@ -0,0 +1,72 @@ + + + + + + + + + Жэсты + + + Камера + Намалюй \"C\" для ўключэння камеры + Электронная пошта + Намалюй \"e\" для адкрыцця дадатка пошты + Абмен паведамленнямі + Намалюй \"S\" для адкрыцця дадатка паведамленняў + Тэлефон + Намалюй \"V\" для адкрыцця тэлефона + Аглядальнік + Намалюй \"W\" для адкрыцця браўзэра + Ліхтарык + Намалюй «Z» для ўключэння ці выключэння ліхтарыка + + + Індыкацыя падзей + Індыкацыя падзей + Улучаць экран пры атрыманні апавяшчэнняў + + + + Узмах + Правядзіце далонню над экранам для прагляду апавяшчэнняў + + + Кішэнь + Адлюстроўваць апавяшчэнні пры выманні прылады з кішэні + + Улучэнне па датчыках + Улучэнне па датчыках + Правядзіце далонню над экранам, каб вывесці прыладу з рэжыму сну + + Дзеянне + + + Уструс + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-be/strings.xml b/doze/resources/devicesettings/res/values-be/strings.xml new file mode 100644 index 00000000..b90e3002 --- /dev/null +++ b/doze/resources/devicesettings/res/values-be/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + Дадатковыя налады + + Рухі + + Іншае + Вібраводгук + Вібраваць пры паспяховым распазнанні жэста + + Камера + Намалюй \"C\" для ўключэння камеры + Электронная пошта + Намалюй \"e\" для адкрыцця дадатка пошты + Абмен паведамленнямі + Намалюй \"S\" для адкрыцця дадатка паведамленняў + Тэлефон + Намалюй \"V\" для адкрыцця тэлефона + Аглядальнік + Намалюй \"W\" для адкрыцця браўзэра + Ліхтарык + Намалюй «Z» для ўключэння ці выключэння ліхтарыка + + Інтэлектуальнае адкл. дысплея + Трымаць экран уключаным, пакуль карыстач знаходзіцца перад ім + + Індыкацыя падзей + Індыкацыя падзей + Улучаць экран падчас атрымання паведамленняў + + + + Узмах рукою + Правядзіце далонню над экранам для прагляду апавяшчэнняў + + Падняць + + Кішэня + Адлюстроўваць апавяшчэнні пры выманні прылады з кішэні + + Улучэнне па датчыках + Улучэнне па датчыках + Правядзіце далонню над экранам, каб вывесці прыладу з рэжыму сну + + + Дзеянне + + Уструс + + + + + + Выключыць + Уключыць камеру + Ліхтарык + + Магутнасць вібра водгуку + Налада сілы вібрацыі для жэстаў пастуквання і кручэння + Выключана + Нізкі + Сярэдні + Высокі + + + diff --git a/doze/resources/devicesettings/res/values-bg/strings.xml b/doze/resources/devicesettings/res/values-bg/strings.xml new file mode 100644 index 00000000..7dbee815 --- /dev/null +++ b/doze/resources/devicesettings/res/values-bg/strings.xml @@ -0,0 +1,131 @@ + + + + + + Включване + + Изключване + + Допълнителни настройки + + Жестове + + Екстри + Вибрация при докосване (обратна връзка) + Вибрирай, когато се засече жест + + Изключване на екрана с жестове + Камера + Изпишете буквата \"C\", за да активирате камерата + Имейл + Изпишете буквата \"e\", за да отворите приложението за електронна поща + Съобщения + Изпишете буквата \"M\", за да отворите приложението за съобщения + Съобщения + Изпишете буквата \"S\", за да отворите приложението за съобщения + Телефон + Изпишете буквата \"V\", за да отворите приложението за набиране + Браузър + Изпишете буквата \"W\", за да отворите браузъра + Фенерче + Изпишете буквата \"Z\", за превключване на фенерчето + Фенерче + Начертайте кръг за превключване на фенерчето + Музика + Използвайте жестове за контрол на музикалния плеър \n +• Плъзнете надолу за възпроизвеждане / пауза \n +• Плъзнете наляво за предишната песен \n +• Плъзнете надясно за следващата песен + + Потребителски дисплей + Задръж екрана включен, докато потребителят е пред дисплея + + Активен дисплей + Активен дисплей + Събужда екрана при получаване на известие + Събужда екрана при получаване на известие + Екрана ще се събуди, когато получавате уведомления + Екрана няма да се събуди, когато получавате уведомления + + Сензор за наклон + + Сензор за близост + + Махане с ръка + Показва известията при прекарване на ръка над екрана + Определяне на ориентацията + Светлинни индикации, само когато телефонът лежи върху равна повърхност с дисплея нагоре + + Повдигане + Показва известията при повдигане на устройството + + Джоб + Показва известията, когато извадите устройството от джоба си + + Събуждане при засичане на близки устройства + Събуждане при засичане на близки устройства + Събуди устройство с махане с ръка + + Действия + + Двойно завъртане + Стартирай камерата при двукратно-завъртане + + Двукратно тръскане + Активиране на фенерчето с разтърсване нагоре-надолу + + Размахване за преминаване в тих режим + Спри звука на входящо повикване, помахвайки с ръка над екрана + + Завъртете за режим \"Не ме безпокойте\" + Обърнете телефона с екрана надолу, за спиране на звука на уведомления и обаждания + + За да използвате тази функция, осигурете достъп на COMActions до функциите \"Не ме безпокойте\". + + Повдигнете за да спре да звъни + Вдигнете телефона, за да заглушите входящи повиквания. Тази фуннкция работи само когато телефонът е в хоризонтално положение + + Деактивиране + Стартиране на камерата + Фенерче + + Мощност на вибрация + Сила на вибрацията при използване на жестовете, двойно-завъртане или тръскане + Изключена + Ниско + Средно + Високо + + ОK + + Помощ + Тези функции използват сензорни събития да показват известия, когато устройството е в състояние на покой. Избраният сензор се активира само когато устройството получава уведомление, което помага за намаляване на използването на батерията. Има и опция за активиране на избрания сензор, така че екранът се изключва, което ще доведе до увеличаване на използването на батерията. + + Допълнителни бутони + Промени местата на бутоните + Разменени бутонити \"Последни\" и \"Назад\" + + Пръстови отпечатъци + Сензор за пръстови отпечатъци, както бутон Начало + Използвай сензора за пръстови отпечанъци, като бутон Начало + Събуждане с пръстов отпечатък + Позволи на сензора за пръстови отпечатъци да се събуди на устройството, докато екрана е изключен + Предотвратяване на случайно събуждане + Проверете сензора за близост за събуждане с помощта на четец на пръстови отпечатъци + diff --git a/doze/resources/devicesettings/res/values-bn-rBD/strings.xml b/doze/resources/devicesettings/res/values-bn-rBD/strings.xml new file mode 100644 index 00000000..0dd2a3bf --- /dev/null +++ b/doze/resources/devicesettings/res/values-bn-rBD/strings.xml @@ -0,0 +1,89 @@ + + + + + + চালু করুন + + বন্ধ করুন + + অ্যাডভান্সড সেটিংস + + আকৃতি + + অতিরিক্ত + কম্পন প্রতিক্রিয়া + আকৃতি সনাক্ত হলে কম্পিত করুন + + আকৃতির মাধ্যমে স্কিন বন্ধ করুন + ক্যামেরা + ক্যামেরা চালু করতে \'\'C\" আঁকুন + ইমেইল + ইমেইল খুলতে \"e\'\' অংকন করুন + ম্যাসেজিং + ম্যাসেজ অ্যাপটি খুলতে \"M\" অংকন করুন + ম্যাসেজিং + ম্যাসেজ অ্যাপটি খুলতে \"S\" অংকন করুন + ডায়ালার + ডায়ালার অ্যাপটি খুলতে \"V\'\' অংকন করুন + ব্রাউজার + ব্রাউজার অ্যাপটি খুলতে \"W\" অংকন করুন + ফ্ল্যাশ লাইট + ফ্ল্যাশ লাইট সক্রিয় করতে \'Z\' অঙ্কন করুন + ফ্লাস লাইট + ফ্ল্যাশ লাইট জালাতে একটি বৃত্ত অংকন করুন + মিউজিক + + ব্যাবহারকারী সচেতন বার্তা + ব্যাবহারকারী সামনে থাকলে স্ক্রীন চালু থাকবে + + অবস্থানির্ভর প্রদর্শন + অবস্থানির্ভর প্রদর্শন + বিজ্ঞপ্তি প্রাপ্ত হলে পর্দা সক্রিয় হবে + + + প্রক্সিমিটি সেন্সর + + হাত নাড়ানো + হাত নাড়ালে বিজ্ঞপ্তি স্পন্দিত হবে + + পিক-আপ + + পকেট + পকেট থেকে বের করলে বিজ্ঞপ্তি স্পন্দিত হবে + + হাত নারালে ডিভাইস জেগে ঊঠবে + + অ্যাকশন + + ডাবল-টুইস্ট + + চপ-চপ + + + + + + ক্যামেরা চালু করুন + টর্চ চালু বা বন্ধ করুন + + + + + + diff --git a/doze/resources/devicesettings/res/values-br-rFR/strings.xml b/doze/resources/devicesettings/res/values-br-rFR/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-br-rFR/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-bs-rBA/strings.xml b/doze/resources/devicesettings/res/values-bs-rBA/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-bs-rBA/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ca/strings.xml b/doze/resources/devicesettings/res/values-ca/strings.xml new file mode 100644 index 00000000..b1331ac5 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ca/strings.xml @@ -0,0 +1,131 @@ + + + + + + + + No + + Configuració avançada + + Gestos + + Extres + Resposta hàptica + Vibra quan es detecti un gest + + Gestos d\'apagat de pantalla + Càmera + Dibuixa una \"C\" per activar la càmera + Correu electrònic + Dibuixa una \"e\" per obrir l\'aplicació del correu electrònic + Missatgeria + Dibuixa una \"M\" per obrir l\'aplicació de missatgeria + Missatgeria + Dibuixa una \"S\" per obrir l\'aplicació de missatgeria + Telèfon + Dibuixa una \"V\" per obrir l\'aplicació del telèfon + Navegador + Dibuixa una \"W\" per obrir l\'aplicació del navegador + Llanterna + Dibuixa una \"Z\" per canviar a la llanterna + Llanterna + Dibuixa un cercle per canviar a la llanterna + Música + Utilitza gestos per controlar la reproducció de música \n + • Llisca avall per reproducció/pausa\n + • Llisca a l\'esquerra per anar a la pista anterior\n + • Llisca a la dreta per anar a la pista següent + + Pantalla en presència de l\'usuari + Mantingues la pantalla encesa mentre l\'usuari sigui davant de la pantalla + + Pantalla ambient + Pantalla ambient + Encen la pantalla quan rebis notificacions + Encen la pantalla quan rebis notificacions + La pantalla s\'encendrà quan rebis notificacions + La pantalla no s\'encendrà quan rebis notificacions + + Sensor d\'inclinació + + Sensor de proximitat + + Passa la mà + Mostra notificacions quan es passi la mà + Detecta l\'orientació + Prem només si el telèfon està cara amunt sobre una superfície plana + + Contesta + Mostra notificacions en contestar + + Butxaca + Mostra notificacions quan te\'l treguis de la butxaca + + Desperta en apropar-se + Desperta en apropar-se + Desperta el dispositiu en passar la mà + + Accions + + Doble gir + Obre la càmera quan s\'utilitzi el gest de doble gir + + Doble sacsejada + Commuta la llanterna quan es faci el gest de doble sacsejada + + Passa la mà per silenciar + Silencia les trucades entrants en passar la mà per la pantalla + + Gira per no molestar + Col·loca el telèfon cap per avall per silenciar les notificacions i trucades + + Si us plau, permet l\'accés a CMActions per utilitzar aquesta funció. + + Deixa de sonar a l\'agafar-lo + Aixeca el telèfon per silenciar les trucades entrants. Això només funcionarà quan el teu telèfon estigui sobre una superfície plana + + Desactiva + Obre la càmera + Torxa + + Intensitat de la resposta hàptica + Intensitat de la resposta hàptica per a les accions de doble-gir i doble sacsejada + Desactivat + Baixa + Mitja + Alta + + D\'ACORD + + Ajuda + 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. + + Botons addicionals + Intercanvia els botons + Intercanvia l\'ordre dels botons recent i enrera + + Empremta digital + Empremta digital com a inici + Utilitza el sensor d\'empremta digital com si fos un botó d\'inici + Encesa amb empremta digital + Permet al sensor d\'empremta digital encendre el dispositiu, mentre la pantalla està apagada + Evita l\'encesa accidental + Comprova el sensor de proximitat abans d\'encendre\'s a través del lector d\'empremtes + diff --git a/doze/resources/devicesettings/res/values-cs/strings.xml b/doze/resources/devicesettings/res/values-cs/strings.xml new file mode 100644 index 00000000..5a6b93e6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-cs/strings.xml @@ -0,0 +1,131 @@ + + + + + + Zapnuto + + Vypnuto + + Pokročilé nastavení + + Gesta + + Doplňky + Hmatová odezva + Vibrovat při detekci gesta + + Gesta vypnutí obrazovky + Fotoaparát + Gestem „C“ spustit fotoaparát + E-mail + Gestem „e“ otevřít e-mailovou aplikaci + Zprávy + Gestem „M“ otevřít aplikaci pro zprávy + Zprávy + Gestem „S“ otevřít aplikaci pro zprávy + Telefon + Gestem „V“ otevřít aplikaci telefonu + Prohlížeč + Gestem „W“ otevřít aplikaci prohlížeče + Svítilna + Gestem „Z“ rozsvítit/zhasnout svítlinu + Svítilna + Gestem „O“ rozsvítit/zhasnout svítilnu + Hudba + Použít gesta pro ovládání přehrávání hudby\n + • přejetím dolů přehrávat/pozastavit\n + • přejetím doleva pro předchozí skladbu\n + • přejetím doprava pro další skladbu + + Všímat si uživatele + Pokud je uživatel před obrazovkou, nechat ji zapnutou + + Ambientní zobrazení + Ambientní zobrazení + Probudit obrazovku při upozornění + Probudit obrazovku při upozornění + Probudit obrazovku při upozornění + Neprobouzet obrazovku při upozornění + + Senzor náklonu + + Senzor přiblížení + + Mávání rukou + Upozornit pulsováním při zamáváním rukou + Detekovat orientaci + Pulsovat pouze v případě, když telefon leží na rovné ploše obrazovkou nahoru + + Sebrání + Upozornit pulsováním při sebrání + + Kapsa + Upozornit pulsováním při vyjmutí z kapsy + + Probudit přiblížením + Probudit přiblížením + Probudit zařízení pomocí zamávání rukou + + Akce + + Dvojité otočení + Otevřít fotoaparát gestem dvojitého otočení + + Chop-chop + Zapnout/vypnout svítilnu použitím gesta chop-chop + + Zavlněním ztišit + Ztišit příchozí hovory zavlněním ruky přes obrazovku + + Otočit pro povolení „Nerušit“ + Obrácením telefonu obrazovkou dolů ztlumit oznámení a vyzvánění + + Prosím pro využití této funkce povolte přístup k CMActions režimu „Nerušit”. + + Zvednutím zastavit vyzvánění + Zvednutím telefonu pro ztlumení vyzvánění. Tuto funkci je možné využít pouze v případě, že byl telefon položen na plocho + + Žádná + Spustit fotoaparát + Přepnout svítilnu + + Intensita zpětné vazby + Síla zpětné vazby pro double-twist a chop-chop akce + Žádná + Nízká + Střední + Vysoká + + OK + + Uživatelská příručka + 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í. + + Další tlačítka + Prohodit tlačítka + Prohodit pořadí tlačítek „Nedávné“ a „Zpět“ + + Otisk prstu + Otisk prstů jako tlačítko Domů + Použít senzor otisku prstů jako tlačítko Domů + Probudit otiskem prstu + Umožnit senzoru otisku prstu probudit zařízení pokud je obrazovka vypnuta + Zabránit nechtěnému probuzení + Před probuzením otiskem prstu zkontrolovat senzor přiblížení + diff --git a/doze/resources/devicesettings/res/values-csb-rPL/strings.xml b/doze/resources/devicesettings/res/values-csb-rPL/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-csb-rPL/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-cy/strings.xml b/doze/resources/devicesettings/res/values-cy/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-cy/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-da/strings.xml b/doze/resources/devicesettings/res/values-da/strings.xml new file mode 100644 index 00000000..fbfb6e78 --- /dev/null +++ b/doze/resources/devicesettings/res/values-da/strings.xml @@ -0,0 +1,127 @@ + + + + + + Til + + Fra + + Avancerede indstillinger + + Bevægelser + + Ekstrafunktioner + Berøringsvibration + Vibrere, når en berøring bliver registreret + + Fagter for sluk skærm + Kamera + Tegn et \"C\" for at aktivere kameraet + Email + Tegn et \"e\" for at åbne email-appen + Beskeder + Tegn et \"M\" for at åbne Beskeder + Beskeder + Tegn et \"S\" for at åbne besked-appen + Telefon + Tegn et \"V\" for at åbne telefon-appen + Browser + Tegn et \"W\" for at åbne browser-appen + Lommelygte + Tegn et \"Z\" for at slå lommelygten til/fra + Lommelygte + Tegn en cirkel for at tænde/slukke lommelygte + Musik + Anvend bevægelser til at kontrollere musikafspilning \n + • Stryg ned for at afspille/pause\n + • Stryg til venstre for forrige nummer\n + • Stryg til højre for næste nummer + + Brugerbevidst visning + Hold skærmen tændt, mens en person sidder foran den + + Inaktivitetsvisning + Inaktivitetsvisning + Tænder skærmen, når du modtager notifikationer + Tænder skærmen, når du modtager notifikationer + Skærmen vil tænde, når du modtager underretninger + Skærmen vil ikke tænde, når du modtager underretninger + + Tilt-sensor + + Berøringssensor + + Vink med hånden + Vibrér, hvis der er notifikationer, når du vinker over skærmen + + Samle op + Blink med notifikationerne ved opsamling + + Lomme + Vibrér, hvis der er notifikationer, når telefonen tages op ad lommen + + Berøringsfri vækning + Berøringsfri vækning + Vækker enheden ved at vinke + + Handlinger + + Dobbelt-drej + Åben kameraet når du bruger dobbelt-drej bevægelsen + + Hak-hak + Tænd/sluk lommelygten når du bruger hak-hak bevægelsen + + Vink for lydløs + Gør indgående opkald lydløse ved at vinke med din hånd over skærmen + + Vend for \'Forstyr ikke\' + Placér telefonen med skærmen nedad for at gøre notifikationer og opkald lydløse + + Venligst giv \'Forstyr ikke\' adgang til CMActions for at bruge denne funktion. + + Løft for lydløs + Løft telefonen for at sætte indgående opkald på lydløs. Virker kun hvis telefonen ligger på en flad overflade + + Slå fra + Start kamera + Tænd/sluk lommelygte + + Berøringsfølsomhed + Styrken på berøringsfølsomheden for dobbelt-drej og hak-hak handlingerne + Fra + Lav + Normal + Høj + + OK + + Hjælp + 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. + + Yderligere knapper + Ombyt knapper + Byt om på rækkefølgen af knapperne seneste og tilbage + + Fingeraftryk + Fingeraftryk som startknap + Brug fingeraftrykssensoren som startknap + Vækning med fingeraftryk + Tillad fingeraftrykssensoren at vække enheden, mens skærmen er slukket + diff --git a/doze/resources/devicesettings/res/values-de/strings.xml b/doze/resources/devicesettings/res/values-de/strings.xml new file mode 100644 index 00000000..156758c9 --- /dev/null +++ b/doze/resources/devicesettings/res/values-de/strings.xml @@ -0,0 +1,131 @@ + + + + + + An + + Aus + + Erweiterte Einstellungen + + Gesten + + Extras + Haptisches Feedback + Vibrieren, wenn eine Geste erkannt wurde + + Bildschirm mit Gesten einschalten + Kamera + \"C\" zeichnen, um die Kamera zu starten + E-Mail + \"e\" zeichnen, um die E-Mail-App zu starten + SMS/MMS + \"M\" zeichnen, um SMS/MMS zu starten + SMS/MMS + \"S\" zeichnen, um SMS/MMS zu starten + Telefon + \"V\" zeichnen, um die Telefon-App zu starten + Browser + \"W\" zeichnen, um den Browser zu starten + Taschenlampe + \"Z\" zeichnen, um die Taschenlampe ein-/auszuschalten + Taschenlampe + Kreis zeichnen, um die Taschenlampe ein-/auszuschalten + Musik + Musikwiedergabe mithilfe von Gesten steuern \n +• Nach unten wischen: Play/Pause\n +• Nach links wischen: Vorheriger Titel\n +• Nach rechts wischen: Nächster Titel + + Benutzersensitive Anzeige + Den Bildschirm aktiv halten, solange sich vor ihm ein Benutzer befindet + + Inaktivitätsdisplay + Inaktivitätsdisplay + Bildschirm aktivieren, wenn Sie Benachrichtigungen erhalten + Bildschirm einschalten, wenn Sie Benachrichtigungen erhalten + Bildschirm wird eingeschalten, wenn Sie Benachrichtigungen erhalten + Bildschirm wird nicht eingeschalten, wenn Sie Benachrichtigungen erhalten + + Neigungssensor + + Näherungssensor + + Winken + Benachrichtigungen kurz einblenden, wenn gewunken wird + Ausrichtung erkennen + Nur pulsieren, wenn das Telefon mit dem Display nach oben auf einer ebenen Fläche liegt + + Aufheben + Benachrichtigungen kurz einblenden, wenn das Gerät aufgehoben wird + + Tasche + Benachrichtigungen kurz einblenden, wenn das Gerät aus der Tasche genommen wird + + Aufwecken bei Annäherung + Aufwecken bei Annäherung + Gerät durch Winken aufwecken + + Aktionen + + Doppeldrehung + Kamera starten bei Verwendung der Geste Doppeldrehung + + Hacken + Taschenlampe mit der Hack-Geste ein-/ausschalten + + Winken zum Stummschalten + Eingehende Anrufe durch Winken über den Bildschirm stummschalten + + Umdrehen für \"Nicht Stören\" + Das Telefon mit dem Display nach unten ablegen, um Benachrichtigungen und Anrufe stumm zu schalten + + Bitte geben Sie CMActions Zugriff auf \"Nicht Stören\", um diese Funktion zu nutzen. + + Aufheben, um das Klingeln zu beenden + Eingehende Anrufe durch das Aufheben des Telefons stummschalten. Funktioniert nur, wenn Ihr Telefon zuvor flach auflag + + Deaktivieren + Kamera starten + Taschenlampe + + Intensität des haptischen Feedbacks + Stärke des haptischen Feedbacks für die Aktionen Doppeldrehung und Schwenken + Deaktiviert + Schwach + Normal + Stark + + OK + + Hilfe + 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. + + Weitere Tasten + Tasten tauschen + Anordnung der Tasten für Anwendungsverlauf und Zurück tauschen + + Fingerabdruck + Fingerabdrucksensor als Home-Taste verwenden + Fingerabdrucksensor als Home-Taste verwenden + Bildschirm mit Fingerabdruck einschalten + Ermöglichen Sie dem Fingerprint-Sensor, das Gerät zu wecken, wenn der Bildschirm ausgeschaltet ist + Unbeabsichtigtes Aufwecken verhindern + Vor dem Aufwecken durch den Fingerabdrucksensor den Näherungssensor prüfen + diff --git a/doze/resources/devicesettings/res/values-el/strings.xml b/doze/resources/devicesettings/res/values-el/strings.xml new file mode 100644 index 00000000..c863f652 --- /dev/null +++ b/doze/resources/devicesettings/res/values-el/strings.xml @@ -0,0 +1,110 @@ + + + + + + + + Προηγμένες ρυθμίσεις + + Χειρονομίες + + Επιπλέον ρυθμίσεις + Απτική ανάδραση + Δόνηση κατά τον εντοπισμό μιας χειρονομίας + + Χειρονομίες οθόνης + Φωτογραφ. μηχανή + Σχεδιάστε ένα \"C\" για εκκίνηση της φωτογρ. μηχανής + Ηλεκτρονικό ταχυδρομείο + Σχεδιάστε ένα \"e\" για εκκίνηση της εφαρμογής ηλεκτρονικού ταχυδρομείου + Ανταλλαγή μηνυμάτων + Σχεδιάστε ένα \"S\" για εκκίνηση της εφαρμογής μηνυμάτων + Κλήση + Σχεδιάστε ένα \"V\" για εκκίνηση της εφαρμογής κλήσεων + Πρόγραμμα περιήγησης + Σχεδιάστε ένα \"W\" για εκκίνηση του προγράμματος περιήγησης + Φακός + Σχεδιάστε ένα \"Z\" για ενεργοποίηση του φακού + Φακός + Σχεδιάστε έναν κύκλο για ενεργοποίηση του φακού + Μουσική + Χρήση χειρονομιών για τον έλεγχο αναπαραγωγής μουσικής \n + • Σύρετε προς τα κάτω για αναπαραγωγή/παύση\n + • Σύρετε προς τα αριστερά για προηγούμενο κομμάτι\n + • Σύρετε προς τα δεξιά για επόμενο κομμάτι + + Εντοπισμός προσώπου + Η οθόνη θα παραμένει ενεργή ενώ ο χρήστης είναι μπροστά από την οθόνη + + Οθόνη ambient + Οθόνη ambient + Ενεργοποίηση της οθόνης όταν λαμβάνετε ειδοποιήσεις + + Αισθητήρας κλίσης + + Αισθητήρας εγγύτητας + + Αιώρηση χεριού + Παλμός ειδοποιήσεων κατά την αιώρηση του χεριού + + Σήκωμα συσκευής + Παλμός ειδοποιήσεων κατά το σήκωμα της συσκευής + + Τσέπη + Παλμός ειδοποιήσεων κατά την έξοδο από την τσέπη + + Αφύπνιση εγγύτητας + Αφύπνιση εγγύτητας + Αφύπνιση της συσκευής κατά την αιώρηση του χεριού + + Λειτουργίες + + Διπλή συστροφή + Άνοιγμα φωτογρ. μηχανής με την χειρονομία της διπλής συστροφής + + Chop-chop + Εναλλαγή φακού κατά τη χρήση της χειρονομίας chop-chop + + Αιώρηση για σίγαση + Σίγαση εισερχόμενων κλήσεων αιωρώντας το χέρι σας πάνω από την οθόνη + + + + + Ανενεργό + Εκκίνηση φωτογρ. μηχανής + Φακός + + Ένταση απτικής ανάδρασης + Δύναμη της απτικής ανάδρασης για τις ενέργειες διπλής συστροφής και chop-chop + Ανενεργή + Χαμηλή + Μέτρια + Υψηλή + + OK + + Βοήθεια + + Πρόσθετα πλήκτρα + Εναλλαγή πλήκτρων + Εναλλαγή της διάταξης των πλήκτρων προσφάτων και πίσω + + Δακτυλικό αποτύπωμα + diff --git a/doze/resources/devicesettings/res/values-en-rAU/strings.xml b/doze/resources/devicesettings/res/values-en-rAU/strings.xml new file mode 100644 index 00000000..668eae75 --- /dev/null +++ b/doze/resources/devicesettings/res/values-en-rAU/strings.xml @@ -0,0 +1,131 @@ + + + + + + On + + Off + + Advanced settings + + Gestures + + Extras + Haptic feedback + Vibrate when a gesture is detected + + Screen off gestures + Camera + Draw a \"C\" to activate camera + Email + Draw an \"e\" to open the email app + Messaging + Draw a \"M\" to open the messaging app + Messaging + Draw an \"S\" to open the messaging app + Dialler + Draw a \"V\" to open the dialler app + Browser + Draw a \"W\" to open the browser app + Torch + Draw a \'Z\' to toggle torch + Torch + Draw a circle to toggle torch + Music + Use gestures to control music playback \n + • Swipe down to play/pause\n + • Swipe left for previous track\n + • Swipe right for next track + + User-aware display + Keep the screen on while a user is in front of the display + + Ambient display + Ambient display + Wake screen when you receive notifications + Wake screen when you receive notifications + Screen will wake when you receive notifications + Screen will not wake when you receive notifications + + Tilt sensor + + Proximity sensor + + Hand wave + Pulse notifications on hand wave + Detect orientation + Pulse only if the phone is lying face up on a flat surface + + Pick-up + Pulse notifications on pick-up + + Pocket + Pulse notifications on removal from pocket + + Proximity wake + Proximity wake + Wake device on hand wave + + Actions + + Double-twist + Open camera when using the double twist gesture + + Chop-chop + Toggle torch when using the chop-chop gesture + + Wave to silence + Silence incoming calls by waving your hand across the screen + + Flip for Do Not Disturb + Place the phone face down to silence notifications and calls + + Please, give Do Not Disturb access to CMActions in order to use this feature. + + Pick up to stop ringing + Lift the phone to silence incoming calls. It only works when your phone starts flat + + Disable + Launch camera + Toggle torch + + Haptic feedback intensity + Strength of the haptic feedback for the double-twist and chop-chop actions + Disabled + Low + Medium + High + + OK + + Help + 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. + + Additional buttons + Swap buttons + Swap the order of recents and back buttons + + Fingerprint + Fingerprint as home + Use the fingerprint sensor as a home button + Fingerprint wake-up + Allow the fingerprint sensor to wake the device while the screen is off + Prevent accidental wake-up + Check the proximity sensor prior to wake-ups triggered by the fingerprint sensor + diff --git a/doze/resources/devicesettings/res/values-en-rGB/strings.xml b/doze/resources/devicesettings/res/values-en-rGB/strings.xml new file mode 100644 index 00000000..6bfd97ee --- /dev/null +++ b/doze/resources/devicesettings/res/values-en-rGB/strings.xml @@ -0,0 +1,131 @@ + + + + + + On + + Off + + Advanced settings + + Gestures + + Extras + Haptic feedback + Vibrate when a gesture got detected + + Screen off gestures + Camera + Draw a \"C\" to activate camera + Email + Draw an \"e\" to open the email app + Messaging + Draw a \"M\" to open the messaging app + Messaging + Draw an \"S\" to open the messaging app + Dialler + Draw a \"V\" to open the dialler app + Browser + Draw a \"W\" to open the browser app + Torch + Draw a \"Z\" to toggle torch + Torch + Draw a circle to toggle torch + Music + Use gestures to control music playback \n + • Swipe down to play/pause\n + • Swipe left for previous track\n + • Swipe right for next track + + User-aware display + Keep the screen on while a user is in front of the display + + Ambient display + Ambient display + Wake screen when you receive notifications + Wake screen when you receive notifications + Screen will wake when you receive notifications + Screen will not wake when you receive notifications + + Tilt sensor + + Proximity sensor + + Hand wave + Pulse notifications on hand wave + Detect orientation + Pulse only if the phone is lying face up on a flat surface + + Pick-up + Pulse notifications on pick-up + + Pocket + Pulse notifications on removal from pocket + + Proximity wake + Proximity wake + Wake device on hand wave + + Actions + + Double-twist + Open camera when using the double twist gesture + + Chop-chop + Toggle torch when using the chop-chop gesture + + Wave to silence + Silence incoming calls by waving your hand across the screen + + Flip for Do Not Disturb + Place the phone face down to silence notifications and calls + + Please give Do Not Disturb access to CMActions in order to use this feature. + + Pick up to stop ringing + Lift the phone to silence incoming calls. It only works when your phone starts flat + + Disable + Launch camera + Toggle torch + + Haptic feedback intensity + Strength of the haptic feedback for the double-twist and chop-chop actions + Disabled + Low + Medium + High + + OK + + Help + 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. + + Additional buttons + Swap buttons + Swap the order of recents and back buttons + + Fingerprint + Fingerprint as home + Use the fingerprint sensor as a home button + Fingerprint wake-up + Allow the fingerprint sensor to wake the device while the screen is off + Prevent accidental wake-up + Check the proximity sensor prior to wake-ups triggered by the fingerprint sensor + diff --git a/doze/resources/devicesettings/res/values-en-rIN/strings.xml b/doze/resources/devicesettings/res/values-en-rIN/strings.xml new file mode 100644 index 00000000..2099bc66 --- /dev/null +++ b/doze/resources/devicesettings/res/values-en-rIN/strings.xml @@ -0,0 +1,131 @@ + + + + + + On + + Off + + Advanced settings + + Gestures + + Extras + Haptic feedback + Vibrate when a gesture got detected + + Screen off gestures + Camera + Draw a \"C\" to activate camera + Email + Draw an \"e\" to open the email app + Messaging + Draw an \"M\" to open the messaging app + Messaging + Draw an \"S\" to open the messaging app + Dialler + Draw a \"V\" to open the dialler app + Browser + Draw a \"W\" to open the browser app + Torch + Draw a \"Z\" to toggle torch + Torch + Draw a circle to toggle torch + Music + Use gestures to control music playback \n + • Swipe down to play/pause\n + • Swipe left for previous track\n + • Swipe right for next track + + User-aware display + Keep the screen on while a user is in front of the display + + Ambient display + Ambient display + Wake screen when you receive notifications + Wake screen when you receive notifications + Screen will wake when you receive notifications + Screen will not wake when you receive notifications + + Tilt sensor + + Proximity sensor + + Hand wave + Pulse notifications on hand wave + Detect orientation + Pulse only if the phone is lying face up on a flat surface + + Pick-up + Pulse notifications on pick-up + + Pocket + Pulse notifications on removal from pocket + + Proximity wake + Proximity wake + Wake device on hand wave + + Actions + + Double-twist + Open camera when using the double twist gesture + + Chop-chop + Toggle torch when using the chop-chop gesture + + Wave to silence + Silence incoming calls by waving your hand across the screen + + Flip for Do Not Disturb + Place the phone face down to silence notifications and calls + + Please, give Do Not Disturb access to CMActions in order to use this feature. + + Pick up to stop ringing + Lift the phone to silence incoming calls. It only works when your phone starts flat + + Disable + Launch camera + Toggle torch + + Haptic feedback intensity + Strength of the haptic feedback for the double-twist and chop-chop actions + Disabled + Low + Medium + High + + OK + + Help + 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. + + Additional buttons + Swap buttons + Swap the order of recents and back buttons + + Fingerprint + Fingerprint as home + Use the fingerprint sensor as a home button + Fingerprint wake-up + Allow the fingerprint sensor to wake the device while the screen is off + Prevent accidental wake-up + Check the proximity sensor prior to wake-ups triggered by the fingerprint sensor + diff --git a/doze/resources/devicesettings/res/values-en-rPT/strings.xml b/doze/resources/devicesettings/res/values-en-rPT/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-en-rPT/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-eo/strings.xml b/doze/resources/devicesettings/res/values-eo/strings.xml new file mode 100644 index 00000000..34efbd42 --- /dev/null +++ b/doze/resources/devicesettings/res/values-eo/strings.xml @@ -0,0 +1,62 @@ + + + + + + + + Altnivelaj agordoj + + + + + Afiŝado laŭ la uzanto + Gardi la ekranon ŝaltita dum uzanto estas antaŭ la ekrano + + + + + Mansvingo + + + Poŝo + + Proksima veko + + + + + + + + + Malŝalti + Lanĉi fotilon + (Mal)ŝalti la lampon + + Intenseco de la tuŝa signilo + Forteco de la tuŝa signilo por la duobla turnado kaj chop-chop agojn + Malŝaltita + Preskaŭ malplena + Meza + Alta + + + + + diff --git a/doze/resources/devicesettings/res/values-es-rCO/strings.xml b/doze/resources/devicesettings/res/values-es-rCO/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-es-rCO/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-es-rMX/strings.xml b/doze/resources/devicesettings/res/values-es-rMX/strings.xml new file mode 100644 index 00000000..d5ec6f6c --- /dev/null +++ b/doze/resources/devicesettings/res/values-es-rMX/strings.xml @@ -0,0 +1,64 @@ + + + + + + + + Ajustes avanzados + + Gestos + + Extras + Respuesta háptica + Vibrar cuando se detecte un gesto + + Cámara + Dibuja una \"C\" para activar la cámara + Correo electrónico + Dibuja una \"e\" para abrir la aplicación correo electrónico + Centro de mensajes + Dibuja una \"S\" para abrir la aplicación de mensajería + Marcador + Dibuja una \"V\" para abrir la aplicación del marcador + Navegador + Dibuja una \"W\" para abrir la aplicación del navegador + Linterna + Dibuja una \"Z\" para conmutar la linterna + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-es-rUS/strings.xml b/doze/resources/devicesettings/res/values-es-rUS/strings.xml new file mode 100644 index 00000000..691220e0 --- /dev/null +++ b/doze/resources/devicesettings/res/values-es-rUS/strings.xml @@ -0,0 +1,131 @@ + + + + + + Activado + + Desactivado + + Ajustes avanzados + + Gestos + + Extras + Respuesta háptica + Vibrar al detectar un gesto + + Gestos de apagado + Cámara + Dibujar una \"C\" para activar la cámara + Correo electrónico + Dibujar una \"e\" para abrir la aplicación correo electrónico + Mensajes + Dibujar una \"M\" para abrir la aplicación de mensajería + Mensajes + Dibujar una \"S\" para abrir la aplicación de mensajería + Marcador + Dibujar una \"V\" para abrir la aplicación dialer + Navegador + Dibujar una \"W\" para abrir la aplicación navegador + Linterna + Dibujar una \"Z\" para alternar la linterna + Linterna + Dibujar un círculo para alternar la linterna + Música + Utilizar gestos para controlar la reproducción de música \n + • Deslizar hacia abajo para iniciar/pausar\n + • Deslizar a la izquierda para la pista anterior\n + • Deslizar a la derecha para la pista siguiente + + Pantalla en función de la presencia del usuario + Mantener la pantalla activa mientras el usuario esté frente a ella + + Pantalla ambiente + Pantalla ambiente + Encender pantalla al recibir notificaciones + Encender pantalla al recibir notificaciones + La pantalla se encenderá al recibir notificaciones + La pantalla no se encenderá al recibir notificaciones + + Sensor de inclinación + + Sensor de proximidad + + Pasar la mano + Mostrar notificaciones al pasar la mano sobre el dispositivo + Detectar orientación + Mostrar notificaciones sólo si el teléfono está sobre una superficie plana + + Levantar + Mostrar notificaciones al levantar + + Bolsillo + Mostrar notificaciones al sacar del bolsillo + + Encender por proximidad + Encender por proximidad + Encender el dispositivo al pasar la mano sobre él + + Acciones + + Doble giro + Abrir cámara al usar el gesto de doble giro + + Doble sacudida + Alternar linterna al usar el gesto de doble sacudida (chop-chop) + + Pasar la mano para silenciar + Silenciar llamadas entrantes al pasar la mano por la pantalla + + Voltear para modo No Molestar + Colocar el teléfono hacia abajo para silenciar notificaciones y llamadas + + Concede el acceso de No Molestar a CMActions para utilizar esta función. + + Levantar para silenciar + Levante el teléfono para silenciar las llamadas entrantes. Sólo funciona cuando el teléfono inicia sobre una superficie plana + + Desactivar + Iniciar cámara + Alternar linterna + + Intensidad de respuesta háptica + Intensidad de la respuesta háptica para las acciones de doble giro y doble sacudida + Desactivada + Baja + Media + Alta + + Aceptar + + Ayuda + Estas características usan eventos de sensor para lanzar un pulso de notificación doze. El sensor elegido sólo se activa cuando el dispositivo recibe una notificación, esto ayuda a reducir el uso de la batería. También hay una opción para activar el sensor elegido tan pronto como la pantalla se apaga, esto consumirá mayor batería. + + Botones adicionales + Intercambiar botones + Intercambiar el orden de los botones Recientes y Atrás + + Huella digital + Huella digital como página de inicio + Utilice el sensor de huellas dactilares como un botón de inicio + Encender con la huella dactilar + Permite que el sensor de la huella dactilar, active el dispositivo con la pantalla apagada + Prevenir encendido accidental + Comprueba el sensor de proximidad antes del encendido mediante huella digital + diff --git a/doze/resources/devicesettings/res/values-es/strings.xml b/doze/resources/devicesettings/res/values-es/strings.xml new file mode 100644 index 00000000..37f2d860 --- /dev/null +++ b/doze/resources/devicesettings/res/values-es/strings.xml @@ -0,0 +1,131 @@ + + + + + + Activado + + Desactivado + + Ajustes avanzados + + Gestos + + Extras + Respuesta háptica + Vibrar cuando se detecte un gesto + + Gestos con pantalla apagada + Cámara + Dibuja una \"C\" para activar la cámara + Correo electrónico + Dibuja una \"e\" para abrir la aplicación de correo electrónico + Mensajes + Dibuja una \"M\" para abrir la aplicación de mensajería + Mensajes + Dibuja una \"S\" para abrir la aplicación de mensajería + Marcador + Dibuja una \"V\" para abrir la aplicación del marcador + Navegador + Dibuja una \"W\" para abrir la aplicación del navegador + Linterna + Dibuja una \"Z\" para conmutar la linterna + Linterna + Dibuja un círculo para activar la linterna + Música + Utilizar gestos para controlar la reproducción de música \n + • Desliza hacia abajo para iniciar/pausar\n + • Desliza a la izquierda para la pista anterior\n + • Desliza a la derecha para la pista siguiente + + Pantalla en función de la presencia del usuario + Mantener la pantalla encendida mientras el usuario esté frente a ella + + Pantalla ambiental + Pantalla ambiental + Activar la pantalla cuando se reciben notificaciones + Activar la pantalla cuando recibas notificaciones + La pantalla se activará cuando reciba las notificaciones + La pantalla se activará cuando reciba las notificaciones + + Sensor de inclinación + + Sensor de proximidad + + Pasar la mano + Mostrar notificaciones cuando se pase la mano por el dispositivo + Detectar orientación + Mostrar notificaciones sólo si el teléfono está sobre una superficie plana + + Recoger + Mostrar notificaciones al recoger + + Bolsillo + Mostrar notificaciones cuando se saque del bolsillo + + Despertar por proximidad + Despertar por proximidad + Despertar el dispositivo al agitar + + Acciones + + Doble giro + Abrir cámara cuando se use el gesto de doble giro + + Doble sacudida + Alternar linterna cuando se usa el gesto de doble sacudida + + Agitar para silenciar la llamada + Silenciar llamada al pasar la mano por la pantalla + + Voltear para modo No Molestar + Colocar teléfono boca abajo para silenciar notificaciones y llamadas + + Por favor, dar acceso de no molestar a CMActions para poder utilizar esta función. + + Recoger para dejar de sonar + Levante el teléfono para silenciar las llamadas entrantes. Sólo funciona cuando el teléfono inicia sobre una superficie plana + + Desactivar + Iniciar cámara + Alternar linterna + + Intensidad de la respuesta háptica + Intensidad de la respuesta háptica para las acciones de doble giro y doble sacudida + Desactivada + Baja + Media + Alta + + OK + + Ayuda + Estas características usan eventos de sensor para lanzar un pulso de notificación doze. El sensor elegido sólo se activa cuando el dispositivo recibe una notificación, esto ayuda a reducir el uso de la batería. También hay una opción para activar el sensor elegido tan pronto como la pantalla se apaga, esto hará que un mayor uso de la batería. + + Botones adicionales + Intercambiar botones + Cambiar el orden de los botones \"recientes\" y \"atrás\" + + Huella dactilar + Huella dactilar como inicio + Usar el sensor de huellas dactilares como botón de inicio + Activado por huella dactilar + Permitir al sensor de huellas dactilares activar el dispositivo cuando la pantalla este apagada + Prevenir encendido accidental + Comprueba el sensor de proximidad antes de encender mediante huella dactilar + diff --git a/doze/resources/devicesettings/res/values-et-rEE/strings.xml b/doze/resources/devicesettings/res/values-et-rEE/strings.xml new file mode 100644 index 00000000..7b439957 --- /dev/null +++ b/doze/resources/devicesettings/res/values-et-rEE/strings.xml @@ -0,0 +1,88 @@ + + + + + + + + Täpsemad seaded + + Žestid + + Lisad + Haptiline tagasiside + Vibreeri kui žest avastati + + Väljalülitatud ekraani žestid + Kaamera + Joonista \"C\" täht, et aktiveerida kaamera + E-mail + Joonista \"E\" täht, et aktiveerida e-maili rakendus + Sõnumid + Joonista \"S\" täht, et avada sõnumite rakendus + Numbrivalija + Joonista \"V\" täht, et avada numbrivalija rakendus + Veebilehitseja + Joonista \"W\" täht, et avada veebilehitseja rakendus + Taskulamp + Joonista \"Z\" täht, et aktiveerida taskulamp + + Kasutaja teadlik ekraan + Hoia ekraan sees, kui kasutaja on ekraani ees + + Ambient ekraan + Ambient kuva + Ärata ekraan teavituste saabumisel + + + + Käe viibutus + Näita teavitust käe viibutusele + + Tõsta üles + Kuva teavitusi seadme tõstmisel + + Tasku + Näita teavitusi taskust välja võtmisel + + Läheduse äratus + Läheduse äratus + Ärata seade käe viibutusele + + + + + + + + + Keela + Käivita kaamera + Lülita taskulamp + + Puutetagasiside intensiivsus + Topelt-vääne ja ruttu-tuttu toimingute puutetagasiside tugevus + Keelatud + Madal + Keskmine + Kõrge + + + + + diff --git a/doze/resources/devicesettings/res/values-eu-rES/strings.xml b/doze/resources/devicesettings/res/values-eu-rES/strings.xml new file mode 100644 index 00000000..760aae94 --- /dev/null +++ b/doze/resources/devicesettings/res/values-eu-rES/strings.xml @@ -0,0 +1,131 @@ + + + + + + Bai + + Ez + + Ezarpen aurreratuak + + Keinuak + + Gehigarriak + Erantzun haptikoa + Bibratu keinu bat antzematean + + Pantaila itzaltzeko keinuak + Kamera + Marraztu \"C\" bat kamera abiatzeko + E-posta + Marraztu \"e\" bat e-posta aplikazioa irekitzeko + Mezularitza + Marraztu \"M\" bat mezularitza aplikazioa irekitzeko + Mezularitza + Marraztu \"S\" bat mezularitza aplikazioa irekitzeko + Markatzailea + Marraztu \"V\" bat markatzailea irekitzeko + Nabigatzailea + Marraztu \"W\" bat nabigatzailea irekitzeko + Linterna + Marraztu \"Z\" bat linterna txandakatzeko + Linterna + Marraztu zirkulu bat linterna txandakatzeko + Musika + Erabili keinuak musika erreprodukzioa kontrolatzeko \n + • Pasatu hatza behera erreproduzitu/pausatzeko\n + • Pasatu hatza ezkerrera aurreko pista entzuteko\n + • Pasatu hatza eskumara hurrengo pista entzuteko + + Erabiltzaile aintzakotzat duen pantaila + Mantendu pantaila piztuta erabiltzailea begira dagoen bitartean + + Ambient display + Ambient display + Esnatu pantaila jakinarazpenak jasotzean + Piztu pantaila jakinarazpenak jasotzean + Pantaila piztuko da jakinarazpenak jasotzen dituzunean + Pantaila ez da piztuko jakinarazpenak jasotzen dituzunean + + Inklinazio sentsorea + + Hurbiltasun sentsorea + + Eskuarekin agurtu + Jakinarazpen argia eskuarekin agurtzean + Antzeman orientazioa + Jakinarazpen argia telefonoa azalera horizontal batean buruz gora badago besterik ez + + Hartu + Bistarazi jakinarazpenak hartzean + + Poltsikoratu + Jakinarazpen argia poltsikotik ateratzean + + Hurbiltasun bidezko esnatzea + Hurbiltasun bidezko esnatzea + Esnatu gailua eskuarekin agurtzean + + Ekintzak + + Birritan biratu + Ireki kamera birritan biratu keinua erabiltzean + + Moztu-moztu + Txandakatu linterna moztu-moztu keinua erabiltzean + + Eskuarekin agurtu isilarazteko + Isildu jasotako deiak eskuarekin pantaila gainetik agurtuz + + Itzulbiratu ez molestatzeko + Jarri telefonoa buruz behera jakinarazpenak eta deiak isilarazteko + + Eman Ez molestatu elementuari CMActions atzitzeko eskubidea ezaugarri hau erabili ahal izateko. + + Hartu txirrina gelditzeko + Altzatu telefonoa jasotako deiak isilarazteko. Telefonoa etzanda dagoenean besterik ez dabil + + Ezgaitu + Abiatu kamera + Txandakatu linterna + + Erantzun haptikoaren intentsitatea + Erantzun haptikoaren indarra birritan biratu eta moztu-moztu ekintzetan + Ezgaituta + Baxua + Ertaina + Altua + + Ados + + Laguntza + 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. + + Botoi gehigarriak + Trukatu botoiak + Trukatu azkenak eta atzera botoien ordena + + Hatz-marka + Hatz-marka hasiera gisa + Erabili hatz-marken sentsorea hasiera-botoi gisa + Hatz-marka bidez esnatu + Baimendu hatz-marka sentsoreari gailua esnatzen pantaila itzalita dagoen bitartean + Eragotzi ustekabeko esnatzea + Egiaztatu hurbiltasun sentsorea hatz-marka sentsoreak eragindako esnatzeen aurretik + diff --git a/doze/resources/devicesettings/res/values-fa/strings.xml b/doze/resources/devicesettings/res/values-fa/strings.xml new file mode 100644 index 00000000..34addc54 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fa/strings.xml @@ -0,0 +1,73 @@ + + + + + + + + تنظیمات پیشرفته + + حرکات + + موارد اضافی + بازخورد لمسی + لرزیدن هنگام تشخیص حرکت + + + نمایش کاربر آگاه + روشن نگه داشتن صفحه زمانی که کاربری جلوی صفحه نمایش است + + نمایش حساس به محیط + نمایش حساس به محیط + روشن شدن صفحه هنگام دریافت اعلان + + + + حرکت دست + چشمک زدن اعلان‌ها هنگام حرکت دست + + + جیب + چشمک زدن اعلان‌ها هنگام بیرون آوردن از جیب + + روشن شدن هنگام مجاورت + بیدارباش مجاورت + روشن شدن دستگاه با تکان دادن دست + + + + + + + + + غیرفعال کردن + اجرای دوربین + سوئیچ چراغ‌قوه + + شدت بازخورد لمسی + شدت بازخورد لمسی برای حرکات دوبار پیچش و چاپ چاپ + غیرفعال + کم + متوسط + زیاد + + + + + diff --git a/doze/resources/devicesettings/res/values-fi/strings.xml b/doze/resources/devicesettings/res/values-fi/strings.xml new file mode 100644 index 00000000..b7f4c5b4 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fi/strings.xml @@ -0,0 +1,131 @@ + + + + + + Käytössä + + Pois käytöstä + + Lisäasetukset + + Eleet + + Ekstrat + Haptinen palaute + Värise kun ele tunnistetaan + + Suljetun näytön eleet + Kamera + Piirrä \"C\" aktivoidaksesi kameran + Sähköposti + Piirrä \"e\" avataksesi sähköpostisovelluksen + Viestit + Piirrä \"M\" avataksesi viestisovelluksen + Viestit + Piirrä \"S\" avataksesi viestisovelluksen + Puhelin + Piirrä \"V\" avataksesi puhelusovelluksen + Selain + Piirrä \"W\" avataksesi selaimen + Taskulamppu + Piirrä \"Z\" avataksesi taskulampun + Taskulamppu + Piirrä ympyrä avataksesi taskulampun + Musiikki + Käytä eleitä ohjataksesi musiikkia\n + • Pyyhkäise alas toistaaksesi/keskeyttääksesi\n + • Pyyhkäise vasemmalle vaihtaaksesi edellisen kappaleen\n + • Pyyhkäise oikealle vaihtaaksesi seuraavan kappaleen + + Käyttäjän tunnistava näyttö + Pidä näyttö päällä kun käyttäjä on näytön edessä + + Ambient-näyttö + Ambient-näyttö + Herätä näyttö kun saat ilmoituksia + Herätä näyttö kun saat ilmoituksia + Näyttö käynnistyy kun saat ilmoituksia + Näyttö ei käynnisty kun saat ilmoituksia + + Kallistussensori + + Läheisyysanturi + + Käden heilautus + Näytä ilmoitukset heilautettaessa kättä + Tunnista asento + Näytä ilmoitukset vain jos puhelin on näyttö ylöspäin tasaisella alustalla + + Nosto + Näytä ilmoitukset nostaessa laitetta + + Tasku + Näytä ilmoitukset kun laite otetaan taskusta + + Läheisyysanturin herätys + Läheisyysanturin herätys + Herätä laite heilauttamalla kättä + + Tehtävät + + Tuplakierre + Avaa kamera kiertäessä laite kahdesti + + Leikkaa + Avaa taskulamppu leikkauseleellä + + Hiljennä heilauttamalla + Hiljennä tulevat puhelut heilauttamalla kättä ruudun yli + + Älä häiritse-tila kääntäessä + Aseta puhelin näyttö alaspäin hiljentääksesi ilmoitukset ja puhelut + + Anna CMActions:lle oikeudet Älä häiritse-tilaan käyttääksesi tätä toimintoa. + + Nosta hiljentääksesi + Nosta puhelin hiljentääksesi saapuvan puhelun. Se toimii vain kun puhelin on tasaisella nostettaessa + + Poista käytöstä + Käynnistä kamera + Käynnistä taskulamppu + + Haptisen palautteen intensiteetti + Haptisen palautuksen voimakkuus tuplakierre- ja leikkauseleillä + Pois käytöstä + Matala + Keskitaso + Korkea + + OK + + Apua + 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. + + Lisänäppäimet + Vaihda näppäimet + Vaihda Takaisin- ja Viimeisimmät-näppäinten paikkaa + + Sormenjälki + Sormenjälki Koti-näppäimenä + Käytä sormenjäljenlukijaa Koti-näppäimenä + Herätys sormenjäljellä + Salli sormenjäljenlukijan herättää laite näytön ollessa pois päältä + Estä herätys vahingossa + Tarkista läheisyysanturi estääksesi herättämisen vahingossa sormenjäljentunnistimen avulla + diff --git a/doze/resources/devicesettings/res/values-fil-rPH/strings.xml b/doze/resources/devicesettings/res/values-fil-rPH/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fil-rPH/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-fr-rCA/strings.xml b/doze/resources/devicesettings/res/values-fr-rCA/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fr-rCA/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-fr/strings.xml b/doze/resources/devicesettings/res/values-fr/strings.xml new file mode 100644 index 00000000..591ba125 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fr/strings.xml @@ -0,0 +1,129 @@ + + + + + + Activé + + Désactivé + + Paramètres avancés + + Gestes + + Extras + Retour haptique + Vibrer lorsqu\'un geste est détecté + + Gestes écran éteint + Appareil photo + Dessiner un « C » pour activer l\'appareil photo + E-mail + Dessiner un « e » pour ouvrir l\'application email + Messagerie + Dessinez un \"M\" pour ouvrir l\'application de messagerie + Messagerie + Dessiner un « S » pour ouvrir l\'application messagerie + Composeur + Dessiner un « V » pour ouvrir l\'application composeur + Navigateur + Dessiner un « W » pour ouvrir l\'application navigateur + Lampe de poche + Dessiner un « Z » pour activer/désactiver la lampe de poche + Lampe de poche + Dessiner un cercle pour activer/désactiver la lampe de poche + Musique + Utiliser des gestes pour contrôler la lecture de la musique \n + •Balayer vers le bas pour Lire ou Pause\n + •Balayer vers la gauche pour la piste précédente\n + •Balayer vers la droite pour la piste suivante + + Affichage selon l\'utilisateur + Garder l\'écran allumé tant qu\'un utilisateur le regarde + + Affichage ambiant + Affichage ambiant + Allume l\'écran lorsque vous recevez des notifications + Activer l\'écran quand vous recevez des notifications + L\'écran s\'activera quand vous recevez des notifications + L\'écran ne s\'activera pas quand vous recevez des notifications + + Capteur d’inclinaison + + Capteur de proximité + + Passage de la main + Le voyant des notifications clignote en passage de main + Détecter l\'orientation + + Prise en main + Afficher les notifications lors de la prise en main + + Poche + Le voyant des notifications clignote en sortie de poche + + Activation de proximité + Activation de proximité + Réveiller l\'appareil par passage de main + + Actions + + Double torsion + Ouvrir l\'appareil photo avec le geste de double torsion + + Double tranchage + Activer/désactiver la lampe de poche avec le geste de double tranchage + + Secouer pour couper le son + Couper la sonnerie des appels entrants en passant la main sur l\'écran + + Retourner pour activer \"Ne pas déranger\" + Mettez le téléphone face vers le bas pour couper le son des notifications et appels + + Veuillez donner l\'accès à \"Ne pas déranger\" à CMActions pour utiliser cette fonctionnalité. + + Prendre en main pour arrêter la sonnerie + Soulever le téléphone pour couper la sonnerie des appels entrants. Fonctionne uniquement lorsque votre téléphone est posé à plat + + Désactiver + Lancer l\'appareil photo + Basculer la torche + + Intensité du retour haptique + Intensité du retour haptique pour la double-torsion et le double -tranchage + Désactivé + Faible + Moyenne + Élevée + + OK + + Aide + Ces fonctionnalités utilisent des capteurs pour afficher les notifications en mode sommeil. Le capteur choisi est activé uniquement lorsque l\'appareil reçoit une notification, cela aide à réduire l\'utilisation de la batterie. Il y a également une option pour activer le capteur choisi aussitôt que l\'écran s\'éteint, mais cela causera une utilisation plus importante de la batterie. + + Boutons supplémentaires + Permuter les boutons + Permuter les boutons retour et récents + + Empreinte digitale + Lecteur d\'empreinte digitale comme bouton d\'accueil + Utiliser le capteur d’empreintes digitales comme bouton accueil + Réveiller l\'appareil via le lecteur d\'empreinte + Permet au capteur d\'empreintes digitales de réveiller l\'appareil quand l\'écran est éteint + Empêcher un réveil accidentel + diff --git a/doze/resources/devicesettings/res/values-frp-rIT/strings.xml b/doze/resources/devicesettings/res/values-frp-rIT/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-frp-rIT/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-fy-rNL/strings.xml b/doze/resources/devicesettings/res/values-fy-rNL/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-fy-rNL/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ga-rIE/strings.xml b/doze/resources/devicesettings/res/values-ga-rIE/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ga-rIE/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-gd-rGB/strings.xml b/doze/resources/devicesettings/res/values-gd-rGB/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-gd-rGB/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-gl-rES/strings.xml b/doze/resources/devicesettings/res/values-gl-rES/strings.xml new file mode 100644 index 00000000..8440ebb9 --- /dev/null +++ b/doze/resources/devicesettings/res/values-gl-rES/strings.xml @@ -0,0 +1,131 @@ + + + + + + Aceso + + Apagado + + Axustes avanzados + + Xestos + + Extras + Resposta háptica + Vibrar cando un xesto é detectado + + Gestos de apagado + Cámara + Debuxar un \"C\" para activar a cámara + Correo electrónico + Debuxar un \"e\" para abrir a aplicación do correo electrónico + Mensaxes + Debuxar un \"M\" para abrir a aplicación de mensaxes + Mensaxes + Debuxar un \"S\" para abrir a aplicación de mensaxes + Teléfono + Debuxar un \"V\" para abrir a aplicación do teléfono + Navegador + Debuxar un \"W\" para abrir a aplicación do navegador + Lanterna + Debuxar un \"Z\" para des/activar a lanterna + Lanterna + Debuxar un círculo para des/activar a lanterna + Música + Usar xestos para controlar a reprodución de música \n + • Esvarar cara abaixo para reproducir/deter\n + • Esvarar á esquerda para pista anterior\n + • Esvarar á dereita para pista seguinte + + Visualización en función da presencia do usuario + Manter a pantalla acesa mentes o usuario estea diante dela + + Visualización ambiente + Visualización ambiente + Activar a pantalla ao recibir notificacións + Activar a pantalla ao recibir notificacións + A pantalla acenderase ao recibir notificacións + A pantalla non acenderase ao recibir notificacións + + Sensor de inclinación + + Sensor de proximidade + + Pasar a man + Amosar notificacións ao pasar a man + Detectar a orientación + Amosar notificacións só se o móbil está nunha superficie plana coa pantalla cara arriba + + Contestar + Amosar notificacións ao contestar + + Peto + Amosar notificacións ao sacar do peto + + Activar por proximidade + Activar por proximidade + Activar o dispositivo ao pasar a man + + Accións + + Dobre xiro + Abrir a cámara ao utilizar o xesto de dobre xiro + + Dobre abaneado + Trocar linterna cando se usa o xesto de duplo corte (chop-chop) + + Pasar a man para silenciar + Silenciar chamadas entrantes ao pasa-la man pola pantalla + + Xirar para activar Non Molestar + Deixar o móbil coa pantalla cara abaixo para silenciar as notificacións e chamadas + + Por favor, concede acceso ao CMActions a Non Molestar para poder usar esta función. + + Coller para deixar de soar + Coller o móbil para silenciar as chamadas. Só funciona se o móbil esta pousado + + Desactivar + Iniciar a cámara + Lanterna + + Intensidade da resposta háptica + Intensidade da resposta háptica para as accions de dobre xiro e dobre toque rápido + Desactivado + Baixa + Media + Alta + + ACEPTAR + + Axuda + Estas características usan eventos do sensor para amosar unha notificación latente. O sensor seleccionado habilitarase só cando reciba unha notificación axudando a reducir o consumo da batería. Tamén existe unha opción para activar o sensor así que se apague a pantalla, pero isto causará un maior uso da batería. + + Botóns adicionais + Trocar os botóns + Trocar a orde dos botóns recentes e atrás + + Pegada dixital + Pegada dixital como inicio + Empregar a pegada dixital como sensor do botón inicio + Acender coa pegada dixital + Permite ao sensor de pegada dixital activar o dispositivo coa pantalla apagada + Previr acender de forma accidental + Verificar o sensor de proximidade antes de acender o dispositivo coa pegada dixital + diff --git a/doze/resources/devicesettings/res/values-gu-rIN/strings.xml b/doze/resources/devicesettings/res/values-gu-rIN/strings.xml new file mode 100644 index 00000000..13d3e89b --- /dev/null +++ b/doze/resources/devicesettings/res/values-gu-rIN/strings.xml @@ -0,0 +1,90 @@ + + + + + + + + વિગતવાર સેટિંગ્સ + + જેસ્ચર્સ + + એક્સ્ટ્રા + હેપ્ટિક પ્રતિસાદ + અંગસ્થિતિ સૂચિત થાય ત્યારે વાઇબ્રેટ કરો + + કૅમેરો + \"C\" દોરો કેમેરા સક્રિય કરવા માટે + ઇમેઇલ + \"e\" દોરો ઈમેઈલ એપ્લીકેશન સક્રિય કરવા માટે + મેસેજિંગ + \"S\" દોરો મેસેજિંગ એપ્લીકેશન સક્રિય કરવા માટે + ડાયલર + \"V\" દોરો ડાયલર એપ્લીકેશન સક્રિય કરવા માટે + બ્રાઉઝર + \"W\" દોરો બ્રાઉઝર એપ્લીકેશન સક્રિય કરવા માટે + ફ્લેશલાઇટ + ફ્લૅશલાઇટ ટૉગલ કરવા માટે \'Z\' દોરો + + ઉપયોગકર્તા-માહિતગાર ડિસ્પ્લે + ઉપયોગકર્તા ડિસ્પ્લેની સામે હોય ત્યારે સ્ક્રીન ચાલુ રાખો + + વ્યાપક ડિસ્પ્લે + વ્યાપક ડિસ્પ્લે + જ્યારે તમે સૂચનાઓ પ્રાપ્ત કરો ત્યારે સ્ક્રીન જગાવો + + + + હાથ ફરકાવો + હાથ ફરકાવા પર પલ્સ સૂચનાઓ + + + ગજવું + ગજવામાંથી બહાર કાઢવાથી પલ્સ સૂચનાઓ + + પ્રૉક્સિમિટી જાગૃતિ + પ્રૉક્સિમિટી જાગૃતિ + હાથ હલાવવાથી ડિવાઇસ જગાવો + + પગલાં + + ડબલ-ટ્વિસ્ટ + + ચોપ-ચોપ + + શાંત પાડવા હાથ હલાવવો + સ્ક્રીન પરથી હાથ હલાવીને ઇનકમિંગ કોલ શાંત કરો અને ઍલાર્મ સ્નૂઝ કરો + + + + + અક્ષમ કરો + કેમેરા લૉન્ચ કરો + ટૉગલ ટોર્ચ + + હેપ્ટિક પ્રતિભાવ તીવ્રતા + ડબલ-ટ્વીસ્ટ અને ચૉપ-ચૉપ ક્રિયાઓ માટે હેપ્ટિક પ્રતિભાવનું બળ + અક્ષમ + નિમ્ન + મધ્યમ + ઉચ્ચ + + + + + diff --git a/doze/resources/devicesettings/res/values-hi/strings.xml b/doze/resources/devicesettings/res/values-hi/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-hi/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-hr/strings.xml b/doze/resources/devicesettings/res/values-hr/strings.xml new file mode 100644 index 00000000..02abda3b --- /dev/null +++ b/doze/resources/devicesettings/res/values-hr/strings.xml @@ -0,0 +1,127 @@ + + + + + + Uključeno + + Isključeno + + Napredne postavke + + Geste + + Dodatno + Dodirna povratna informacija + Vibracija kada se gesta prepozna + + Geste isključenog zaslona + Fotoaparat + Nacrtajte \"C\" da biste aktivirali Fotoaparat + E-pošta + Nacrtajte \"e\" da biste otvorili aplikaciju e-pošte + Poruke + Nacrtajte \"M\" za otvaranje aplikacije Poruke + Poruke + Nacrtajte \"S\" za otvaranje aplikacije Poruke + Brojčana tipkovnica + Nacrtajte \"V\" da biste otvorili aplikaciju Brojčana tipkovnica + Preglednik + Nacrtajte \"W\" za otvaranje aplikacije Preglednik + Bljeskalica + Nacrtajte \"Z\" za upravljanje svjetiljkom + Bljeskalica + Nacrtajte krug za upravljanje svjetiljkom + Glazba + Koristi geste za kontrolu glazbe \n + • Kliznite dolje za sviranje/pauzu\n + • Kliznite lijevo za prethodnu pjesmu\n + • Kliznite desno za sljedeću pjesmu + + Korisniku prilagođen prikaz + Drži zaslon uključen dok je korisnik ispred zaslona + + Ambijentni zaslon + Ambijentni zaslon + Probudi zaslon kada primite obavijesti + Probudi zaslon kada primite obavijesti + Zaslon će se probuditi kad primite obavijesti + Zaslon se neće probuditi kad primite obavijesti + + Senzor nagiba + + Senzor blizine + + Zamah rukom + Prikaz obavijesti na zamah rukom + + Podizanje + Prikaz obavijesti kod podizanja + + Džep + Prikaz obavijesti kada izvadite uređaj iz džepa + + Probudi zaslon na blizinu + Probudi zaslon na blizinu + Probudi uređaj na zamah rukom + + Radnje + + Dvostruki zaokret + Otvori fotoaparat gestom dvostruki zaokret + + Chop-chop + Uključi/isključi svjetiljku koristeći chop-chop gestu + + Mahni za tišinu + Utišaj dolazne pozive mahanjem preko zaslona + + Preokreni za Ne ometaj + Okrenite telefon prema dolje za utišavanje obavijesti i poziva + + Molimo vas, dajte \"Ne ometaj\" pristup CMActions da biste mogli koristiti ovu opciju. + + Javi se da prestane zvoniti + Podignite uređaj da utišate dolazne pozive. Radi samo kada vaš telefon počinje iz ravnog položaja + + Onemogući + Pokreni kameru + Prekidač svjetiljke + + Intenzitet odgovora dodira + Jakost povratne informacije za duplu rotaciju i požuri akciju + Onemogućeno + Niska + Srednje + Visoka + + OK + + Pomoć + 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. + + Dodatne tipke + Zamijeni tipke + Zamijeni redoslijed tipke za prikaz nedavnih aplikacije i tipke za povratak natrag + + Otisak prsta + Otisak prsta kao početni gumb + Upotrebljavajte senzor za otisak prsta kao gumb za početni zaslon + Buđenje otiskom + Omogućite senzoru otiska prsta da probudi uređaj kad je zaslon isključen. + diff --git a/doze/resources/devicesettings/res/values-hu/strings.xml b/doze/resources/devicesettings/res/values-hu/strings.xml new file mode 100644 index 00000000..96e9049e --- /dev/null +++ b/doze/resources/devicesettings/res/values-hu/strings.xml @@ -0,0 +1,128 @@ + + + + + + Be + + Ki + + Speciális beállítások + + Kézmozdulatok + + Extrák + Érintési visszajelzés + Rezeg, mikor egy gesztus érzékelésre kerül + + Képernyő-kikapcsoló gesztusok + Kamera + Rajzoljon egy \"C\" betűt a kamera indításához + E-mail + Rajzoljon egy \"e\" betűt a levelező indításához + Üzenetváltás + Rajzoljon egy \"M\" betűt az üzenetváltás indításához + Üzenetváltás + Rajzoljon egy \"S\" betűt az üzenetváltás indításához + Tárcsázó + Rajzoljon egy \"V\" betűt a tárcsázó indításához + Böngésző + Rajzoljon egy \"W\" betűt a böngésző indításához + Zseblámpa + Rajzoljon egy \"Z\" betűt a zseblámpához + Zseblámpa + Rajzoljon egy kört a zseblámpához + Zene + Használjon kézmozdulatokat a lejátszó vezérléséhez \n + • Csúsztassa lefelé a lejátszáshoz/szüneteltetéshez\n + • Csúsztassa balra az előző számra ugráshoz\n + • Csúsztassa jobbra a következő számra ugráshoz + + Felhasználó-érzékelő kijelző + Tartsa bekapcsolva a képernyőt, míg a felhasználó a kijelző előtt van + + Környezeti kijelző + Környezeti kijelző + Képernyő ébresztése értesítések fogadásakor + Képernyő felébresztése értesítések fogadásakor + Képernyő ébresztése értesítések fogadásakor + Képernyő nem ébred értesítések fogadásakor + + Dőlés érzékelő + + Közelség érzékelő + + Lebegő simítás + Értesítések felvillantása lebegő simításnál + + Kézbevétel + Értesítések felvillantása kézbevételkor + + Zseb + Értesítések felvillantása zsebből való kivételkor + + Közelség ébresztés + Közelség ébresztés + Készülék ébresztése lebegő simításra + + Műveletek + + Dupla megforgatás + Kamera megnyitása dupla megforgatási mozdulatra + + Tak-tak + Zseblámpa váltása a tak-tak mozdulat használatakor + + Némítás simítással + Bejövő hívás némítása a képernyőn való végigsimítással + + Fordítsa fel a \"Ne zavarj\" bekapcsolásához + Helyezze a telefont kijelzővel lefelé az értesítések és a hívások némításához + + A funkció használatához adjon \"Ne zavarjon\" hozzáférést a CMActions részére. + + Vegye fel a csengetés befejezéséhez + Emelje fel a telefont a bejövő hívások némításához. Ez csak akkor működik, ha a telefon vízszintes helyzetben volt + + Letiltva + Kamera indítása + Zseblámpa + + Érintési visszajelzés intenzitása + Érintési visszajelzés erőssége a dupla megforgatás és a tak-tak műveletekhez + Letiltva + Alacsony + Közepes + Magas + + Rendben + + Súgó + 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. + + További gombok + Gombok felcserélése + Előzmények és a vissza gomb sorrendjének felcserélése + + Ujjlenyomat + Ujjlenyomat kezdőlap gombként + Ujjlenyomat érzékelő használata kezdőlap gombként + Ujjlenyomat ébresztés + Lehetővé teszi, hogy az ujjlenyomat érzékelő felébressze az eszközt, amkor a képernyő ki van kapcsolva + Véletlen ébresztés megakadályozása + diff --git a/doze/resources/devicesettings/res/values-hy-rAM/strings.xml b/doze/resources/devicesettings/res/values-hy-rAM/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-hy-rAM/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-in/strings.xml b/doze/resources/devicesettings/res/values-in/strings.xml new file mode 100644 index 00000000..2844d4ef --- /dev/null +++ b/doze/resources/devicesettings/res/values-in/strings.xml @@ -0,0 +1,124 @@ + + + + + + Hidup + + Mati + + Pengaturan lanjut + + Gerakan + + Tambahan + Umpan balik haptic + Bergetar pada saat gerakan terdeteksi + + Gerakan layar mati + Kamera + Gambar \"C\" untuk mengaktifkan kamera + Surel + Gambar \"e\" untuk membuka aplikasi surel + Pesan + Gambar \"M\" untuk membuka aplikasi pesan + Pesan + Gambar \"S\" untuk membuka aplikasi pesan + Pendial + Gambar \"V\" untuk membuka aplikasi pendial + Peramban + Gambar \"W\" untuk membuka aplikasi peramban + Senter + Gambar \"Z\" untuk mengaktifkan/menonaktifkan senter + Senter + Gambar sebuah lingkaran untuk menyalakan lampu senter + Musik + Gunakan gerakan untuk mengontrol pemutaran musik \n + • Usap ke bawah untuk putar/jeda\n + • Usap ke kiri untuk trek sebelumnya\n + • Usap ke kanan untuk trek selanjutnya + + Tampilan sadar pengguna + Biarkan layar menyala ketika pengguna sedang berada di depan layar + + Tampilan ambien + Tampilan ambien + Bangunkan layar saat Anda menerima Pemberitahuan + Hidupkan layar saat Anda menerima pemberitahuan + Layar akan hidup ketika menerima pemberitahuan + Layar tidak akan hidup ketika menerima pemberitahuan + + Sensor kemiringan + + Sensor jarak + + Guncang Tangan + Kedipakan pemberitahuan saat melambaikan tangan + + Ambil + Kedipkan pemberitahuan saat diambil + + Saku + Pemberitahuan berkedip pada saat keluar dari saku + + Bangunkan saat dekat + Bangunkan saat dekat + Bangunkan perangkat dengan guncang tangan + + Tindakan + + Dua kali putar + Buka Kamera ketika melakukan gerakan dwiputar + + Dwiguncang + Aktifkan/nonaktifkan senter ketika menggunakan gerakan dwiguncang + + Lambai untuk senyap + Senyapkan panggilan masuk dengan melambaikan tangan di depan layar + + Membalik untuk Jangan Ganggu + Balik layar telepon ke bawah untuk mengabaikan notifikasi dan panggilan + + Silahkan berikan akses Jangan Ganggu ke CMActions untuk menggunakan fitur ini. + + Angkat untuk menghentikan dering + Mengangkat telepon untuk menghentikan nada panggilan masuk. Ini hanya bekerja saat telepon dalam posisi datar + + Nonaktifkan + Buka kamera + Hidup/matikan senter + + Intensitas tanggapan sentuhan + Kekuatan tanggapan sentuhan untuk tindakan dwiputar dan dwiguncang + Dinonaktifkan + Lemah + Sedang + Kuat + + Oke + + Bantuan + Fitur-fitur ini menggunakan aktivitas sensor untuk meluncurkan pulse pemberitahuan tertidur. sensor yang dipilih hanya diaktifkan bila perangkat menerima pemberitahuan, ini membantu mengurangi penggunaan baterai. Ada juga pilihan untuk mengaktifkan sensor yang dipilih secepat layar mati, ini akan menyebabkan penggunaan baterai yang lebih tinggi. + + Tombol tambahan + Tukar urutan tombol terkini dan kembali + + Sidik jari + Mencegah bangun yang tidak disengaja + Periksa sensor kedekatan sebelum memicu sensor sidik jari + diff --git a/doze/resources/devicesettings/res/values-is-rIS/strings.xml b/doze/resources/devicesettings/res/values-is-rIS/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-is-rIS/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-it/strings.xml b/doze/resources/devicesettings/res/values-it/strings.xml new file mode 100644 index 00000000..263152f1 --- /dev/null +++ b/doze/resources/devicesettings/res/values-it/strings.xml @@ -0,0 +1,131 @@ + + + + + + On + + Off + + Impostazioni avanzate + + Gesture + + Extra + Feedback tattile + Vibra quando viene rilevata una gesture + + Gesture schermo spento + Fotocamera + Disegna una \"C\" per aprire la fotocamera + Email + Disegna una \"E\" per aprire l\'app email + Messaggi + Disegna una \"M\" per aprire l\'app messaggi + Messaggi + Disegna una \"S\" per aprire l\'app messaggi + Telefono + Disegna una \"V\" per aprire il telefono + Browser + Disegna una \"W\" per aprire il browser + Torcia + Disegna una \"Z\" per accendere la torcia + Torcia + Disegna un cerchio per accendere la torcia + Musica + Usa le gesture per controllare la riproduzione musicale\n +• Scorri verso il basso per play/pausa\n +• Scorri verso sinistra per la traccia precedente\n +• Scorri verso destre per la traccia sucessiva + + Visualizzazione utente + Tiene lo schermo accesso quando l\'utente lo guarda + + Ambient display + Ambient display + Attiva lo schermo quando ricevi notifiche + Accendi lo schermo quando ricevi una notifica + Accende lo schermo quando ricevi una notifica + Non accende lo schermo quando ricevi una notifica + + Sensore inclinazione + + Sensore prossimità + + Movimento della mano + Mostra notifiche al passaggio della mano + Rileva orientamento + Visualizza solo se il telefono é appoggiato orizzontalmente su una superficie piatta + + Sollevamento + Mostra notifiche al sollavamento + + Tasca + Mostra notifiche quando togli dalla tasca + + Risveglio prossimità + Risveglio prossimità + Risveglia il dispositivo al passaggio della mano + + Azioni + + Doppio scuotimento + Apri la fotocamera quando scuoti due volte + + Chop-chop + Accendi la torcia quando utilizzi la gesture chop-chop + + Muovi la mano per silenziare + Silenza le chiamate in arrivo passando la mano sopra lo schermo + + Capovolgi per non disturbare + Metti a faccia in giù il telefono per silenziare le notifiche e chiamate + + Consenti il permesso di accedere a Non disturbare a CMActions per utilizzare questa funzione. + + Prendi in mano per silenziare + Solleva il telefono per silenziare le chiamate in arrivo. Funziona solo se il telefono era su una superficie piatta + + Disattiva + Avvia Fotocamera + Torcia + + Intensità feedback tattile + Forza del feedback tattile per le azioni doppio scuotimento e chop-chop + Disattivato + Bassa + Media + Alta + + OK + + Guida + 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. + + Pulsanti aggiuntivi + Inverti pulsanti + Inverti la posizione dei tasti indietro e panoramica + + Impronte digitali + Impronte digitali come home + Utilizza lettore impronte digitali come pulsante home + Risveglo impronte digitali + Consenti al sensore d\'impronte digitali di risvegliare il dispositivo quando lo schermo è spento + Previeni risvegli accidentali + Controla il sensore di prossimità prima di risvegliare lo smartphone con le impronte digitali + diff --git a/doze/resources/devicesettings/res/values-iw/strings.xml b/doze/resources/devicesettings/res/values-iw/strings.xml new file mode 100644 index 00000000..ebdbe319 --- /dev/null +++ b/doze/resources/devicesettings/res/values-iw/strings.xml @@ -0,0 +1,131 @@ + + + + + + מופעל + + כבוי + + הגדרות מתקדמות + + מחוות + + תוספות + משוב רטט + רטוט כאשר מחווה מזוהה + + מחוות לכיבוי המסך + מצלמה + צייר \"C\" כדי להפעיל את המצלמה + דוא\"ל + צייר \"e\" להפעלת יישום הדוא\"ל + הודעות + צייר \"M\" לפתיחת יישום ההודעות + הודעות + צייר \"S\" להפעלת יישום ההודעות + חייגן + צייר \"V\" לפתיחת החייגן + דפדפן + צייר \"W\" לפתיחת הדפדפן + פנס + צייר \"Z\" להפעלת/כיבוי הפנס + פנס + צייר עיגול להפעלת/כיבוי הפנס + מוסיקה + השתמש במחוות כדי לשלוט בהשמעת המוזיקה\n + • החלקה למטה להפעלה\השהייה\n + • החלקה שמאלה לחזרה לרצועה הקודמת\n + • החלקה ימינה למעבר לרצועה הבאה + + תצוגה מודעת-משתמש + השאר את המסך פעיל כאשר המשתמש נמצא מולו + + תצוגת התראות עמומה + תצוגת התראות עמומה + הפעל את המסך בעת קבלת התראות + הפעל את המסך כשמתקבלות התראות + המסך יופעל כשמתקבלות התראות + המסך לא יופעל כשמתקבלות התראות + + חיישן הטיה + + חיישן קרבה + + נפנוף יד + הצג התראות בנפנוף יד + זהה כיוון + הצג התראות רק אם המכשיר שוכב עם הפנים כלפי מעלה על משטח שטוח + + הרמה + הצג התראות בעת הרמה + + כיס + הצג התראות בהוצאה מהכיס + + הפעלה בקירוב + הפעלה בקירוב + הער את המכשיר בנפנוף יד + + פעולות + + סיבוב כפול + פתח מצלמה בעת השימוש במחוות הסיבוב הכפול + + ניעור כפול + הפעל/כבה פנס בעת השימוש במחוות הניעור הכפול + + נפנוף להשתקה + השתק שיחות נכנסות בנפנוף יד מול המסך + + הפוך להפעלת מצב \"נא לא להפריע\" + הנח את המכשיר על פניו על מנת להשתיק התראות ושיחות + + אנא תן ל\"נא לא להפריע\" גישה ל-CMActions על מנת להשתמש באפשרות זו. + + הרם להפסקת הצלצול + הרם את המכשיר כדי להשתיק שיחות נכנסות. אפשרות זו עובדת רק כאשר הטלפון הונח תחילה + + השבתה + הפעל מצלמה + הפעלת/כיבוי פנס + + עוצמת משוב רטט + עוצמת רטט המשוב בעת השימוש בפעולות \'סיבוב כפול\' או \'ניעור כפול\' + מושבת + חלש + בינוני + חזק + + אישור + + עזרה + התכונות נעזרות בחיישנים כדי להפעיל את נורית ההתראות עם Doze. החיישן הנבחר מופעל רק כאשר המכשיר מקבל התראה, מה שעוזר להקטין את השימוש בסוללה. בנוסף, ישנה אפשרות להפעיל את החיישן הנבחר ברגע שהמסך נכבה, מה שעלול לגרום לשימוש רב יותר בסוללה. + + מקשים נוספים + החלף בין מקשים + החלף בין המקש \"חזור\" ל\"אחרונים\" + + טביעת אצבע + טביעת אצבע כמקש הבית + השתמש בטביעת האצבע כמקש הבית + טביעת אצבע מעירה את המסך + אפשר לחיישן טביעת האצבע להפעיל את המכשיר כשהמסך כבוי + מנע התעוררות מקרית + בדוק את חיישן הקירבה לפני הערת המכשיר על ידי טביעת האצבע + diff --git a/doze/resources/devicesettings/res/values-ja/strings.xml b/doze/resources/devicesettings/res/values-ja/strings.xml new file mode 100644 index 00000000..47956c41 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ja/strings.xml @@ -0,0 +1,131 @@ + + + + + + ON + + OFF + + 詳細設定 + + ジェスチャー + + その他 + タッチ操作バイブ + ジェスチャーを検出したときに振動する + + 画面消灯時のジェスチャー + カメラ + Cを描いてカメラを有効にする + メール + eを描いてメールアプリを開く + メッセージ + Mを描いてメッセージアプリを開く + メッセージ + Sを描いてメッセージアプリを開く + 電話 + Vを描いて電話アプリを開く + ブラウザ + Wを描いてブラウザアプリを開く + フラッシュライト + Zを描いてフラッシュライトを切り替える + ライト + 円を描いてフラッシュライトを切り替える + 音楽 + ジェスチャーを使用して音楽の再生をコントロールする\n + • 下にスワイプして再生/一時停止する\n + • 左にスワイプして前のトラックに戻る\n + • 右にスワイプして次のトラックに進む + + 使用認識ディスプレイ + ユーザーがディスプレイの前にいる間は画面を点灯し続ける + + アンビエント表示 + アンビエント表示 + 通知を受信したときに画面を点灯する + 通知を受信したときに画面を点灯する + 通知を受信したときに画面を点灯する + 通知を受信したときに画面を点灯しない + + 傾きセンサー + + 接近センサー + + 手を振る + 手を振ったときに通知を点滅表示する + 向きの検出 + 端末が平らな面で上向きになっているときだけ点滅表示します + + 持ち上げ + 端末を持ち上げたときに通知を点滅表示する + + ポケット + ポケットから取り出したときに通知を点滅表示する + + 接近スリープ解除 + 接近スリープ解除 + 手を振ったときに端末を起動する + + 動作 + + 2回ひねり + 2回ひねりのジェスチャーでカメラを開く + + 2回チョップ + 2回チョップのジェスチャーでライトを切り替える + + 手を振ってサイレント + 画面上で手を振って着信をサイレントにする + + 裏返してミュート + 端末を裏向きにして通知と通話をサイレントにする + + この機能を使用するにはCMActionsにミュートへのアクセスを許可してください。 + + 持ち上げて着信音停止 + 端末を持ち上げたときに着信音をサイレントにします。端末が水平面にあった場合にのみ動作します。 + + 無効 + カメラを起動 + ライトを切り替える + + 反応バイブの強さ + 2回ひねりと2回チョップの動作の反応バイブの強さ + 無効 + 弱い + 標準 + 強い + + OK + + ヘルプ + これらの機能は、Doze通知点滅表示を起動するためにセンサーイベントを使用します。電池の使用量を削減するために、端末が通知を受信した時にのみ選択したセンサーが有効になります。画面を消灯した直後から選択したセンサーを有効にするオプションもありますが、電池の使用量が多くなります。 + + 追加のボタン + ボタンを入れ替える + 履歴ボタンと戻るボタンの位置を入れ替える + + 指紋 + 指紋センサーをホームボタンにする + 指紋センサーをホームボタンとして使用します + 指紋で復帰 + 画面が消灯しているとき指紋センサーを使ってスリープを解除します + 誤作動を防止 + 指紋センサーで復帰する際に、近接センサーを確認します + diff --git a/doze/resources/devicesettings/res/values-ka-rGE/strings.xml b/doze/resources/devicesettings/res/values-ka-rGE/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ka-rGE/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-kk-rKZ/strings.xml b/doze/resources/devicesettings/res/values-kk-rKZ/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-kk-rKZ/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-km-rKH/strings.xml b/doze/resources/devicesettings/res/values-km-rKH/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-km-rKH/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-kn-rIN/strings.xml b/doze/resources/devicesettings/res/values-kn-rIN/strings.xml new file mode 100644 index 00000000..6874d04d --- /dev/null +++ b/doze/resources/devicesettings/res/values-kn-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + ಸುಧಾರಿತ ಸೆಟ್ಟಿಂಗ್ಸ್ + + ಸನ್ನೆ + + ಹೆಚ್ಚುವರಿ + ಸ್ಪಾರ್ಶ ಪ್ರತಿಕ್ರಿಯೆ + ಸನ್ನೆ ಪತ್ತೆಯಾದಾಗ ಕಂಪಿಸು + + ಕ್ಯಾಮರಾ + ಕ್ಯಾಮೆರಾ ಸಕ್ರಿಯಗೊಳಿಸಲು ಒಂದು ವೃತ್ತವನ್ನು ಬರೆಯಿರಿ + ಇಮೇಲ್ + ಇಮೇಲ್ ಅಪ್ಲಿಕೇಶನ್ ತೆರೆಯಲು \"ಇ\" ಡ್ರಾ ಮಾಡಿ + ಮೆಸೇಜಿಂಗ್ + ಮೆಸೇಜಿಂಗ್ ಅಪ್ಲಿಕೇಶನ್ ತೆರೆಯಲು \"ಎಸ್\" ಡ್ರಾ ಮಾಡಿ + ಡೈಲರ್ + ಡೈಲರ್ ಅಪ್ಲಿಕೇಶನ್ ತೆರೆಯಲು \"ವಿ\" ಡ್ರಾ ಮಾಡಿ + ಬ್ರೌಸರ್ + ಬ್ರೌಸರ್ ಅಪ್ಲಿಕೇಶನ್ ತೆರೆಯಲು \"ಡಬ್ಲ್ಯೂ\" ಡ್ರಾ ಮಾಡಿ + ಫ್ಲಾಶ್‌ಲೈಟ್ + ಟಾರ್ಚನ್ನು ಟಾಗಲ್ ಮಾಡಲು ಒಂದು \'ಝೆಡ್\'ಅನ್ನು ಬರೆಯಿರಿ + + ಬಳಕೆದಾರ-ಅರಿವು ಪರದೆ + ಬಳಕೆದಾರ ಪರದೆಯ ಮುಂದಿರುವಾಗ ಪದೆಯನ್ನು ಆನ್ ಆಗಿ ಇಡು + + ಆವರಿಸಿದ ಪರದೆ + ಆವರಿಸಿದ ಪರದೆ + ನೀವು ಅಧಿಸೂಚನೆಗಳನ್ನು ಸ್ವೀಕರಿಸಿದಾಗ ಪರದೆಯನ್ನು ಎಚ್ಚರಗೊಳಿಸಿ + + + + ಹ್ಯಾಂಡ್ ವೇವ್ + ಹ್ಯಾಂಡ್ ವೇವ್ ಮಾಡಿದಾಗ ಅಧಿಸೂಚನೆಗಳನ್ನು ಪಲ್ಸ್ ಮಾಡು + + + ಜೇಬು + ಜೇಬಿನಿಂದ ತೆಗೆದಾಗ ಅಧಿಸೂಚನೆಗಳನ್ನು ಪಲ್ಸ್ ಮಾಡು + + ಸಾಮೀಪ್ಯ ಎಚ್ಚರ + ಸಾಮೀಪ್ಯ ಎಚ್ಚರ + ಹ್ಯಾಂಡ್ ವೇವ್ ಮಾಡಿದಾಗ ಸಾಧನವನ್ನು ಎಚ್ಚರಗೊಳಿಸಿ + + + + + + + + + ನಿಷ್ಕ್ರಿಯ + ಕ್ಯಾಮೆರಾ ತೆರೆ + ಟಾಗಲ್ ಟಾರ್ಚ್ + + ಸ್ಪಾರ್ಶ ಪ್ರತಿಕ್ರಿಯೆ ತೀವ್ರತೆ + ದ್ವಿಗುಣ-ಟ್ವಿಸ್ಟ್ ಮತ್ತು ಚಾಪ್-ಚಾಪ್ ಕ್ರಿಯೆಯ ಸ್ಪಾರ್ಶ ಪ್ರತಿಕ್ರಿಯೆಯ ಸಾಮಾರ್ಥ್ಯ + ನಿಷ್ಕ್ರಿಯಗೊಂಡಿದೆ + ಕಡಿಮೆ + ಮಾಧ್ಯಮ + ಅಧಿಕ + + + + + diff --git a/doze/resources/devicesettings/res/values-ko/strings.xml b/doze/resources/devicesettings/res/values-ko/strings.xml new file mode 100644 index 00000000..7c281a7b --- /dev/null +++ b/doze/resources/devicesettings/res/values-ko/strings.xml @@ -0,0 +1,131 @@ + + + + + + 켜짐 + + 꺼짐 + + 고급 설정 + + 제스처 + + 추가 기능 + 햅틱 반응 + 제스처를 감지하면 진동 울림 + + 화면 끄기 제스처 + 카메라 + \"C\"를 그려 카메라 열기 + 이메일 + \"e\"를 그려 이메일 앱 열기 + 메시지 + \"M\"를 그려 메시지 앱 열기 + 메시지 + \"S\"를 그려 메시지 앱 열기 + 전화 걸기 + \"V\"를 그려 전화 앱 열기 + 브라우저 + \"W\"를 그려 브라우저 앱 열기 + 손전등 + \"Z\"를 그려 손전등 켜고 끄기 + 손전등 + 원를 그려 손전등 켜고 끄기 + 음악 + 제스처를 사용하여 음악 재생 조작 \n + • 아래로 밀어 재생/일시정지\n + • 왼쪽으로 밀어 이전 트랙\n + • 오른쪽으로 밀어 다음 트랙 + + 사용자 인식 화면 + 사용자가 화면 앞에 있는 동안 화면 켜기 + + 절전 모드 자동 해제 + 절전 모드 자동 해제 + 알림을 받았을 때 화면이 켜짐 + 알림을 받으면 화면 켜기 + 알림을 받았을 때 화면이 켜짐 + 알림을 받아도 화면이 켜지지 않음 + + 기울기 센서 + + 근접 센서 + + 손 흔들기 + 손을 좌우로 흔들면 알림 표시 + 회전 감지 + 휴대전화를 평평한 곳에 앞면으로 두었을 때만 알림 표시 + + 기기 들기 + 기기를 들면 알림 표시 + + 주머니 + 주머니에서 꺼내면 알림 표시 + + 근접 깨우기 + 근접 깨우기 + 손을 좌우로 흔들어 기기 깨우기 + + 동작 + + 두 번 비틀기 + 두 번 비틀기 제스처를 사용할 때 카메라 실행 + + 위 아래로 흔들기 + 위 아래로 흔들기 제스처를 사용할 때 손전등 토글 + + 손 흔들어서 음소거 + 화면 위에서 손을 흔들어 전화 벨소리 끄기 + + 뒤집어서 알림 일시중지 + 휴대전화의 화면을 아래로 향하게 들어 알림 및 벨소리를 조용하게 함 + + 이 기능을 사용하려면 CMActions에 알림 일시중지 접근 권한을 허용해 주세요. + + 기기를 들면 벨소리 멈춤 + 휴대전화를 들면 수신 벨소리가 들리지 않도록 합니다. 평평한 곳에 두었을 경우에만 작동합니다 + + 사용 안 함 + 카메라 실행 + 전등 켜기/끄기 + + 진동 세기 + 두 번 비틀기 동작과 위 아래로 흔들기 동작을 할 때 진동 피드백의 세기 + 끄기 + 낮게 + 중간 + 높게 + + 확인 + + 도움말 + 해당 기능은 잠자기 모드 알림 깜빡임을 시작하기 위해 센서 이벤트를 사용합니다. 선택된 센서는 알림을 받았을 때만 작동하며, 이는 배터리 사용량을 줄이는 데 도움이 됩니다. 화면이 꺼지면 선택된 센서를 활성화시키는 옵션도 있으며, 이는 배터리 사용량 증가의 원인이 될 수 있습니다. + + 기타 버튼 + 버튼 바꾸기 + 최근 앱 버튼과 뒤로 버튼의 위치를 바꾸기 + + 지문 + 지문 인식을 홈 버튼으로 + 지문 인식 센서를 홈 버튼으로 사용 + 지문으로 깨우기 + 화면이 꺼져 있을 때 지문 인식 센서가 기기를 깨우는 것을 허용 + 실수로 화면 켜기 방지 + 지문 인식 센서에 의해 깨워지기 전에 근접 센서 확인 + diff --git a/doze/resources/devicesettings/res/values-ku/strings.xml b/doze/resources/devicesettings/res/values-ku/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ku/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ky-rKG/strings.xml b/doze/resources/devicesettings/res/values-ky-rKG/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ky-rKG/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-lb/strings.xml b/doze/resources/devicesettings/res/values-lb/strings.xml new file mode 100644 index 00000000..775ef6cb --- /dev/null +++ b/doze/resources/devicesettings/res/values-lb/strings.xml @@ -0,0 +1,92 @@ + + + + + + + + Erweidert Astellungen + + Gesten + + Extraen + Haptesche Feedback + Vibréieren, wann e Gest erkannt gëtt + + Fotoapparat + \'C\' zeechnen, fir de Fotoapparat z\'aktivéieren + E-Mail + \'e\' zeechnen, fir d\'Email-App z\'aktivéieren + Messagen + \'S\' zeechnen, fir d\'SMS-App z\'aktivéieren + Telefon + \'V\' zeechnen, fir d\'Telefons-App z\'aktivéieren + Browser + \'W\' zeechnen, fir d\'Browser-App z\'aktivéieren + Täscheluucht + \'Z\' zeechnen, fir d\'Täscheluucht un-/auszemaachen + + Benotzerbewosst Uweis + De Schierm waakreghalen, soulaang e virun engem Benutzer ass + + Ambiente Schierm + Ambiente Schierm + Schierm waakreg maachen, wann s du Notifikatiounen empfänks + + + + Wénken + Puls-Notifikatioune beim Wénken + + Ophiewen + Notifikatioune beim Ophiewe kuerz uweisen + + Täsch + Notifikatioune beim Eraushuelen aus der Täsch kuerz ablenden + + Waakreg ginn wéinst d\'Proximitéit + Waakreg gi bei Proximitéit + Apparat duerch Wénke waakreg maachen + + Aktiounen + + Duebel Dréiung + Fotoapparat aktivéieren, wann de Gest \"Duebel Dréinung\" benotzt gëtt + + + Wénke fir roueg ze schalten + Erakommend Uriff roueg schalten duerch d\'Wénken iwwer de Schierm + + + + + Desaktivéieren + Kamera starten + Täscheluucht un/ausmaachen + + Intensitéit vum haptesche Feedback + Stäerkt vum haptesche Feedback fir d\'Duebel-Dréinung- an d\'Schwenk-Aktiounen + Desaktivéiert + Niddreg + Mëttel + Héich + + + + + diff --git a/doze/resources/devicesettings/res/values-lo-rLA/strings.xml b/doze/resources/devicesettings/res/values-lo-rLA/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-lo-rLA/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-lt/strings.xml b/doze/resources/devicesettings/res/values-lt/strings.xml new file mode 100644 index 00000000..55fda8c4 --- /dev/null +++ b/doze/resources/devicesettings/res/values-lt/strings.xml @@ -0,0 +1,70 @@ + + + + + + + + Papildomi nustatymai + + Gestai + + + + Naudotoją suprantantis ekranas + Išlaikyti ekraną įjungtą, kai naudotojas žiūri į jį + + Ambient display + Ambient display + Pažadinti ekraną, kai gaunami pranešimai + + + + Rankos mostas + Pulsuoti pranešimus rankos mostu + + + Kišenė + Pulsuoti pranešimus pašalinant iš kišenės + + Artumo pažadinimas + Artumo pažadinimas + Pažadinti įrenginį rankos mostu + + + + + + + + + Neleisti + Paleisti fotoaparatą + Įjungti žibintuvėlį + + Lietimo atsiliepimo intensyvumas + Dvigubo pasukimo ir „Greičiau greičiau“ veiksmų lietimo atsiliepimo stiprumas + Neleidžiama + Žemas + Vidutinis + Aukštas + + + + + diff --git a/doze/resources/devicesettings/res/values-lv/strings.xml b/doze/resources/devicesettings/res/values-lv/strings.xml new file mode 100644 index 00000000..d276ed5d --- /dev/null +++ b/doze/resources/devicesettings/res/values-lv/strings.xml @@ -0,0 +1,56 @@ + + + + + + + + Papildu iestatījumi + + Žesti + + + + + Aptverošais displejs + Aptverošais displejs + Saņemot ziņojumus, ieslēgt ekrānu + + + + Mājiens ar roku + Rādīt paziņojumus, pamājot ar roku + + + Kabata + Izņemot no kabatas, rādīt paziņojumus + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-mk-rMK/strings.xml b/doze/resources/devicesettings/res/values-mk-rMK/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-mk-rMK/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ml-rIN/strings.xml b/doze/resources/devicesettings/res/values-ml-rIN/strings.xml new file mode 100644 index 00000000..f6ac00af --- /dev/null +++ b/doze/resources/devicesettings/res/values-ml-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + നൂതനമായ ക്രമീകരണം + + ഗസ്റ്ററുകൾ + + എക്സ്ട്രാസ് + ഹാപ്ടിക പ്രതികരണം + ആംഗ്യമുണ്ടെങ്കിൽ വൈബ്രേട്ടു ചെയ്യുക + + ക്യാമറ + ക്യാമറ സജീവമാക്കുന്നതിനായി \"C\" വരയ്ക്കുക + ഇമെയിൽ + ഇമെയിൽ അപ്ലിക്കേഷൻ തുറക്കാൻ ഒരു \"E\" വരയ്ക്കുക + സന്ദേശമയയ്‌ക്കൽ + മെസേജിംഗ് തുറക്കാനായി ഒരു \"S\" വരയ്ക്കുക + ഡയലര്‍ + ഡയലർ അപ്ലിക്കേഷൻ തുറക്കാൻ \'V\' വരയ്ക്കുക + ബ്രൌസര്‍ + ബ്രൗസർ അപ്ലിക്കേഷൻ തുറക്കുന്നതിന് ഒരു \"W\" വരയ്ക്കുക + ഫ്‌ലാഷ്‌ലൈറ്റ് + ഫ്ലാഷ്ലൈറ്റ് ടോഗിൾ ചെയ്യാന്‍ ഒരു \"Z\" വരയ്ക്കുക + + ഉപഭോക്താവിനെ അറിഞ്ഞുകൊണ്ടുള്ള പ്രദർശിനി + യുസർ മുന്നിലുള്ളലടത്തോളം സ്ക്രീൻ ഓണാക്കി വയ്ക്കുക + + വ്യാപിക്കുന്ന പ്രദര്‍ശനം + വ്യാപിക്കുന്ന പ്രദര്‍ശനം + നിങ്ങൾക്ക് അറിയിപ്പുകൾ ലഭിക്കുമ്പോൾ സ്ക്രീൻ ഉണര്‍ത്തുക + + + + കൈ വീശല്‍ + കൈ വീശുമ്പോള്‍ അറിയിപ്പുകള്‍ കാണിക്കുക + + + കീശ + കീശയില്‍ നിന്ന് എടുക്കുമ്പോള്‍ അറിയിപ്പുകള്‍ കാണിക്കുക + + പ്രോക്സിമിറ്റി വേക്ക് + പ്രോക്സിമിറ്റി വേക്ക് + കൈവീശി സ്ക്രീൻ ഉണര്‍ത്തുക + + + + + + + + + ഇല്ലാതാക്കുക + ക്യാമറ തുറക്കുക + ടോര്‍ച്ച് മാറ്റുക + + സ്പര്ശ പ്രതികരണ ശക്തി + ഇരട്ട-ട്വിസ്റ്റിന്നും വെട്ടി നുറുക്കലിനും വേണ്ടുന്ന സ്പര്ശ പ്രതികരണ ശക്തി + ഇല്ലാതാകി + കുറഞ്ഞ + മിതമായ + വലിയ + + + + + diff --git a/doze/resources/devicesettings/res/values-mn-rMN/strings.xml b/doze/resources/devicesettings/res/values-mn-rMN/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-mn-rMN/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-mr-rIN/strings.xml b/doze/resources/devicesettings/res/values-mr-rIN/strings.xml new file mode 100644 index 00000000..3d18fec2 --- /dev/null +++ b/doze/resources/devicesettings/res/values-mr-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + सुधारीत सेटिंग्स + + गेश्चर्स + + अधिक + स्पर्शाने दिलेला अभिप्राय + जेव्हा गेश्चर हटकले जाइल टेव्हा कंपन व्हावे + + कॅमेरा + कॅमेरा सक्रिय करण्यासाठी \"C\" काढा + इमेल + ई-मेल अॅप उघडण्यासाठी \"e\" काढा + मेसेजिंग + मेसेजिंग अॅप उघडण्यासाठी \"S\" काढा + डाइलर + डाइलर अॅप उघडण्यासाठी \"V\" काढा + ब्राउजर + ब्राउजर अॅप उघडण्यासाठी \"W\" काढा + फ्लॅशलाइट + फ्लॅशलाईट टॉगल करण्यासाठी \'Z\' काढा + + प्रयोक्ता-जाणीव प्रदर्शन + प्रयोक्ता प्रदर्शनाच्या समोर असताना स्क्रीन चालू ठेवा + + अँबियन्ट प्रदर्शन + अँबियन्ट प्रदर्शन + तुम्हाला नोटिफिकेशन्स मिळतील तेव्हा स्क्रीन सक्रिय करा + + + + हात हलवा + हात हलवल्यावर पल्स नोटिफिकेशन्स + + + पॉकेट + पॉकेटमधून काढल्यावर पल्स नोटिफिकेशन्स + + प्रॉक्सिमिटी सक्रिय + प्रॉक्सिमिटी सक्रिय + हात हलवल्यावर डिव्हाइस सक्रिय करा + + + + + + + + + अक्षम करा + कॅमेरा सुरू करा + टॉर्च टॉगल करा + + हॅप्टिक फीडबॅक तीव्रता + दुहेरी-ट्विस्ट आणि चॉप-चॉप कृतींसाठी हॅप्टिक फीडबॅकची तीव्रता + अक्षम केले + निम्न + मध्‍यम + उच्च + + + + + diff --git a/doze/resources/devicesettings/res/values-ms-rMY/strings.xml b/doze/resources/devicesettings/res/values-ms-rMY/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ms-rMY/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-my-rMM/strings.xml b/doze/resources/devicesettings/res/values-my-rMM/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-my-rMM/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-nb/strings.xml b/doze/resources/devicesettings/res/values-nb/strings.xml new file mode 100644 index 00000000..6e5b2d3a --- /dev/null +++ b/doze/resources/devicesettings/res/values-nb/strings.xml @@ -0,0 +1,131 @@ + + + + + + + + Av + + Avanserte innstillinger + + Bevegelser + + Ekstra + Haptisk tilbakemelding + Vibrere når en gest ble oppdaget + + Gester på avslått skjerm + Kamera + Tegn en \"C\" for å aktivere kameraet + E-post + Tegn en \"e\" for å åpne e-post + Meldinger + Tegn en \"M\" for å åpne meldinger + Meldinger + Tegn en \"S\" for å åpne meldinger + Telefon + Tegn en \"V\" for å åpne telefon appen + Nettleser + Tegn en \"W\" for å åpne internett + Lommelykt + Tegn en \"Z\" for å slå på/av lommelykt + Lommelykt + Tegn en sirkel for å slå lommelykt av/på + Musikk + Bruk bevegelser for å kontrollere musikkavspilling \n + • sveip ned for å spille/pause\n + • sveip venstre for forrige sang\n + • Sveip høyre for neste sang + + Brukerbevisst skjerm + Hold skjermen påslått når en bruker er foran skjermen + + Omgivelsesskjerm + Omgivelsesskjerm + Vekke skjermen når du mottar varsler + Vekke skjermen når du mottar varsler + Skjermen vekkes når du mottar varsler + Skjermen vil ikke vekkes når du mottar varsler + + Tilt sensor + + Avstandsmåler + + Håndvink + Pulseringsvarsel ved håndvink + Oppdag skjermretning + Bare pulser hvis telefonen ligger med skjermen opp på en flat overflate + + Opp-plukking + Pulseringsvarsel når plukket opp + + Lomme + Pulseringsvarsel når telefonen er tatt opp av lommen + + Berøringsfri vekking + Berøringsfri vekking + Vekk enheten med håndvink + + Handlinger + + Dobbel-vri + Opne kamera når du bruker dobbelvridningsgesten + + Hakk-hakk + Slå på/av lommelykt når hakk-hakk gest + + Vink for å dempe lyden + Demp innkommende samtaler ved å vinke med hånden over skjermen + + Snu for Ikke Forstyrr + Plasser telefonen opp ned for å dempe alle innkommende varslinger og anrop + + Vennligst gi Ikke Forstyrr tilgang til CMActions for å bruke denne funksjonen. + + Plukk opp for å stoppe ringing + Plukk telefonen opp for å dempe innkommende anrop. Dette fungerer bare når telefonen ligger flatt fra starten av + + Deaktiver + Start kamera + Skru av/på lommelykt + + Haptisk intensitet + Styrken til den haptiske tilbakemeldingen for dobbelvridnings- og hakk-hakk-handlingene + Deaktivert + Lav + Middels + Høy + + OK + + Hjelp + Disse funksjonene bruker sensor aktiviteter for å åpne en doze pulseringsvarsel. 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. + + Flere knapper + Bytt knapper + Bytt rekkefølgen på nylige- og tilbake-knappen + + Fingeravtrykk + Fingerskanner som hjem-knapp + Bruk fingerskanneren som en hjem-knapp + Fingerskanner vekker enheten + Gir fingerskanneren tilgang til å vekke enheten når skjermen er av + Forhindre feilaktig oppvåkning + Sjekk nærhetssensoren i forkant av oppvåkninger forårsaket av fingeravtrykkssensoren + diff --git a/doze/resources/devicesettings/res/values-ne-rNP/strings.xml b/doze/resources/devicesettings/res/values-ne-rNP/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ne-rNP/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-nl/strings.xml b/doze/resources/devicesettings/res/values-nl/strings.xml new file mode 100644 index 00000000..78ac52bc --- /dev/null +++ b/doze/resources/devicesettings/res/values-nl/strings.xml @@ -0,0 +1,131 @@ + + + + + + Aan + + Uit + + Geavanceerde instellingen + + Gebaren + + Extra\'s + Trillen + Trillen wanneer een gebaar wordt gedetecteerd + + Gebaren bij scherm uit + Camera + Teken een \"C\" om camera te openen + E-mail + Teken een \"e\" om e-mail-app te openen + Berichten + Teken een \"M\" om berichten-app te openen + Berichten + Teken een \"S\" om berichten-app te openen + Telefoon + Teken een \"V\" om telefoon-app te openen + Browser + Teken een \"W\" om browser te openen + Zaklamp + Teken een \"Z\" om zaklamp aan/uit te zetten + Zaklamp + Teken een cirkel om zaklamp aan/uit te zetten + Muziek + Gebaren gebruiken om muziek te bedienen\n + • Veeg omlaag voor afspelen/pauzeren\n + • Veeg naar links voor vorig nummer\n + • Veeg naar rechts voor volgend nummer + + Gebruikersbewust scherm + Scherm aan houden als de gebruiker voor het scherm zit + + Omgevingsdisplay + Omgevingsdisplay + Scherm aan bij het ontvangen van meldingen + Scherm aan bij het ontvangen van meldingen + Scherm gaat aan bij het ontvangen van meldingen + Scherm gaat niet aan bij het ontvangen van meldingen + + Hellingssensor + + Nabijheidssensor + + Handgebaar + Meldingen laten knipperen bij handgebaar + Oriëntatie detecteren + Alleen knipperen als de telefoon met het scherm naar boven ligt op een plat oppervlak + + Oppakken + Meldingen laten knipperen bij oppakken + + Broekzak + Meldingen laten knipperen bij verwijderen uit broekzak + + Ontwaken bij dichtbij + Ontwaken bij dichtbij + Apparaat ontwaken bij handgebaar + + Acties + + Double-twist + Camera openen bij gebruik van het \'double-twist\'-gebaar + + Chop-chop + Zaklamp aan-/uitzetten bij gebruik van het \'chop-chop\'-gebaar + + Handgebaar voor stil + Inkomende oproepen dempen met handgebaar over het scherm + + Omdraaien voor \'Niet storen\' + Plaats de telefoon met scherm naar beneden om notificaties en oproepen te dempen + + Geef CMActies toegang tot \'Niet storen\' om deze functie te gebruiken. + + Oppakken om te stoppen met rinkelen + Til de telefoon op om inkomende oproepen te dempen. Werkt alleen als de telefoon al plat ligt + + Uitschakelen + Camera openen + Zaklamp aan/uit + + Trilintensiteit + Trilintensiteit voor de \'double-twist\' en \'chop-chop\' acties + Uitgeschakeld + Laag + Gemiddeld + Hoog + + OK + + Help + 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. + + Extra knoppen + Knoppen verwisselen + Recente apps- en Terugknop omwisselen + + Vingerafdruk + Vingerafdruk als thuisknop + Vingerafdruksensor gebruiken als thuisknop + Ontwaken via vingerafdruk + Apparaat ontwaken met vingerafdruk als scherm uit is + Per ongeluk ontwaken voorkomen + Nabijheidssensor gebruiken voorafgaand aan ontwaken door de vingerafdruksensor + diff --git a/doze/resources/devicesettings/res/values-oc-rFR/strings.xml b/doze/resources/devicesettings/res/values-oc-rFR/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-oc-rFR/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-or-rIN/strings.xml b/doze/resources/devicesettings/res/values-or-rIN/strings.xml new file mode 100644 index 00000000..6f1004cc --- /dev/null +++ b/doze/resources/devicesettings/res/values-or-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + ବିକଶିତ ସେଟିଙ୍ଗ୍ସ + + ଅଙ୍ଗଭଙ୍ଗୀ + + ବୃହତ୍ତର + ହାପ୍ଟିକ୍ ଫିଡବ୍ୟାକ୍ + ଅଙ୍ଗଭଙ୍ଗୀ ସନ୍ଧାନ ପ୍ରାପ୍ତ କରିବା ସମୟରେ ଭାଇବ୍ରେଟ୍‍ + + କ୍ୟାମେରା + କ୍ୟାମେରା ସକ୍ରିୟ କରିବା ପାଇଁ ଏକ \"C\" ଆଙ୍କନ୍ତୁ + ଇମେଲ୍ + ଇମେଲ୍ ଆପ୍ ଖୋଲିବା ପାଇଁ ଏକ \"e\" ଆଙ୍କନ୍ତୁ + ମେସେଜିଙ୍ଗ + ସନ୍ଦେସ୍ ଆପ୍ ଖୋଲିବା ପାଇଁ ଏକ \"S\" ଆଙ୍କନ୍ତୁ + ଡାଏଲର୍ + ଡାଏଲର୍ ଆପ୍ ଖୋଲିବା ପାଇଁ ଏକ \"V\" ଆଙ୍କନ୍ତୁ + ବ୍ରାଉଜର୍ + ବ୍ରାଉଜର୍ ଆପ୍ ଖୋଲିବା ପାଇଁ ଏକ \"W\" ଆଙ୍କନ୍ତୁ + ଫ୍ଲାସଲାଇଟ୍ + ଫ୍ଲାସ୍‍ଲାଇଟ୍‍ ଟୋଗଲ୍‍ କରିବା ପାଇଁ ଏକ \"Z\" ଆଙ୍କନ୍ତୁ + + ଉପଭୋକ୍ତା-ସଚେତନ ଡିସ୍‍ପ୍ଲେ + ଡିସ୍‍ପ୍ଲେର ସାମନାରେ ଜଣେ ଉପଭୋକ୍ତା ଥିବା ସମୟରେ ସ୍କ୍ରିନ୍‍କୁ ଅନ୍‍ ରଖନ୍ତୁ + + ଏମ୍ବିଏଣ୍ଟ ପ୍ରଦର୍ଶନ + ଏମ୍ବିଏଣ୍ଟ ପ୍ରଦର୍ଶନ + ଆପଣ ସୂଚନାବଳି ପ୍ରାପ୍ତ କରିବା ସମୟରେ ସ୍କ୍ରିନ୍‍କୁ ଉଠାନ୍ତୁ + + + + ହ୍ୟାଣ୍ଡ ୱେଭ୍‍ + ହ୍ୟାଣ୍ଡ ୱେଭ୍‍ରେ ପଲ୍ସ ସୂଚନାବଳି + + + ପକେଟ୍‍ + ପକେଟ୍‍ରୁ ଅପସାରଣ ସମୟରେ ପଲ୍ସ ସୂଚନାବଳି + + ପ୍ରକ୍ସିମିଟି ୱେକ୍‍ + ପ୍ରକ୍ସିମିଟି ୱେକ୍‍ + ହ୍ୟାଣ୍ଡ ୱେଭ୍‍ରେ ଡିଭାଇସ୍‍ ଉଠାନ୍ତୁ + + + + + + + + + ଅକ୍ଷମ + କ୍ୟାମେରା ଉନ୍ମୋଚନ୍ଚ କରନ୍ତୁ + ଟୋଗଲ୍‍ ଟର୍ଚ୍ଚ + + ହାପ୍‍ଟିକ୍‍ ମତାମତ ପ୍ରଭାବ + ଡବଲ୍‍-ଟ୍ୱିଷ୍ଟ ଓ ଚପ୍‍-ଚପ୍‍ ସଂଚାଳନ ପାଇଁ ହାପ୍‍ଟିକ୍‍ ମତାମତର କ୍ଷମତା + ଅକ୍ଷମ ହୋଇଛି + କମ୍ + ମଧ୍ୟମ + ଉଚ୍ଚ + + + + + diff --git a/doze/resources/devicesettings/res/values-pa-rIN/strings.xml b/doze/resources/devicesettings/res/values-pa-rIN/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-pa-rIN/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-pl/strings.xml b/doze/resources/devicesettings/res/values-pl/strings.xml new file mode 100644 index 00000000..4c2fe206 --- /dev/null +++ b/doze/resources/devicesettings/res/values-pl/strings.xml @@ -0,0 +1,122 @@ + + + + + + + + Ustawienia zaawansowane + + Gesty + + Dodatki + Wibracja przy dotknięciu + Zawibruj, gdy gest zostanie wykryty + + Gesty wyłączenia ekranu + Aparat + Narysuj \"C\", aby włączyć aparat + E-mail + Narysuj \"e\", aby otworzyć aplikację e-mail + Narysuj \"M\", aby otworzyć aplikację wiadomości + Wiadomości + Narysuj \"S\", aby włączyć otworzyć wiadomości + Telefon + Narysuj \"V\", aby otworzyć aplikację telefonu + Przeglądarka + Narysuj \"W\", aby otworzyć przeglądarkę + Latarka + Narysuj \"Z\", aby włączyć latarkę + Latarka + Narysuj kółko, aby włączyć/wyłączyć latarkę + Muzyka + Użyj gestów, aby przełączać muzykę \n + • Przesuń w dół, aby otworzyć/pauza\n + • Przesuń w lewo, aby przełączyć na poprzedni utwór\n + • Przesuń w prawo, aby przełączyć na następny utwór + + Aktywny ekran podczas spoglądania na niego + Utrzymuj ekran włączony, gdy użytkownik spogląda na ekran + + Aktywny wyświetlacz + Aktywny wyświetlacz + Wybudź ekran, po otrzymaniu powiadomienia + Wybudź ekran po odebraniu powiadomienia + Ekran się wybudzi, po otrzymaniu powiadomienia + + Czujnik pochylenia + + Czujnik zbliżeniowy + + Machnij ręką + Pulsujące powiadomienia po machnięciu ręką + + Podnieś + Pulsujące powiadomienia podczas podnoszenia + + Kieszeń + Pulsujące powiadomienia po wyjęciu z kieszeni + + Wybudzenie czujnikiem zbliżeniowym + Wybudzenie czujnikiem zbliżeniowym + Wybudź urządzenie machnięciem ręką + + Akcje + + Obróć dwa razy + Uruchom Aparat po użyciu gestu podwójnego obrotu + + Podwójne potrząśnięcie + Przełącz stan latarki po geście cięcia + + Machnij, aby wyciszyć + Wycisza połączenia przychodzące, gdy machniesz ręką nad ekranem + + Odwróć i wycisz + Odwróć telefon wyświetlaczem do dołu, aby wyciszyć dzwonek telefonu i powiadomienia + + Proszę zezwolić na dostęp Trybu Nie Przeszkadzać do CMActions, aby korzystać z tej funkcjonalności. + + Podnieś telefon, aby przestał dzwonić + Podnieś telefon, aby wyciszyć dzwonek połączenia. Działa tylko, jak telefon leży na płasko + + Wyłączone + Uruchom aparat + Przełącznik latarki + + Intensywność wibracji + Siła wibracji dla podwójnego obrócenia i potrząśnięcia + Wyłączona + Niska + Średnia + Wysoka + + OK + + Pomoc + + Dodatkowe przyciski + Zamień przyciski + Zamień miejscami przyciski ostatnio uruchomionych aplikacji i powrotu + + Odcisk palca + Uruchom ekran główny czytnikiem linii papilarnych + Używaj czytnika linii papilarnych jako przycisku Home + Wybudzenie ekranu czytnikiem linii papilarnych + Pozwól, aby czujnik linii papilarnych wybudził urządzenie, gdy ekran jest wyłączony + diff --git a/doze/resources/devicesettings/res/values-pt-rBR/strings.xml b/doze/resources/devicesettings/res/values-pt-rBR/strings.xml new file mode 100644 index 00000000..910daa8a --- /dev/null +++ b/doze/resources/devicesettings/res/values-pt-rBR/strings.xml @@ -0,0 +1,129 @@ + + + + + + Ligado + + Desligado + + Configurações avançadas + + Gestos + + Extras + Retorno tátil + Vibrar quando um gesto for detectado + + Gestos com a tela desligada + Câmera + Desenhe um \"C\" para ativar a câmera + E-mail + Desenhe um \"e\" para abrir o aplicativo de e-mail + Mensagens + Desenhe um \"M\" para abrir o aplicativo de mensagens + Mensagem + Desenhe um \"S\" para abrir o aplicativo de mensagens + Discador + Desenhe um \"V\" para abrir o aplicativo de discagem + Navegador + Desenhe um \"W\" para abrir o aplicativo de navegador + Lanterna + Desenhe um \'Z\' para ligar/desligar a lanterna + Lanterna + Desenhe um círculo para ligar/desligar a lanterna + Música + Use gestos para controlar a reprodução de música\n + • Deslize para baixo para tocar/pausar\n + • Deslize para a esquerda para faixa anterior\n + • Deslize para a direita para a próxima faixa + + Tela que reconhece o usuário + Manter a tela ligada enquanto houver um usuário na frente dela + + Brilho adaptável + Brilho adaptável + Ligar a tela quando receber notificações + Ligar a tela ao receber notificações + A tela ligará ao receber notificações + A tela não ligará ao receber notificações + + Sensor de inclinação + + Sensor de proximidade + + Agitar a mão + Pulsar notificações agitando a mão + + Pegar + Mostrar as notificações ao pegar no dispositivo + + Bolso + Pulsar notificações após remover do bolso + + Acordar por proximidade + Acordar aproximando + Acordar dispositivo quando chacoalhar a mão + + Ações + + Torcer duas vezes + Abrir a câmera usando o gesto de torcer duas vezes + + Sacudidas rápidas + Ligar/desligar lanterna ao chacoalhar duas vezes + + Acenar para silenciar + Silenciar chamadas recebidas acenando com a mão na frente da tela + + Ativar o modo não perturbe ao virar o telefone + Silenciar notificações e chamadas ao colocar o telefone com a tela para baixo + + Por favor, conceda acesso Não Perturbe ao CMActions para poder utilizar esta função. + + Parar de tocar ao pegar o telefone + Levante o telefone para silenciar as chamadas. Só funciona quando o seu telefone está sobre uma superfície plana + + Desativar + Abrir câmera + Lig/Desl. lanterna + + Intensidade da resposta tátil + Intensidade da resposta tátil nas ações de torcer duas vezes e duas sacudidas rápidas + Desativado + Baixa + Média + Alta + + OK + + Ajuda + 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. + + Botões adicionais + Inverter botões + Inverter a ordem dos botões recentes e voltar + + Impressão digital + Sensor de impressões digitais como botão Home + Utilizar o sensor de impressões digitais como botão Home + Ligar tela com impressão digital + Permitir que o sensor de impressões digitais ative o dispositivo enquanto a tela estiver desligada + Impedir que a tela se ligue acidentalmente + Verificar o sensor de proximidade antes de ligar a tela do dispositivo com a impressão digital + diff --git a/doze/resources/devicesettings/res/values-pt-rPT/strings.xml b/doze/resources/devicesettings/res/values-pt-rPT/strings.xml new file mode 100644 index 00000000..a9762c63 --- /dev/null +++ b/doze/resources/devicesettings/res/values-pt-rPT/strings.xml @@ -0,0 +1,131 @@ + + + + + + Ligada + + Desligada + + Definições avançadas + + Gestos + + Extras + Retorno tátil + Vibrar quando um gesto for detetado + + Gestos com o ecrã desligado + Câmara + Desenhe um \"C\" para ativar a câmara + E-mail + Desenhe um \"e\" para abrir a aplicação de e-mail + Mensagens + Desenhe um \"M\" para abrir a aplicação de mensagens + Mensagens + Desenhe um \"S\" para abrir a aplicação de mensagens + Telefone + Desenhe um \"V\" para abrir a aplicação de telefone + Navegador + Desenhe um \"W\" para abrir a aplicação do navegador + Lanterna + Desenhe um \"Z\" para ligar/desligar a lanterna + Lanterna + Desenhe um círculo para ligar/desligar a lanterna + Música + Utilize gestos para controlar a reprodução da música \n + • Deslize para baixo para tocar/pausar\n + • Deslize para a esquerda para voltar para a faixa anterior\n + • Deslize para a direita para avançar para a faixa seguinte + + Deteção de rosto + Manter o ecrã ligado enquanto o utilizador estiver em frente ao visor + + Visualização de ambiente + Visualização de ambiente + Ligar o ecrã quando receber notificações + Ligar o ecrã quando receber notificações + O ecrã irá acordar quando receber notificações + O ecrã não irá acordar quando receber notificações + + Sensor de inclinação + + Sensor de proximidade + + Passar a mão + Mostrar notificações ao passar a mão + Detetar a orientação + Mostrar notificações apenas se o telemóvel estiver com o ecrã virado para cima e numa superficie plana + + Pegar + Mostrar notificações ao pegar no dispositivo + + Bolso + Mostrar notificações ao retirar do bolso + + Sensor de proximidade + Sensor de proximidade + Ligar o dispositivo ao passar a mão pelo sensor de proximidade + + Ações + + Torcer duas vezes + Abrir a câmara ao usar o gesto de torcer duas vezes + + Duplo corte + Ligar/desligar a lanterna ao usar o gesto de duplo corte + + Passar a mão para silenciar + Silenciar as chamadas recebidas passando a mão sobre o ecrã + + Modo Não Incomodar ao virar + Coloque o telefone com o ecrã para baixo para silenciar notificações e chamadas + + Por favor, dê acesso às CMActions para o modo Não Incomodar de modo a utilizar esta função. + + Pegar para parar de tocar + Levante o telefone para silenciar chamadas recebidas. Só funciona quando o seu telefone está pousado + + Desativar + Iniciar a câmara + Ativar/desativar lanterna + + Intensidade da reação tátil + Intensidade da reação tátil para o gesto de torcer duas vezes e duplo corte + Desativada + Baixa + Média + Alta + + OK + + Ajuda + 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. + + Botões adicionais + Trocar botões + Trocar a ordem dos botões de Visão geral e Anterior + + Impressão digital + Sensor de impressões digitais como botão Página Inicial + Utilizar o sensor de impressões digitais como botão Página Inicial + Acordar com impressão digital + Permitir que o sensor de impressões digitais acorde o dispositivo quando o ecrã estiver desligado + Impedir o ecrã de se ligar acidentalmente + Verificar o sensor de proximidade antes de acordar o dispositivo com impressão digital + diff --git a/doze/resources/devicesettings/res/values-rm/strings.xml b/doze/resources/devicesettings/res/values-rm/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-rm/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ro/strings.xml b/doze/resources/devicesettings/res/values-ro/strings.xml new file mode 100644 index 00000000..b690871f --- /dev/null +++ b/doze/resources/devicesettings/res/values-ro/strings.xml @@ -0,0 +1,131 @@ + + + + + + Activat + + Dezactivat + + Setări avansate + + Gesturi + + Mai multe + Reacție tactilă + Vibrează când s-a detectat un gest + + Gesturi pentru oprirea ecranului + Cameră foto + Desenați un \"C\" pentru a activa camera + E-mail + Desenați un \"e\" pentru a deschide aplicația e-mail + Mesagerie + Desenați un \"M\" pentru a deschide aplicația mesagerie + Mesagerie + Desenați un \"S\" pentru a deschide aplicația mesagerie + Telefon + Desenați un \"V\" pentru a deschide aplicația telefon + Browser + Desenați un \"W\" pentru a deschide aplicația browser + Lanternă + Desenați un „Z” pentru a deschide lanterna + Lanternă + Desenați un cerc pentru a deschide lanterna + Muzică + Folosiți gesturi pentru a controla redarea muzicii \n + • Glisați în jos pentru a reda/opri\n + • Glisați stânga pentru melodia anterioară\n + • Glisați dreapta pentru melodia următoare + + Ecran reactiv la gesturi utilizator + Menține ecranul aprins cât timp utilizatorul este în dreptul afișajului + + Afișare ambientală + Afișare ambientală + Trezește ecran când primiți notificări + Trezește ecranul când primiți notificări + Ecranul se va trezi când primiţi notificări + Ecranul nu se va trezi când primiţi notificări + + Senzor de înclinare + + Senzor de proximitate + + Unduire mână + Pulsează notificările la unduirea mâinii + Detectare orientare + Pulsează numai dacă telefonul stă cu fața în jos pe o suprafață plată + + Ridicare + Pulsează notificările la ridicare + + Buzunar + Pulsează notificările la scoaterea din buzunar + + Trezire prin proximitate + Trezire prin proximitate + Trezire dispozitiv la unduirea mâinii + + Acțiuni + + Dublu-răsucire + Deschide camera prin răsucirea dublă a mâinii + + Chop-Chop + Pornește lanterna când utilizați gestul chop-chop + + Unduire pentru silențios + Pune pe mut apelurile de intrare mișcând mâna desupra ecranului + + Flip pentru Nu Deranjați + Puneți telefonul cu fața în jos pentru a face notificările și apelurile silențioase + + Vă rugăm acordați modului Nu Deranjați acces la CMActions pentru a utiliza această caracteristică. + + Ridicați pentru a opri apelarea + Ridicați telefonul pentru a face apelurile de intrare silențioase. Funcționează doar când telefonul începe din poziție plană orizontală + + Dezactivare + Lansare Cameră foto + Comutare lanternă + + Intensitate răspuns haptic + Puterea feedback-ului haptic pentru acțiunile dublă-răsucire şi chop-chop + Dezactivat + Redusă + Medie + Ridicată + + OK + + Ajutor + Aceste caracteristici utilizează evenimentele senzorilor pentru a lansa pulsul notificărilor doze. Senzorul ales este pornit numai când dispozitivul a primit o notificare, asta ajutând la reducerea utilizării bateriei. De asemenea, există o opțiune pentru a activa senzorul ales de îndată ce ecranul se stinge, asta cauzând o utilizare a bateriei mai mare. + + Butoane suplimentare + Schimbați butoanele + Schimbați ordinea butoanelor recente și înapoi + + Amprentă + Amprentă ca acasă + Utilizați senzorul de amprentă ca un buton de acasă + Trezire amprentă + Permite senzorului de amprentă să trezească dispozitivul când ecranul este oprit + Previne trezirea accidentală + Verifică senzorul de proximitate înainte de wake-up-urile declanșate de senzorul de amprentă + diff --git a/doze/resources/devicesettings/res/values-ru/strings.xml b/doze/resources/devicesettings/res/values-ru/strings.xml new file mode 100644 index 00000000..512a6255 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ru/strings.xml @@ -0,0 +1,129 @@ + + + + + + Включено + + Выключено + + Дополнительные настройки + + Жесты + + Прочее + Виброотклик + Вибрировать при распознавании жеста + + Жесты выключенного экрана + Камера + Нарисуйте букву «C», чтобы включить камеру + Эл. почта + Нарисуйте букву «е», чтобы открыть приложение электронной почты + Сообщения + Нарисуйте букву «M», чтобы открыть приложение для обмена сообщениями + Сообщения + Нарисуйте букву «S», чтобы открыть приложение для обмена сообщениями + Телефон + Нарисуйте букву «V», чтобы открыть телефон + Браузер + Нарисуйте букву «W», чтобы открыть браузер + Фонарик + Нарисуйте букву «Z», чтобы включить или выключить фонарик + Фонарик + Нарисуйте круг, чтобы включить или выключить фонарик + Музыка + Использовать жесты для управления музыкальным плеером \n + • Провести вниз — воспроизв./пауза\n + • Провести влево — предыдущ. композиция\n + • Провести вправо — следующ. композиция + + Интеллектуальное откл. экрана + Не отключать экран, пока пользователь находится перед ним + + Индикация событий + Индикация событий + Включать экран при получении уведомлений + Включать экран при получении уведомлений + Включать экран при получении уведомлений + Не включать экран при получении уведомлений + + Датчик наклона + + Датчик приближения + + Взмах рукой + Проведите ладонью над экраном для просмотра уведомлений + + Поднять + Отображать уведомления при поднятии устройства + + Карман + Отображать уведомления при извлечении устройства из кармана + + Включение по датчикам + Включение по датчикам + Проведите ладонью над экраном, чтобы вывести устройство из режима сна + + Действия + + Двойное вращение + Запускать приложение камеры при двойном вращении + + Встряхивание + Включать или выключать фонарик при постукивании + + Взмах для отключения звука + Проведите рукой над экраном, чтобы приглушить звук входящего звонка + + Режим «Не беспокоить» + Переверните телефон экраном вниз, чтобы отключить звуки уведомлений и вызовов + + Чтобы использовать эту функцию, предоставьте CMActions доступ к функции «Не беспокоить». + + Отключение звука + Поднимите телефон, чтобы заглушить звук звонка. Это действие сработает, если телефон лежал горизонтально + + Отключить + Запуск камеры + Фонарик + + Мощность виброотклика + Настройка силы вибрации для жестов вращения и встряхивания + Выключен + Низкая + Средняя + Высокая + + OK + + Информация + Эти функции используют события датчиков для отображения уведомлений. Датчик проверяется только при поступлении нового уведомления, что помогает сэкономить заряд батареи. Можно активировать включение датчика сразу при отключении экрана устройства, однако это может ускорить разряд батареи. + + Дополнительные кнопки + Поменять кнопки местами + Поменять местами кнопки «Обзор» и «Назад» + + Сканер отпечатка пальца + Переход на домашний экран + Использовать сканер отпечатков пальцев в качестве кнопки «Домой» + Выход из режима сна + Включать экран при касании датчика отпечатков пальцев + Предотвращать случайное включение + Проверять датчик приближения при выходе из режима сна с помощью отпечатка пальца + diff --git a/doze/resources/devicesettings/res/values-si-rLK/strings.xml b/doze/resources/devicesettings/res/values-si-rLK/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-si-rLK/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-sk/strings.xml b/doze/resources/devicesettings/res/values-sk/strings.xml new file mode 100644 index 00000000..8d85ef74 --- /dev/null +++ b/doze/resources/devicesettings/res/values-sk/strings.xml @@ -0,0 +1,131 @@ + + + + + + Zapnúť + + Vypnúť + + Rozšírené nastavenia + + Gestá + + Doplnky + Hmatová spätná väzba + Vibrovať pri zistení gesta + + Gestá vypnutia obrazovky + Fotoaparát + Gestom \"C\" spustiť fotoaparát + E-mail + Gestom \"e\" spustiť e-mailovú aplikáciu + Odosielanie správ + Gestom \"M\" otvoriť aplikáciu pre správy + Odosielanie správ + Gestom \"S\" otvoriť aplikáciu pre správy + Telefón + Gestom \"V\" otvoriť aplikáciu telefón + Prehliadač + Gestom \"W\" otvoriť prehliadač + Baterka + Gestom \"Z\" zapnúť baterku + Baterka + Gestom \"O\" zapnite baterku + Hudba + Použiť gestá pre ovládanie prehrávania hudby\n • prejdením nadol +prehrávať/pozastaviť\n • prejdením doľava pre predošlú skladbu\n • prejdením +doprava pre daľšiu skladbu + + Sledovať používateľa + Ponechať obrazovku zapnutú, pokiaľ je používateľ pred displejom + + Ambientné zobrazenie + Ambientné zobrazenie + Prebudiť obrazovku po prijatí oznámení + Prebudiť obrazovku po prijatí oznámenia + Obrazovka sa rozsvieti po prijatí oznámenia + Obrazovka sa nerozsvieti po prijatí oznámenia + + Senzor naklonenia + + Senzor priblíženia + + Mávnutie ruky + Pulzné oznámenia po mávnutí rukou + Detekovať orientáciu + Pulzovať iba v prípade, keď telefón leží na rovnej ploche položený obrazovkou nahor + + Zdvihnutie + Upozorniť pulzovaním pri zdvihnutí + + Vrecko + Pulzné oznámenia po vybratí z vrecka + + Prebudiť priblížením + Prebudiť priblížením + Prebudiť zariadenie mávnutím ruky + + Akcie + + Dvojité otočenie + Spustiť fotoaparát gestom dvojitého otočenia + + Dvojité seknutie + Zapnúť/vypnúť baterku použitím gesta dvojité seknutie + + Stíšiť mávnutím + Stíšiť prichádzajúce hovory mávnutím ruky cez obrazovku + + Otočiť pre povolenie „Nerušiť“ + Otočením telefónu obrazovkou nadol ztlmiť oznámenie a vyzváňanie + + Prosím pre využite tejto funkcie povoľte prístup k CMActions režimu „Nerušit”. + + Zdvihutím zastaviť vyzváňanie + Zdvihnutím telefónu stlmiť vyzváňanie. Túto funkciu je možné využíť len v prípade, ak bol telefón +položený na plocho + + Zakázať + Spustiť fotoaparát + Prepnúť svietidlo + + Intenzita hmatovej odozvy + Sila hmatovej odozvy pre gestá dvojitého otočenia a dvojitého seknutia + Zakázaná + Nízka + Stredná + Vysoká + + OK + + Uživateľská príručka + Tieto funkcie používajú udalosti senzorov pre spustenie upozorňovania pulzovaním. Vybraný senzor je zapnutý iba v prípade prijatia upozornenia, čo vedie k úspore batérie. Je tu aj možnosť zapnúť daný senzor ihneď po vypnutí obrazovky, ale dochádza k vyššej spotrebe batérie. + + Ďalšie tlačidlá + Vymeniť tlačidlá + Vymeniť poradie tlačidiel Nedávne a Späť + + Odtlačok prsta + Odtlačok prsta ako tlačidlo Domov + Používať senzor odtlačkov prstov ako tlačidlo Domov + Prebudenie snímačom odtlačkov prstov + Povoliť prebudenie zariadenia priložením prsta na snímač odtlačkov prstov + Zabrániť nechcenému prebudeniu + Pred prebudením pomocou odtlačku prsta skontrolovať senzor priblíženia + diff --git a/doze/resources/devicesettings/res/values-sl/strings.xml b/doze/resources/devicesettings/res/values-sl/strings.xml new file mode 100644 index 00000000..59dca59e --- /dev/null +++ b/doze/resources/devicesettings/res/values-sl/strings.xml @@ -0,0 +1,131 @@ + + + + + + Vklopljeno + + Izklopljeno + + Napredne nastavitve + + Poteze + + Dodatki + Haptično zaznavanje + Vibriraj ob zaznavi poteze + + Poteze za izklop zaslona + Fotoaparat + Narišite \"C\" za zagon fotoaparata + E-pošta + Narišite \"e\", da odprete aplikacijo za e-pošto + Sporočanje + Narišite \"M\", da odprete aplikacijo za sporočanje + Sporočanje + Narišite \"S\", da odprete aplikacijo za sporočanje + Klicalnik + Narišite \"V\", da odprete klicalnik + Brskalnik + Narišite \"W\", da odprete brskalnik + Svetilka + Narišite \"Z\", da preklopite svetilko + Svetilka + Narišite krog za preklop svetilke + Glasba + Uporabite poteze za nadzor predvajanja glasbe \n + • Potegnite dol za predvajanje/premor\n + • Potegnite levo za prejšnjo skladbo\n + • Potegnite desno za naslednjo skladbo + + Zaslon z zaznavanjem uporabnika + Ohrani zaslon vklopljen, ko je uporabnik pred zaslonom + + Okoliški zaslon + Okoliški zaslon + Zbudi zaslon, ko prejmem obvestila + Zbudi zaslon ob prejemu obvestila + Zaslon se bo vklopil, ko prejmete obvestila + Zaslon se ne bo vklopil, ko prejmete obvestila + + Tipalo nagiba + + Tipalo bližine + + Mahanje z roko + Utripaj obvestila ob mahanju z roko + Zaznaj usmerjenost + Utripaj samo, če telefon leži na ravni površini obrnjen navzgor + + Dvig + Utripaj obvestila ob dvigu + + Žep + Utripaj obvestila ob odstranitvi iz žepa + + Bujenje ob bližini + Bujenje ob bližini + Zbudi napravo ob mahanju z roko + + Dejanja + + Dvojno zvijanje + Odpri fotoaparat ob potezi dvojnega zvijanja + + Dvakratno navpično tresenje + Preklopi svetilko ob potezi dvakratno navpičnega tresenja + + Mahaj za utišanje + Utišaj dohodne klice z mahanjem roke preko zaslona + + Obračanje za \'Ne moti\' + Obrnite telefon s sprednjo stranjo navzdol za utišanje obvestil in klicev + + Odobrite dostop \'Ne moti\' za CMActions, da mu dovolite uporabo te značilnosti. + + Dvig za utišanje zvonjenja + Dvignite telefon za utišanje dohodnih klicev. Deluje samo, ko je telefon v vodoravnem položaju. + + Onemogoči + Zaženi fotoaparat + Preklopi svetilko + + Jakost haptičnega zaznavanja + Moč haptičnega zaznavanja za dejanji dvojnega zvijanja in pokončnega tresenja + Onemogočeno + Nizka + Srednja + Visoka + + V redu + + Pomoč + 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. + + Dodatni gumbi + Zamenjaj gumbe + Zamenjaj vrstni red gumbov Nedavno in Nazaj + + Prstni odtis + Prstni odtis kot Domov + Uporabi čitalec prstnih odtisov kot gumb Domov + Zbudi s prstnim odtisom + Dovolite čitalcu prstnih odtisov da zbudi napravo, ko je zaslon ugasnjen + Prepreči nenamerno bujenje + Pred bujenjem s čitalcem prstnih odtisov preveri tipalo bližine + diff --git a/doze/resources/devicesettings/res/values-sq-rAL/strings.xml b/doze/resources/devicesettings/res/values-sq-rAL/strings.xml new file mode 100644 index 00000000..58968a28 --- /dev/null +++ b/doze/resources/devicesettings/res/values-sq-rAL/strings.xml @@ -0,0 +1,125 @@ + + + + + + Ndiz + + Inaktiv + + Parametra të përparuar + + Gjestet + + Ekstra + Reagimi haptik + Dridhu kur zbulohet një gjest + + Gjestet me ekran të mbyllur + Kamera + Vizato një \"C\" për të aktivizuar kamerën + Email + Vizato një \"e\" për të hapur aplikacionin e email-it + Mesazhet + Vizato një \"M\" për të hapur aplikacionin e mesazheve + Mesazhet + Vizato një \"S\" për të hapur aplikacionin e mesazheve + Telefoni + Vizato një \"V\" për të hapur aplikacionin e telefonit + Shfletuesi + Vizato një \"W\" për të hapur aplikacionin e shfletuesit të internetit + Elektriku i dorës + Vizato një \"Z\" për të ndezur elektrikun e dorës + Elektriku i dorës + Vizato një rreth për të ndezur elektrikun e dorës + Muzika + Përdor gjeste për të kontrolluar muzikën \n • Rrëshqit gishtin poshtë për të nisur/ndaluar këngën\n • Rrëshqit gishtin majtas për të vajtur tek kënga e mëparshme\n • Rrëshqit gishtin djathtas për të vajtur tek kënga e radhes + + Funksionimi i ekranit në bazë të pranisë së përdoruesit + Mbaj ekranin ndezur gjatë kohës kur përdoruesi është përpara ekranit + + Drita e ekranit sipas ambientit + Drita e ekranit sipas ambientit + Ndiz ekranin kur të vijnë njoftime + Ndiz ekranin kur të vijnë njoftime + Ekrani do të ndizet kur të vijnë njoftime + Ekrani nuk do të ndizet kur të vijnë njoftime + + Sensori i pjerrësisë + + Sensori i afërsisë + + Kalimi sipër i dorës + Shfaq njoftimet kur i kalon dorën sipër + + Ngritja + Shfaq njoftimet kur e ngre + + Xhepi + Shfaq njoftimet kur e nxjerr nga xhepi + + Aktivizimi prej afërsisë + Aktivizimi prej afërsisë + Ndiz pajisjen kur i kalon dorën sipër + + Veprime + + Kthim i dyfishtë + Hap kamerën kur bën gjestin e kthimit të dyfishtë + + Chop-chop + Ndiz/fik elektrikun e dorës kur përdor gjestin \"chop-chop\" + + Kalo dorën sipër për ta heshtur + Hesht thirrjet hyrëse duke kaluar dorën mbi ekran + + Ktheje përmbys për të aktivizuar \"Mos më shqetëso\" + Ktheje telefonin përmbys për të heshtur njoftimet dhe zilet + + Jepi opsionit \"Mos më shtetëso\" akses të CMActions që të mund të përdorësh këtë funksion. + + Ngrije për të ndaluar zilen + Ngri telefonin për të heshtur thirrjet hyrëse. Kjo punon vetëm kur telefoni ndodhet në një sipërfaqe të sheshtë + + Çaktivizo + Hap kamerën + Ndiz/fik elektrikun e dorës + + Itensiteti i reagimit haptik + Intensiteti i reagimit haptik për veprimet \"kthim i dyfishtë\" dhe \"chop-chop\" + I çaktivizuar + I ulët + Mesatar + I lartë + + OK + + Ndihmë + Këto funksione përdorin sensorin për të shfaqur njoftimet në modalitetin Doze. Sensori i zgjedhur aktivizohet vetëm kur pajisja merr një njoftim, dhe kjo ndihmon në reduktimin e përdorimit të baterisë. Ka edhe një opsion për të aktivizuar sensorin e zgjedhur menjëherë pasi ekrani të fiket. Ky opsion do të bëjë që bateria të përdoret më shumë. + + Butona të tjerë + Shkëmbe butonat + Shkëmbe rendin e butonave \"Të fundit\" dhe \"Prapa\" + + Shenjat e gishtave + Sensori i shenjave të gishtave si butoni Home + Përdor sensorin e shenjave të gishtave si butoni Home + Zgjimi prej shenjës së gishtit + Lejo sensorin e shenjave të gishtave që të zgjojë pajisjen kur ekrani të jetë i fikur + Parandalo zgjimin aksidental + diff --git a/doze/resources/devicesettings/res/values-sr-rCS/strings.xml b/doze/resources/devicesettings/res/values-sr-rCS/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-sr-rCS/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-sr/strings.xml b/doze/resources/devicesettings/res/values-sr/strings.xml new file mode 100644 index 00000000..8c461a2f --- /dev/null +++ b/doze/resources/devicesettings/res/values-sr/strings.xml @@ -0,0 +1,127 @@ + + + + + + Укљ + + Искљ + + Напредна подешавања + + Гестови + + Додаци + Повратне информације + Вибрација кад гест није откривен + + Гестови екрана + Камера + Нацртај \"C\" да би активирао камеру + Е-пошта + Нацртај \"e\" да отвориш е-пошту + Размена порука + Нацртај \"М\" да отвориш размену порука + Размена порука + Нацртај \"S\" да отвориш размену порука + Бирач бројева + Нацртај \"V\" да отвориш бирач бројева + Претраживач + Нацртај \"W\" да отвориш претраживач + Лампа + Нацртај \"Z\" да покренеш лампу + Лампа + Нацртај круг да покренеш лампу + Музика + Користи гестове за контролу пуштања музике \n +• Повуци доле за пуштање/паузу\n +• Повуци лево за претходну нумеру\n +• Повуци десно за следећу нумеру + + Дисплеј свестан корисника + Држи екран укљученим док је корисник испред дисплеја + + Амбијент приказ + Амбијент приказ + Пробуди екран кад добијеш обавештење + Пробуди екран кад добијеш обавештење + Екран ће се пробудити кад добијеш обавештење + Екран се неће пробудити кад добијеш обавештење + + Тилт сензор + + Сензор близине + + Покрет руком + Пулсно обавештење при покрету руком + + Купљење + Пулсно обавештење при купљењу + + Џеп + Пулсно обавештење при уклањању из џепа + + Буђење близином + Буђење близином + Пробуди уређај покретом руке + + Акције + + Дупло ротирање + Отвори камеру када се користи гест дуплог ротирања + + Пожури + Укључи/Искључи лампу користећи гест пожури + + Махни за тишину + Утишај долазеће позиве махањем руком преко екрана + + Окрени за \'\'Не узнемиравај\'\' + Постави телефон лицем на доле да утишаш обавештавање и позиве + + Да би користио ову функцију дај приступ \'\'Не Узнемиравај\'\' за CM налоге. + + Подигни да зауставиш звоњење + Подигни телефон да утишаш долазеће позиве. Ради само ако је телефон стартовао на равном + + Онемогући + Покрени камеру + Пребацивање бакље + + Интензитет одговора додира + Јачина повратне информације за дуплу ротацију и пожури акцију + Онемогућено + Ниска + Средња + Висока + + У реду + + Помоћ + Ова функција користи активирање сензора да покрене пулсно обавештење. Изабрани сензор је омогућен једино када уређај прима обавештење, то помаже смањењу потрожње батерије. Ту је и опција омогућења изабраног сензора чим се екран искључи, то ће узроковати већој потрожњи батерије. + + Додатна дугмад + Замени дугмад + Замени редослед за скоро и назад дугмад + + Отисак прста + Отисак прста као главни + Користи сензор отиска прста као главно дугме + Буђење отиском прста + Дозволи сензору отиска прста да пробуди уређај док је екран искључен + diff --git a/doze/resources/devicesettings/res/values-sv/strings.xml b/doze/resources/devicesettings/res/values-sv/strings.xml new file mode 100644 index 00000000..af6e3509 --- /dev/null +++ b/doze/resources/devicesettings/res/values-sv/strings.xml @@ -0,0 +1,105 @@ + + + + + + + + Av + + Avancerade inställningar + + Gester + + Extra + Haptisk feedback + Vibrera när en gest upptäcktes + + Gester för skärmavstängning + Kamera + Rita ett \"C\" för att aktivera kameran + E-post + Rita ett \"e\" för att öppna epost-appen + Meddelanden + Rita ett \"M\" för att öppna meddelandeappen + Meddelanden + Rita ett \"S\" för att öppna meddelandeappen + Uppringare + Rita ett \"V\" för att öppna ringappen + Webbläsare + Rita ett \"W\" för att öppna webbläsaren + Ficklampa + Rita ett \'Z\' för att slå på ficklampa + Ficklampa + Musik + + Användarmedveten display + Håll skärmen på medan en användare är framför displayen + + Ambient display + Ambient display + Väck skärmen när du tar emot aviseringar + + + Närhetscensor + + Handrörelse + Pulsera aviseringar vid handrörelse + + Plocka upp + Pulsera aviseringarna när enheten plockas upp + + Ficka + Pulsera aviseringar när du tar upp enheten ur fickan + + Vakna vid närhet + Vakna vid närhet + Väck enheten vid handrörelse + + Åtgärder + + Dubbel vridning + + + Vifta för att tysta + Tysta samtal genom att vifta med handen över skärmen + + Vänd för Stör ej + + + + Inaktivera + Starta kamera + Växla ficklampa + + Intensitet på haptisk feedback + Styrkan i den haptiska feedbacken för dubbel vridning och hacka-hacka åtgärder + Inaktiverad + Låg + Medel + Hög + + OK + + Hjälp + + Ytterligare knappar + Växla knappar + + Fingeravtryck + diff --git a/doze/resources/devicesettings/res/values-sw/strings.xml b/doze/resources/devicesettings/res/values-sw/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-sw/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-ta-rIN/strings.xml b/doze/resources/devicesettings/res/values-ta-rIN/strings.xml new file mode 100644 index 00000000..a836eb61 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ta-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + மேம்பட்ட அமைப்புகள் + + சைகைகள் + + உதிரிகள் + தீண்டும் பின்னூட்டம் + குறிப்புணர்வு ஒன்று கண்டுபிடிக்கப்படும்போது அதிர் + + கேமரா + கேமரா செயல்படுத்த ஒரு \"C\" வரை + மின்னஞ்சல் + மின்னஞ்சல் பயன்பாட்டை திறக்க ஒரு \"e\" வரை + செய்தியிடல் + செய்தி பயன்பாட்டை திறக்க ஒரு \"S\" வரை + டயலர் + டயலர் பயன்பாட்டை திறக்க \"V\" வரை + உலாவி + உலாவி பயன்பாட்டை திறக்க ஒரு \"W\" வரை + ஃபிளாஷ்லைட் + ஃப்ளாஷ்லைட் நிலைமாறுவதற்கு ஒரு \"Z\" வரை + + பயனர்-அறிந்த காட்சி + பயனர் காட்சிக்கு முன் இருக்கும்போது திரையை ஆன்-இல் வைக்கவும் + + தன்னிச்சையான திரைஒளிர்வமைப்பு + தன்னிச்சையான திரைஒளிர்வமைப்பு + செய்திகள் பெறுகையில் திரையை இயக்கு + + + + கை அசைவு + கை அசைவில் துடிப்பு அறிவிப்பை இயக்கு + + + பை + பையிலிருந்து எடுக்கும்போது துடிப்பு அறிவிப்பை இயக்கு + + அண்மை விழிப்பூட்டல் + அண்மை விழிப்பூட்டல் + கை அசைவில் சாதனத்தை விழிப்பூட்டு + + + + + + + + + முடக்கு + கேமராவை தொடங்கு + டார்ச்சை நிலைமாற்று + + தீண்டும் பின்னூட்டம் இன்டென்சிட்டி + இரு-திருப்பம் மற்றும் சாப்-சாப் செயல்களுக்கான தீண்டும் பின்னூட்டத்தின் வலிமை + முடக்கப்பட்டது + குறைந்த தரம் + நடுத்தரம் + உயர்தரம் + + + + + diff --git a/doze/resources/devicesettings/res/values-te-rIN/strings.xml b/doze/resources/devicesettings/res/values-te-rIN/strings.xml new file mode 100644 index 00000000..b7a7c85c --- /dev/null +++ b/doze/resources/devicesettings/res/values-te-rIN/strings.xml @@ -0,0 +1,85 @@ + + + + + + + + ఆధునిక సెట్టింగులు + + సైగలు + + అధికమైనవి + స్పర్శతో అభిప్రాయం + ఎప్పుడు ఒక జెస్చర్ ప్రకంపనాలను కనుగొనబడలేదు + + కెమెరా + కెమెరాను ఉత్తేజపరచటానికి కావలసిన ఒక \"C\" డ్రా + ఇమెయిల్ + ఇమెయిల్ అనువర్తనం తెరవడానికి \"e\" డ్రా + సందేశం + సందేశ అనువర్తనం తెరవడానికి ఒక \"S\" డ్రా + డయలర్ + డయలర్ అనువర్తనం తెరవడానికి ఒక \"V\" డ్రా + బ్రౌజర్ + బ్రౌజర్ అనువర్తనం తెరవడానికి ఒక \"W\" డ్రా + ఫ్లాష్లైట్ + ఫ్లాష్లైట్ మార్చడానికి ఒక \"Z\" డ్రా + + యూసర్-అవేర్ డిస్ప్లే + యూసర్ వాడేటప్పుడు స్క్రీన్ ఆన్ ఉంచండి + + ఆధునిక(పరిసర) డిస్ప్లే + ఆధునిక(పరిసర) డిస్ప్లే + నోటిఫికేషన్స్ వచ్చినప్పుడు స్క్రీన్ ఆన్ చేయండి + + + + చేతులు కదిపినప్పుడు + చేతులు కదిపినప్పుడు నోటిఫికేషన్స్ చూపించు + + + జేబు + జేబు నుంచి తీసినప్పుడు నోటిఫికేషన్స్ చూపించు + + సామీప్య మేల్కొలుపు + సామీప్య మేల్కొలుపు + చేయి ఊపినప్పుడు పరికరాన్ని మేల్కొలుపుము + + + + + + + + + డీసెబుల్ + కెమెరా ఆన్ + టార్చ్ ఆన్ + + హప్ట్టిక్ ఫీడ్ బ్యాక్ ఇంటెన్సిటీ + డబుల్ ట్విస్ట్ చేసినప్పుడు మరియు చా ప్ - చా ప్ చేసినప్పుడు కావాల్సిన హప్ట్టిక్ ఫీడ్ బ్యాక్ తీవ్రత + డిసేబల్ద్ + తక్కువ + మధ్యరకం + ఎక్కువ + + + + + diff --git a/doze/resources/devicesettings/res/values-th/strings.xml b/doze/resources/devicesettings/res/values-th/strings.xml new file mode 100644 index 00000000..f0c6442b --- /dev/null +++ b/doze/resources/devicesettings/res/values-th/strings.xml @@ -0,0 +1,92 @@ + + + + + + + + การตั้งค่าขั้นสูง + + ท่าทาง + + พิเศษ + สั่นเมื่อแตะ + สั่นเมื่อพบการเคลื่อนไหว + + กล้องถ่ายรูป + วาด \"C\" เพื่อเปิดกล้อง + อีเมล + วาดตัว \"e\" เพื่อเปิดแอปอีเมล + ส่งข้อความ + วาดตัว \"S\" เพื่อเปิดแอปสำหรับส่งข้อความ + โทรออก + วาดตัว \"V\" เพื่อเปิดแอปสำหรับโทรออก + เบราว์เซอร์ + วาดตัว \"W\" เพื่อเปิดแอปเบราว์เซอร์ + ไฟฉาย + วาดตัว \"Z\" เพื่อสลับไฟฉาย + + ผู้ใช้อยู่หน้าจอ + เปิดจอค้างไว้เมื่อผู้ใช้อยู่หน้าจอ + + หน้าจอแวดล้อม + หน้าจอแวดล้อม + เปิดหน้าจอเมื่อมีการแจ้งเตือน + + + + การเคลื่อนไหวด้วยมือ + เช็คการแจ้งเตือนเมื่อมีการโบกมือ + + + กระเป๋า + เช็คการแจ้งเตือนเมื่อนำออกจากกระเป๋า + + การปลุกระยะใกล้เคียง + การปลุกระยะใกล้เคียง + ปลุกอุปกรณ์เมื่อโบกแกว่งมือ + + การกระทำ + + บิดสองครั้ง + เปิดกล้องเมื่อบิดสองครั้ง + + เลื่อนจากบนลงล่างอย่างเร็วสองครั้ง + เปิดไฟฉายเมื่อเลื่อนจากบนลงล่างอย่างเร็วสองครั้ง + + แกว่งเพื่อปิดเสียง + ปิดเสียงเรียกเข้าโดยการแกว่งมือผ่านหน้าจอ + + + + + ปิด + เปิดกล้อง + เปิดปิดไฟฉาย + + ความรุนแรงการสั่น + ความรุนแรงในการสั่นของการบิดสองครั้งและการเลื่อนแบบรวดเร็ว + ปิด + ต่ำ + ปานกลาง + สูง + + + + + diff --git a/doze/resources/devicesettings/res/values-tr/strings.xml b/doze/resources/devicesettings/res/values-tr/strings.xml new file mode 100644 index 00000000..9a55520b --- /dev/null +++ b/doze/resources/devicesettings/res/values-tr/strings.xml @@ -0,0 +1,131 @@ + + + + + + Açık + + Kapalı + + Gelişmiş ayarlar + + Hareketler + + Ekstralar + Dokunmatik geri bildirim + Bir hareket algılandığında titrer + + Kapalı ekranda kısayollar + Kamera + Kamerayı etkinleştirmek için bir \"C\" çizin + E-Posta + E-posta uygulamasını açmak için bir \"e\" çizin + Mesajlaşma + Mesaj uygulamasını açmak için \"M\" çizin + Mesajlaşma + Mesaj uygulamasını açmak için \"S\" çizin + Telefon + Telefon uygulamasını açmak için \"V\" çizin + Tarayıcı + Tarayıcı uygulamasını açmak için \"W\" çizin + El feneri + El fenerini açıp kapatmak için \'Z\' çizin + El Feneri + El feneri için daire çiz + Müzik + Müziği kontrol etmek için hareketlerinizi kullanın\n + • Parçayı oynatmak/durdurmak için aşağı\n + • Önceki parçayı oynatmak için sola\n + • Sonraki parça için sağa kaydırın + + Etkileşimli ekran + Kullanıcı ekranın önündeyken ekranı açık tutar + + Bildirim ekranı + Bildirim ekranı + Bildirim aldığınızda ekranı uyandırın + Bildirim geldiğinde cihazı uyandır + Bildirimler aldığınızda ekran uyanacak + Bildirimler aldığınızda ekran uyanmayacak + + Eğrilik sensörü + + Yakınlık sensörü + + El sallama + El sallayınca bildirimleri at + Yönü algıla + Yalnızca telefonun ekranı yukarı bakacak şekilde düz bir yüzeyde duruyor ise uyansın + + Kaldır + Telefonu kaldırınca bildirimleri göster + + Cep + Cepten çıkarınca bildirimleri at + + Harekette uyandır + Harekette uyandır + El sallamasında cihazı uyandır + + Eylemler + + Çift sallama + Çift sallama hareketi kullanıldığında kamerayı aç + + Tak-tak + Tak-tak hareketi kullanıldığında flaşı aç/kapat + + Sessize almak için sallayın + Elinizi ekranın üstünde sallayarak gelen çağrıları sessize alın + + Rahatsız Etmeyin Modu için döndür + Sessize almak için telefonu ters döndür + + Bu özelliği kullanmak CMActions\'a izin ver. + + Zil sesini susturmak için cihazı kaldır + Gelen aramaları susturmak için telefonu kaldır + + Devre dışı + Kamerayı başlat + El fenerini aç/kapat + + Dokunmatik geri bildirim yoğunluğu + Çift sallama ve tak tak işlemleri için dokunmatik geri bildirim gücü + Devre dışı + Düşük + Orta + Yüksek + + TAMAM + + Yardım + Doze özelliği çalışmak için sensörleri kullanır. Seçilen sensör yalnızca cihaz bildirim aldığında etkinleştirilir, pil kullanımını azaltmaya yardımcı olur. Seçilen sensörü ekran kapanır kaldırılmaz etkinleştirebilirsiniz ancak bu yüksek pil kullanımına neden olur. + + Ek düğmeler + Düğmeleri değiştir + Son uygulamalar ve geri düğmesinin sırasını değiştir + + Parmak İzi + Ana ekran için parmak izi + Parmak izi sensörünü home tuşu olarak kullan + Parmak izi ile uyandırma + Ekran kapalı iken cihazın uyandırmak için parmak izine onay ver + Yanlış uyandırmaları önle + Parmak izi sensörü tarafından tetiklenen uyandırma durumlarından önce yakınlık sensörünü kontrol edin + diff --git a/doze/resources/devicesettings/res/values-ug/strings.xml b/doze/resources/devicesettings/res/values-ug/strings.xml new file mode 100644 index 00000000..00c23365 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ug/strings.xml @@ -0,0 +1,92 @@ + + + + + + + + ئالىي تەڭشەكلەر + + قول ئىشارەت + + قوشۇمچە ئىقتىدار + تېگىش ئىنكاسى + قوش ئىشارىتىنى بايقىغاندا تىتىرەيدۇ + + كامېرا + ئاپاراتنى قوزغىتىش ئۈچۈن \"C\" شەكلىنى سىزىڭ + ئېلخەت + ئېلخەتنى قوزغىتىش ئۈچۈن \"e\" شەكلىنى سىزىڭ + ئۇچۇر + ئۇچۇرنى قوزغىتىش ئۈچۈن \"S\" شەكلىنى سىزىڭ + نومۇر بۇرىغۇچ + نومۇر بۇرىغۇچنى قوزغىتىش ئۈچۈن \"V\" شەكلىنى سىزىڭ + تور كۆرگۈچ + تور كۆرگۈچنى قوزغىتىش ئۈچۈن \"W\" شەكلىنى سىزىڭ + قول چىراغ + قول چىراقنى قوزغىتىش ئۈچۈن \"Z\" شەكلىنى سىزىڭ + + ئابونت سەزگۈ كۆرسىتىش + ئىشلەتكۈچى ئېكران ئالدىغا كەلگەندە ئېكران ئوچۇق تۇرسۇن + + تەشەببۇسكارلىق بىلەن كۆرسىتىدۇ + تەشەببۇسكارلىق بىلەن كۆرسىتىدۇ + ئۇقتۇرۇش كەلگەندە ئېكراننى ئويغىتىدۇ + + + + قول پۇلاڭلىتىش + قولنى پۇلاڭلاتقاندا ئۇقتۇرۇش چىرىغىنى چاقنىتىدۇ + + + يانچۇق + يانچۇقتىن چىقارغاندا ئۇقتۇرۇش چىرىغىنى چاقنىتىدۇ + + ئارلىق سېنزور ئويغاندى + ئارلىق سېنزور ئويغاندى + قولنى پولاڭلىتىپ ئۈسكىنىنى ئويغىتىش + + ھەرىكەت + + ئىككى قېتىم تەۋرىتىش + ئىككى قېتىم تەۋرەتكەندە كامېرا قوزىغىلىدۇ + + دەرھال + ئوڭ سولغا تەۋرەتكەندە قول چىراق يورۇيدۇ + + تەۋرىتىپ ئاۋازسىز قىلىش + تېلېفون كەلگەندە قولنى پولاڭلىتىپ ئاۋازىنى ئۆچىرىش + + + + + چەكلەش + كامېرانى قوزغىتىڭ + قول چىراغ ئۈزچات + + تېگىش سېزىمى رىفلىكىسنىڭ كۈچلۈكلىكى + ئىككى قېتىم تەۋرەتكەندە ۋە \"دەرھال\" ھەرىكەت قىلغاندىكى تېگىش سېزىمى رىفلىكىسنىڭ كۈچلۈكلىكى + چەكلەنگەن + تۆۋەن + ئوتتۇرا + يۇقىرى + + + + + diff --git a/doze/resources/devicesettings/res/values-uk/strings.xml b/doze/resources/devicesettings/res/values-uk/strings.xml new file mode 100644 index 00000000..15fabf16 --- /dev/null +++ b/doze/resources/devicesettings/res/values-uk/strings.xml @@ -0,0 +1,131 @@ + + + + + + Увімкнено + + Вимкнено + + Додаткові налаштування + + Жести + + Додатково + Вібро-відгук + Вібрувати, коли виявлено жест + + Жести при вимкненому екрані + Камера + Намалюйте літеру «C», щоб активувати камеру + Електронна пошта + Намалюйте літеру «е», щоб відкрити програму електронної пошти + Повідомлення + Намалюйте літеру «М», щоб відкрити програму обміну повідомленнями + Повідомлення + Намалюйте літеру «S», щоб відкрити програму обміну повідомленнями + Номеронабирач + Намалюйте літеру «V», щоб відкрити номеронабирач + Браузер + Намалюйте літеру «W», щоб відкрити браузер + Ліхтарик + Намалюйте літеру «Z» аби перемкнути ліхтарик + Ліхтарик + Намалюйте літеру «О», щоб перемкнути ліхтарик + Музика + Використовувати жести для керування музичним плеєром \n + • Провести вниз щоб відтворити/зупинити\n + • Провести вліво для відтворення попереднього треку\n + • Провести вправо для відтворення наступного треку + + Розумний екран + Тримати екран увімкненим, коли користувач знаходиться перед ним + + Ambient дисплей + Ambient дисплей + Вмикати екран, коли ви отримали сповіщення + Вмикати екран, коли ви отримали сповіщення + Екран вмикатиметься, коли ви отримаєте сповіщення + Екран не буде вмикатися, коли ви отримаєте сповіщення + + Датчик нахилу + + Датчик наближення + + Жести рукою + Пульсуючі сповіщення на при жестах руками + Визначити орієнтацію + Пульсувати тільки, якщо телефон лежить на плоскій поверхні + + Підняти + Показувати сповіщення при підніманні пристрою + + Кишеня + Пульсуючі сповіщення при вийманні з кишені + + Прокидання при наближенні + Прокидання при наближенні + Прокидати пристрій на жест рукою + + Дії + + Подвійний поворот + Запускати додаток камери при подвійному обертанні + + Струс + Увімкнути або вимкнути ліхтарик при струсі + + Помах рукою для вимикання звуку + Приглушити звук виклику, провівши рукою над екраном + + Перегорнути та не турбувати + Покладіть пристрій екраном донизу, щоб приглушити звуки сповіщень і виклику + + Будь ласка, надайте CMActions доступ до функції «Не турбувати». + + Підняти та приглушити + Підніміть телефон, аби приглушити звук виклику. Ця дія спрацює, якщо телефон лежав горизонтально + + Вимкнути + Запуск камери + Ліхтарик + + Інтенсивність тактильного зворотного зв\'язку + Сила вібрації для подвійному повороті і струсі + Вимкнено + Низька + Середня + Висока + + OK + + Допомога + Ці функції використовують події датчиків для показу сповіщень. Датчик перевіряється лише під час надходження нової події, що дозволяє економити заряд батареї. Можна активувати датчики одразу після вимкнення екрану пристрою, але це призведе до прискореного розряду батареї. + + Додаткові кнопки + Поміняти кнопки місцями + Поміняти місцями кнопку останніх програм і кнопку «Назад» + + Сканер відбитків пальців + Сканер відбитків пальців як кнопка «Додому» + Використовувати сканер відбитків пальців як кнопку \"Додому\" + Пробудження по сканеру відбитків пальців + Дозволити сканеру відбитків пальців розблокувати пристрій, якщо екран було вимкнено + Запобігання випадкового пробудження + Перевіряти датчик наближення, виходячи з режиму сну з використанням жестів + diff --git a/doze/resources/devicesettings/res/values-ur-rPK/strings.xml b/doze/resources/devicesettings/res/values-ur-rPK/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-ur-rPK/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-uz-rUZ/strings.xml b/doze/resources/devicesettings/res/values-uz-rUZ/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-uz-rUZ/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-vi/strings.xml b/doze/resources/devicesettings/res/values-vi/strings.xml new file mode 100644 index 00000000..2f50d8bb --- /dev/null +++ b/doze/resources/devicesettings/res/values-vi/strings.xml @@ -0,0 +1,129 @@ + + + + + + Bật + + Tắt + + Cài đặt nâng cao + + Cử chỉ + + Thêm + Phản hồi xúc giác + Rung khi phát hiện cử chỉ + + Cử chỉ màn hình tắt + Máy ảnh + Vẽ \"C\" để kích hoạt máy ảnh + Email + Vẽ \"e\" để mở ứng dụng email + Nhắn tin + Vẽ \"M\" để mở ứng dụng nhắn tin + Nhắn tin + Vẽ \"S\" để mở ứng dụng nhắn tin + Trình quay số + Vẽ \"V\" để mở ứng dụng trình quay số + Trình duyệt + Vẽ \"W\" để mở ứng dụng trình duyệt + Đèn pin + Vẽ \'V\' để bật/tắt đèn pin + Đèn pin + Vẽ một vòng tròn để bật/tắt đèn pin + Nhạc + Sử dụng các cử chỉ để điều khiển phát lại nhạc \n + • Vuốt xuống để phát/tạm dừng\n + • Vuốt sang trái cho bài trước đó\n + • Vuốt sang phải cho bài kế tiếp + + Màn hình nhận biết người dùng + Giữ màn hình sáng khi người dùng còn nhìn vào màn hình + + Hiển thị môi trường xung quanh + Hiển thị môi trường xung quanh + Sáng màn hình khi nhận thông báo + Đánh thức màn hình khi nhận thông báo + Màn hình sẽ đánh thức khi bạn nhận được thông báo + Màn hình sẽ không đánh thức khi bạn nhận thông báo + + Cảm biến nghiêng + + Cảm biến tiệm cận + + Vẫy tay + Kích hoạt thông báo về vẫy tay + + Nhấc lên + Kích hoạt thông báo khi nhấc lên + + Túi + Kích hoạt thông báo về loại bỏ khỏi túi + + Đánh thức thiết bị bằng cảm biến tiệm cận + Đánh thức thiết bị bằng cảm biến tiệm cận + Đánh thức thiết bị bằng cách vẫy tay + + Thao tác + + Xoay hai lần + Mở máy ảnh khi sử dụng cử chỉ xoay hai lần + + Lắc 2 lần + Bật/tắt đèn pin khi sử dụng cử chỉ lắc 2 lần + + Vẫy để im lặng + Ngắt tiếng cuộc gọi đến bằng cách vẫy tay qua màn hình + + Lật để Không làm phiền + Đặt mặt điện thoại xuống để tắt tiếng các thông báo và cuộc gọi + + Vui lòng, truy cập vào Không làm phiền qua CMActions để sử dụng tính năng này. + + Nhấc lên để tắt chuông + Nhấc điện thoại để tắt tiếng cuộc gọi đến. Nó chỉ hoạt động khi điện thoại của bạn nằm trên mặt phẳng + + Tắt + Khởi động camera + Bật/tắt đèn pin + + Cường độ phản hồi xúc giác + Độ mạnh của phản hồi xúc giác với thao tác xoay hai lần và lắc hai lần + Đã tắt + Thấp + Trung bình + Cao + + OK + + Trợ giúp + Các tính năng này sử dụng các sự kiện cảm biến để khởi chạy kích hoạt một thông báo doze. Các cảm biến được chọn chỉ được kích hoạt khi thiết bị nhận một thông báo, điều này giúp giảm thiểu việc sử dụng pin. Ngoài ra còn có một tùy chọn để kích hoạt các cảm biến được chọn ngay khi màn hình tắt, điều này sẽ gây ra việc sử dụng pin cao hơn. + + Nút bổ sung + Tráo đổi nút + Đổi thứ tự của các nút Recents và Back + + Vân tay + Vân tay như là nút home + Sử dụng cảm biến vân tay như là một nút home + Đánh thức bằng vân tay + Cho phép cảm biến vân tay đánh thức thiết bị trong khi màn hình đang tắt + Ngăn chặn tình cờ mở màn hình + Kiểm tra cảm biến tiệm cận trước khi đánh thức được kích hoạt bằng cảm biến vân tay + diff --git a/doze/resources/devicesettings/res/values-zh-rCN/strings.xml b/doze/resources/devicesettings/res/values-zh-rCN/strings.xml new file mode 100644 index 00000000..7265437e --- /dev/null +++ b/doze/resources/devicesettings/res/values-zh-rCN/strings.xml @@ -0,0 +1,131 @@ + + + + + + + + + + 高级设置 + + 手势 + + 附加功能 + 触觉反馈 + 检测到手势时振动 + + 关屏手势 + 相机 + 绘制一个“C”来激活相机 + 电子邮件 + 绘制一个“e”来打开电子邮件应用 + 信息 + 绘制一个“M”以打开消息应用 + 信息 + 绘制一个“S”以打开消息应用 + 拨号 + 绘制一个“V”以打开拨号应用 + 浏览器 + 绘制一个“W”来打开浏览器应用 + 手电筒 + 绘制一个“Z”来切换手电筒 + 手电筒 + 画一个圈来切换手电筒 + 音乐 + 使用手势控制音乐播放 \n + • 双指垂直滑动来播放/暂停\n + • 向左滑动切换到上一首\n + • 向右滑动切换到下一首 + + 用户感知显示 + 当使用者在屏幕前时保持屏幕开启 + + 环境显示 + 环境显示 + 当接收到通知时唤醒屏幕 + 当接收到通知时唤醒屏幕 + 当接收到通知时将唤醒屏幕 + 当接收到通知时将不会唤醒屏幕 + + 倾斜传感器 + + 距离传感器 + + 挥手 + 挥手时闪烁通知灯 + 检测方向 + 仅当手机屏幕朝上且放置于平坦表面时闪烁呼吸灯 + + 拿起 + 拿起时显示通知 + + 口袋 + 从口袋中拿出时闪烁通知灯 + + 距离传感器唤醒 + 距离传感器唤醒 + 挥手时唤醒设备 + + 操作 + + 扭动两次 + 当扭动两次时打开相机 + + 劈砍两次 + 使用劈砍两次手势时切换手电筒 + + 挥动以静音 + 来电时用手挥过屏幕以静音 + + 翻转以请勿打扰 + 将手机朝下放置以静音通知和来电 + + 请为 CMActions 授予“请勿打扰”访问权限以使用此功能。 + + 拿起以停止响铃 + 拿起电话时静音来电。只有当您的手机平放时此功能才会生效 + + 禁用 + 启动相机 + 开关手电筒 + + 触觉反馈强度 + “劈砍”两次和“扭动”两次动作时的触觉反馈强度 + 已禁用 + + + + + 确定 + + 帮助 + 这些功能使用传感器事件来启用打盹通知指示灯。所选的传感器仅在设备收到通知时启用,这有助于降低电池消耗。还有一个选项是在屏幕关闭后马上启用所选的传感器,这会消耗更多的电量。 + + 更多按键 + 交换按钮 + 交换最近使用与后退按钮的顺序 + + 指纹 + 将指纹作为 Home 键 + 将指纹传感器作为 Home 键使用 + 指纹唤醒 + 屏幕关闭时允许指纹传感器唤醒设备 + 防止意外唤醒 + 经由指纹唤醒前先检查距离传感器 + diff --git a/doze/resources/devicesettings/res/values-zh-rHK/strings.xml b/doze/resources/devicesettings/res/values-zh-rHK/strings.xml new file mode 100644 index 00000000..fe11a32a --- /dev/null +++ b/doze/resources/devicesettings/res/values-zh-rHK/strings.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + 使用者感知顯示 + 當用戶在顯示器前保持螢幕開啟 + + + + + 揮手 + + + 口袋 + 從口袋中取出時發出脈動通知 + + 接近喚醒 + 接近喚醒 + 揮手喚醒裝置 + + + + + + + + + 停用 + 啟動相機 + 切換電筒 + + 觸覺回饋強度 + 對於雙重扭動和迅速動作的觸覺回饋強度 + 已停用 + + + + + + + + diff --git a/doze/resources/devicesettings/res/values-zh-rTW/strings.xml b/doze/resources/devicesettings/res/values-zh-rTW/strings.xml new file mode 100644 index 00000000..7c66d060 --- /dev/null +++ b/doze/resources/devicesettings/res/values-zh-rTW/strings.xml @@ -0,0 +1,131 @@ + + + + + + + + + + 進階設定 + + 手勢 + + 附加功能 + 觸覺回饋 + 當感測到手勢時發出震動 + + 螢幕關閉手勢 + 相機 + 畫出一個「C」即可啟動相機 + 電子郵件 + 畫出一個「e」即可開啟電子郵件應用程式 + 簡訊 + 畫出一個「M」即可開啟簡訊應用程式 + 簡訊 + 畫出一個「S」即可開啟簡訊應用程式 + 撥號程式 + 畫出一個「V」即可開啟撥號應用程式 + 瀏覽器 + 畫出一個「W」即可開啟瀏覽器應用程式 + 手電筒 + 畫出一個「Z」即可切換至手電筒 + 手電筒 + 畫出一個圓圈即可切換至手電筒 + 音樂 + 使用手勢控制音樂播放 \n + • 向下滑動來播放或暫停\n + • 向左滑動切換至上一首\n + • 向右滑動切換至下一首 + + 使用者感知顯示 + 當使用者使用時保持螢幕開啟 + + 環境顯示 + 環境顯示 + 收到通知時喚醒螢幕 + 收到通知時喚醒螢幕 + 收到通知時將喚醒螢幕 + 收到通知時將不會喚醒螢幕 + + 傾斜感應器 + + 接近感應器 + + 揮手 + 揮手時顯示通知 + 檢測方向 + 僅在手機平放於平坦表面時顯示通知 + + 拿起 + 拿起時顯示通知 + + 口袋 + 從口袋中取出時顯示通知 + + 接近喚醒 + 接近喚醒 + 揮手時喚醒裝置 + + 動作 + + 雙重扭動 + 雙重扭動手勢時啟動相機 + + 左右旋轉搖動 + 左右旋轉搖動時切換至手電筒 + + 揮動即可靜音 + 在螢幕前揮手即可靜音來電 + + 翻轉即可為勿干擾 + 將電話朝下即可靜音通知和來電 + + 請為 CMActions 授予「勿干擾」存取權限即可使用此功能。 + + 拿起即可停止響鈴 + 拿起電話即可來電靜音。這只會在您的電話平放時才生效 + + 停用 + 啟動相機 + 切換至手電筒 + + 觸覺回饋強度 + 雙重扭動或左右旋轉搖動時的震動回饋強度 + 已停用 + + + + + 確定 + + 說明 + 這些功能使用各種感應器來感測即可觸發休眠顯示通知,所選的感應器僅在裝置收到通知時才被啟動,達致減低耗電量。此外還有一個選項可以在每當螢幕關閉時馬上啟動感應器,當然這會消耗更多的電量。 + + 更多按鍵 + 切換按鍵 + 切換多工和返回鍵的順序 + + 指紋 + 用指紋作為主畫面鍵 + 使用指紋感應器作為主畫面鍵 + 指紋喚醒 + 允許指紋感應器在螢幕關閉時喚醒裝置 + 防止意外喚醒 + 指紋感應器觸發喚醒前先檢查接近感應器 + diff --git a/doze/resources/devicesettings/res/values-zu/strings.xml b/doze/resources/devicesettings/res/values-zu/strings.xml new file mode 100644 index 00000000..fd720fe6 --- /dev/null +++ b/doze/resources/devicesettings/res/values-zu/strings.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doze/resources/devicesettings/res/values/strings.xml b/doze/resources/devicesettings/res/values/strings.xml new file mode 100644 index 00000000..6841b15e --- /dev/null +++ b/doze/resources/devicesettings/res/values/strings.xml @@ -0,0 +1,156 @@ + + + + + On + + + Off + + + Advanced settings + + + Gestures + + + Extras + Haptic feedback + Vibrate when a gesture got detected + + + Screen off gestures + Camera + Draw a \"C\" to activate camera + Email + Draw an \"e\" to open the email app + Messaging + Draw a \"M\" to open the messaging app + Messaging + Draw an \"S\" to open the messaging app + Dialer + Draw a \"V\" to open the dialer app + Browser + Draw a \"W\" to open the browser app + Flashlight + Draw a \"Z\" to toggle flashlight + Flashlight + Draw a circle to toggle flashlight + Music + Use gestures to control music playback \n + • Swipe down to play/pause\n + • Swipe left for previous track\n + • Swipe right for next track + + + User-aware display + Keep the screen on while a user is in front of the display + + + Ambient display + Ambient display + Wake screen when you receive notifications + Wake screen when you receive notifications + Screen will wake when you receive notifications + Screen will not wake when you receive notifications + + + Tilt sensor + + + Proximity sensor + + + Hand wave + Pulse notifications on hand wave + Detect orientation + Pulse only if the phone is lying face up on a flat surface + + + Pick-up + Pulse notifications on pick-up + + + Pocket + Pulse notifications on removal from pocket + + + Proximity wake + Proximity wake + Wake device on hand wave + + + Actions + + + Double-twist + Open camera when using the double twist gesture + + + Chop-chop + Toggle flashlight when using the chop-chop gesture + + + Wave to silence + Silence incoming calls by waving your hand across the screen + + + Flip for Do Not Disturb + Place the phone face down to silence notifications and calls + + + Please, give Do Not Disturb access to CMActions in order to use this feature. + + + Pick up to stop ringing + Lift the phone to silence incoming calls. It only works when your phone starts flat + + + Disable + Launch camera + Toggle torch + + + Haptic feedback intensity + Strength of the haptic feedback for the double-twist and chop-chop actions + Disabled + Low + Medium + High + + + OK + + + Help + 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. + + + Additional buttons + Swap buttons + Swap the order of recents and back buttons + + + Fingerprint + Fingerprint as home + Use the fingerprint sensor as a home button + Fingerprint wake-up + Allow the fingerprint sensor to wake the device while the screen is off + Prevent accidental wake-up + Check the proximity sensor prior to wake-ups triggered by the fingerprint sensor + 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 00000000..2e179bcf --- /dev/null +++ b/doze/src/com/cyanogenmod/settings/doze/DozeSettings.java @@ -0,0 +1,148 @@ +/* + * Copyright (C) 2015 The CyanogenMod Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.cyanogenmod.settings.doze; + +import android.app.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 index 31fe15dc..16a5a747 100644 --- a/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java +++ b/doze/src/com/cyanogenmod/settings/doze/ProximitySensor.java @@ -1,6 +1,5 @@ /* * Copyright (c) 2015 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,10 +28,9 @@ public class ProximitySensor implements SensorEventListener { private static final boolean DEBUG = false; private static final String TAG = "ProximitySensor"; - // Maximum time for the hand to cover the sensor: 1s - private static final int HANDWAVE_MAX_DELTA_NS = 1000 * 1000 * 1000; +// private static final int POCKET_DELTA_NS = 1000 * 1000 * 1000; - // Minimum time until the device is considered to have been in the pocket: 2s + private static final int HANDWAVE_MAX_DELTA_NS = 1000 * 1000 * 1000; private static final int POCKET_MIN_DELTA_NS = 2000 * 1000 * 1000; private SensorManager mSensorManager; @@ -44,7 +42,8 @@ public class ProximitySensor implements SensorEventListener { public ProximitySensor(Context context) { mContext = context; - mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); + mSensorManager = (SensorManager) + mContext.getSystemService(Context.SENSOR_SERVICE); mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); } @@ -64,11 +63,14 @@ public void onSensorChanged(SensorEvent event) { private boolean shouldPulse(long timestamp) { long delta = timestamp - mInPocketTime; - if (Utils.handwaveGestureEnabled(mContext) && Utils.pocketGestureEnabled(mContext)) { + if (Utils.handwaveGestureEnabled(mContext) + && Utils.pocketGestureEnabled(mContext)) { return true; - } else if (Utils.handwaveGestureEnabled(mContext)) { + } else if (Utils.handwaveGestureEnabled(mContext) + && !Utils.pocketGestureEnabled(mContext)) { return delta < HANDWAVE_MAX_DELTA_NS; - } else if (Utils.pocketGestureEnabled(mContext)) { + } else if (!Utils.handwaveGestureEnabled(mContext) + && Utils.pocketGestureEnabled(mContext)) { return delta >= POCKET_MIN_DELTA_NS; } return false; @@ -81,7 +83,8 @@ public void onAccuracyChanged(Sensor sensor, int accuracy) { protected void enable() { if (DEBUG) Log.d(TAG, "Enabling"); - mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL); + mSensorManager.registerListener(this, mSensor, + SensorManager.SENSOR_DELAY_NORMAL); } protected void disable() { diff --git a/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java index b3316e80..443a10d7 100644 --- a/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java +++ b/doze/src/com/cyanogenmod/settings/doze/TiltSensor.java @@ -1,6 +1,5 @@ /* * Copyright (c) 2015 The CyanogenMod Project - * Copyright (C) 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +21,8 @@ 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; @@ -30,19 +31,25 @@ 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 diff --git a/doze/src/com/cyanogenmod/settings/doze/Utils.java b/doze/src/com/cyanogenmod/settings/doze/Utils.java index 65f1d996..9a462be4 100644 --- a/doze/src/com/cyanogenmod/settings/doze/Utils.java +++ b/doze/src/com/cyanogenmod/settings/doze/Utils.java @@ -1,6 +1,5 @@ /* * Copyright (c) 2015 The CyanogenMod Project - * 2017 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,15 +16,16 @@ 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.support.v7.preference.PreferenceManager; +import android.preference.PreferenceManager; import android.provider.Settings; import android.util.Log; -import static android.provider.Settings.Secure.DOZE_ENABLED; - public final class Utils { private static final String TAG = "DozeUtils"; @@ -33,7 +33,8 @@ public final class Utils { private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; - protected static final String GESTURE_PICK_UP_KEY = "gesture_pick_up"; + 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"; @@ -49,22 +50,20 @@ protected static void stopService(Context context) { UserHandle.CURRENT); } - protected static void checkDozeService(Context context) { - if (isDozeEnabled(context) && sensorsEnabled(context)) { - startService(context); - } else { - stopService(context); - } - } - protected static boolean isDozeEnabled(Context context) { return Settings.Secure.getInt(context.getContentResolver(), - DOZE_ENABLED, 1) != 0; + Settings.Secure.DOZE_ENABLED, 1) != 0; } protected static boolean enableDoze(boolean enable, Context context) { - return Settings.Secure.putInt(context.getContentResolver(), - DOZE_ENABLED, enable ? 1 : 0); + 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) { @@ -75,7 +74,7 @@ protected static void launchDozePulse(Context context) { protected static boolean pickUpEnabled(Context context) { return PreferenceManager.getDefaultSharedPreferences(context) - .getBoolean(GESTURE_PICK_UP_KEY, false); + .getBoolean(PICK_UP_KEY, false); } protected static boolean handwaveGestureEnabled(Context context) { From 1e8be4bdbac0285c354a9ad9cfcea8ebd9951db5 Mon Sep 17 00:00:00 2001 From: DennySPB Date: Thu, 24 Aug 2017 11:26:13 +0300 Subject: [PATCH 62/62] AEX.mod: Fix XiaomiDoze build due mismerge --- .../settings/doze/DozeSettingsActivity.java | 48 ------ .../settings/doze/DozeSettingsFragment.java | 149 ------------------ 2 files changed, 197 deletions(-) delete mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java delete mode 100644 doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java deleted file mode 100644 index 7e3620a5..00000000 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsActivity.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2015-2016 The CyanogenMod Project - * 2017 The LineageOS 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.os.Bundle; -import android.view.MenuItem; - -import com.android.settingslib.drawer.SettingsDrawerActivity; - -public class DozeSettingsActivity extends SettingsDrawerActivity { - - private static final String TAG_DOZE = "doze"; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - setContentView(R.layout.doze); - getActionBar().setDisplayHomeAsUpEnabled(true); - getFragmentManager().beginTransaction().replace(R.id.content_frame, - new DozeSettingsFragment(), TAG_DOZE).commit(); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case android.R.id.home: - onBackPressed(); - return true; - } - return super.onOptionsItemSelected(item); - } -} diff --git a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java b/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java deleted file mode 100644 index 6aff232d..00000000 --- a/doze/src/com/cyanogenmod/settings/doze/DozeSettingsFragment.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (C) 2015 The CyanogenMod Project - * 2017 The LineageOS 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.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.database.ContentObserver; -import android.os.Bundle; -import android.os.Handler; -import android.support.v14.preference.PreferenceFragment; -import android.support.v14.preference.SwitchPreference; -import android.support.v7.preference.Preference; -import android.support.v7.preference.Preference.OnPreferenceChangeListener; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.widget.CompoundButton; -import android.widget.Switch; -import android.widget.TextView; - -public class DozeSettingsFragment extends PreferenceFragment implements OnPreferenceChangeListener, - CompoundButton.OnCheckedChangeListener { - - private TextView mTextView; - - private SwitchPreference mPickUpPreference; - private SwitchPreference mHandwavePreference; - private SwitchPreference mPocketPreference; - - @Override - public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { - addPreferencesFromResource(R.xml.doze_settings); - - SharedPreferences prefs = getActivity().getSharedPreferences("doze_settings", - Activity.MODE_PRIVATE); - if (savedInstanceState == null && !prefs.getBoolean("first_help_shown", false)) { - showHelp(); - } - - boolean dozeEnabled = Utils.isDozeEnabled(getActivity()); - - mPickUpPreference = (SwitchPreference) findPreference(Utils.GESTURE_PICK_UP_KEY); - mPickUpPreference.setEnabled(dozeEnabled); - - mHandwavePreference = (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY); - mHandwavePreference.setEnabled(dozeEnabled); - - mPocketPreference = (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY); - mPocketPreference.setEnabled(dozeEnabled); - } - - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, - Bundle savedInstanceState) { - final View view = LayoutInflater.from(getContext()).inflate(R.layout.doze, container, false); - ((ViewGroup) view).addView(super.onCreateView(inflater, container, savedInstanceState)); - return view; - } - - @Override - public void onViewCreated(View view, Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - - boolean dozeEnabled = Utils.isDozeEnabled(getActivity()); - - mTextView = (TextView) view.findViewById(R.id.switch_text); - mTextView.setText(getString(dozeEnabled ? - R.string.switch_bar_on : R.string.switch_bar_off)); - - View switchBar = view.findViewById(R.id.switch_bar); - Switch switchWidget = (Switch) switchBar.findViewById(android.R.id.switch_widget); - switchWidget.setChecked(dozeEnabled); - switchWidget.setOnCheckedChangeListener(this); - - switchBar.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - switchWidget.setChecked(!switchWidget.isChecked()); - } - }); - } - - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - Utils.checkDozeService(getActivity()); - return true; - } - - @Override - public void onCheckedChanged(CompoundButton compoundButton, boolean b) { - Utils.enableDoze(b, getActivity()); - Utils.checkDozeService(getActivity()); - - mTextView.setText(getString(b ? R.string.switch_bar_on : R.string.switch_bar_off)); - - mPickUpPreference.setEnabled(b); - mHandwavePreference.setEnabled(b); - mPocketPreference.setEnabled(b); - } - - private 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.dialog_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"); - } -}