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

Commit 0869375b authored by Amy's avatar Amy Committed by Nick Chalko
Browse files

Fix test failure for SystemAudioInitiationActionFromAvrTest.

Test: atest om.android.server.hdmi
Change-Id: I449a775bf29e06d59e02d220c908fb29601d8331
parent 6506bd66
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -93,6 +93,26 @@ public class SystemAudioInitiationActionFromAvrTest {
                    public int setHdmiSystemAudioSupported(boolean on) {
                        return 0;
                    }

                    @Override
                    public int getStreamVolume(int streamType) {
                        return 0;
                    }

                    @Override
                    public boolean isStreamMute(int streamType) {
                        return false;
                    }

                    @Override
                    public int getStreamMaxVolume(int streamType) {
                        return 100;
                    }

                    @Override
                    public void adjustStreamVolume(int streamType, int direction, int flags) {

                    }
                };
            }

@@ -105,6 +125,11 @@ public class SystemAudioInitiationActionFromAvrTest {
            boolean isAddressAllocated() {
                return true;
            }

            @Override
            void wakeUp() {

            }
        };
        mHdmiCecLocalDeviceAudioSystem =
                new HdmiCecLocalDeviceAudioSystem(hdmiControlService) {