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

Commit 30f4f874 authored by RD Babiera's avatar RD Babiera Committed by Automerger Merge Worker
Browse files

Merge "USB: remove empty stats logging for compliance warnings" into udc-dev...

Merge "USB: remove empty stats logging for compliance warnings" into udc-dev am: 4422a56b am: ba15cb98

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21943480



Change-Id: I65428dc0b2b2bb4e89e49db07d2005f2fd1ae343
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9e6ffb68 ba15cb98
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1362,12 +1362,10 @@ public class UsbPortManager implements IBinder.DeathRecipient {
        }
    }

    // Need to create new version to prevent double counting existing stats due
    // to new broadcast
    private void logToStatsdComplianceWarnings(PortInfo portInfo) {
        if (portInfo.mUsbPortStatus == null) {
            FrameworkStatsLog.write(FrameworkStatsLog.USB_COMPLIANCE_WARNINGS_REPORTED,
                portInfo.mUsbPort.getId(), new int[0]);
        // Don't report if there isn't anything to report
        if (portInfo.mUsbPortStatus == null
                || portInfo.mUsbPortStatus.getComplianceWarnings().length == 0) {
            return;
        }