Home
last modified time | relevance | path

Searched refs:UsbPort (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java25 import android.hardware.usb.UsbPort;
102 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_HOST);
104 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_DEVICE);
106 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_HOST);
108 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_DEVICE);
139 public UsbPort[] getPorts() { in getPorts()
142 final UsbPort[] result = new UsbPort[count]; in getPorts()
172 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
173 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
200 if (canChangeMode && newPowerRole == UsbPort.POWER_ROLE_SOURCE in setPortRoles()
[all …]
DUsbService.java30 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 …]
DUsbDeviceManager.java33 import android.hardware.usb.UsbPort;
188 UsbPort port = intent.getParcelableExtra(UsbManager.EXTRA_PORT);
401 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
402 boolean hostConnected = status.getCurrentDataRole() == UsbPort.DATA_ROLE_HOST; in updateHostState()
403 boolean sourcePower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE; in updateHostState()
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java32 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];
DUsbPortStatus.java95 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()
DUsbManager.java557 public UsbPort[] getPorts() { in getPorts()
573 public UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus()
602 public void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles()
604 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
DIUsbManager.aidl22 import android.hardware.usb.UsbPort;
112 UsbPort[] getPorts(); in getPorts()
DUsbPort.aidl19 parcelable UsbPort;
/frameworks/base/
Dcompiled-classes-phone1768 android.hardware.usb.UsbPort
1769 android.hardware.usb.UsbPort$1