diff options
author | twyen <twyen@google.com> | 2017-08-21 15:55:43 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-30 11:21:54 -0700 |
commit | 7d7aa42abb000b1576d7ec7b74462295479e3452 (patch) | |
tree | ce87abb3781be4bd6c062becdb6f86178ece8c46 /assets | |
parent | 4b2abce679a35d4ecc05c2dce1db1fc06df68153 (diff) |
Guess the correct routing when initializing AudioModeProvider
Previously the default route for AudioModeProvider is ROUTE_EARPIECE. The in call ProximitySensor is initialized before InCallServiceImpl is fully bound, and the real route is not updated by telecom yet, which will cause a proximity wake lock to be held on bluetooth and turn off the screen.
In this CL, when initializing AudioModeProvider the routing will be guessed based on what audio devices is connected.
Bug: 64211001
Test: AudioModeProviderTest
PiperOrigin-RevId: 165987811
Change-Id: I0a976a9654fbf5b6f966d45d219a3d3685b207f5
Diffstat (limited to 'assets')
0 files changed, 0 insertions, 0 deletions