Home
last modified time | relevance | path

Searched refs:FUNCTION_RNDIS (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragmentTest.java94 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 …]
DUsbDetailsFunctionsControllerTest.java134 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()
DUsbBackendTest.java192 UsbManager.FUNCTION_RNDIS)).isFalse(); in areFunctionsDisallowedByNonAdminUser_isAdminUser_returnFalse()
202 UsbManager.FUNCTION_RNDIS)).isTrue(); in areFunctionsDisallowedByNonAdminUser_isNotAdminUser_returnTrue()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java77 if (connected && !mIsConnected && (defaultFunctions == UsbManager.FUNCTION_RNDIS
159 ? 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()
DUsbBackend.java101 || (!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()
DUsbDetailsFunctionsController.java52 FUNCTIONS_MAP.put(UsbManager.FUNCTION_RNDIS, R.string.usb_use_tethering); in FUNCTIONS_MAP.put() argument
120 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()
153 if (function == UsbManager.FUNCTION_RNDIS || function == UsbManager.FUNCTION_NCM) { in onRadioButtonClicked()
DConnectedUsbDeviceUpdater.java126 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
138 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
DUsbConnectionBroadcastReceiver.java73 functions |= UsbManager.FUNCTION_RNDIS; in onReceive()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java851 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()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1432 ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_RNDIS; in setUsbTethering()