Home
last modified time | relevance | path

Searched refs:portNumber (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java133 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 …]
DMidiDevice.java144 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()
DMidiDeviceStatus.java77 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()
DMidiOutputPort.java95 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()
DMidiInputPort.java51 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()
DIMidiDeviceServer.aidl24 FileDescriptor openInputPort(IBinder token, int portNumber); in openInputPort() argument
25 FileDescriptor openOutputPort(IBinder token, int portNumber); in openOutputPort() argument
DMidiDeviceInfo.java161 PortInfo(int type, int portNumber, String name) { in PortInfo() argument
163 mPortNumber = portNumber; in PortInfo()
/frameworks/base/media/native/midi/
Dmidi.cpp103 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()
Dmidi.h93 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/
DNativeMidi.java118 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/
Dnativemidi-jni.cpp28 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/
DPolicy.java460 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()