Searched refs:currentPowerRole (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPortManager.java | 369 final int currentPowerRole = portInfo.mUsbPortStatus.getCurrentPowerRole(); in setPortRoles() local 370 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles() 388 if ((!canChangePowerRole && currentPowerRole != newPowerRole) in setPortRoles() 410 + ", currentPowerRole=" + UsbPort.powerRoleToString(currentPowerRole) in setPortRoles() 420 sim.currentPowerRole = newPowerRole; in setPortRoles() 447 if (currentPowerRole != newPowerRole) { in setPortRoles() 526 portInfo.currentPowerRole = powerRole; in connectSimulatedPort() 566 portInfo.currentPowerRole = 0; in disconnectSimulatedPort() 642 current.canChangeMode, current.currentPowerRole, in notifyPortStatusChange() 679 current.status.canChangeMode, current.status.currentPowerRole, in notifyPortStatusChange_1_1() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPortStatus.java | 234 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument 238 mCurrentPowerRole = currentPowerRole; in UsbPortStatus() 360 int currentPowerRole = in.readInt(); 365 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,
|