Searched refs:setDefaultUsbFunctions (Results 1 – 3 of 3) sorted by relevance
117 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in setDefaultKey_isNone_shouldSetNone()123 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MTP); in setDefaultKey_isMtp_shouldSetMtp()129 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_isPtp_shouldSetPtp()135 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in setDefaultKey_isMidi_shouldSetMidi()144 verify(mUsbBackend, never()).setDefaultUsbFunctions(anyLong()); in setDefaultKey_isMonkey_shouldDoNothing()179 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_functionOther_setCurrentFunctionInvoked()190 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()199 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NCM); in onTetheringStarted_currentFunctionsIsNcm_setsNcmAsDefaultUsbFunctions()211 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()223 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()[all …]
87 mUsbBackend.setDefaultUsbFunctions(functions);175 mUsbBackend.setDefaultUsbFunctions(functions); in setDefaultKey()192 mUsbBackend.setDefaultUsbFunctions(mCurrentFunctions); in onPause()203 mUsbBackend.setDefaultUsbFunctions(mCurrentFunctions); in onTetheringStarted()209 mUsbBackend.setDefaultUsbFunctions(mPreviousFunctions); in onTetheringFailed()
95 public void setDefaultUsbFunctions(long functions) { in setDefaultUsbFunctions() method in UsbBackend