commit | 86bc539184be5d80caf2a8edfe4307bdd4c4ef1d | [log] [tgz] |
---|---|---|
author | Oscar Azucena <oscarazu@google.com> | Wed Jul 28 14:09:59 2021 -0700 |
committer | Oscar Azucena <oscarazu@google.com> | Fri Aug 06 11:27:58 2021 -0700 |
tree | 362aea5dd6c96841bf55697c7b1ca1a3941c2824 | |
parent | ea3f895edc5963fce07f6738f6c31986e9ca65c6 [diff] |
Added set gain to min with volume changed when muted Added set gain index value to min when changing volume via key events and volume group is currently muted. Also added logic to group to unmute itself when volume is changed via keyevents or volume API calls if muted. Added new unit test to verify logic for volume callback and volume group changes. Bug: 190509202 Test: atest CarAudioPolicyVolumeCallbackTest Test: atest CarVolumeGroupUnitTest Test: atest CarAudioManagerTest Change-Id: Id97077626dfc6d73ae549f285e09f4d8a4a68ae9
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.