commit | 55773033ed1f23c4e8f3d2704002fbd0cedbf7a5 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Thu Oct 01 15:08:13 2020 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Thu Oct 08 18:12:55 2020 -0700 |
tree | 54bc894243fa3c52e611c85aed75ee6677056c13 | |
parent | 7aed66e788c8955ddd22a1235856bb9dac34d82a [diff] |
Convert mask types from uint32_t to enum type This applies to the following types: - audio_gain_mode_t; - audio_flags_mask_t; - audio_channel_representation_t; - audio_channel_mask_t; - audio_devices_t. Enum types are distinct thus proper overloading on the type is possible in C++. Also, assignments to enum types are less prone to errors. Bug: 169889714 Test: basic audio functionality m stagefright atest audiopolicy_tests Change-Id: I42506484b1d0b0482618b7314fad4c8012a06fb4