Home
last modified time | relevance | path

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

/frameworks/base/tests/UsbManagerTests/src/android/hardware/usb/
DUsbPortStatusTest.java26 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
85 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_DEVICE); in getSupportedRoleCombinations()
88 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_HOST); in getSupportedRoleCombinations()
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java74 public static final int POWER_ROLE_SINK = 2; field in UsbPortStatus
79 POWER_ROLE_SINK
588 return isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE) in isPdCompliant()
589 && isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_HOST) in isPdCompliant()
DUsbPort.java40 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
672 case POWER_ROLE_SINK: in powerRoleToString()
875 Preconditions.checkArgumentInRange(powerRole, POWER_ROLE_NONE, POWER_ROLE_SINK, in checkRoles()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java28 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
126 UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_HOST);
128 POWER_ROLE_SINK, DATA_ROLE_DEVICE);
517 if (usbPowerRole == POWER_ROLE_SINK) in toHalUsbPowerRole()
617 } else if (canChangeMode && newPowerRole == POWER_ROLE_SINK in setPortRoles()
1094 POWER_ROLE_SINK, currentDataRole); in addOrUpdatePortLocked()
DUsbService.java27 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
1127 powerRole = POWER_ROLE_SINK; in dump()
1228 powerRole = POWER_ROLE_SINK; in dump()
DUsbDeviceManager.java22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
1157 mSinkPower = status.getCurrentPowerRole() == POWER_ROLE_SINK; in handleMessage()
1165 … && status.isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_HOST) in handleMessage()
1168 … && status.isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE); in handleMessage()
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/
DUsbPortHidl.java34 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
/frameworks/base/core/proto/android/service/
Dusb.proto259 POWER_ROLE_SINK = 2; enumerator
/frameworks/base/core/api/
Dsystem-current.txt6912 field public static final int POWER_ROLE_SINK = 2; // 0x2
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt22467 Landroid/hardware/usb/UsbPort;->POWER_ROLE_SINK:I