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.java100 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()
DUsbDetailsFunctionsControllerTest.java138 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MIDI)).thenReturn(true); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
148 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DConnectedUsbDeviceUpdater.java129 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
143 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
DUsbConnectionBroadcastReceiver.java79 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.java104 if ((!mMidiSupported && (functions & UsbManager.FUNCTION_MIDI) != 0) in areFunctionsSupported()