Searched refs:getCurrentPowerRole (Results 1 – 8 of 8) sorted by relevance
95 when(mUsbPortStatus.getCurrentPowerRole()).thenReturn(POWER_ROLE_SINK); in setDataRole_allRolesSupported_shouldSetDataRole()112 when(mUsbPortStatus.getCurrentPowerRole()).thenReturn(POWER_ROLE_SINK); in setDataRole_notAllRolesSupported_shouldSetDataAndPowerRole()
89 mPowerRole = portStatus.getCurrentPowerRole(); in onReceive()
110 return mPortStatus == null ? POWER_ROLE_NONE : mPortStatus.getCurrentPowerRole(); in getPowerRole()
272 public @UsbPowerRole int getCurrentPowerRole() { in getCurrentPowerRole() method in UsbPortStatus
223 status.getCurrentPowerRole()); in writePortStatus()
422 final int currentPowerRole = portInfo.mUsbPortStatus.getCurrentPowerRole(); in setPortRoles()1221 || mUsbPortStatus.getCurrentPowerRole() != currentPowerRole in setStatus()1254 || mUsbPortStatus.getCurrentPowerRole() != currentPowerRole in setStatus()
920 mSourcePower = status.getCurrentPowerRole() == POWER_ROLE_SOURCE; in handleMessage()921 mSinkPower = status.getCurrentPowerRole() == POWER_ROLE_SINK; in handleMessage()
4510 method public int getCurrentPowerRole();