Home
last modified time | relevance | path

Searched refs:areFunctionsSupported (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java107 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 …]
DUsbBackendTest.java169 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isFalse(); in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()
182 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isTrue(); in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragment.java131 if (mUsbBackend.areFunctionsSupported(option)) { in getCandidates()
220 final boolean isSupported = mUsbBackend.areFunctionsSupported(option); in refresh()
DUsbDetailsTranscodeMtpController.java64 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()
DUsbDetailsFunctionsController.java116 if (mUsbBackend.areFunctionsSupported(option)) { in refresh()
DUsbBackend.java99 public boolean areFunctionsSupported(long functions) { in areFunctionsSupported() method in UsbBackend