Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java151 when(mUsbBackend.getPowerRole()).thenReturn(POWER_ROLE_SINK); in onClick_sink_shouldSetSource()
164 when(mUsbBackend.getPowerRole()).thenReturn(POWER_ROLE_SINK); in onClickTwice_sink_shouldSetSourceOnce()
178 when(mUsbBackend.getPowerRole()).thenReturn(POWER_ROLE_SINK); in onClickDeviceAndRefresh_success_shouldClearSubtext()
196 when(mUsbBackend.getPowerRole()).thenReturn(POWER_ROLE_SINK); in onClickDeviceAndRefresh_failed_shouldShowFailureText()
215 when(mUsbBackend.getPowerRole()).thenReturn(POWER_ROLE_SINK); in onClickDevice_timedOut_shouldShowFailureText()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java108 public int getPowerRole() { in getPowerRole() method in UsbBackend
138 int newPowerRole = getPowerRole(); in setDataRole()
DUsbDetailsPowerRoleController.java107 if (mUsbBackend.getPowerRole() != newRole && mNextPowerRole == POWER_ROLE_NONE in onPreferenceClick()
DUsbConnectionBroadcastReceiver.java83 mPowerRole = mUsbBackend.getPowerRole(); in onReceive()