Lines Matching refs:graph

37  * A graph of Filter nodes.
40 * ports. Every filter belongs to exactly one graph and cannot be moved to another graph.
42 * FilterGraphs may contain sub-graphs that are dependent on the parent graph. These are typically
43 * used when inserting sub-graphs into MetaFilters. When a parent graph is torn down so are its
44 * sub-graphs. The same applies to flushing frames of a graph.
50 /** The context that this graph lives in */
59 /** The GraphRunner currently attached to this graph */
62 /** The set of sub-graphs of this graph */
65 /** The parent graph of this graph, or null it this graph is a root graph. */
77 * Creates a new builder for specifying a graph structure.
78 * @param context The context the graph will live in.
85 * Add a filter to the graph.
87 * Adds the specified filter to the set of filters of this graph. The filter must not be in
88 * the graph already, and the filter's name must be unique within the graph.
90 * @param filter the filter to add to the graph.
91 * @throws IllegalArgumentException if the filter is in the graph already, or its name is
97 + "is in the graph already!");
107 * Adds a variable to the graph.
141 * The filters specified must have been previously added to the graph builder.
162 * The filters specified must have been previously added to the graph builder.
184 * Builds the graph and checks signatures.
186 * @return The new graph instance.
194 * Builds the sub-graph and checks signatures.
196 * @param parentGraph the parent graph of the built sub-graph.
197 * @return The new graph instance.
201 throw new NullPointerException("Parent graph must be non-null!");
266 * Builds the graph without checking signatures.
267 * If parent is non-null, build a sub-graph of the specified parent.
269 * @return The new graph instance.
272 FilterGraph graph = new FilterGraph(mContext, parent);
273 graph.mFilterMap = mFilterMap;
274 graph.mAllFilters = mFilterMap.values().toArray(new Filter[0]);
276 filterEntry.getValue().insertIntoFilterGraph(graph);
278 return graph;
306 * Attach the graph and its subgraphs to a custom GraphRunner.
308 * Call this if you want the graph to be executed by a specific GraphRunner. You must call
312 * @param runner The GraphRunner instance that should execute this graph.
330 * Forcibly tear down a filter graph.
332 * Call this to release any resources associated with the filter graph, its filters and any of
333 * its sub-graphs. This method must not be called if the graph (or any sub-graph) is running.
335 * You may no longer access this graph instance or any of its subgraphs after calling this
338 * Tearing down of sub-graphs is not supported. You must tear down the root graph, which will
341 * @throws IllegalStateException if the graph is still running.
342 * @throws RuntimeException if you attempt to tear down a sub-graph.
347 throw new RuntimeException("Attempting to tear down sub-graph!");
360 * Returns the context of the graph.
362 * @return the MffContext instance that this graph is bound to.
429 * documentation for details. Views may be bound only if the graph is not running.
459 * Convenience method to run the graph.
461 * Creates a new runner for this graph in the specified mode and executes it. Returns the
464 * @throws IllegalStateException if the graph is already running.
475 * Returns the GraphRunner for this graph.
478 * graph.
480 * @return the GraphRunner instance for this graph.
491 * Returns whether the graph is currently running.
493 * @return true if the graph is currently running.
527 * Wipes the filter references in this graph, so that they may be collected.
563 throw new IllegalStateException("Attempting to modify running graph!");