Searched refs:dataRole (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 450 @UsbPortStatus.UsbDataRole int dataRole) { in setRoles() argument 451 UsbPort.checkRoles(powerRole, dataRole); in setRoles() 453 mUsbManager.setPortRoles(this, powerRole, dataRole); in setRoles() 630 public static int combineRolesAsBit(int powerRole, int dataRole) { in combineRolesAsBit() argument 631 checkRoles(powerRole, dataRole); in combineRolesAsBit() 632 final int index = ((powerRole - POWER_ROLE_OFFSET) * NUM_DATA_ROLES) + dataRole; in combineRolesAsBit() 778 final int dataRole = index % NUM_DATA_ROLES; in roleCombinationsToString() local 786 result.append(dataRoleToString(dataRole)); in roleCombinationsToString() 862 public static void checkPowerRole(int dataRole) { in checkPowerRole() argument 863 Preconditions.checkArgumentInRange(dataRole, Constants.PortPowerRole.NONE, in checkPowerRole() [all …]
|
D | UsbPortStatus.java | 574 @UsbDataRole int dataRole) { in isRoleCombinationSupported() argument 576 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
|
D | IUsbManager.aidl | 194 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
|
D | UsbManager.java | 1496 void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles() argument 1499 mService.setPortRoles(port.getId(), powerRole, dataRole); in setPortRoles() local
|
/frameworks/base/core/java/com/android/internal/usb/ |
D | DumpUtils.java | 200 long id, int dataRole) { in writeDataRole() argument 202 dump.write(idName, id, dataRole); in writeDataRole() 204 dump.write(idName, id, UsbPort.dataRoleToString(dataRole)); in writeDataRole() 242 int dataRole = index % Constants.PortDataRole.NUM_DATA_ROLES; in writePortStatus() local 249 dataRole); in writePortStatus()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 834 public void setPortRoles(String portId, int powerRole, int dataRole) { in setPortRoles() argument 836 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles() 842 mPortManager.setPortRoles(portId, powerRole, dataRole, null); in setPortRoles() 1136 final int dataRole; in dump() local 1139 dataRole = DATA_ROLE_HOST; in dump() 1142 dataRole = DATA_ROLE_DEVICE; in dump() 1145 dataRole = 0; in dump() 1152 mPortManager.setPortRoles(portId, powerRole, dataRole, pw); in dump() 1234 final int dataRole; in dump() local 1238 dataRole = DATA_ROLE_HOST; in dump() [all …]
|
D | UsbPortManager.java | 795 int dataRole, boolean canChangeDataRole, IndentingPrintWriter pw) { in connectSimulatedPort() argument 803 if (mode == 0 || powerRole == 0 || dataRole == 0) { in connectSimulatedPort() 819 + ", dataRole=" + UsbPort.dataRoleToString(dataRole) in connectSimulatedPort() 825 portInfo.currentDataRole = dataRole; in connectSimulatedPort()
|
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/ |
D | UsbPortHal.java | 142 public void switchDataRole(String portName, @HalUsbDataRole int dataRole, long transactionId); in switchDataRole() argument
|