Searched refs:setDataRole (Results 1 – 5 of 5) sorted by relevance
89 Runnable action = () -> mUsbBackend.setDataRole(UsbPortStatus.DATA_ROLE_HOST); in requireAuthAndExecute_whenAlreadyAuthenticated_executes()93 verify(mUsbBackend).setDataRole(anyInt()); in requireAuthAndExecute_whenAlreadyAuthenticated_executes()101 Runnable action = () -> mUsbBackend.setDataRole(UsbPortStatus.DATA_ROLE_HOST); in requireAuthAndExecute_authenticatesAndExecutes()106 verify(mUsbBackend).setDataRole(anyInt()); in requireAuthAndExecute_authenticatesAndExecutes()
143 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDevice_hostEnabled_shouldSetDevice()158 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceTwice_hostEnabled_shouldSetDeviceOnce()168 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_success_shouldClearSubtext()185 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_failed_shouldShowFailureText()203 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDevice_timedOut_shouldShowFailureText()
97 usbBackend.setDataRole(DATA_ROLE_HOST); in setDataRole_allRolesSupported_shouldSetDataRole()114 usbBackend.setDataRole(DATA_ROLE_HOST); in setDataRole_notAllRolesSupported_shouldSetDataAndPowerRole()
105 mUsbBackend.setDataRole(role); in onRadioButtonClicked()
141 public void setDataRole(int role) { in setDataRole() method in UsbBackend