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

Commit 26f06f18 authored by Roy Luo's avatar Roy Luo
Browse files

Update incompatible charger checking rule

Use COMPLIANCE_WARNING_DEBUG_ACCESSORY to mock incompatible charging
event as COMPLIANCE_WARNING_OTHER is being deprecated.

Bug: 308700954
Bug: 310660470
Test: atest KeyguardUpdateMonitorTest
Flag: ACONFIG enable_input_power_limited_warning ENABLED
Change-Id: I1b7ce2ae687f841f83fe1d603bcd30f61308da16
parent fe9cb8ee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3436,7 +3436,8 @@ public class KeyguardUpdateMonitorTest extends SysuiTestCase {
        when(mUsbPort.getStatus()).thenReturn(mUsbPortStatus);
        when(mUsbPort.supportsComplianceWarnings()).thenReturn(true);
        when(mUsbPortStatus.isConnected()).thenReturn(true);
        when(mUsbPortStatus.getComplianceWarnings()).thenReturn(new int[]{1});
        when(mUsbPortStatus.getComplianceWarnings())
                .thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_DEBUG_ACCESSORY});
    }

    private Context getSpyContext() {