Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java22 import android.hardware.usb.UsbPort;
70 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_HOST);
72 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_DEVICE);
74 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_HOST);
76 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_DEVICE);
145 public UsbPort[] getPorts() { in getPorts()
148 final UsbPort[] result = new UsbPort[count]; in getPorts()
178 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
179 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
206 if (canChangeMode && newPowerRole == UsbPort.POWER_ROLE_SOURCE in setPortRoles()
[all …]
DUsbService.java33 import android.hardware.usb.UsbPort;
427 public UsbPort[] getPorts() { in getPorts()
454 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
509 powerRole = UsbPort.POWER_ROLE_SOURCE; in dump()
512 powerRole = UsbPort.POWER_ROLE_SINK; in dump()
524 dataRole = UsbPort.DATA_ROLE_HOST; in dump()
527 dataRole = UsbPort.DATA_ROLE_DEVICE; in dump()
551 supportedModes = UsbPort.MODE_UFP; in dump()
554 supportedModes = UsbPort.MODE_DFP; in dump()
557 supportedModes = UsbPort.MODE_DUAL; in dump()
[all …]
DUsbDeviceManager.java34 import android.hardware.usb.UsbPort;
207 UsbPort port = intent.getParcelableExtra(UsbManager.EXTRA_PORT);
483 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
484 boolean hostConnected = status.getCurrentDataRole() == UsbPort.DATA_ROLE_HOST; in updateHostState()
485 boolean sourcePower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE; in updateHostState()
486 boolean sinkPower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SINK; in updateHostState()
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java33 public final class UsbPort implements Parcelable { class
104 public UsbPort(String id, int supportedModes) { in UsbPort() method in UsbPort
259 public static final Parcelable.Creator<UsbPort> CREATOR =
260 new Parcelable.Creator<UsbPort>() {
262 public UsbPort createFromParcel(Parcel in) {
265 return new UsbPort(id, supportedModes);
269 public UsbPort[] newArray(int size) {
270 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()
DIUsbManager.aidl23 import android.hardware.usb.UsbPort;
111 UsbPort[] getPorts(); in getPorts()
DUsbManager.java590 public UsbPort[] getPorts() { in getPorts()
606 public UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus()
635 public void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles()
637 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
DUsbPort.aidl19 parcelable UsbPort;
/frameworks/base/services/
Dprofile-classes1095 Landroid/hardware/usb/UsbPort;
1096 Landroid/hardware/usb/UsbPort$1;
/frameworks/base/
Dcompiled-classes-phone1887 android.hardware.usb.UsbPort
1888 android.hardware.usb.UsbPort$1