commit | b7c3f0488a0943a832a49b070b95f93deeff402b | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Wed Apr 17 16:15:38 2024 -0700 |
committer | Atneya Nair <atneya@google.com> | Wed Apr 17 23:20:50 2024 +0000 |
tree | f9a1a3405700e466d5b8a2ca25318edca9845961 | |
parent | 373fd733fe7f5b161f5677a6defe7583dc71040e [diff] |
Move AudioService recv off of main thread Some of the calls in the AudioService broadcast receiver are expensive, and posting them to the main thread can lead to slow-down/ANR. Additionally, there is no need to handle these events on the main thread. Move the receiver to a dedicated handler thread. Eventually, this should be combined with the handler we already have for events. Test: Smoke test (bt connect) Fixes: 335457435 Change-Id: Ibc6b95f7bd628a63c565adfa7f5d52cdcda9fb1b