Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java171 @UsbPortStatus.UsbDataRole int dataRole) { in setRoles() argument
172 UsbPort.checkRoles(powerRole, dataRole); in setRoles()
174 mUsbManager.setPortRoles(this, powerRole, dataRole); in setRoles()
195 public static int combineRolesAsBit(int powerRole, int dataRole) { in combineRolesAsBit() argument
196 checkRoles(powerRole, dataRole); in combineRolesAsBit()
197 final int index = ((powerRole - POWER_ROLE_OFFSET) * NUM_DATA_ROLES) + dataRole; in combineRolesAsBit()
284 final int dataRole = index % NUM_DATA_ROLES; in roleCombinationsToString() local
292 result.append(dataRoleToString(dataRole)); in roleCombinationsToString()
306 public static void checkPowerRole(int dataRole) { in checkPowerRole() argument
307 Preconditions.checkArgumentInRange(dataRole, Constants.PortPowerRole.NONE, in checkPowerRole()
[all …]
DUsbPortStatus.java295 @UsbDataRole int dataRole) { in isRoleCombinationSupported() argument
297 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
DIUsbManager.aidl121 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
DUsbManager.java847 void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles() argument
850 mService.setPortRoles(port.getId(), powerRole, dataRole); in setPortRoles() local
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java541 public void setPortRoles(String portId, int powerRole, int dataRole) { in setPortRoles() argument
543 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
549 mPortManager.setPortRoles(portId, powerRole, dataRole, null); in setPortRoles()
642 final int dataRole; in dump() local
645 dataRole = DATA_ROLE_HOST; in dump()
648 dataRole = DATA_ROLE_DEVICE; in dump()
651 dataRole = 0; in dump()
658 mPortManager.setPortRoles(portId, powerRole, dataRole, pw); in dump()
722 final int dataRole; in dump() local
726 dataRole = DATA_ROLE_HOST; in dump()
[all …]
DUsbPortManager.java498 int dataRole, boolean canChangeDataRole, IndentingPrintWriter pw) { in connectSimulatedPort() argument
506 if (mode == 0 || powerRole == 0 || dataRole == 0) { in connectSimulatedPort()
522 + ", dataRole=" + UsbPort.dataRoleToString(dataRole) in connectSimulatedPort()
528 portInfo.currentDataRole = dataRole; in connectSimulatedPort()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java191 long id, int dataRole) { in writeDataRole() argument
193 dump.write(idName, id, dataRole); in writeDataRole()
195 dump.write(idName, id, UsbPort.dataRoleToString(dataRole)); in writeDataRole()
233 int dataRole = index % Constants.PortDataRole.NUM_DATA_ROLES; in writePortStatus() local
240 dataRole); in writePortStatus()