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

Commit b7eb4fe1 authored by Lais Andrade's avatar Lais Andrade
Browse files

Introduce HalNativeHandler to vibrator service

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
parent 21439d00
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