Home
last modified time | relevance | path

Searched refs:mGraph (Results 1 – 12 of 12) sorted by relevance

/frameworks/support/coordinatorlayout/src/androidTest/java/androidx/coordinatorlayout/widget/
DDirectedAcyclicGraphTest.java36 private DirectedAcyclicGraph<TestNode> mGraph; field in DirectedAcyclicGraphTest
40 mGraph = new DirectedAcyclicGraph<>(); in setup()
46 mGraph.addNode(node); in test_addNode()
47 assertEquals(1, mGraph.size()); in test_addNode()
48 assertTrue(mGraph.contains(node)); in test_addNode()
54 mGraph.addNode(node); in test_addNodeAgain()
55 mGraph.addNode(node); in test_addNodeAgain()
57 assertEquals(1, mGraph.size()); in test_addNodeAgain()
58 assertTrue(mGraph.contains(node)); in test_addNodeAgain()
66 mGraph.addNode(node); in test_addEdge()
[all …]
/frameworks/support/coordinatorlayout/src/main/java/androidx/coordinatorlayout/widget/
DDirectedAcyclicGraph.java41 private final SimpleArrayMap<T, ArrayList<T>> mGraph = new SimpleArrayMap<>(); field in DirectedAcyclicGraph
54 if (!mGraph.containsKey(node)) { in addNode()
55 mGraph.put(node, null); in addNode()
63 return mGraph.containsKey(node); in contains()
76 if (!mGraph.containsKey(node) || !mGraph.containsKey(incomingEdge)) { in addEdge()
81 ArrayList<T> edges = mGraph.get(node); in addEdge()
85 mGraph.put(node, edges); in addEdge()
98 return mGraph.get(node); in getIncomingEdges()
110 for (int i = 0, size = mGraph.size(); i < size; i++) { in getOutgoingEdges()
111 ArrayList<T> edges = mGraph.valueAt(i); in getOutgoingEdges()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DSmartCamera.java68 private FilterGraph mGraph; field in SmartCamera
93 mGraph.getVariable("gallerySource").setValue(filePath + "/" + fileName); in runGraphOnImage()
95 mGraph.getVariable("imageName").setValue(fileName); in runGraphOnImage()
96 mGraph.getVariable("filePath").setValue(filePath); // wrong in runGraphOnImage()
112 ((WaveTriggerFilter) mGraph.getFilter("snapEffect")).trigger(); in captureImages()
113 mGraph.getVariable("startCapture").setValue(false); in captureImages()
202 mGraph.getVariable("startCapture").setValue(true); in onCreate()
206 boolean tmp = (Boolean) mGraph.getVariable("startCapture").getValue(); in onCreate()
228 mGraph.getVariable("startCapture").setValue(false); in onCreate()
263 mGraph = GraphReader.readXmlGraphResource(mContext, R.raw.camera_graph); in loadGraph()
[all …]
/frameworks/base/media/mca/effect/java/android/media/effect/
DFilterGraphEffect.java42 protected FilterGraph mGraph; field in FilterGraphEffect
71 mGraph = reader.readGraphString(graphString); in createGraph()
76 if (mGraph == null) { in createGraph()
79 mRunner = new SyncRunner(getFilterContext(), mGraph, mSchedulerClass); in createGraph()
85 Filter src = mGraph.getFilter(mInputName); in apply()
93 Filter dest = mGraph.getFilter(mOutputName); in apply()
113 mGraph.tearDown(getFilterContext()); in release()
114 mGraph = null; in release()
/frameworks/support/navigation/runtime/src/main/java/androidx/navigation/
DNavController.java70 private NavGraph mGraph; field in NavController
384 mGraph = getNavInflater().inflate(graphResId); in setGraph()
400 mGraph = graph; in setGraph()
430 if (mGraph != null && mBackStack.isEmpty()) { in onGraphCreated()
435 mGraph.navigate(null, null); in onGraphCreated()
472 Pair<NavDestination, Bundle> matchingDeepLink = mGraph.matchDeepLink(intent.getData()); in onHandleDeepLink()
501 navigate(mGraph.getStartDestination(), bundle, new NavOptions.Builder() in onHandleDeepLink()
502 .setPopUpTo(mGraph.getId(), true) in onHandleDeepLink()
519 NavGraph graph = mGraph; in onHandleDeepLink()
522 NavDestination node = i == 0 ? mGraph : graph.findNode(destinationId); in onHandleDeepLink()
[all …]
DNavDeepLinkBuilder.java56 private NavGraph mGraph; field in NavDeepLinkBuilder
86 mGraph = navController.getGraph(); in NavDeepLinkBuilder()
136 mGraph = navGraph; in setGraph()
152 if (mGraph != null) { in setDestination()
161 possibleDestinations.add(mGraph); in fillInIntent()
207 if (mGraph == null) { in createTaskStackBuilder()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DScheduler.java29 private FilterGraph mGraph; field in Scheduler
32 mGraph = graph; in Scheduler()
36 return mGraph; in getGraph()
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DGraphEnvironment.java55 private FilterGraph mGraph; field in GraphEnvironment.GraphHandle
60 mGraph = graph; in GraphHandle()
64 return mGraph; in getGraph()
70 mAsyncRunner.setGraph(mGraph); in getAsyncRunner()
77 mSyncRunner = new SyncRunner(environment, mGraph, RoundRobinScheduler.class); in getSyncRunner()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffFilterTestCase.java51 private FilterGraph mGraph; field in MffFilterTestCase
71 mGraph = graphBuilder.build(); in setUp()
72 mRunner = mGraph.getRunner(); in setUp()
98 mGraph = null; in tearDown()
105 FrameSourceFilter filter = (FrameSourceFilter) mGraph.getFilter("in_" + portName); in injectInputFrame()
119 mRunner.start(mGraph); in process()
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
DBackDropperEffect.java85 Filter replacer = mGraph.getFilter("replacer"); in BackDropperEffect()
92 Filter background = mGraph.getFilter("background"); in setParameter()
95 Filter background = mGraph.getFilter("background"); in setParameter()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DRenderingJitter.java46 private PointGraphView mGraph; field in RenderingJitter
75 mGraph.addJitterSample(msg.arg1, msg.arg2);
93 mGraph = findViewById(R.id.graph); in onCreate()
/frameworks/base/core/java/android/widget/
DRelativeLayout.java216 private final DependencyGraph mGraph = new DependencyGraph(); field in RelativeLayout
374 final DependencyGraph graph = mGraph; in sortChildren()
1011 DependencyGraph.Node node = mGraph.mKeyNodes.get(id); in getRelatedView()
1018 node = mGraph.mKeyNodes.get((rules[relation])); in getRelatedView()