From 419e9ec104d0f70f2dd01702d360e4b75b73eec1 Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Wed, 24 May 2023 13:40:41 -0700 Subject: [PATCH] shusky/vibrator: Enable adaptive alert vibration Enable the adaptive alert vibration feature for shusky 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: I68d7e1d12e7ac64a0b529f26aa36a027984cfc73 Signed-off-by: Chris Paulo --- device-husky.mk | 8 +++++++- device-shiba.mk | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/device-husky.mk b/device-husky.mk index efc8148..7e41574 100644 --- a/device-husky.mk +++ b/device-husky.mk @@ -304,10 +304,16 @@ PRODUCT_COPY_FILES += \ # 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.222 \ - ro.vendor.vibrator.hal.loc.coeff=2.8 + ro.vendor.vibrator.hal.loc.coeff=2.8 \ + 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 # Increment the SVN for any official public releases PRODUCT_VENDOR_PROPERTIES += \ diff --git a/device-shiba.mk b/device-shiba.mk index 885d4ea..a710ea0 100644 --- a/device-shiba.mk +++ b/device-shiba.mk @@ -284,10 +284,16 @@ PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 # 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.187 \ - ro.vendor.vibrator.hal.loc.coeff=2.75 + ro.vendor.vibrator.hal.loc.coeff=2.75 \ + 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 # Increment the SVN for any official public releases PRODUCT_VENDOR_PROPERTIES += \