Lines Matching refs:port

146         FilterPort port = getInputPort(inputName);
147 if (!port.isOpen()) {
148 port.open();
150 port.setFrame(frame);
224 throw new NullPointerException("Attempting to access input port '" + portName
229 throw new IllegalArgumentException("Unknown input port '" + portName + "' on filter "
237 throw new NullPointerException("Attempting to access output port '" + portName
242 throw new IllegalArgumentException("Unknown output port '" + portName + "' on filter "
250 if (mLogVerbose) Log.v(TAG, "Default-setting output Frame timestamp on port " + name + " to " + mCurrentTimestamp);
260 if (mLogVerbose) Log.v(TAG, "Default-setting current timestamp from input port " + name + " to " + mCurrentTimestamp);
272 * Transfers any frame from an input port to its destination. This is useful to force a
294 * Adds an input port to the filter. You should call this from within setupPorts, if your
299 * @param name the name of the input port
306 * Adds an input port to the filter. You should call this from within setupPorts, if your
310 * @param name the name of the input port
314 InputPort port = new StreamPort(this, name);
315 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port);
316 mInputPorts.put(name, port);
317 port.setPortFormat(formatMask);
321 * Adds an output port to the filter with a fixed output format. You should call this from
326 * @param name the name of the output port
327 * @param format the fixed output format of this port
330 OutputPort port = new OutputPort(this, name);
331 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port);
332 port.setPortFormat(format);
333 mOutputPorts.put(name, port);
337 * Adds an output port to the filter. You should call this from within setupPorts, if your
339 * particular port, depends on the format of an input port. You MUST also override
341 * filter will output for a given input. If the output format of your filter port does not
344 * @param outputName the name of the output port
345 * @param inputName the name of the input port, that this output depends on
348 OutputPort port = new OutputPort(this, outputName);
349 if (mLogVerbose) Log.v(TAG, "Filter " + this + " adding " + port);
350 port.setBasePort(getInputPort(inputName));
351 mOutputPorts.put(outputName, port);
361 // Create port for this input
372 // Add port
384 // Create port for this input
393 // Add port
403 * input port. Note, that setting this to false, does not block a new frame from coming in
405 * @param portName the name of the input port.
406 * @param waits true, if the filter should wait for a frame on this port.
413 * Specifies whether the filter should not be scheduled until the output port is free, i.e.
415 * @param portName the name of the output port.
416 * @param waits true, if the filter should wait for the port to become free.
535 FilterPort port = getInputPort(inputName);
536 if (!port.isOpen()) {
537 port.open();
539 port.pushFrame(frame);
572 throw new RuntimeException("No value specified for final input port '"
620 if (mLogVerbose) Log.v(TAG, "Setting immediate value " + value + " for port " + name + "!");
621 FilterPort port = getInputPort(name);
622 port.open();
623 port.setFrame(SimpleFrame.wrapObject(value, null));
636 // class of the input port here
664 for (FilterPort port : mInputPorts.values()) {
665 if (!port.isReady()) {
666 if (mLogVerbose) Log.v(TAG, "Input condition not met: " + port + "!");
674 for (FilterPort port : mOutputPorts.values()) {
675 if (!port.isReady()) {
676 if (mLogVerbose) Log.v(TAG, "Output condition not met: " + port + "!");
696 if (mLogVerbose) Log.v(TAG, "Filter " + this + " must close due to port " + inputPort);
702 if (mLogVerbose) Log.v(TAG, "Filter " + this + " must close due to port " + outputPort);