Home
last modified time | relevance | path

Searched refs:setCurrentFunctions (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java202 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp()
220 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp()
242 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp()
298 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()
334 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()
363 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onTetheringFailed_resetPreviousFunctions()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsTranscodeMtpController.java87 mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); in onPreferenceClick()
88 mUsbBackend.setCurrentFunctions(previousFunctions); in onPreferenceClick()
DUsbDetailsFunctionsController.java162 mUsbBackend.setCurrentFunctions(function); in onRadioButtonClicked()
192 mUsbBackend.setCurrentFunctions(mPreviousFunction); in onTetheringFailed()
DUsbBackend.java91 public void setCurrentFunctions(long functions) { in setCurrentFunctions() method in UsbBackend
92 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java917 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering()
930 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareUsbTethering()
933 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()
2152 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn()
2404 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering()
2591 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2603 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2608 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2651 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()
2659 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering()
[all …]
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1600 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering()
1613 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java1462 manager.setCurrentFunctions(UsbManager.usbFunctionsFromString(function)); in writeUsbConfigurationOption()