Commit Graph

2 Commits

Author SHA1 Message Date
Doris Ling
0bc709c0d9 Add more space above the first item in choose usb mode dialog.
Add top padding to the usb mode list container to make the space between
the title and the first item look more consistent with the rest of the
list items.

Change-Id: Idb9d93821393b44d2b63ea5bb6dc4c009e297c8c
Fix: 62533419
Test: visual
2017-06-13 17:00:05 -07:00
Jason Monk
83290eef8c Update USB dialog for USB-C power option
Also includes a bit of visual updates, options now have summaries
as well.

Code has been refactored a bit, and is more flexible to easily
support any kind of power/data flow combination once its time
to support that.

Currently devices don't have USB-C ports, they can be simulated
with the following commands:
  $ adb shell dumpsys usb add-port "matrix" dual
  # ?s control whether these can be changed
  $ adb shell dumpsys usb connect-port "matrix" ufp? sink? device?
  # Do testing here
  $ adb shell dumpsys usb disconnect-port "matrix"
  $ adb shell dumpsys usb remove-port "matrix"
  $ adb shell dumpsys usb reset
  # Use the help for more info
  $ adb shell dumpsys usb -h

Bug: 21615151
Change-Id: I53ad4de51ff10a197c87bf2741756c1821ee9e74
2015-08-04 09:18:57 -04:00