Searched refs:setDefaultUsbFunctions (Results 1 – 3 of 3) sorted by relevance
116 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in setDefaultKey_isNone_shouldSetNone()122 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MTP); in setDefaultKey_isMtp_shouldSetMtp()128 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_isPtp_shouldSetPtp()134 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in setDefaultKey_isMidi_shouldSetMidi()143 verify(mUsbBackend, never()).setDefaultUsbFunctions(anyLong()); in setDefaultKey_isMonkey_shouldDoNothing()178 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_functionOther_setCurrentFunctionInvoked()189 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()198 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NCM); in onTetheringStarted_currentFunctionsIsNcm_setsNcmAsDefaultUsbFunctions()212 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()225 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()[all …]
178 mUsbBackend.setDefaultUsbFunctions(functions); in setDefaultKey()197 mUsbBackend.setDefaultUsbFunctions(mCurrentFunctions); in onPause()209 mUsbBackend.setDefaultUsbFunctions(mCurrentFunctions); in onTetheringStarted()215 mUsbBackend.setDefaultUsbFunctions(mPreviousFunctions); in onTetheringFailed()
99 public void setDefaultUsbFunctions(long functions) { in setDefaultUsbFunctions() method in UsbBackend