commit | 96e68bc2e60fa4ae8cb52aaa520148c8ea1fb737 | [log] [tgz] |
---|---|---|
author | Par-Gunnar Hjalmdahl <pargunnar.hjalmdahl@sonymobile.com> | Thu May 28 10:02:43 2015 +0200 |
committer | Tomoharu Kasahara <tomoharu.kasahara@sony.com> | Tue Aug 28 20:34:01 2018 +0900 |
tree | 31f86ada1bb9c05dfee04d2ba4e555a227e9a9a3 | |
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