Searched refs:getCurrentFunctions (Results 1 – 7 of 7) sorted by relevance
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()
196 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp()214 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onClickMtp_ptpEnabled_shouldEnableMtp()236 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in onClickNone_mtpEnabled_shouldDisableMtp()266 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionRndis_startTetheringInvoked()280 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionNcm_startsTethering()294 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()306 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryMode_doNothing()319 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryCombinationsMode_doNothing()330 doReturn(UsbManager.FUNCTION_PTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_clickSameButton_doNothing()344 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_userAuthenticated()
168 mPreviousFunctions = mUsbBackend.getCurrentFunctions(); in setDefaultKey()195 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onPause()207 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onTetheringStarted()
72 mPreviousFunction = mUsbBackend.getCurrentFunctions(); in UsbDetailsFunctionsController()135 final long previousFunction = mUsbBackend.getCurrentFunctions(); in onRadioButtonClicked()
87 public long getCurrentFunctions() { in getCurrentFunctions() method in UsbBackend88 return mUsbManager.getCurrentFunctions(); in getCurrentFunctions()
85 final long previousFunctions = mUsbBackend.getCurrentFunctions(); in onPreferenceClick()
1442 long functions = manager.getCurrentFunctions(); in updateUsbConfigurationValues()