- Adapted to Xiaomi SDM660 - Implemented with tilt sensor SQUASHED COMMITS: ----------------- * sdm845-common: Introduce raise to wake gesture - Highly inspired by iOS raise to wake * EvoX notes: - Adapted to OnePlus sdm845 - Strings will be added to packages/resources/devicesettings which is where all current strings are located * sdm845-common: doze: Add min interval for raise2wake - avoid having early wakeup * sd845-common: doze: raise2wake: Check proximity before wakeup - To avoid having unnecessary wakeups when phone inside the pocket * sdm845-common: doze: Enable pickup when raise to wake is toggled - This is needed in order for raise to wake to function properly. References: *f45b58b511
*dc69b3678c
Co-authored-by: Nauval Rizky <enuma.alrizky@gmail.com> Co-authored-by: AnierinB <anierinb@evolution-x.org> Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Signed-off-by: AnierinB <anierinb@evolution-x.org> Signed-off-by: OdSazib <odsazib@gmail.com>
57 lines
2.1 KiB
XML
57 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2015 The CyanogenMod Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceCategory
|
|
android:key="tilt_sensor"
|
|
android:title="@string/tilt_sensor_title">
|
|
|
|
<SwitchPreference
|
|
android:key="gesture_pick_up"
|
|
android:defaultValue="false"
|
|
android:title="@string/pick_up_gesture_title"
|
|
android:summary="@string/pick_up_gesture_summary" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:disableDependentsState="true"
|
|
android:icon="@drawable/ic_raise"
|
|
android:key="gesture_raise_to_wake"
|
|
android:summary="@string/raise_to_wake_gesture_summary"
|
|
android:title="@string/raise_to_wake_gesture_title" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="proximity_sensor"
|
|
android:title="@string/proximity_sensor_title">
|
|
|
|
<SwitchPreference
|
|
android:key="gesture_hand_wave"
|
|
android:defaultValue="false"
|
|
android:title="@string/hand_wave_gesture_title"
|
|
android:summary="@string/hand_wave_gesture_summary" />
|
|
|
|
<SwitchPreference
|
|
android:key="gesture_pocket"
|
|
android:defaultValue="false"
|
|
android:title="@string/pocket_gesture_title"
|
|
android:summary="@string/pocket_gesture_summary" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|