Searched refs:areFunctionsSupported (Results 1 – 6 of 6) sorted by relevance
107 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_allAllowed_shouldCreatePrefs()122 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_disconnected_shouldDisable()131 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()132 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()133 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_PTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()134 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_RNDIS)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()146 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_mtpEnabled_shouldCheckSwitches()159 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_accessoryEnabled_shouldCheckSwitches()172 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_ncmEnabled_checksSwitches()185 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in onClickMtp_noneEnabled_shouldEnableMtp()[all …]
169 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isFalse(); in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()182 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isTrue(); in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
131 if (mUsbBackend.areFunctionsSupported(option)) { in getCandidates()220 final boolean isSupported = mUsbBackend.areFunctionsSupported(option); in refresh()
64 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()
116 if (mUsbBackend.areFunctionsSupported(option)) { in refresh()
99 public boolean areFunctionsSupported(long functions) { in areFunctionsSupported() method in UsbBackend