summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLais Andrade <lsandrade@google.com>2021-01-19 17:13:45 +0000
committerLais Andrade <lsandrade@google.com>2021-01-20 11:35:13 +0000
commite69b5f417728a97b6e27a84dd55a76cf8de79dca (patch)
tree808aba481a33a5bac6da9784f9ea3466c5a59b28 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentee605b646562fa32cccceb18c610fc8c37df1ed7 (diff)
Cache result from VibratorService.hasVibrator in SystemVibrator
The existing implementation of performHapticFeedback in PhoneWindowManager uses both hasVibrator and vibrate methods from Vibrator class. The implementation of VibratorService.hasVibrator is already constant, returning true if the device has a built in vibrator. This adds a cache for this value to SystemVibrator, to avoid binder calls to system_server after the first one. Bug: 170127981 Test: manual Change-Id: I68934a41068f4388449321d08a42d8bf890ea91e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions