Commit graph

6 commits

Author SHA1 Message Date
LuK1337
54bd3e5a06 sm8250-common: KeyHandler: Use HEAVY_CLICK for MODE_NORMAL_EFFECT
Now that we support OOS style haptics, regular 250ms vibration
feels kinda out of place here.

Change-Id: I392df4c75bbef3f7e3ad1f3cf7f0e1c2bbf447ee
2021-04-15 12:47:33 +02:00
LuK1337
41bff4b172 sm8250-common: KeyHandler: Do nothing when action != ACTION_DOWN
This makes sure we only change the ringer mode / play haptics once.

Change-Id: Ie5a6050338cee75cd8fe6da6edfae03141263033
2021-04-14 18:57:16 +02:00
LuK1337
1157082e8c sm8250-common: KeyHandler: Use mode specific vibration effects
NOTE: This change depends on following SystemUI change:
- https://review.lineageos.org/c/305900
- https://android-review.googlesource.com/c/1648967

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3019
Change-Id: Ifc16a469311c4dd7ce9ef8633ab66546ef4e6ede
2021-03-23 10:24:59 +01:00
Ashwin R C
89b4f0377f sm8250-common: KeyHandler: Use VibrationEffect
* Also update haptic feedback logic

Change-Id: I722022d014d9e88ef267a5563b43fee87ef02b6b
2020-07-04 16:30:56 +02:00
Anton Hansson
d870ab5f1c sdm845-common: KeyHandler: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2018-10-14 14:28:13 +02:00
Luca Stefani
3c7edbc4a3 sdm845-common: Add a KeyHandler for tri-state-key events
Change-Id: I22a7ee5b7eec5667b14f1a587a6d0138e77dc0f3
2018-07-19 22:13:32 +02:00