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.java93 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 …]
DUsbBackendTest.java192 UsbManager.FUNCTION_RNDIS)).isFalse(); in areFunctionsDisallowedByNonAdminUser_isAdminUser_returnFalse()
202 UsbManager.FUNCTION_RNDIS)).isTrue(); in areFunctionsDisallowedByNonAdminUser_isNotAdminUser_returnTrue()
DUsbDetailsFunctionsControllerTest.java141 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()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java105 || (!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()
DUsbDefaultFragment.java80 if (connected && !mIsConnected && ((defaultFunctions == UsbManager.FUNCTION_RNDIS
162 ? 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()
DUsbDetailsFunctionsController.java52 FUNCTIONS_MAP.put(UsbManager.FUNCTION_RNDIS, R.string.usb_use_tethering); in FUNCTIONS_MAP.put() argument
121 pref.setChecked(UsbManager.FUNCTION_RNDIS == option); in refresh()
155 if (function == UsbManager.FUNCTION_RNDIS || function == UsbManager.FUNCTION_NCM) { in onRadioButtonClicked()
DConnectedUsbDeviceUpdater.java125 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
139 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
DUsbConnectionBroadcastReceiver.java82 functions |= UsbManager.FUNCTION_RNDIS; in onReceive()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java933 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()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1599 ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_RNDIS; in setUsbTethering()