OSDN Git Service

Fix notifications for USB PD enabled devices
authorVincent Palatin <vpalatin@chromium.org>
Tue, 3 May 2016 20:35:15 +0000 (13:35 -0700)
committerVincent Palatin <vpalatin@chromium.org>
Thu, 19 May 2016 20:46:21 +0000 (20:46 +0000)
commita0116bf81f9c2b89421050d23c91799b6e128640
tree6235cb07521f9f62ef55809f16d93e2883aa080a
parent2486cb2c8978003d2b5cfa7e8169019421582cb0
Fix notifications for USB PD enabled devices

The devices with USB PD support can have the data role and the power role of
their USB-C port reversed. Ensure the title of the notification and the content
of the USB selection dialog is correct in this case.

Testing done on Ryu with the following accessories:
- legacy A-C cable
- USB-C charger (5X)
- USB-PD charger (Zinger)
- Pixel 2 (in both roles)
- Type-C Macbook (in both roles)
- Nexus 5X (in both roles)
- Apple AV HDMI accessory
- LG USB-C screen/dock
- Honeybuns dock

Bug: 28310685
Bug: 24137353
Change-Id: Id7f358c40d8714fae68ca98a7eb067f62f18b0af
(cherry picked from commit 0be6800b0feba50fa2c1be7852ee2eb02c38afc0)
services/usb/java/com/android/server/usb/UsbDeviceManager.java