Home
last modified time | relevance | path

Searched refs:NUM_DATA_ROLES (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java59 private static final int NUM_DATA_ROLES = Constants.PortDataRole.NUM_DATA_ROLES; field in UsbPort
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()
284 final int dataRole = index % NUM_DATA_ROLES; in roleCombinationsToString()
314 Constants.PortDataRole.NUM_DATA_ROLES - 1, "powerRole"); in checkDataRole()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java231 int powerRole = (index / Constants.PortDataRole.NUM_DATA_ROLES in writePortStatus()
233 int dataRole = index % Constants.PortDataRole.NUM_DATA_ROLES; in writePortStatus()