summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGurpreet Ghai <gghai@codeaurora.org>2016-08-10 15:14:40 +0530
committerAndre Eisenbach <eisenbach@google.com>2018-01-30 23:51:47 +0000
commit64ece0e5823cf21842d7679a55d5f5c124a12a03 (patch)
tree9bc07c417c0ddef922d0e632f092a247b8c72e0f /tools/aapt2/java/JavaClassGenerator_test.cpp
parent04e5e633050225edabec4b7099d8f9e33f3f92d2 (diff)
Fix ANR due to long wait for synchronization lock
Use Case: Repeated BT ON/OFF Failure: ANR occurs due to UI wait for long time waiting to acquire thread lock. Steps: Repeated BT ON/OFF Root Cause: The synchronized function that updates state also read paired devices as an additional operation. When the number of devices is cached list is large, the block time for other threads waiting for same lock tends to increase causing ANR. Fix: Limited the synchronized block to the part where actual update of local state takes place. Test: SNS Testing Bug: 35412140 Change-Id: I69ff9f8a032b3772bf3d048d8db70181319ad31d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions