Searched refs:setPowerRole (Results 1 – 4 of 4) sorted by relevance
156 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClick_sink_shouldSetSource()172 verify(mUsbBackend, times(1)).setPowerRole(POWER_ROLE_SOURCE); in onClickTwice_sink_shouldSetSourceOnce()183 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClickDeviceAndRefresh_success_shouldClearSubtext()201 verify(mUsbBackend).setPowerRole(POWER_ROLE_SOURCE); in onClickDeviceAndRefresh_failed_shouldShowFailureText()220 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()
109 mUsbBackend.setPowerRole(newRole); in onPreferenceClick()
118 public void setPowerRole(int role) { in setPowerRole() method in UsbBackend