summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Yeabkal Wubshit <yeabkal@google.com> 2023-11-30 00:22:31 -0800
committer Yeabkal Wubshit <yeabkal@google.com> 2023-12-07 17:18:17 +0000
commitaa0b3e0d826ff2e5e469fe1ef8d89426e0af6489 (patch)
tree58ecfaa4ae63d8a8467867105205e283289cc0c0 /libs/androidfw/FileStream.cpp
parent13db1201157b8172751e2e94b553c55812d8fcee (diff)
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
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions