Searched refs:areFunctionsSupported (Results 1 – 6 of 6) sorted by relevance
114 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_allAllowed_shouldCreatePrefs()129 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_disconnected_shouldDisable()138 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()139 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()140 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_PTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()141 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_RNDIS)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()153 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_mtpEnabled_shouldCheckSwitches()166 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_accessoryEnabled_shouldCheckSwitches()179 when(mUsbBackend.areFunctionsSupported(anyLong())).thenReturn(true); in displayRefresh_ncmEnabled_checksSwitches()192 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()
134 if (mUsbBackend.areFunctionsSupported(option)) { in getCandidates()226 final boolean isSupported = mUsbBackend.areFunctionsSupported(option); in refresh()
67 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()
117 if (mUsbBackend.areFunctionsSupported(option)) { in refresh()
103 public boolean areFunctionsSupported(long functions) { in areFunctionsSupported() method in UsbBackend