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

Commit 0736f6ec authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log all Usb accessories"

parents d08f18b4 0fbae8b3
Loading
Loading
Loading
Loading
+9 −13
Original line number Diff line number Diff line
@@ -418,14 +418,12 @@ public class UsbHostManager {
                        parser.getRawDescriptors());

                // Stats collection
                if (parser.hasAudioInterface()) {
                StatsLog.write(StatsLog.USB_DEVICE_ATTACHED, newDevice.getVendorId(),
                        newDevice.getProductId(), parser.hasAudioInterface(),
                        parser.hasHIDInterface(), parser.hasStorageInterface(),
                        StatsLog.USB_DEVICE_ATTACHED__STATE__STATE_CONNECTED, 0);
            }
        }
        }

        if (DEBUG) {
            Slog.d(TAG, "beginUsbDeviceAdded(" + deviceAddress + ") end");
@@ -455,7 +453,6 @@ public class UsbHostManager {
                if (current != null) {
                    UsbDescriptorParser parser = new UsbDescriptorParser(deviceAddress,
                            current.mDescriptors);
                    if (parser.hasAudioInterface()) {
                        // Stats collection
                    StatsLog.write(StatsLog.USB_DEVICE_ATTACHED, device.getVendorId(),
                            device.getProductId(), parser.hasAudioInterface(),
@@ -463,7 +460,6 @@ public class UsbHostManager {
                            StatsLog.USB_DEVICE_ATTACHED__STATE__STATE_DISCONNECTED,
                            System.currentTimeMillis() - current.mTimestamp);
                }
                }
            } else {
                Slog.d(TAG, "Removed device at " + deviceAddress + " was already gone");
            }