Searched refs:getCurrentFunctions (Results 1 – 7 of 7) sorted by relevance
201 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp()219 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onClickMtp_ptpEnabled_shouldEnableMtp()241 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in onClickNone_mtpEnabled_shouldDisableMtp()271 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionRndis_startTetheringInvoked()285 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionNcm_startsTethering()299 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()311 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryMode_doNothing()324 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryCombinationsMode_doNothing()335 doReturn(UsbManager.FUNCTION_PTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_clickSameButton_doNothing()349 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_userAuthenticated()[all …]
148 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionRndis_startTetheringInvoked()161 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionNcm_invokesStartTethering()174 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionOther_setCurrentFunctionInvoked()185 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()194 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in onTetheringStarted_currentFunctionsIsNcm_setsNcmAsDefaultUsbFunctions()208 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()235 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in onPause_receivedMtp_shouldSetMtp()249 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()263 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()277 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in onPause_receivedNcm_setsNcm()
168 mPreviousFunctions = mUsbBackend.getCurrentFunctions(); in setDefaultKey()195 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onPause()207 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onTetheringStarted()
73 mPreviousFunction = mUsbBackend.getCurrentFunctions(); in UsbDetailsFunctionsController()143 final long previousFunction = mUsbBackend.getCurrentFunctions(); in handleRadioButtonClicked()
87 public long getCurrentFunctions() { in getCurrentFunctions() method in UsbBackend88 return mUsbManager.getCurrentFunctions(); in getCurrentFunctions()
85 final long previousFunctions = mUsbBackend.getCurrentFunctions(); in onPreferenceClick()
1500 long functions = manager.getCurrentFunctions(); in updateUsbConfigurationValues()