Searched refs:setCurrentFunctions (Results 1 – 7 of 7) sorted by relevance
207 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp()225 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp()247 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp()303 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()339 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()392 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onTetheringFailed_resetPreviousFunctions()
87 mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); in onPreferenceClick()88 mUsbBackend.setCurrentFunctions(previousFunctions); in onPreferenceClick()
170 mUsbBackend.setCurrentFunctions(function); in handleRadioButtonClicked()208 mUsbBackend.setCurrentFunctions(mPreviousFunction); in onTetheringFailed()
91 public void setCurrentFunctions(long functions) { in setCurrentFunctions() method in UsbBackend92 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
1036 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering()1049 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareUsbTethering()1052 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()2405 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn()3093 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering()3280 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()3292 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()3297 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()3345 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTetheringLegacy()3353 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTetheringLegacy()[all …]
1881 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering()1894 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
1520 manager.setCurrentFunctions(UsbManager.usbFunctionsFromString(function)); in writeUsbConfigurationOption()