Searched refs:FUNCTION_RNDIS (Results 1 – 10 of 10) sorted by relevance
94 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in getDefaultKey_isRndis_shouldReturnRndis()96 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isRndis_shouldReturnRndis()111 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isNcm_returnsRndis()151 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in setDefaultKey_functionRndis_startTetheringInvoked()186 mFragment.mCurrentFunctions = UsbManager.FUNCTION_RNDIS; in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()190 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onTetheringStarted_currentFunctionsIsRndis_setsRndisAsDefaultUsbFunctions()207 UsbManager.FUNCTION_RNDIS, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedRndis_shouldSetRndis()211 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()212 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_RNDIS); in onPause_receivedRndis_shouldSetRndis()277 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_RNDIS); in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked()[all …]
134 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_RNDIS)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()179 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in displayRefresh_ncmEnabled_checksSwitches()257 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in onRadioButtonClicked_functionRndis_startTetheringInvoked()
192 UsbManager.FUNCTION_RNDIS)).isFalse(); in areFunctionsDisallowedByNonAdminUser_isAdminUser_returnFalse()202 UsbManager.FUNCTION_RNDIS)).isTrue(); in areFunctionsDisallowedByNonAdminUser_isNotAdminUser_returnTrue()
77 if (connected && !mIsConnected && (defaultFunctions == UsbManager.FUNCTION_RNDIS159 ? UsbManager.FUNCTION_RNDIS : defaultUsbFunctions); in getDefaultKey()167 if (functions == UsbManager.FUNCTION_RNDIS || functions == UsbManager.FUNCTION_NCM) { in setDefaultKey()224 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()
101 || (!mTetheringSupported && (functions & UsbManager.FUNCTION_RNDIS) != 0)) { in areFunctionsSupported()203 || (mTetheringRestricted && ((functions & UsbManager.FUNCTION_RNDIS) != 0)); in areFunctionDisallowed()209 || (mTetheringRestrictedBySystem && ((functions & UsbManager.FUNCTION_RNDIS) != 0)); in areFunctionsDisallowedBySystem()214 return !mIsAdminUser && (functions & UsbManager.FUNCTION_RNDIS) != 0; in areFunctionsDisallowedByNonAdminUser()
52 FUNCTIONS_MAP.put(UsbManager.FUNCTION_RNDIS, R.string.usb_use_tethering); in FUNCTIONS_MAP.put() argument120 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()153 if (function == UsbManager.FUNCTION_RNDIS || function == UsbManager.FUNCTION_NCM) { in onRadioButtonClicked()
126 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()138 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
73 functions |= UsbManager.FUNCTION_RNDIS; in onReceive()
851 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()2155 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2172 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2371 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testHandleIpConflict()2413 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testNoAddressAvailable()
1432 ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_RNDIS; in setUsbTethering()