Searched refs:getDefaultUsbFunctions (Results 1 – 4 of 4) sorted by relevance
73 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in getDefaultKey_isNone_shouldReturnNone()80 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in getDefaultKey_isMtp_shouldReturnMtp()87 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in getDefaultKey_isPtp_shouldReturnPtp()94 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in getDefaultKey_isRndis_shouldReturnRndis()101 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in getDefaultKey_isMidi_shouldReturnMidi()108 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in getDefaultKey_isNcm_returnsRndis()277 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked()291 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in usbIsPluginAndUsbTetheringIsOn_receivedNcm_startsTethering()305 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsNotPluginAndUsbTetheringIsOn_startTetheringIsNotInvoked()318 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsPluginAndUsbTetheringIsAlreadyStarted_startTetheringIsNotInvoked()
73 final long defaultFunctions = mUsbBackend.getDefaultUsbFunctions();102 mCurrentFunctions = mUsbBackend.getDefaultUsbFunctions(); in onAttach()155 long defaultUsbFunctions = mUsbBackend.getDefaultUsbFunctions(); in getDefaultKey()
79 refresh(/* connected */ false, /* functions */ mUsbBackend.getDefaultUsbFunctions(), in displayPreference()
91 public long getDefaultUsbFunctions() { in getDefaultUsbFunctions() method in UsbBackend