Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragmentTest.java101 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()
DUsbDetailsFunctionsControllerTest.java131 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
141 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DConnectedUsbDeviceUpdater.java130 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
142 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
DUsbConnectionBroadcastReceiver.java70 functions |= UsbManager.FUNCTION_MIDI; in onReceive()
DUsbDetailsFunctionsController.java53 FUNCTIONS_MAP.put(UsbManager.FUNCTION_MIDI, R.string.usb_use_MIDI); in FUNCTIONS_MAP.put() argument
DUsbBackend.java100 if ((!mMidiSupported && (functions & UsbManager.FUNCTION_MIDI) != 0) in areFunctionsSupported()