Loading services/usb/java/com/android/server/usb/UsbHostManager.java +9 −13 Original line number Diff line number Diff line Loading @@ -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"); Loading Loading @@ -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(), Loading @@ -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"); } Loading Loading
services/usb/java/com/android/server/usb/UsbHostManager.java +9 −13 Original line number Diff line number Diff line Loading @@ -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"); Loading Loading @@ -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(), Loading @@ -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"); } Loading