/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceServer.java | 151 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 …]
|
D | MidiDevice.java | 66 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/ |
D | FilterGraph.java | 225 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()
|
D | Filter.java | 173 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/ |
D | InputManagerInternal.java | 185 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
|
D | ConfigurationProcessor.java | 100 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()
|
D | InputManagerService.java | 1756 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/ |
D | AMidi.h | 309 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/ |
D | amidi.cpp | 384 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/ |
D | InputManagerServiceTests.kt | 339 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/ |
D | IInputManager.aidl | 177 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
|
D | InputManager.java | 1135 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()
|
D | InputManagerGlobal.java | 1277 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/ |
D | FakeInputReaderPolicy.cpp | 124 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()
|
D | FakeInputReaderPolicy.h | 57 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/ |
D | Filter.java | 568 InputPort inputPort = targetFilter.newInputPort(inputName); in connect() local 570 outputPort.setTarget(inputPort); in connect() 573 targetFilter.onInputPortAttached(inputPort); in connect()
|
D | Signature.java | 178 InputPort inputPort = filter.getConnectedInputPort(portName); in checkInputPortsConform() local 179 if (inputPort == null && portInfo.isRequired()) { in checkInputPortsConform()
|
D | FilterGraph.java | 538 for (InputPort inputPort : filter.getConnectedInputPorts()) { in flushFrames() 539 inputPort.clear(); in flushFrames()
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 267 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/ |
D | com_android_server_input_InputManagerService.cpp | 594 std::string inputPort = getStringElementFromJavaArray(env, portAssociations, 2 * i); in getReaderConfiguration() local 605 outConfig->portAssociations.insert({inputPort, displayPort}); in getReaderConfiguration()
|