Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java369 final int currentDataRole = portInfo.mUsbPortStatus.getCurrentDataRole(); in setPortRoles() local
371 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()
390 || (!canChangeDataRole && currentDataRole != newDataRole)) { in setPortRoles()
412 + ", currentDataRole=" + UsbPort.dataRoleToString(currentDataRole) in setPortRoles()
422 sim.currentDataRole = newDataRole; in setPortRoles()
463 if (currentDataRole != newDataRole) { in setPortRoles()
529 portInfo.currentDataRole = dataRole; in connectSimulatedPort()
569 portInfo.currentDataRole = 0; in disconnectSimulatedPort()
645 current.currentDataRole, current.canChangeDataRole, in notifyPortStatusChange()
682 current.status.currentDataRole, current.status.canChangeDataRole, 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
240 mCurrentDataRole = currentDataRole; in UsbPortStatus()
363 int currentDataRole = in.readInt();
367 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,