Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1d71443d authored by Lais Andrade's avatar Lais Andrade
Browse files

Simplify libvibratorservice after HIDL support removal

Introduce a simplified VibratorController class to the
libvibratorservice module that only handles AIDL vibrator HAL versions
and reuse the binder ndk objects.

This removes all wrapper classes introduced to handle both AIDL and HIDL
objects seamlesly, reducing complexity for the library.

The connect/reconnect logic on transcation falure remains, with most HAL
operations working with a retry logic.

This first change introduced the core for the VibratorController with
basic APIs like off / setAmplitude / setExternalControl.

Following changes will introduce the remaining IVibrator API support.

Bug: 308452413
Test: libvibratorservice_test
Flag: android.os.vibrator.remove_hidl_support
Change-Id: Ie76168eaf9fd5cd0ce9719499d4ef9b086b2fca6
parent b0f30164
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment