Skip to content
Snippets Groups Projects
Commit c3b8d2a2 authored by Roy Luo's avatar Roy Luo
Browse files

Support new enum in usb compliance warning logging

Eldar: https://eldar.corp.google.com/assessments/990567567/revisions/2

Bug: 309127822
Test: build
Change-Id: If4e0eb3abbc0143571890a96c7359d405a8316c4
parent 891fc7c2
No related branches found
No related tags found
No related merge requests found
......@@ -1231,6 +1231,26 @@ public class UsbPortManager implements IBinder.DeathRecipient {
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_MISSING_RP);
continue;
case UsbPortStatus.COMPLIANCE_WARNING_INPUT_POWER_LIMITED:
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_INPUT_POWER_LIMITED);
continue;
case UsbPortStatus.COMPLIANCE_WARNING_MISSING_DATA_LINES:
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_MISSING_DATA_LINES);
continue;
case UsbPortStatus.COMPLIANCE_WARNING_ENUMERATION_FAIL:
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_ENUMERATION_FAIL);
continue;
case UsbPortStatus.COMPLIANCE_WARNING_FLAKY_CONNECTION:
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_FLAKY_CONNECTION);
continue;
case UsbPortStatus.COMPLIANCE_WARNING_UNRELIABLE_IO:
complianceWarningsProto.add(FrameworkStatsLog
.USB_COMPLIANCE_WARNINGS_REPORTED__COMPLIANCE_WARNINGS__COMPLIANCE_WARNING_UNRELIABLE_IO);
continue;
}
}
return complianceWarningsProto.toArray();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment