commit | 14e3485272a2ca28764d916e266e17311943c245 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Thu Apr 09 08:19:26 2020 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Mon Apr 13 08:10:39 2020 -0700 |
tree | 911392bdf2d55eb4c84c602535350f0b47b844a8 | |
parent | 084b05a7496d2726f69304238fac46c224869a9a [diff] |
AudioService: better mic muting API behavior with errors If an error is reported when changing the microphone mute state, log it but still fire ACTION_MICROPHONE_MUTE_CHANGED intent. Make AudioManager.isMicrophoneMute() return the "real" mute state, not the intended mute state, by returning the cache of the state returned by AudioSystem whenever a change is attempted. Bug: 153103117 Test: atest AudioServiceTest Change-Id: I102f6b379eace7b396860b6f24024720fb465382