summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSoonil Nagarkar <sooniln@google.com>2020-08-12 22:02:36 -0700
committerSoonil Nagarkar <sooniln@google.com>2020-08-13 16:31:24 +0000
commit8e81109b2f1ff3c02773893cbface624e966b5f2 (patch)
treeaccdd73380dd1e20c4d61aa4d2279cd6f5ac3448 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf13bc4679ad58d9a4dda0088ec6976cff17ffb25 (diff)
Reduce ServiceWatcher thrashing
ServiceWatcher forced a rebind everytime something about the connected package changed. This causes a lot of thrashing, as every time a component in the bound package changes (which happens a lot in Google Play services for instance), the service was completely rebound. This was likely initially necessary because there was no way to detect when a binding failed completely. Current OS versions support onBindingDied() to detect this case however, so it should no longer be necessary to rebind everytime anything changes. Also fixes NPE crash in LocationProviderManager when debug logging is enabled. Bug: 163076048 Bug: 164035101 Test: manual Change-Id: Ida4b8c8774f68d63ab319ed342055ff050e39f95
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions