commit | d40b961a64b4308e7b7b05743eaeaa655a7fe0e2 | [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 22:00:26 2020 +0000 |
tree | 314d149d57a1697d757729912156f50aed9bedc0 | |
parent | 42aa54c1a0caff97eff4388be0ab19777af4a36f [diff] |
[DO NOT MERGE] 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: Id79c789fff5e675afbc43e6e6dd34cc78dc26c6d