Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6613fd3f authored by Yan Han's avatar Yan Han
Browse files

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
parent 30eec56e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment