Searched refs:getDefaultUsbFunctions (Results 1 – 4 of 4) sorted by relevance
72 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in getDefaultKey_isNone_shouldReturnNone()79 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in getDefaultKey_isMtp_shouldReturnMtp()86 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in getDefaultKey_isPtp_shouldReturnPtp()93 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in getDefaultKey_isRndis_shouldReturnRndis()100 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in getDefaultKey_isMidi_shouldReturnMidi()107 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in getDefaultKey_isNcm_returnsRndis()287 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked()303 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NCM); in usbIsPluginAndUsbTetheringIsOn_receivedNcm_startsTethering()319 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsNotPluginAndUsbTetheringIsOn_startTetheringIsNotInvoked()333 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsPluginAndUsbTetheringIsAlreadyStarted_startTetheringIsNotInvoked()
75 final long defaultFunctions = mUsbBackend.getDefaultUsbFunctions();105 mCurrentFunctions = mUsbBackend.getDefaultUsbFunctions(); in onAttach()158 long defaultUsbFunctions = mUsbBackend.getDefaultUsbFunctions(); in getDefaultKey()
80 refresh(/* connected */ false, /* functions */ mUsbBackend.getDefaultUsbFunctions(), in displayPreference()
95 public long getDefaultUsbFunctions() { in getDefaultUsbFunctions() method in UsbBackend