commit | 38b952f29cf0c2ee94f7c9b15101fef4e3695655 | [log] [tgz] |
---|---|---|
author | Pranav Madapurmath <pmadapurmath@google.com> | Mon Dec 16 12:28:22 2024 -0800 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jan 03 10:30:05 2025 -0800 |
tree | 996c374328ba87485cd8bb11e8178c042bfea749 | |
parent | 009fd3b695574edc13ebfe1bdc728345fd01daa4 [diff] |
Synchronize active bluetooth device Ensure that we synchronize read/write on the active bluetooth device reference so that another thread doesn't modify it while it's being referenced. We were seeing instances where the active device was null even though there was an explicit NPE check before referencing it. Bug: 382590000 Test: atest CallAudioRouteControllerTest Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f47041c250b8f9dbff3db71b7b8f4aaff97ffe67) Merged-In: I4eddb6e696717e136771c97f5f8f89a7173e646d Change-Id: I4eddb6e696717e136771c97f5f8f89a7173e646d