Searched refs:newPowerRole (Results 1 – 1 of 1) sorted by relevance
347 public void setPortRoles(String portId, int newPowerRole, int newDataRole, in setPortRoles() argument359 if (!portInfo.mUsbPortStatus.isRoleCombinationSupported(newPowerRole, newDataRole)) { in setPortRoles()362 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()370 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()388 if ((!canChangePowerRole && currentPowerRole != newPowerRole) in setPortRoles()390 if (canChangeMode && newPowerRole == POWER_ROLE_SOURCE in setPortRoles()393 } else if (canChangeMode && newPowerRole == POWER_ROLE_SINK in setPortRoles()399 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()413 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()420 sim.currentPowerRole = newPowerRole; in setPortRoles()[all …]