Merge "Update incompatible charger checking rule" into udc-dev am: bfc4637d09
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/23484351 Change-Id: I7a3133f83570a82bb5e87dd1096d5d47f85f3390 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -190,6 +190,7 @@ public class BatteryTestUtils {
|
|||||||
when(mockUsbPort.getStatus()).thenReturn(mockUsbPortStatus);
|
when(mockUsbPort.getStatus()).thenReturn(mockUsbPortStatus);
|
||||||
when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true);
|
when(mockUsbPort.supportsComplianceWarnings()).thenReturn(true);
|
||||||
when(mockUsbPortStatus.isConnected()).thenReturn(true);
|
when(mockUsbPortStatus.isConnected()).thenReturn(true);
|
||||||
when(mockUsbPortStatus.getComplianceWarnings()).thenReturn(new int[]{1});
|
when(mockUsbPortStatus.getComplianceWarnings())
|
||||||
|
.thenReturn(new int[]{UsbPortStatus.COMPLIANCE_WARNING_OTHER});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user