diff options
| author | 2023-11-14 01:19:59 +0000 | |
|---|---|---|
| committer | 2023-11-14 01:34:30 +0000 | |
| commit | 26f06f18a2868bdcb81a6c7237b78763f807f14c (patch) | |
| tree | d6b92f99d3786e42a5bea6698353ed3fc704d3b7 | |
| parent | fe9cb8ee295b0529d8007b99cfa02493bcb78983 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java b/packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java index 776799ec054e..2b41e08065d1 100644 --- a/packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java +++ b/packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java @@ -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() { |