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
4 files changed