Home
last modified time | relevance | path

Searched refs:setPowerRole (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java164 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()
DUsbBackendTest.java137 usbBackend.setPowerRole(POWER_ROLE_SOURCE); in setPowerRole_allRolesSupported_shouldSetPowerRole()
154 usbBackend.setPowerRole(POWER_ROLE_SOURCE); in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleController.java112 mUsbBackend.setPowerRole(newRole); in onPreferenceClick()
DUsbBackend.java122 public void setPowerRole(int role) { in setPowerRole() method in UsbBackend