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

Commit a99e22f8 authored by Paul Colta's avatar Paul Colta
Browse files

HDMI: Ignore BaseAbsoluteVolumeBehaviorTest on non-CEC devices

Bug: 393580035  
Bug: 392900559 
Bug: 397004442 
Change-Id: I8ab2a048fb4b802000d9160fe0cdb0362de0f746
Test: atest com.android.server.hdmi
Flag: EXEMPT bugfix
parent 09526194
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.server.hdmi;

import static android.content.pm.PackageManager.FEATURE_HDMI_CEC;
import static android.hardware.hdmi.HdmiDeviceInfo.DEVICE_AUDIO_SYSTEM;

import static com.android.server.hdmi.HdmiCecKeycode.CEC_KEYCODE_VOLUME_UP;
@@ -25,6 +26,7 @@ import static com.android.server.hdmi.HdmiCecFeatureAction.DELAY_GIVE_AUDIO_STAT
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.TruthJUnit.assume;

import static org.junit.Assume.assumeTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.anyInt;
@@ -122,6 +124,9 @@ public abstract class BaseAbsoluteVolumeBehaviorTest {

    @Before
    public void setUp() throws RemoteException {
       assumeTrue("Test requires FEATURE_HDMI_CEC",
                InstrumentationRegistry.getTargetContext().getPackageManager()
                        .hasSystemFeature(FEATURE_HDMI_CEC));
        MockitoAnnotations.initMocks(this);

        mContextSpy = spy(new ContextWrapper(