Added the composite vector effects to HAL dumpsys instead
of the size.
Bug: 376330571
Flag: EXEMPT log only update
Test: Flash to device and verified dumpsys
Test: atest VibratorHalCs40l26TestSuitePrivate
Change-Id: I59efffdbe78bc865ca60a30d8c6a9bdc855def6b
Signed-off-by: Zouberou Sayibou <zouberou@google.com>
Ported the changes made in legacyHAL to Felix HAL
which involves adding the IVibrator event to the
HwApi to produce a friendly debugging logs.
Bug: 376330571
Flag: EXEMPT log only update
Test: Flash to device and verified dumpsys
Change-Id: I54262b7451b1ab07669eb9b7e5ad3c4cd3477016
Signed-off-by: Zouberou Sayibou <zouberou@google.com>
Fixed Felix HAL VibratorHalCs40l26TestSuitePrivate
3 failed tests:
- VibratorTest#on
- VibratorTest#perform/CLICK_LIGHT,
- VibratorTest#perform/HEAVY_CLICK_STRONG.
Moving the mActiveId_mutex to a global variable caused issues with the #perform/HEAVY_CLICK_STRONG test failing to call the HwApi and the #perform/CLICK_LIGHT test failing due to an outdated timeout value. Additionally, the intensifyToVolLevel function was returning an incorrect value, requiring a check to be added to the testing function.
Bug: 373761684
Flag: TEST_ONLY
Test: Ran VibratorHalCs40l26TestSuitePrivate.
Change-Id: Ibcdbc874c5c96644f3f647cc240b5012907253d4
Signed-off-by: Zouberou Sayibou <zouberou@google.com>
Flow:
1. If the calibration file exist, use the value.
2. If no property, use the default setting {5,95}.
Bug: 356823441
Bug: 322937989
Test: Check dumpsys records for the scaling results.
case1: no calibration file and properties.
case2: valid property range
case3: float property (invalid)
Flag: EXEMPT bugfix
Change-Id: Ia3e89f34189e9725ab01d85d931925129745608c
(cherry picked from commit 4063493a64fcd0f20b49a492106f58b0e3349c5c)
Temporary move the definition from main repository to manage visibility
and prevent aosp without vendor build fails
Bug: 362659323
Test: Build pass
Flag: EXEMPT refactor
Change-Id: Ie3bb23838743df1f75261fd530652dcf55b6a643
Add PWLE header formatting to user side driver to support new kernel
driver and SVC and DVL for OWT effects.
Bug: 279055885
Bug: 361011775
Flag: EXEMPT bugfix
Test: idlcli
Change-Id: I3b447962cc46ab57cf145072bc30303786f581ad
Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
Felix vibrator has stricter primitive effect scaling values. We need to
update the logic to assure that we apply the upper and lower bounds of
the voltage range to avoid brownout and to maximize the usable range.
Bug: 344037610
Flag: EXEMPT bugfix
Test: atest PtsVibratorHalTestSuite \
PtsHapticsTestCases \
VibratorHalCs40l26TestSuite \
VtsHalVibratorManagerTargetTest \
VtsHalVibratorTargetTest \
CtsVibratorTestCases
Test: Verify scale values
Change-Id: Iba8b8115fea01e56105b43f520d32c63ffcf7fd4
Update the polling timeout to match that of main vibrator HAL. The
polling timeout is too short, and will cause reset logic to run if the
bus is busy.
Bug: 348364432
Flag: EXEMPT bugfix
Test: atest PtsVibratorHalTestSuite \
PtsHapticsTestCases \
VibratorHalCs40l26TestSuite \
VtsHalVibratorManagerTargetTest \
VtsHalVibratorTargetTest \
CtsVibratorTestCases
Change-Id: I31dac8f1693eda8f1a5bac8420aaa7c0d11781fa
Rather than every project having an OWNERS with explicit people, just
use one centralized OWNERS file and have every other OWNERS reference
that. This way when the team changes there's only one place that needs
to be updated.
Bug: 346876927
Test: N/A
Flag: EXEMPT OWNERS change
Change-Id: Ia51b1745f14bda22629e05cd33f6c807cf6f6565
Update the ff_effect duration to pass in 0 for compositions and RAM
indices. This will allow firmware to take control of the playback
duration, as well as apply SVC braking as required. This will also help
avoid ending the effect early which can cause ringing.
Bug: 317280093
Test: Verified perception and plotted acceleration
Change-Id: I048b2bbda04af2a627aa8993aafc1f55ccf8fe13
Signed-off-by: Chris Paulo <chrispaulo@google.com>
Updated the duration of effects to match waveform durations. This will
remove the added overhead durations which are not supposed to be part of
the calculations for durations of effects.
Bug: 305756647
Test: atest VibratorHalCs40l26TestSuitePrivate
Change-Id: I66c761482b13969816630e89b9e79cfb729f6f5c
Signed-off-by: Chris Paulo <chrispaulo@google.com>
Set chirp.enabled prop to 0 by default so that it will not cause tests
to fail.
Change prop to persist from ro so that it can be enabled for testing.
Update Felix HAL to use new prop.
Bug: 286921585
Test: Tried using idlcli composePwle before/after setting prop
Change-Id: Ibca473aef62b7cc8e84689ddba83a91daddb8d2e
Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
When user typed the gboard back-to-back, HAL will send a STOP call right
after it sends a START call. At this moment, driver is under an
activating process and the vibe_state is not 1, so the erasing process
will be forced to wait for the FW's completed signal.
This makes STOP call consumes lots of waiting time and user would still
feels a delay gap under back-to-back typing behavior.
This patch removes the erased process from the STOP call and let it be
done in the completed process.
Bug: 263476381
Test: atest PtsVibratorHalTestSuite \
PtsHapticsTestCases \
PtsHapticsFeatureTestCases \
VibratorHalCs40l26TestSuite \
VtsHalVibratorManagerTargetTest \
VtsHalVibratorTargetTest \
android.os.cts.VibratorTest \
android.os.cts.VibratorManagerTest \
android.os.cts.VibrationEffectTest \
android.os.cts.VibrationAttributesTest \
android.os.cts.CombinedVibrationTest
Test: Type Gboard with five fingers
Change-Id: I02dfdae4e9e9334a253106f631c933228398b077
DOUBLE_CLICK is a composed effect, but it uses another function to
do the composed process.
When using GPI to trigger a composed effect, HAL needs to update the
overall duration time to chip.
Bug: 263963724
Test: Manully unlock the device
Change-Id: I329fbeff69a56fe990b1ca946bdd30199048ef04
Adding minimum scale for composition primitives to make 0 scale
primitives perform similarly to C10.
Bug: 260611234
Test: Flashed to device and played compositions with idlcli
Change-Id: Iaf872011b79de9da46de0de3ca770b794f67cd88
Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
When device was stuck on the erased timeout process, user cannot
feel the continuous haptic effects.
Bug: 262675927
Test: Fold the device and unfold the device under OOBE thud effect
Change-Id: Ia7b07b26e77f1e35d00075b91a31199575b61e3a
Signed-off-by: Chase Wu <chasewu@google.com>
We need to sync both haptics on the single HAL
architecture to reduce the time overhead and prevent the
mismatch behavior from vibrator manager HAL implementation.
Bug: 260090235
Bug: 261687849
Bug: 261841035
Bug: 261832151
Test: atest PtsVibratorHalTestSuite \
PtsHapticsTestCases \
PtsHapticsFeatureTestCases \
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: I084e1da952ab2f63e5c217a7f708ac3d34635336
Signed-off-by: Chase Wu <chasewu@google.com>