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.java370 final int currentPowerRole = portInfo.mUsbPortStatus.getCurrentPowerRole(); in setPortRoles() local
371 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()
389 if ((!canChangePowerRole && currentPowerRole != newPowerRole) in setPortRoles()
411 + ", currentPowerRole=" + UsbPort.powerRoleToString(currentPowerRole) in setPortRoles()
421 sim.currentPowerRole = newPowerRole; in setPortRoles()
448 if (currentPowerRole != newPowerRole) { in setPortRoles()
527 portInfo.currentPowerRole = powerRole; in connectSimulatedPort()
567 portInfo.currentPowerRole = 0; in disconnectSimulatedPort()
643 current.canChangeMode, current.currentPowerRole, in notifyPortStatusChange()
680 current.status.canChangeMode, current.status.currentPowerRole, in notifyPortStatusChange_1_1()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java235 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument
239 mCurrentPowerRole = currentPowerRole; in UsbPortStatus()
362 int currentPowerRole = in.readInt();
367 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,