diff options
author | Par-Gunnar Hjalmdahl <pargunnar.hjalmdahl@sonymobile.com> | 2015-05-28 10:02:43 +0200 |
---|---|---|
committer | Tomoharu Kasahara <tomoharu.kasahara@sony.com> | 2018-08-28 20:34:01 +0900 |
commit | 96e68bc2e60fa4ae8cb52aaa520148c8ea1fb737 (patch) | |
tree | 31f86ada1bb9c05dfee04d2ba4e555a227e9a9a3 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 473654c377279c16a42661d95ad1fbe80322d918 (diff) |
Convert AudioAttribute to Stream correctly
When converting an AudioAttribute with FLAG_SCO set, it should
be converted to STREAM_BLUETOOTH_SCO. However, since getFlags()
returns only public flags, and FLAG_SCO isn't public,
the conversion will fail. Change to getAllFlags() to get right
flags.
Bug: 113314374
Test: Use AudioAttributes.toLegacyStreamType
Change-Id: Ic283f055d746d5c3df645dc310c92dac3c80827f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions