diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2020-04-09 08:19:26 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2020-04-13 22:00:26 +0000 |
commit | d40b961a64b4308e7b7b05743eaeaa655a7fe0e2 (patch) | |
tree | 314d149d57a1697d757729912156f50aed9bedc0 /tools/aapt2/java/JavaClassGenerator.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions