Home
last modified time | relevance | path

Searched refs:portNumber (Results 1 – 10 of 10) 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.java135 public MidiInputPort openInputPort(int portNumber) { in openInputPort() argument
141 FileDescriptor fd = mDeviceServer.openInputPort(token, portNumber); in openInputPort()
145 return new MidiInputPort(mDeviceServer, token, fd, portNumber); in openInputPort()
161 public MidiOutputPort openOutputPort(int portNumber) { in openOutputPort() argument
167 FileDescriptor fd = mDeviceServer.openOutputPort(token, portNumber); in openOutputPort()
171 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.java102 FileDescriptor fd, int portNumber) { in MidiOutputPort() argument
105 mPortNumber = portNumber; in MidiOutputPort()
111 /* package */ MidiOutputPort(FileDescriptor fd, int portNumber) { in MidiOutputPort() argument
112 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/
Damidi.cpp244 static media_status_t AMIDI_openPort(const AMidiDevice *device, int32_t portNumber, int type, in AMIDI_openPort() argument
253 ? device->server->openOutputPort(portToken, portNumber, &ufd) in AMIDI_openPort()
254 : device->server->openInputPort(portToken, portNumber, &ufd); in AMIDI_openPort()
294 media_status_t AMIDI_API AMidiOutputPort_open(const AMidiDevice *device, int32_t portNumber, in AMidiOutputPort_open() argument
296 return AMIDI_openPort(device, portNumber, PORTTYPE_OUTPUT, (AMIDI_Port**)outOutputPortPtr); in AMidiOutputPort_open()
371 media_status_t AMIDI_API AMidiInputPort_open(const AMidiDevice *device, int32_t portNumber, in AMidiInputPort_open() argument
373 return AMIDI_openPort(device, portNumber, PORTTYPE_INPUT, (AMIDI_Port**)outInputPortPtr); in AMidiInputPort_open()
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h153 media_status_t AMIDI_API AMidiOutputPort_open(const AMidiDevice *device, int32_t portNumber,
200 media_status_t AMIDI_API AMidiInputPort_open(const AMidiDevice *device, int32_t portNumber,
/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()