Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java127 public static int combineRolesAsBit(int powerRole, int dataRole) { in combineRolesAsBit() argument
128 checkRoles(powerRole, dataRole); in combineRolesAsBit()
129 final int index = powerRole * NUM_DATA_ROLES + dataRole; in combineRolesAsBit()
187 final int dataRole = index % NUM_DATA_ROLES; in roleCombinationsToString() local
195 result.append(dataRoleToString(dataRole)); in roleCombinationsToString()
203 public static void checkRoles(int powerRole, int dataRole) { in checkRoles() argument
205 Preconditions.checkArgumentInRange(dataRole, 0, DATA_ROLE_DEVICE, "dataRole"); in checkRoles()
DUsbPortStatus.java93 public boolean isRoleCombinationSupported(int powerRole, int dataRole) { in isRoleCombinationSupported() argument
95 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
DUsbManager.java602 public void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles() argument
604 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
607 mService.setPortRoles(port.getId(), powerRole, dataRole); in setPortRoles() local
DIUsbManager.aidl118 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java372 public void setPortRoles(String portId, int powerRole, int dataRole) { in setPortRoles() argument
374 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
380 mPortManager.setPortRoles(portId, powerRole, dataRole, null); in setPortRoles()
435 final int dataRole; in dump() local
438 dataRole = UsbPort.DATA_ROLE_HOST; in dump()
441 dataRole = UsbPort.DATA_ROLE_DEVICE; in dump()
444 dataRole = 0; in dump()
451 mPortManager.setPortRoles(portId, powerRole, dataRole, pw); in dump()
513 final int dataRole; in dump() local
517 dataRole = UsbPort.DATA_ROLE_HOST; in dump()
[all …]
DUsbPortManager.java299 int dataRole, boolean canChangeDataRole, IndentingPrintWriter pw) { in connectSimulatedPort() argument
307 if (mode == 0 || powerRole == 0 || dataRole == 0) { in connectSimulatedPort()
323 + ", dataRole=" + UsbPort.dataRoleToString(dataRole) in connectSimulatedPort()
329 portInfo.mCurrentDataRole = dataRole; in connectSimulatedPort()