/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceServer.java | 133 int portNumber = mOutputPort.getPortNumber(); in close() local 134 mInputPortOutputPorts[portNumber] = null; in close() 135 mInputPortOpen[portNumber] = false; in close() 153 int portNumber = mInputPort.getPortNumber(); in close() local 154 MidiDispatcher dispatcher = mOutputPortDispatchers[portNumber]; in close() 158 mOutputPortOpenCount[portNumber] = openCount; in close() 187 public FileDescriptor openInputPort(IBinder token, int portNumber) { 194 if (portNumber < 0 || portNumber >= mInputPortCount) { 195 Log.e(TAG, "portNumber out of range in openInputPort: " + portNumber); 200 if (mInputPortOutputPorts[portNumber] != null) { [all …]
|
D | MidiDevice.java | 144 public MidiInputPort openInputPort(int portNumber) { in openInputPort() argument 150 FileDescriptor fd = mDeviceServer.openInputPort(token, portNumber); in openInputPort() 154 return new MidiInputPort(mDeviceServer, token, fd, portNumber); in openInputPort() 170 public MidiOutputPort openOutputPort(int portNumber) { in openOutputPort() argument 176 FileDescriptor fd = mDeviceServer.openOutputPort(token, portNumber); in openOutputPort() 180 return new MidiOutputPort(mDeviceServer, token, fd, portNumber); in openOutputPort()
|
D | MidiDeviceStatus.java | 77 public boolean isInputPortOpen(int portNumber) { in isInputPortOpen() argument 78 return mInputPortOpen[portNumber]; in isInputPortOpen() 88 public int getOutputPortOpenCount(int portNumber) { in getOutputPortOpenCount() argument 89 return mOutputPortOpenCount[portNumber]; in getOutputPortOpenCount()
|
D | MidiOutputPort.java | 95 FileDescriptor fd, int portNumber) { in MidiOutputPort() argument 98 mPortNumber = portNumber; in MidiOutputPort() 104 /* package */ MidiOutputPort(FileDescriptor fd, int portNumber) { in MidiOutputPort() argument 105 this(null, null, fd, portNumber); in MidiOutputPort()
|
D | MidiInputPort.java | 51 FileDescriptor fd, int portNumber) { in MidiInputPort() argument 57 mPortNumber = portNumber; in MidiInputPort() 62 /* package */ MidiInputPort(FileDescriptor fd, int portNumber) { in MidiInputPort() argument 63 this(null, null, fd, portNumber); in MidiInputPort()
|
D | IMidiDeviceServer.aidl | 24 FileDescriptor openInputPort(IBinder token, int portNumber); in openInputPort() argument 25 FileDescriptor openOutputPort(IBinder token, int portNumber); in openOutputPort() argument
|
D | MidiDeviceInfo.java | 161 PortInfo(int type, int portNumber, String name) { in PortInfo() argument 163 mPortNumber = portNumber; in PortInfo()
|
/frameworks/base/media/native/midi/ |
D | midi.cpp | 103 static status_t AMIDI_openPort(AMIDI_Device *device, int portNumber, int type, in AMIDI_openPort() argument 108 ? device->server->openOutputPort(portToken, portNumber, &ufd) in AMIDI_openPort() 109 : device->server->openInputPort(portToken, portNumber, &ufd); in AMIDI_openPort() 147 status_t AMIDI_openOutputPort(AMIDI_Device *device, int portNumber, in AMIDI_openOutputPort() argument 149 return AMIDI_openPort(device, portNumber, PORTTYPE_OUTPUT, (AMIDI_Port**)outputPortPtr); in AMIDI_openOutputPort() 209 status_t AMIDI_openInputPort(AMIDI_Device *device, int portNumber, AMIDI_InputPort **inputPortPtr) { in AMIDI_openInputPort() argument 210 return AMIDI_openPort(device, portNumber, PORTTYPE_INPUT, (AMIDI_Port**)inputPortPtr); in AMIDI_openInputPort()
|
D | midi.h | 93 status_t AMIDI_openOutputPort(AMIDI_Device *device, int portNumber, 128 status_t AMIDI_openInputPort(AMIDI_Device *device, int portNumber, AMIDI_InputPort **inputPortPtr);
|
/frameworks/base/media/tests/NativeMidiDemo/java/com/example/android/nativemididemo/ |
D | NativeMidi.java | 118 MidiOutputPortSelector(MidiDeviceInfo info, int portNumber) { in MidiOutputPortSelector() argument 120 mPortNumber = portNumber; in MidiOutputPortSelector() 197 int portNumber = port.getPortNumber(); 198 if (portName.length() == 0) portName = "[" + portNumber + "]"; 203 outputDevice.setOnClickListener(new MidiOutputPortSelector(info, portNumber)); 348 private native void startReadingMidi(int deviceId, int portNumber); in startReadingMidi() argument
|
/frameworks/base/media/tests/NativeMidiDemo/jni/ |
D | nativemidi-jni.cpp | 28 JNIEnv* env, jobject thiz, jint deviceId, jint portNumber); 238 JNIEnv*, jobject, jlong deviceHandle, jint portNumber) { in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi() argument 264 result = AMIDI_openOutputPort(midiDevice, portNumber, &outputPort); in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi() 266 snprintf(buffer, sizeof(buffer), "Opened port %d: token %p", portNumber, outputPort); in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/ |
D | Policy.java | 460 String portNumber = entry.getValue(); in validate() local 461 if (portNumber.getBytes(StandardCharsets.UTF_8).length > MAX_PORT_STRING_BYTES) { in validate() 462 Log.d(TAG, "PortNumber string bytes exceeded the max: " + portNumber); in validate()
|