Searched refs:powerRole (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbPort.java | 170 public void setRoles(@UsbPortStatus.UsbPowerRole int powerRole, 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() 283 final int powerRole = (index / NUM_DATA_ROLES + POWER_ROLE_OFFSET); in roleCombinationsToString() local 290 result.append(powerRoleToString(powerRole)); in roleCombinationsToString() 300 public static void checkMode(int powerRole) { in checkMode() argument 301 Preconditions.checkArgumentInRange(powerRole, Constants.PortMode.NONE, in checkMode() [all …]
|
D | UsbPortStatus.java | 294 public boolean isRoleCombinationSupported(@UsbPowerRole int powerRole, in isRoleCombinationSupported() argument 297 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
|
D | IUsbManager.aidl | 121 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
|
D | UsbManager.java | 847 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/ |
D | UsbService.java | 541 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() 627 final int powerRole; in dump() local 630 powerRole = POWER_ROLE_SOURCE; in dump() 633 powerRole = POWER_ROLE_SINK; in dump() 636 powerRole = 0; in dump() 658 mPortManager.setPortRoles(portId, powerRole, dataRole, pw); in dump() 709 final int powerRole; in dump() local 713 powerRole = POWER_ROLE_SOURCE; in dump() [all …]
|
D | UsbPortManager.java | 497 int powerRole, boolean canChangePowerRole, in connectSimulatedPort() argument 506 if (mode == 0 || powerRole == 0 || dataRole == 0) { in connectSimulatedPort() 520 + ", powerRole=" + UsbPort.powerRoleToString(powerRole) in connectSimulatedPort() 526 portInfo.currentPowerRole = powerRole; in connectSimulatedPort()
|
/frameworks/base/core/java/com/android/internal/usb/ |
D | DumpUtils.java | 182 long id, int powerRole) { in writePowerRole() argument 184 dump.write(idName, id, powerRole); in writePowerRole() 186 dump.write(idName, id, UsbPort.powerRoleToString(powerRole)); in writePowerRole() 231 int powerRole = (index / Constants.PortDataRole.NUM_DATA_ROLES in writePortStatus() local 238 powerRole); in writePortStatus()
|