Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java347 public void setPortRoles(String portId, int newPowerRole, int newDataRole, in setPortRoles() argument
359 if (!portInfo.mUsbPortStatus.isRoleCombinationSupported(newPowerRole, newDataRole)) { in setPortRoles()
363 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
370 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()
389 || (!canChangeDataRole && currentDataRole != newDataRole)) { in setPortRoles()
391 && newDataRole == DATA_ROLE_HOST) { in setPortRoles()
394 && newDataRole == DATA_ROLE_DEVICE) { in setPortRoles()
400 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
414 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
421 sim.currentDataRole = newDataRole; in setPortRoles()
[all …]