Searched refs:setCurrentFunctions (Results 1 – 7 of 7) sorted by relevance
196 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp()214 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp()236 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp()292 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()328 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()340 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onTetheringFailed_resetPreviousFunctions()
85 mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); in onPreferenceClick()86 mUsbBackend.setCurrentFunctions(previousFunctions); in onPreferenceClick()
161 mUsbBackend.setCurrentFunctions(function); in onRadioButtonClicked()190 mUsbBackend.setCurrentFunctions(mPreviousFunction); in onTetheringFailed()
91 public void setCurrentFunctions(long functions) { in setCurrentFunctions() method in UsbBackend92 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
904 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering()917 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareUsbTethering()920 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()2118 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn()2368 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering()2549 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2561 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2566 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2608 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2616 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering()[all …]
1603 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering()1616 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
1465 manager.setCurrentFunctions(UsbManager.usbFunctionsFromString(function)); in writeUsbConfigurationOption()