Home
last modified time | relevance | path

Searched refs:setDataRole (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsControllerTest.java89 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()
DUsbDetailsDataRoleControllerTest.java143 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()
DUsbBackendTest.java97 usbBackend.setDataRole(DATA_ROLE_HOST); in setDataRole_allRolesSupported_shouldSetDataRole()
114 usbBackend.setDataRole(DATA_ROLE_HOST); in setDataRole_notAllRolesSupported_shouldSetDataAndPowerRole()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsDataRoleController.java105 mUsbBackend.setDataRole(role); in onRadioButtonClicked()
DUsbBackend.java141 public void setDataRole(int role) { in setDataRole() method in UsbBackend