aidl: vibrator: Only handle actually supported effects
authorTim Zimmermann <tim@linux4.de>
Sun, 12 Mar 2023 11:53:51 +0000 (12:53 +0100)
committerTim Zimmermann <tim@linux4.de>
Wed, 5 Apr 2023 17:35:51 +0000 (19:35 +0200)
commitc48c38dde5f34df8802b839967a46ceff7fa268c
tree177bab892ce7a259ddd17a8a7221cc5a6c2b4166
parent3ed0ddd0fd35c7a60314ebd0e7736d8a995dfc0a
aidl: vibrator: Only handle actually supported effects

* Let framework handle the other ones
* On devices without hardware effects DOUBLE_CLICK effect is just
  a single click without this
* Let's only keep CLICK and TICK if no hardware effects are supported,
  just like AOSP default vibrator impl

Change-Id: Ib8bf299a417d82fe6196e1b071b5a7b2f9c3e5d8
aidl/vibrator/Vibrator.cpp