HomeSort by relevance Sort by last modified time
    Searched refs:UsbPort (Results 1 - 10 of 10) 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 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/
UsbPortManager.java 25 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)
    [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...]
UsbDeviceManager.java 33 import android.hardware.usb.UsbPort;
189 UsbPort port = intent.getParcelableExtra(UsbManager.EXTRA_PORT);
403 public void updateHostState(UsbPort port, UsbPortStatus status) {
404 boolean hostConnected = status.getCurrentDataRole() == UsbPort.DATA_ROLE_HOST;
405 boolean sourcePower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE;
406 boolean sinkPower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SINK;
    [all...]
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
UsbBackend.java 23 import android.hardware.usb.UsbPort;
46 private UsbPort mPort;
65 UsbPort[] ports = mUsbManager.getPorts();
81 int power = mPortStatus.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE
129 && mPortStatus.isRoleCombinationSupported(powerRole, UsbPort.DATA_ROLE_HOST)
130 ? UsbPort.DATA_ROLE_HOST : UsbPort.DATA_ROLE_DEVICE;
138 ? UsbPort.POWER_ROLE_SOURCE : UsbPort.POWER_ROLE_SINK;
169 UsbPort.DATA_ROLE_DEVICE)
    [all...]
  /frameworks/base/
compiled-classes-phone     [all...]

Completed in 197 milliseconds