Searched refs:UsbPort (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPortManager.java | 25 import android.hardware.usb.UsbPort; 94 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_HOST); 96 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_DEVICE); 98 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_HOST); 100 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_DEVICE); 131 public UsbPort[] getPorts() { in getPorts() 134 final UsbPort[] result = new UsbPort[count]; in getPorts() 164 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles() 165 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles() 192 if (canChangeMode && newPowerRole == UsbPort.POWER_ROLE_SOURCE in setPortRoles() [all …]
|
D | UsbService.java | 30 import android.hardware.usb.UsbPort; 347 public UsbPort[] getPorts() { in getPorts() 374 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles() 423 powerRole = UsbPort.POWER_ROLE_SOURCE; in dump() 426 powerRole = UsbPort.POWER_ROLE_SINK; in dump() 438 dataRole = UsbPort.DATA_ROLE_HOST; in dump() 441 dataRole = UsbPort.DATA_ROLE_DEVICE; in dump() 465 supportedModes = UsbPort.MODE_UFP; in dump() 468 supportedModes = UsbPort.MODE_DFP; in dump() 471 supportedModes = UsbPort.MODE_DUAL; in dump() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 32 public final class UsbPort implements Parcelable { class 88 public UsbPort(String id, int supportedModes) { in UsbPort() method in UsbPort 224 public static final Parcelable.Creator<UsbPort> CREATOR = 225 new Parcelable.Creator<UsbPort>() { 227 public UsbPort createFromParcel(Parcel in) { 230 return new UsbPort(id, supportedModes); 234 public UsbPort[] newArray(int size) { 235 return new UsbPort[size];
|
D | UsbPortStatus.java | 95 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported() 106 + ", currentMode=" + UsbPort.modeToString(mCurrentMode) in toString() 107 + ", currentPowerRole=" + UsbPort.powerRoleToString(mCurrentPowerRole) in toString() 108 + ", currentDataRole=" + UsbPort.dataRoleToString(mCurrentDataRole) in toString() 110 + UsbPort.roleCombinationsToString(mSupportedRoleCombinations) in toString()
|
D | UsbManager.java | 535 public UsbPort[] getPorts() { in getPorts() 552 public UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus() 582 public void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles() 584 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
|
D | IUsbManager.aidl | 22 import android.hardware.usb.UsbPort; 112 UsbPort[] getPorts(); in getPorts()
|
D | UsbPort.aidl | 19 parcelable UsbPort;
|