Home
last modified time | relevance | path

Searched refs:currentPowerRole (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java192 final int currentPowerRole = portInfo.mUsbPortStatus.getCurrentPowerRole(); in setPortRoles() local
193 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()
211 if ((!canChangePowerRole && currentPowerRole != newPowerRole) in setPortRoles()
233 + ", currentPowerRole=" + UsbPort.powerRoleToString(currentPowerRole) in setPortRoles()
243 sim.currentPowerRole = newPowerRole; in setPortRoles()
270 if (currentPowerRole != newPowerRole) { in setPortRoles()
349 portInfo.currentPowerRole = powerRole; in connectSimulatedPort()
368 portInfo.currentPowerRole = 0; in disconnectSimulatedPort()
442 current.canChangeMode, current.currentPowerRole, in notifyPortStatusChange()
474 current.status.canChangeMode, current.status.currentPowerRole, in notifyPortStatusChange_1_1()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java37 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument
40 mCurrentPowerRole = currentPowerRole; in UsbPortStatus()
132 int currentPowerRole = in.readInt();
135 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,