Searched refs:setPowerRole (Results 1 – 4 of 4) sorted by relevance
164 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClick_sink_shouldSetSource()181 verify(mUsbBackend, times(1)).setPowerRole(POWER_ROLE_SOURCE); in onClickTwice_sink_shouldSetSourceOnce()193 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClickDeviceAndRefresh_success_shouldClearSubtext()212 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClickDeviceAndRefresh_failed_shouldShowFailureText()232 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClickDevice_timedOut_shouldShowFailureText()
137 usbBackend.setPowerRole(POWER_ROLE_SOURCE); in setPowerRole_allRolesSupported_shouldSetPowerRole()154 usbBackend.setPowerRole(POWER_ROLE_SOURCE); in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole()
112 mUsbBackend.setPowerRole(newRole); in onPreferenceClick()
122 public void setPowerRole(int role) { in setPowerRole() method in UsbBackend