Searched refs:FUNCTION_RNDIS (Results 1 – 10 of 10) sorted by relevance
93 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in getDefaultKey_isRndis_shouldReturnRndis()95 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isRndis_shouldReturnRndis()110 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isNcm_returnsRndis()150 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in setDefaultKey_functionRndis_startTetheringInvoked()185 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()189 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()206 UsbManager.FUNCTION_RNDIS, POWER_ROLE_SINK, DATA_ROLE_DEVICE, in onPause_receivedRndis_shouldSetRndis()208 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()212 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()213 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()[all …]
192 UsbManager.FUNCTION_RNDIS)).isFalse(); in areFunctionsDisallowedByNonAdminUser_isAdminUser_returnFalse()202 UsbManager.FUNCTION_RNDIS)).isTrue(); in areFunctionsDisallowedByNonAdminUser_isNotAdminUser_returnTrue()
141 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_RNDIS)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()186 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in displayRefresh_ncmEnabled_checksSwitches()265 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in onRadioButtonClicked_functionRndis_startTetheringInvoked()
105 || (!mTetheringSupported && (functions & UsbManager.FUNCTION_RNDIS) != 0)) { in areFunctionsSupported()211 || (mTetheringRestricted && ((functions & UsbManager.FUNCTION_RNDIS) != 0)); in areFunctionDisallowed()217 || (mTetheringRestrictedBySystem && ((functions & UsbManager.FUNCTION_RNDIS) != 0)) in areFunctionsDisallowedBySystem()223 return !mIsAdminUser && (functions & UsbManager.FUNCTION_RNDIS) != 0; in areFunctionsDisallowedByNonAdminUser()
80 if (connected && !mIsConnected && ((defaultFunctions == UsbManager.FUNCTION_RNDIS162 ? UsbManager.FUNCTION_RNDIS : defaultUsbFunctions); in getDefaultKey()170 if (functions == UsbManager.FUNCTION_RNDIS || functions == UsbManager.FUNCTION_NCM) { in setDefaultKey()230 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()
52 FUNCTIONS_MAP.put(UsbManager.FUNCTION_RNDIS, R.string.usb_use_tethering); in FUNCTIONS_MAP.put() argument121 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()155 if (function == UsbManager.FUNCTION_RNDIS || function == UsbManager.FUNCTION_NCM) { in onRadioButtonClicked()
125 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()139 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
82 functions |= UsbManager.FUNCTION_RNDIS; in onReceive()
933 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()2651 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2670 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2934 inOrder.verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testHandleIpConflict()2982 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testNoAddressAvailable()
1599 ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_RNDIS; in setUsbTethering()