Searched refs:getPowerRole (Results 1 – 4 of 4) sorted by relevance
151 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()
108 public int getPowerRole() { in getPowerRole() method in UsbBackend138 int newPowerRole = getPowerRole(); in setDataRole()
107 if (mUsbBackend.getPowerRole() != newRole && mNextPowerRole == POWER_ROLE_NONE in onPreferenceClick()
83 mPowerRole = mUsbBackend.getPowerRole(); in onReceive()