Searched refs:setCurrentFunctions (Results 1 – 7 of 7) sorted by relevance
195 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp()213 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp()234 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp()290 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()326 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()338 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onTetheringFailed_resetPreviousFunctions()
83 mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); in onPreferenceClick()84 mUsbBackend.setCurrentFunctions(previousFunctions); in onPreferenceClick()
90 public void setCurrentFunctions(long functions) { in setCurrentFunctions() method in UsbBackend91 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
160 mUsbBackend.setCurrentFunctions(function); in onRadioButtonClicked()189 mUsbBackend.setCurrentFunctions(mPreviousFunction); in onTetheringFailed()
861 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareNcmTethering()874 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NCM); in prepareUsbTethering()877 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in prepareUsbTethering()1693 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn()1960 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering()2140 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2152 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2157 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()2198 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_RNDIS); in testMultipleStartTethering()2205 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering()[all …]
1571 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering()1584 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
1444 manager.setCurrentFunctions(UsbManager.usbFunctionsFromString(function)); in writeUsbConfigurationOption()