+51
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Introduce JNI integration for new HAL implementations to avoid creating a new IVibratorCallback instance for each call. This is similar to the existing implementation, but does not rely on the libvibratorservice to load HAL wrappers and keep HAL connections. This is introduced in preparation to remove the library. The native side will hold a weak reference to a single callback instance and trigger it from the HAL callback using the IDs provided for each API call. Introducing implementations for IVibratorManager APIs: - triggerSynced - startSession Bug: 422944962 Flag: android.os.vibrator.remove_hidl_support Test: FrameworksVibratorServicesTests Change-Id: I4e3c413a081dd98e3fa4816f931833f2f3d1d634