From 5f714acaf12e3629914664173f2b710ca9f1252d Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Wed, 24 May 2023 13:45:17 -0700 Subject: [PATCH] pantah/vibrator: Enable adaptive alert vibration Enable the adaptive alert vibration feature for pantah devices. Bug: 284181186 Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ android.os.cts.VibratorTest \ android.os.cts.VibratorManagerTest \ android.os.cts.VibrationEffectTest \ android.os.cts.VibrationAttributesTest \ android.os.cts.CombinedVibrationTest Change-Id: Iba6cbd84b4d305e5f88c6902fc107fd5be5e8436 Signed-off-by: Chris Paulo --- device-cheetah.mk | 8 +++++++- device-panther.mk | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/device-cheetah.mk b/device-cheetah.mk index 3e1a6b9..524160c 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -344,10 +344,16 @@ PRODUCT_VENDOR_PROPERTIES += \ # Vibrator HAL ACTUATOR_MODEL := luxshare_ict_081545 +ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.chirp.enabled=0 \ ro.vendor.vibrator.hal.device.mass=0.214 \ - ro.vendor.vibrator.hal.loc.coeff=2.7 + ro.vendor.vibrator.hal.loc.coeff=2.7 \ + persist.vendor.vibrator.hal.context.enable=false \ + persist.vendor.vibrator.hal.context.scale=60 \ + persist.vendor.vibrator.hal.context.fade=true \ + persist.vendor.vibrator.hal.context.cooldowntime=1600 \ + persist.vendor.vibrator.hal.context.settlingtime=5000 # Keyboard bottom and side padding in dp for portrait mode and height ratio PRODUCT_PRODUCT_PROPERTIES += \ diff --git a/device-panther.mk b/device-panther.mk index d1d4bc4..703d1ba 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -331,10 +331,17 @@ PRODUCT_VENDOR_PROPERTIES += \ # Vibrator HAL ACTUATOR_MODEL := luxshare_ict_081545 +ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.chirp.enabled=0 \ ro.vendor.vibrator.hal.device.mass=0.195 \ - ro.vendor.vibrator.hal.loc.coeff=2.65 + ro.vendor.vibrator.hal.loc.coeff=2.65 \ + persist.vendor.vibrator.hal.context.enable=false \ + persist.vendor.vibrator.hal.context.scale=60 \ + persist.vendor.vibrator.hal.context.fade=true \ + persist.vendor.vibrator.hal.context.cooldowntime=1600 \ + persist.vendor.vibrator.hal.context.settlingtime=5000 + # Keyboard bottom padding in dp for portrait mode and height ratio PRODUCT_PRODUCT_PROPERTIES += \ ro.com.google.ime.kb_pad_port_b=8 \