Searched refs:FUNCTION_MIDI (Results 1 – 6 of 6) sorted by relevance
100 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in getDefaultKey_isMidi_shouldReturnMidi()102 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in getDefaultKey_isMidi_shouldReturnMidi()133 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in setDefaultKey_isMidi_shouldSetMidi()134 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in setDefaultKey_isMidi_shouldSetMidi()261 UsbManager.FUNCTION_MIDI, POWER_ROLE_SINK, DATA_ROLE_DEVICE, in onPause_receivedMidi_shouldSetMidi()263 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()267 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()268 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()
138 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()148 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
129 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()143 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
79 functions |= UsbManager.FUNCTION_MIDI; in onReceive()
53 FUNCTIONS_MAP.put(UsbManager.FUNCTION_MIDI, R.string.usb_use_MIDI); in FUNCTIONS_MAP.put() argument
104 if ((!mMidiSupported && (functions & UsbManager.FUNCTION_MIDI) != 0) in areFunctionsSupported()