Searched refs:NUM_DATA_ROLES (Results 1 – 2 of 2) sorted by relevance
109 private static final int NUM_DATA_ROLES = Constants.PortDataRole.NUM_DATA_ROLES; field in UsbPort157 final int index = ((powerRole - POWER_ROLE_OFFSET) * NUM_DATA_ROLES) + dataRole; in combineRolesAsBit()227 final int powerRole = (index / NUM_DATA_ROLES + POWER_ROLE_OFFSET); in roleCombinationsToString()228 final int dataRole = index % NUM_DATA_ROLES; in roleCombinationsToString()258 Constants.PortDataRole.NUM_DATA_ROLES - 1, "powerRole"); in checkDataRole()
222 int powerRole = (index / Constants.PortDataRole.NUM_DATA_ROLES in writePortStatus()224 int dataRole = index % Constants.PortDataRole.NUM_DATA_ROLES; in writePortStatus()