HomeSort by relevance Sort by last modified time
    Searched defs:UsbPort (Results 1 - 3 of 3) sorted by null

  /frameworks/base/core/java/android/hardware/usb/
UsbPort.java 32 public final class UsbPort implements Parcelable {
88 public UsbPort(String id, int supportedModes) {
121 * @param powerRole The desired power role: {@link UsbPort#POWER_ROLE_SOURCE}
122 * or {@link UsbPort#POWER_ROLE_SINK}, or 0 if no power role.
123 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST}
124 * or {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if no data role.
210 return "UsbPort{id=" + mId + ", supportedModes=" + modeToString(mSupportedModes) + "}";
224 public static final Parcelable.Creator<UsbPort> CREATOR =
225 new Parcelable.Creator<UsbPort>() {
227 public UsbPort createFromParcel(Parcel in)
    [all...]
UsbManager.java 90 * <li> {@link #EXTRA_PORT} containing the {@link android.hardware.usb.UsbPort}
250 * containing the {@link UsbPort} object for the port.
578 public UsbPort[] getPorts() {
594 public UsbPortStatus getPortStatus(UsbPort port) {
616 * @param powerRole The desired power role: {@link UsbPort#POWER_ROLE_SOURCE}
617 * or {@link UsbPort#POWER_ROLE_SINK}, or 0 if no power role.
618 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST}
619 * or {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if no data role.
623 public void setPortRoles(UsbPort port, int powerRole, int dataRole) {
625 UsbPort.checkRoles(powerRole, dataRole)
    [all...]
  /frameworks/base/services/usb/java/com/android/server/usb/
UsbService.java 30 import android.hardware.usb.UsbPort;
347 public UsbPort[] getPorts() {
374 UsbPort.checkRoles(powerRole, dataRole);
423 powerRole = UsbPort.POWER_ROLE_SOURCE;
426 powerRole = UsbPort.POWER_ROLE_SINK;
438 dataRole = UsbPort.DATA_ROLE_HOST;
441 dataRole = UsbPort.DATA_ROLE_DEVICE;
465 supportedModes = UsbPort.MODE_UFP;
468 supportedModes = UsbPort.MODE_DFP;
471 supportedModes = UsbPort.MODE_DUAL
    [all...]

Completed in 72 milliseconds