Home
last modified time | relevance | path

Searched refs:constraint (Results 1 – 6 of 6) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DDependencyGraph.java101 Constraint constraint = new Constraint(type, view, parentView); in DependencyGraph() local
102 view.dependsOn.add(constraint); in DependencyGraph()
103 parentView.dependedOnBy.add(constraint); in DependencyGraph()
117 Constraint constraint = new Constraint(type, view, target); in DependencyGraph() local
118 view.dependsOn.add(constraint); in DependencyGraph()
119 target.dependedOnBy.add(constraint); in DependencyGraph()
188 for (Constraint constraint : view.dependedOnBy) { in findBackwards()
189 if (vertical && !constraint.type.verticalEdge) { in findBackwards()
191 } else if (!vertical && !constraint.type.horizontalEdge) { in findBackwards()
195 assert constraint.to == view; in findBackwards()
[all …]
DConstraintPainter.java85 private static void paintConstraint(IGraphics graphics, Constraint constraint, in paintConstraint() argument
87 ViewData source = constraint.from; in paintConstraint()
88 ViewData target = constraint.to; in paintConstraint()
99 paintConstraint(graphics, constraint.type, sourceNode, sourceBounds, targetNode, in paintConstraint()
159 for (Constraint constraint : constraints) { in paintConstraints()
160 if (constraint.type == ALIGN_BASELINE) { in paintConstraints()
163 if (c.type == ALIGN_BOTTOM && c.to.node == constraint.to.node) { in paintConstraints()
170 for (Constraint constraint : constraints) { in paintConstraints()
173 if (mutableConstraintSet.contains(constraint)) { in paintConstraints()
174 paintConstraint(graphics, constraint, mutableConstraintSet); in paintConstraints()
[all …]
DGuidelinePainter.java154 String constraint = m.getConstraint(false /* generateId */); in showMatch() local
155 String description = constraint.replace(NEW_ID_PREFIX, "").replace(ID_PREFIX, ""); in showMatch()
182 for (Constraint constraint : cycle) { in paintCycle()
183 assert constraint.from.node == from; in paintCycle()
184 to = constraint.to.node; in paintCycle()
DGuidelineHandler.java598 private void applyConstraint(INode n, String constraint) { in applyConstraint() argument
599 assert constraint.contains("=") : constraint; in applyConstraint()
600 String name = constraint.substring(0, constraint.indexOf('=')); in applyConstraint()
601 String value = constraint.substring(constraint.indexOf('=') + 1); in applyConstraint()
681 for (Constraint constraint : view.dependedOnBy) { in removeCycles()
685 constraint.from.node.setAttribute(ANDROID_URI, constraint.type.name, null); in removeCycles()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DParameter.java237 Constraint constraint = Constraint.get(s); in Parameter() local
239 constraintSet = EnumSet.of(constraint); in Parameter()
242 constraintSet.add(constraint); in Parameter()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DRelativeLayoutConversionHelper.java286 for (Pair<String, String> constraint : view.getHorizConstraints()) { in createAttachments()
288 namespace, constraint.getFirst(), constraint.getSecond()); in createAttachments()
290 for (Pair<String, String> constraint : view.getVerticalConstraints()) { in createAttachments()
292 namespace, constraint.getFirst(), constraint.getSecond()); in createAttachments()