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

Skip to content
Commit aa0b3e0d authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Optimizations for Vibrator#performHapticFeedback

- Avoid re-computing the UID of the process; compute and cache it when
  the VibratorManager is created.
- Avoid passing the caller's IBinder as a token; the legacy haptic
  feedback path that goes through WindowManager did not do that, so we
  will now start using the VibratorManagerService as the token for
  haptic feedback vibrations.

Code path is already flagged via the `use_vibrator_haptic_feedback` flag
in the `android.os.vibrator` package.

Flag: EXEMPT
Bug: 309612548
Test: manual + shell command works + atest VibratorManagerServiceTest
Change-Id: I0c8602d73705447bec7013ca838bce6e6f784c1f
parent 13db1201
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment