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.java191 final int currentDataRole = portInfo.mUsbPortStatus.getCurrentDataRole(); in setPortRoles() local
193 if (currentDataRole == newDataRole && currentPowerRole == newPowerRole) { in setPortRoles()
212 || (!canChangeDataRole && currentDataRole != newDataRole)) { in setPortRoles()
234 + ", currentDataRole=" + UsbPort.dataRoleToString(currentDataRole) in setPortRoles()
244 sim.currentDataRole = newDataRole; in setPortRoles()
285 if (currentDataRole != newDataRole) { in setPortRoles()
351 portInfo.currentDataRole = dataRole; in connectSimulatedPort()
370 portInfo.currentDataRole = 0; in disconnectSimulatedPort()
444 current.currentDataRole, current.canChangeDataRole); in notifyPortStatusChange()
476 current.status.currentDataRole, current.status.canChangeDataRole); in notifyPortStatusChange_1_1()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java37 public UsbPortStatus(int currentMode, int currentPowerRole, int currentDataRole, in UsbPortStatus() argument
41 mCurrentDataRole = currentDataRole; in UsbPortStatus()
133 int currentDataRole = in.readInt();
135 return new UsbPortStatus(currentMode, currentPowerRole, currentDataRole,