Searched refs:FUNCTION_MIDI (Results 1 – 6 of 6) sorted by relevance
101 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MIDI); in getDefaultKey_isMidi_shouldReturnMidi()103 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in getDefaultKey_isMidi_shouldReturnMidi()134 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in setDefaultKey_isMidi_shouldSetMidi()135 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in setDefaultKey_isMidi_shouldSetMidi()255 UsbManager.FUNCTION_MIDI, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedMidi_shouldSetMidi()259 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()260 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_MIDI); in onPause_receivedMidi_shouldSetMidi()
131 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()141 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
130 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()142 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
70 functions |= UsbManager.FUNCTION_MIDI; in onReceive()
53 FUNCTIONS_MAP.put(UsbManager.FUNCTION_MIDI, R.string.usb_use_MIDI); in FUNCTIONS_MAP.put() argument
100 if ((!mMidiSupported && (functions & UsbManager.FUNCTION_MIDI) != 0) in areFunctionsSupported()