Searched refs:dataRole (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 127 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()
|
D | UsbPortStatus.java | 93 public boolean isRoleCombinationSupported(int powerRole, int dataRole) { in isRoleCombinationSupported() argument 95 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
|
D | UsbManager.java | 602 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
|
D | IUsbManager.aidl | 118 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 372 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 …]
|
D | UsbPortManager.java | 299 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()
|