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

  /frameworks/base/core/java/android/hardware/usb/
UsbPort.aidl 19 parcelable UsbPort;
UsbPortStatus.java 57 * @return The current mode: {@link UsbPort#MODE_DFP}, {@link UsbPort#MODE_UFP},
67 * @return The current power role: {@link UsbPort#POWER_ROLE_SOURCE},
68 * {@link UsbPort#POWER_ROLE_SINK}, or 0 if nothing is connected.
77 * @return The current data role: {@link UsbPort#DATA_ROLE_HOST},
78 * {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if nothing is connected.
88 * @param powerRole The power role to check: {@link UsbPort#POWER_ROLE_SOURCE}
89 * or {@link UsbPort#POWER_ROLE_SINK}, or 0 if no power role.
90 * @param dataRole The data role to check: either {@link UsbPort#DATA_ROLE_HOST}
91 * or {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if no data role
    [all...]
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...]
IUsbManager.aidl 22 import android.hardware.usb.UsbPort;
112 UsbPort[] getPorts();
UsbManager.java 84 * <li> {@link #EXTRA_PORT} containing the {@link android.hardware.usb.UsbPort}
236 * containing the {@link UsbPort} object for the port.
535 public UsbPort[] getPorts() {
552 public UsbPortStatus getPortStatus(UsbPort port) {
575 * @param powerRole The desired power role: {@link UsbPort#POWER_ROLE_SOURCE}
576 * or {@link UsbPort#POWER_ROLE_SINK}, or 0 if no power role.
577 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST}
578 * or {@link UsbPort#DATA_ROLE_DEVICE}, or 0 if no data role.
582 public void setPortRoles(UsbPort port, int powerRole, int dataRole) {
584 UsbPort.checkRoles(powerRole, dataRole)
    [all...]
  /frameworks/base/services/usb/java/com/android/server/usb/
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)
    [all...]
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 59 milliseconds