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()
189 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp()207 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onClickMtp_ptpEnabled_shouldEnableMtp()228 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in onClickNone_mtpEnabled_shouldDisableMtp()258 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionRndis_startTetheringInvoked()272 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionNcm_startsTethering()286 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()298 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryMode_doNothing()311 doReturn(UsbManager.FUNCTION_ACCESSORY).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_functionMtp_inAccessoryCombinationsMode_doNothing()322 doReturn(UsbManager.FUNCTION_PTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_clickSameButton_doNothing()
166 mPreviousFunctions = mUsbBackend.getCurrentFunctions(); in setDefaultKey()193 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onPause()205 mCurrentFunctions = mUsbBackend.getCurrentFunctions(); in onTetheringStarted()
86 public long getCurrentFunctions() { in getCurrentFunctions() method in UsbBackend87 return mUsbManager.getCurrentFunctions(); in getCurrentFunctions()
71 mPreviousFunction = mUsbBackend.getCurrentFunctions(); in UsbDetailsFunctionsController()133 final long previousFunction = mUsbBackend.getCurrentFunctions(); in onRadioButtonClicked()
81 final long previousFunctions = mUsbBackend.getCurrentFunctions(); in onPreferenceClick()
1424 long functions = manager.getCurrentFunctions(); in updateUsbConfigurationValues()