diff options
| author | 2022-03-29 15:25:08 +0200 | |
|---|---|---|
| committer | 2022-04-01 18:15:54 +0200 | |
| commit | 6613fd3fbba8bbd4315ce71d5cc530ad036d5ca9 (patch) | |
| tree | 684f5c2bcb8223de65562fa3ba7fb4b2273ff79f /libs/androidfw/StringPool.cpp | |
| parent | 30eec56eac51aae4fa14d4a0b757fb0b4cafbdfd (diff) | |
Add wrapper for AudioDeviceVolumeManager in the HDMI framework
Adding a wrapper interface for AudioDeviceVolumeManager allows the class
to be faked. This allows tests that instantiate HdmiControlService to
avoid also instantiating AudioDeviceVolumeManager, which can affect the
state of AudioService on the DUT.
Using an interface instead of inheritance allows constructors to be more
independent, and allows the same class to "wrap" multiple managers in
the future if they need to share state (e.g. AudioManager and
AudioDeviceVolumeManager).
Bug: 217923086
Test: atest com.android.server.hdmi
Change-Id: I673ab6e3a6acbbc6af8998e2f5c048fec59ad47a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions