Home
last modified time | relevance | path

Searched refs:inputPort (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java151 OutputPortClient(IBinder token, MidiInputPort inputPort) { in OutputPortClient() argument
153 mInputPort = inputPort; in OutputPortClient()
247 MidiInputPort inputPort = new MidiInputPort(pair[0], portNumber);
256 dispatcher.getSender().connect(inputPort);
262 mInputPorts.add(inputPort);
263 OutputPortClient client = new OutputPortClient(token, inputPort);
268 mInputPortClients.put(inputPort, client);
279 MidiInputPort inputPort = null;
283 inputPort = client.getInputPort();
287 if (inputPort != null) {
[all …]
DMidiDevice.java66 MidiConnection(IBinder outputPortToken, MidiInputPort inputPort) { in MidiConnection() argument
67 mInputPortDeviceServer = inputPort.getDeviceServer(); in MidiConnection()
68 mInputPortToken = inputPort.getToken(); in MidiConnection()
190 public MidiConnection connectPorts(MidiInputPort inputPort, int outputPortNumber) { in connectPorts() argument
198 FileDescriptor fd = inputPort.claimFileDescriptor(); in connectPorts()
214 return new MidiConnection(token, inputPort); in connectPorts()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterGraph.java225 InputPort inputPort = outputPort.getBasePort(); in updateOutputs() local
226 if (inputPort != null) { in updateOutputs()
227 FrameFormat inputFormat = inputPort.getSourceFormat(); in updateOutputs()
240 for (InputPort inputPort : filter.getInputPorts()) { in runTypeCheckOn()
241 if (mLogVerbose) Log.v(TAG, "Type checking port " + inputPort); in runTypeCheckOn()
242 FrameFormat sourceFormat = inputPort.getSourceFormat(); in runTypeCheckOn()
243 FrameFormat targetFormat = inputPort.getPortFormat(); in runTypeCheckOn()
250 inputPort.setChecksType(false); in runTypeCheckOn()
254 inputPort.setChecksType(true); in runTypeCheckOn()
258 inputPort.setChecksType(false); in runTypeCheckOn()
DFilter.java173 InputPort inputPort = getInputPort(portName); in getInputFormat() local
174 return inputPort.getSourceFormat(); in getInputFormat()
194 for (InputPort inputPort : mInputPorts.values()) { in getNumberOfConnectedInputs()
195 if (inputPort.isConnected()) { in getNumberOfConnectedInputs()
283 for (InputPort inputPort : mInputPorts.values()) { in initProgramInputs()
284 if (inputPort.getTarget() == program) { in initProgramInputs()
285 inputPort.transfer(context); in initProgramInputs()
515 for (InputPort inputPort : mInputPorts.values()) { in clearInputs()
516 inputPort.clear(); in clearInputs()
625 for (InputPort inputPort : mInputPorts.values()) { in transferInputFrames()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerInternal.java185 public abstract void setTypeAssociation(@NonNull String inputPort, @NonNull String type); in setTypeAssociation() argument
192 public abstract void unsetTypeAssociation(@NonNull String inputPort); in unsetTypeAssociation() argument
204 public abstract void addKeyboardLayoutAssociation(@NonNull String inputPort, in addKeyboardLayoutAssociation() argument
212 public abstract void removeKeyboardLayoutAssociation(@NonNull String inputPort); in removeKeyboardLayoutAssociation() argument
DConfigurationProcessor.java100 String inputPort = parser.getAttributeValue(null, "input"); in processInputPortAssociations() local
102 if (TextUtils.isEmpty(inputPort) || TextUtils.isEmpty(displayPortStr)) { in processInputPortAssociations()
109 associations.put(inputPort, displayPort); in processInputPortAssociations()
DInputManagerService.java1756 public void addPortAssociation(@NonNull String inputPort, int displayPort) { in addPortAssociation() argument
1764 Objects.requireNonNull(inputPort); in addPortAssociation()
1766 mRuntimeAssociations.put(inputPort, displayPort); in addPortAssociation()
1777 public void removePortAssociation(@NonNull String inputPort) { in removePortAssociation() argument
1785 Objects.requireNonNull(inputPort); in removePortAssociation()
1787 mRuntimeAssociations.remove(inputPort); in removePortAssociation()
1793 public void addUniqueIdAssociation(@NonNull String inputPort, @NonNull String displayUniqueId) { in addUniqueIdAssociation() argument
1801 Objects.requireNonNull(inputPort); in addUniqueIdAssociation()
1804 mUniqueIdAssociations.put(inputPort, displayUniqueId); in addUniqueIdAssociation()
1810 public void removeUniqueIdAssociation(@NonNull String inputPort) { in removeUniqueIdAssociation() argument
[all …]
/frameworks/base/media/native/midi/include/amidi/
DAMidi.h309 ssize_t AMIDI_API AMidiInputPort_send(const AMidiInputPort *inputPort, const uint8_t *buffer,
323 ssize_t AMIDI_API AMidiInputPort_sendWithTimestamp(const AMidiInputPort *inputPort,
337 media_status_t AMIDI_API AMidiInputPort_sendFlush(const AMidiInputPort *inputPort) __INTRODUCED_IN(…
344 void AMIDI_API AMidiInputPort_close(const AMidiInputPort *inputPort) __INTRODUCED_IN(29);
/frameworks/base/media/native/midi/
Damidi.cpp384 void AMIDI_API AMidiInputPort_close(const AMidiInputPort *inputPort) { in AMidiInputPort_close() argument
385 AMIDI_closePort((AMIDI_Port*)inputPort); in AMidiInputPort_close()
397 ssize_t AMIDI_API AMidiInputPort_send(const AMidiInputPort *inputPort, const uint8_t *buffer, in AMidiInputPort_send() argument
399 return AMidiInputPort_sendWithTimestamp(inputPort, buffer, numBytes, 0); in AMidiInputPort_send()
402 ssize_t AMIDI_API AMidiInputPort_sendWithTimestamp(const AMidiInputPort *inputPort, in AMidiInputPort_sendWithTimestamp() argument
404 if (inputPort == nullptr || data == nullptr || numBytes < 0 || timestamp < 0) { in AMidiInputPort_sendWithTimestamp()
422 ssize_t numWritten = TEMP_FAILURE_RETRY(write(((AMIDI_Port*)inputPort)->ufd, writeBuffer, in AMidiInputPort_sendWithTimestamp()
439 media_status_t AMIDI_API AMidiInputPort_sendFlush(const AMidiInputPort *inputPort) { in AMidiInputPort_sendFlush() argument
440 if (inputPort == nullptr) { in AMidiInputPort_sendFlush()
446 ssize_t numWritten = TEMP_FAILURE_RETRY(write(((AMIDI_Port*)inputPort)->ufd, &opCode, in AMidiInputPort_sendFlush()
/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DInputManagerServiceTests.kt339 val inputPort = "inputPort" in setDeviceTypeAssociation_setsDeviceTypeAssociation() constant
342 localService.setTypeAssociation(inputPort, type) in setDeviceTypeAssociation_setsDeviceTypeAssociation()
344 assertThat(service.getDeviceTypeAssociations()).asList().containsExactly(inputPort, type) in setDeviceTypeAssociation_setsDeviceTypeAssociation()
350 val inputPort = "inputPort" in setAndUnsetDeviceTypeAssociation_deviceTypeAssociationIsMissing() constant
353 localService.setTypeAssociation(inputPort, type) in setAndUnsetDeviceTypeAssociation_deviceTypeAssociationIsMissing()
354 localService.unsetTypeAssociation(inputPort) in setAndUnsetDeviceTypeAssociation_deviceTypeAssociationIsMissing()
361 val inputPort = "input port" in testAddAndRemoveVirtualmKeyboardLayoutAssociation() constant
364 localService.addKeyboardLayoutAssociation(inputPort, languageTag, layoutType) in testAddAndRemoveVirtualmKeyboardLayoutAssociation()
367 localService.removeKeyboardLayoutAssociation(inputPort) in testAddAndRemoveVirtualmKeyboardLayoutAssociation()
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl177 void addPortAssociation(in String inputPort, int displayPort); in addPortAssociation() argument
180 void removePortAssociation(in String inputPort); in removePortAssociation() argument
183 void addUniqueIdAssociation(in String inputPort, in String displayUniqueId); in addUniqueIdAssociation() argument
185 void removeUniqueIdAssociation(in String inputPort); in removeUniqueIdAssociation() argument
DInputManager.java1135 public void addPortAssociation(@NonNull String inputPort, int displayPort) { in addPortAssociation() argument
1137 mIm.addPortAssociation(inputPort, displayPort); in addPortAssociation()
1152 public void removePortAssociation(@NonNull String inputPort) { in removePortAssociation() argument
1154 mIm.removePortAssociation(inputPort); in removePortAssociation()
1171 public void addUniqueIdAssociation(@NonNull String inputPort, in addUniqueIdAssociation() argument
1173 mGlobal.addUniqueIdAssociation(inputPort, displayUniqueId); in addUniqueIdAssociation()
1185 public void removeUniqueIdAssociation(@NonNull String inputPort) { in removeUniqueIdAssociation() argument
1186 mGlobal.removeUniqueIdAssociation(inputPort); in removeUniqueIdAssociation()
DInputManagerGlobal.java1277 public void addUniqueIdAssociation(@NonNull String inputPort, @NonNull String displayUniqueId) { in addUniqueIdAssociation() argument
1279 mIm.addUniqueIdAssociation(inputPort, displayUniqueId); in addUniqueIdAssociation()
1288 public void removeUniqueIdAssociation(@NonNull String inputPort) { in removeUniqueIdAssociation() argument
1290 mIm.removeUniqueIdAssociation(inputPort); in removeUniqueIdAssociation()
/frameworks/native/services/inputflinger/tests/
DFakeInputReaderPolicy.cpp124 void FakeInputReaderPolicy::addInputPortAssociation(const std::string& inputPort, in addInputPortAssociation() argument
126 mConfig.portAssociations.insert({inputPort, displayPort}); in addInputPortAssociation()
129 void FakeInputReaderPolicy::addDeviceTypeAssociation(const std::string& inputPort, in addDeviceTypeAssociation() argument
131 mConfig.deviceTypeAssociations.insert({inputPort, type}); in addDeviceTypeAssociation()
DFakeInputReaderPolicy.h57 void addInputPortAssociation(const std::string& inputPort, uint8_t displayPort);
58 void addDeviceTypeAssociation(const std::string& inputPort, const std::string& type);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFilter.java568 InputPort inputPort = targetFilter.newInputPort(inputName); in connect() local
570 outputPort.setTarget(inputPort); in connect()
573 targetFilter.onInputPortAttached(inputPort); in connect()
DSignature.java178 InputPort inputPort = filter.getConnectedInputPort(portName); in checkInputPortsConform() local
179 if (inputPort == null && portInfo.isRequired()) { in checkInputPortsConform()
DFilterGraph.java538 for (InputPort inputPort : filter.getConnectedInputPorts()) { in flushFrames()
539 inputPort.clear(); in flushFrames()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp267 const std::string& inputPort = mIdentifier.location; in configure() local
268 if (!inputPort.empty()) { in configure()
271 const auto& displayPort = ports.find(inputPort); in configure()
277 const auto& displayUniqueId = displayUniqueIds.find(inputPort); in configure()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp594 std::string inputPort = getStringElementFromJavaArray(env, portAssociations, 2 * i); in getReaderConfiguration() local
605 outConfig->portAssociations.insert({inputPort, displayPort}); in getReaderConfiguration()