commit | 1eb10eceaeb39b2a5e75774a964e4847a750810d | [log] [tgz] |
---|---|---|
author | jackqdyulei <jackqdyulei@google.com> | Thu Nov 01 13:10:09 2018 -0700 |
committer | jackqdyulei <jackqdyulei@google.com> | Tue Nov 06 16:38:31 2018 -0800 |
tree | cbdad1b954b78678fa71cc6abda1002801759ab4 | |
parent | e3e71ec12415439e4755f17e6a92d5a213c00c70 [diff] |
Refine the sync in CachedBluetoothDevice SystemUi uses multi-thread to access CachedBluetoothDevice. If one thread is traversing the mProfiles while another thread is updating this mProifles, it will crash with ConcurrentModificationException. This CL adds lock to mProfiles manually to avoid this case. Bug: 117122392 Test: Manual Change-Id: I5d90cd6e35a18f1e782e766b7c448088243d27cf