sm8250-common: doze: Introduce raise to wake gesture

* Highly inspired by iOS raise to wake

- Adapted to OnePlus sm8250 doze

sm8250-common: doze: Add min interval for raise2wake

* avoid having early wakeup
* also fix typo in acquire timeout

sm8250-common: doze: Enable pickup when raise to wake is toggled

- This is needed in order for raise to wake to function properly.

sm8250-common: doze: Fix pickup status for raise to wake

Co-authored-by: AnierinB <anierinb@evolution-x.org>
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I5df0c4f11f1b24ab813abc393960c5f03f5fab1f
This commit is contained in:
Nauval Rizky
2020-01-31 11:57:48 +09:00
committed by LuK1337
parent bb16435fa4
commit 1a67d0fdc2
5 changed files with 62 additions and 9 deletions

View File

@@ -28,12 +28,14 @@
android:key="pickup_sensor"
android:title="@string/pickup_sensor_title">
<SwitchPreference
android:key="gesture_pick_up"
android:defaultValue="false"
<ListPreference
android:key="gesture_pick_up_type"
android:defaultValue="0"
android:icon="@drawable/ic_pickup"
android:title="@string/pick_up_gesture_title"
android:summary="@string/pick_up_gesture_summary" />
android:summary="%s"
android:entries="@array/pick_up_gesture_entries"
android:entryValues="@array/pick_up_gesture_values" />
</PreferenceCategory>