/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | EditTextRule.java | 26 import com.android.ide.common.api.INode; 40 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 45 INode focus = findFocus(findRoot(parent)); in onCreate() 64 final @NonNull INode selectedNode) { in addContextMenuActions() 74 @NonNull List<? extends INode> selectedNodes, in addContextMenuActions() 79 public void handle(@NonNull INode node) { in addContextMenuActions() 80 INode focus = findFocus(findRoot(node)); in addContextMenuActions() 98 private static boolean hasFocus(INode node) { in hasFocus() 99 INode focus = findFocus(node); in hasFocus() 108 private static INode findRoot(INode node) { in findRoot() [all …]
|
D | TableLayoutRule.java | 25 import com.android.ide.common.api.INode; 54 protected boolean isVertical(INode node) { in isVertical() 65 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() 76 final @NonNull INode selectedNode) { in addContextMenuActions() 83 @NonNull List<? extends INode> selectedNodes, in addContextMenuActions() 86 final INode node = selectedNode; in addContextMenuActions() 87 INode newRow = node.appendChild(FQCN_TABLE_ROW); in addContextMenuActions() 97 final @NonNull INode parentNode, in addLayoutActions() 98 final @NonNull List<? extends INode> children) { in addLayoutActions() 107 List<RuleAction> actions, final INode parentNode, in addTableLayoutActions() [all …]
|
D | TableRowRule.java | 23 import com.android.ide.common.api.INode; 36 protected boolean isVertical(INode node) { in isVertical() 46 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() 56 final @NonNull INode parentNode, in addLayoutActions() 57 final @NonNull List<? extends INode> children) { in addLayoutActions() 64 INode grandParent = parentNode.getParent(); in addLayoutActions() 73 public DropFeedback onResizeBegin(@NonNull INode child, @NonNull INode parent, in onResizeBegin()
|
D | RelativeLayoutRule.java | 47 import com.android.ide.common.api.INode; 93 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() 116 private void addAttr(String propertyName, INode childNode, List<String> infos) { in addAttr() 131 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() 132 @NonNull List<? extends INode> childNodes, @Nullable Object view) { in paintSelectionFeedback() 150 public DropFeedback onDropEnter(@NonNull INode targetNode, @Nullable Object targetView, in onDropEnter() 157 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() 175 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropLeave() 180 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() 193 public void handle(@NonNull INode n) { in onDropped() [all …]
|
D | PropertyCallback.java | 22 import com.android.ide.common.api.INode; 33 private final List<? extends INode> mTargetNodes; 48 public PropertyCallback(List<? extends INode> targetNodes, String undoLabel, in PropertyCallback() 59 public void action(@NonNull RuleAction action, @NonNull List<? extends INode> selectedNodes, in action() 67 final List<? extends INode> nodes = selectedNodes; in action() 70 public void handle(@NonNull INode n) { in action() 71 for (INode targetNode : nodes) { in action()
|
D | BaseLayoutRule.java | 68 import com.android.ide.common.api.INode; 109 protected final RuleAction createMarginAction(final INode parentNode, in createMarginAction() 110 final List<? extends INode> children) { in createMarginAction() 112 final List<? extends INode> targets = children == null || children.size() == 0 ? in createMarginAction() 115 final INode first = targets.get(0); in createMarginAction() 120 @NonNull List<? extends INode> selectedNodes, in createMarginAction() 125 public void handle(@NonNull INode n) { in createMarginAction() 136 for (INode child : targets) { in createMarginAction() 155 protected final RuleAction createGravityAction(final List<? extends INode> targets, final in createGravityAction() 158 final INode first = targets.get(0); in createGravityAction() [all …]
|
D | FrameLayoutRule.java | 31 import com.android.ide.common.api.INode; 55 public DropFeedback onDropEnter(@NonNull INode targetNode, @Nullable Object targetView, in onDropEnter() 63 public void paint(@NonNull IGraphics gc, @NonNull INode node, in onDropEnter() 72 INode targetNode, 119 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, 127 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements, 133 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, 148 public void handle(@NonNull INode node) { 154 INode newChild = targetNode.appendChild(fqcn); 168 final @NonNull INode parentNode, [all …]
|
D | ScrollViewRule.java | 32 import com.android.ide.common.api.INode; 44 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() 55 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 63 INode linear = node.appendChild(FQCN_LINEAR_LAYOUT); in onCreate() 69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() 83 INode targetNode, in drawFeedback()
|
D | HorizontalScrollViewRule.java | 32 import com.android.ide.common.api.INode; 44 public void onChildInserted(@NonNull INode child, @NonNull INode parent, in onChildInserted() 55 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 62 INode linearLayout = node.appendChild(FQCN_LINEAR_LAYOUT); in onCreate() 69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() 83 INode targetNode, in drawFeedback()
|
D | LinearLayoutRule.java | 44 import com.android.ide.common.api.INode; 98 private String getCurrentOrientation(final INode node) { in getCurrentOrientation() 111 protected boolean isVertical(INode node) { in isVertical() 129 final @NonNull INode parentNode, in addLayoutActions() 130 final @NonNull List<? extends INode> children) { in addLayoutActions() 175 @NonNull List<? extends INode> selectedNodes, in addLayoutActions() 180 public void handle(@NonNull INode n) { in addLayoutActions() 194 for (INode child : children) { in addLayoutActions() 206 children.toArray(new INode[children.size()])); in addLayoutActions() 226 private void distributeWeights(INode parentNode, INode[] targets) { in distributeWeights() [all …]
|
D | AbsoluteLayoutRule.java | 31 import com.android.ide.common.api.INode; 50 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() 61 public DropFeedback onDropEnter(@NonNull INode targetNode, @Nullable Object targetView, in onDropEnter() 70 public void paint(@NonNull IGraphics gc, @NonNull INode node, in onDropEnter() 83 INode targetNode, in drawFeedback() 134 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() 144 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropLeave() 150 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() 165 public void handle(@NonNull INode node) { in onDropped() 174 INode newChild = targetNode.appendChild(fqcn); in onDropped() [all …]
|
D | TabHostRule.java | 31 import com.android.ide.common.api.INode; 44 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 56 INode linear = node.appendChild(FQCN_LINEAR_LAYOUT); in onCreate() 62 INode tab = linear.appendChild(FQCN_TAB_WIDGET); in onCreate() 67 INode frame = linear.appendChild(FQCN_FRAME_LAYOUT); in onCreate() 73 INode child = frame.appendChild(FQCN_LINEAR_LAYOUT); in onCreate()
|
D | DialerFilterRule.java | 27 import com.android.ide.common.api.INode; 37 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 44 INode hint = node.appendChild(FQCN_EDIT_TEXT); in onCreate() 49 INode primary = node.appendChild(FQCN_EDIT_TEXT); in onCreate()
|
D | ResizeState.java | 22 import com.android.ide.common.api.INode; 37 public final INode node; 42 public final INode layout; 94 ResizeState(BaseLayoutRule rule, INode layout, Object layoutView, INode node) { in ResizeState()
|
D | SlidingDrawerRule.java | 29 import com.android.ide.common.api.INode; 40 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 57 INode handle = node.appendChild(SdkConstants.FQCN_BUTTON); in onCreate() 62 INode content = node.appendChild(SdkConstants.FQCN_LINEAR_LAYOUT); in onCreate()
|
D | RadioGroupRule.java | 26 import com.android.ide.common.api.INode; 36 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate() 42 INode handle = node.appendChild(SdkConstants.FQCN_RADIO_BUTTON); in onCreate()
|
D | QuickContactBadgeRule.java | 19 import com.android.ide.common.api.INode; 28 public void onCreate(@NonNull INode node, @NonNull INode parent, in onCreate()
|
D | GridLayoutRule.java | 43 import com.android.ide.common.api.INode; 157 final @NonNull INode parentNode, in addLayoutActions() 158 final @NonNull List<? extends INode> children) { in addLayoutActions() 185 @NonNull List<? extends INode> selectedNodes, in addLayoutActions() 190 public void handle(@NonNull INode n) { in addLayoutActions() 274 private String getCurrentOrientation(final INode node) { in getCurrentOrientation() 283 public DropFeedback onDropEnter(@NonNull INode targetNode, @Nullable Object targetView, in onDropEnter() 291 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() 305 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() 327 INode newChild; in onDropped() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/relative/ |
D | DeletionHandlerTest.java | 21 import com.android.ide.common.api.INode; 72 INode layout = button2.getParent(); in testSimple() 73 List<INode> deletedNodes = Collections.<INode>singletonList(button2); in testSimple() 74 List<INode> movedNodes = Collections.<INode>emptyList(); in testSimple() 204 INode layout = button7.getParent(); in testTransitive() 205 List<INode> deletedNodes = Arrays.<INode>asList(button7, checkBox); in testTransitive() 206 List<INode> movedNodes = Collections.<INode>emptyList(); in testTransitive() 324 INode layout = button1.getParent(); in testCenter() 325 List<INode> deletedNodes = Collections.<INode>singletonList(button1); in testCenter() 326 List<INode> movedNodes = Collections.<INode>emptyList(); in testCenter() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
D | DeletionHandler.java | 31 import com.android.ide.common.api.INode; 32 import com.android.ide.common.api.INode.IAttribute; 50 private final INode mLayout; 51 private final INode[] mChildren; 52 private final List<INode> mDeleted; 54 private final Map<String, INode> mNodeMap; 55 private final List<INode> mMoved; 64 public DeletionHandler(@NonNull List<INode> deleted, @NonNull List<INode> moved, in DeletionHandler() 65 @NonNull INode layout) { in DeletionHandler() 72 for (INode child : mChildren) { in DeletionHandler() [all …]
|
D | DependencyGraph.java | 27 import com.android.ide.common.api.INode; 28 import com.android.ide.common.api.INode.IAttribute; 59 private final Map<INode, ViewData> mNodeToView = new HashMap<INode, ViewData>(); 62 DependencyGraph(INode layout) { in DependencyGraph() 63 INode[] nodes = layout.getChildren(); in DependencyGraph() 80 for (INode child : nodes) { in DependencyGraph() 145 public ViewData getView(INode node) { in getView() 160 public Set<INode> dependsOn(Collection<? extends INode> nodes, boolean vertical) { in dependsOn() 166 for (INode node : nodes) { in dependsOn() 173 Set<INode> dependents = new HashSet<INode>(reachable.size()); in dependsOn() [all …]
|
D | GuidelinePainter.java | 31 import com.android.ide.common.api.INode; 49 public void paint(@NonNull IGraphics gc, @NonNull INode node, @NonNull DropFeedback feedback) { in paint() 52 for (INode dragged : state.mDraggedNodes) { in paint() 60 Set<INode> horizontalDeps = state.mHorizontalDeps; in paint() 61 Set<INode> verticalDeps = state.mVerticalDeps; in paint() 62 Set<INode> deps = new HashSet<INode>(horizontalDeps.size() + verticalDeps.size()); in paint() 67 for (INode n : deps) { in paint() 171 INode from = cycle.get(0).from.node; in paintCycle() 177 INode to = null; in paintCycle()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SelectionOverlay.java | 21 import com.android.ide.common.api.INode; 102 parent, Collections.<INode>emptyList(), root.getViewObject()); in paint() 117 parent, Collections.<INode>emptyList(), root.getViewObject()); in paint() 124 INode parent = node.getParent(); in paintHints() 162 Set<INode> parents = new HashSet<INode>(); in paintSelectionFeedback() 163 for (INode node : nodes) { in paintSelectionFeedback() 164 INode parent = node.getParent(); in paintSelectionFeedback() 171 for (INode parent : parents) { in paintSelectionFeedback() 172 List<INode> children = new ArrayList<INode>(); in paintSelectionFeedback() 173 for (INode node : nodes) { in paintSelectionFeedback() [all …]
|
D | DynamicContextMenu.java | 32 import com.android.ide.common.api.INode; 165 List<INode> nodes = new ArrayList<INode>(selections.size()); in populateDynamicContextMenu() 187 private List<IContributionItem> getMenuItems(List<INode> nodes) { in getMenuItems() 188 Map<INode, List<RuleAction>> allActions = new HashMap<INode, List<RuleAction>>(); in getMenuItems() 189 for (INode node : nodes) { in getMenuItems() 224 INode parent = selection.get(0).getNode().getParent(); in insertParentItems() 316 private Set<String> computeApplicableActionIds(Map<INode, List<RuleAction>> actions) { in computeApplicableActionIds() argument 322 for (Map.Entry<INode, List<RuleAction>> entry : actions.entrySet()) { in computeApplicableActionIds() 396 final List<INode> nodes, final String defaultId) { in createContributionItem() 412 private Action createToggleAction(final RuleAction action, final List<INode> nodes) { in createToggleAction() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | AbsoluteLayoutRuleTest.java | 21 import com.android.ide.common.api.INode; 28 protected INode dragInto(Rect dragBounds, Point dragPoint, int insertIndex, int currentIndex, in dragInto() 30 INode layout = TestNode.create("android.widget.AbsoluteLayout").id("@+id/AbsoluteLayout01") in dragInto() 46 INode inserted = dragInto( in testDragMiddle()
|