Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 46) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiDocumentNode.java145 List<UiElementNode> elements = new ArrayList<UiElementNode>(64); in getAllElements() local
147 addElements(child, elements); in getAllElements()
149 return elements; in getAllElements()
152 private static void addElements(UiElementNode node, List<UiElementNode> elements) { in addElements() argument
153 elements.add(node); in addElements()
156 addElements(child, elements); in addElements()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DFrameLayoutRule.java56 final @Nullable IDragElement[] elements) { in onDropEnter() argument
57 if (elements.length == 0) { in onDropEnter()
65 drawFeedback(gc, node, elements, feedback); in onDropEnter()
73 IDragElement[] elements,
90 Rect be = elements[0].getBounds();
97 for (IDragElement it : elements) {
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,
142 final Map<String, Pair<String, String>> idMap = getDropIdMap(targetNode, elements,
[all …]
DAbsoluteLayoutRule.java62 final @Nullable IDragElement[] elements) { in onDropEnter() argument
64 if (elements.length == 0) { in onDropEnter()
74 drawFeedback(gc, node, elements, feedback); in onDropEnter()
84 IDragElement[] elements, in drawFeedback() argument
105 Rect be = elements[0].getBounds(); in drawFeedback()
114 for (IDragElement element : elements) { in drawFeedback()
134 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
144 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropLeave() argument
150 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() argument
160 final Map<String, Pair<String, String>> idMap = getDropIdMap(targetNode, elements, in onDropped()
[all …]
DScrollViewRule.java69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); in onDropMove()
84 IDragElement[] elements, in drawFeedback() argument
93 super.drawFeedback(gc, targetNode, elements, feedback); in drawFeedback()
DHorizontalScrollViewRule.java69 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); in onDropMove()
84 IDragElement[] elements, in drawFeedback() argument
93 super.drawFeedback(gc, targetNode, elements, feedback); in drawFeedback()
DRelativeLayoutRule.java151 @Nullable IDragElement[] elements) { in onDropEnter() argument
152 return new DropFeedback(new MoveHandler(targetNode, elements, mRulesEngine), in onDropEnter()
157 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
159 if (elements == null || elements.length == 0 || feedback == null) { in onDropMove()
166 state.updateMove(feedback, elements, offsetX, offsetY, feedback.modifierMask); in onDropMove()
175 public void onDropLeave(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropLeave() argument
180 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() argument
188 final Map<String, Pair<String, String>> idMap = getDropIdMap(targetNode, elements, in onDropped()
201 for (IDragElement element : elements) { in onDropped()
DBaseLayoutRule.java257 @NonNull IDragElement[] elements) { in onPaste() argument
258 DropFeedback feedback = onDropEnter(targetNode, targetView, elements); in onPaste()
261 feedback = onDropMove(targetNode, elements, feedback, p); in onPaste()
263 onDropLeave(targetNode, elements, feedback); in onPaste()
264 onDropped(targetNode, elements, feedback, p); in onPaste()
283 IDragElement[] elements) { in onPasteBeforeChild() argument
284 DropFeedback feedback = onDropEnter(parentNode, parentView, elements); in onPasteBeforeChild()
292 feedback = onDropMove(parentNode, elements, feedback, targetP); in onPasteBeforeChild()
294 onDropLeave(parentNode, elements, feedback); in onPasteBeforeChild()
295 onDropped(parentNode, elements, feedback, targetP); in onPasteBeforeChild()
[all …]
DGridLayoutRule.java284 @Nullable IDragElement[] elements) { in onDropEnter() argument
286 IFeedbackPainter painter = GridLayoutPainter.createDropFeedbackPainter(this, elements); in onDropEnter()
291 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
305 public void onDropped(final @NonNull INode targetNode, final @NonNull IDragElement[] elements, in onDropped() argument
323 Map<String, Pair<String, String>> idMap = getDropIdMap(targetNode, elements, in onDropped()
326 for (IDragElement element : elements) { in onDropped()
637 @NonNull IDragElement[] elements) { in onPaste() argument
638 DropFeedback feedback = onDropEnter(targetNode, targetView, elements); in onPaste()
645 Map<String, Pair<String, String>> idMap = getDropIdMap(targetNode, elements, in onPaste()
648 for (IDragElement element : elements) { in onPaste()
[all …]
DAdapterViewRule.java33 @Nullable IDragElement[] elements) { in onDropEnter() argument
57 public DropFeedback onDropMove(@NonNull INode targetNode, @NonNull IDragElement[] elements, in onDropMove() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DBaseLayoutRuleTest.java42 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in createSampleElements() local
52 return elements; in createSampleElements()
57 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testCollectIds1() local
60 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements); in testCollectIds1()
70 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testCollectIds2() local
75 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements); in testCollectIds2()
109 IDragElement[] elements = createSampleElements(); in testCollectIds3() local
110 Map<String, Pair<String, String>> ids = new BaseLayoutRule().collectIds(idMap, elements); in testCollectIds3()
128 IDragElement[] elements = createSampleElements(); in testRemapIds1() local
129 baseLayout.collectIds(idMap, elements); in testRemapIds1()
[all …]
DZoomControlsRuleTest.java29 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testDoNothing() local
46 DropFeedback feedback = rule.onDropEnter(layout, null/*targetView*/, elements); in testDoNothing()
DLayoutTestBase.java75 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in dragInto() local
79 DropFeedback feedback = rule.onDropEnter(targetNode, null/*targetView*/, elements); in dragInto()
89 feedback = rule.onDropMove(targetNode, elements, feedback, dropPoint); in dragInto()
93 feedback = rule.onDropMove(targetNode, elements, feedback, secondDropPoint); in dragInto()
127 rule.onDropped(targetNode, elements, feedback, dropPoint); in dragInto()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DMoveGesture.java314 SimpleElement[] elements = null; in drop() local
320 elements = (SimpleElement[]) event.data; in drop()
324 if (elements == null || elements.length < 1) { in drop()
329 if (mCurrentDragElements != null && Arrays.equals(elements, mCurrentDragElements)) { in drop()
330 elements = mCurrentDragElements; in drop()
338 createDocumentRoot(elements); in drop()
347 final SimpleElement[] elementsFinal = elements; in drop()
349 String label = computeUndoLabel(mTargetNode, elements, event.detail); in drop()
496 SimpleElement[] elements, int detail) { in computeUndoLabel() argument
504 if (elements != null && elements.length == 1) { in computeUndoLabel()
[all …]
DSimpleElement.java165 static SimpleElement findPrimary(SimpleElement[] elements, SelectionItem primary) { in findPrimary() argument
166 if (elements == null || elements.length == 0) { in findPrimary()
170 if (elements.length == 1 || primary == null) { in findPrimary()
171 return elements[0]; in findPrimary()
174 for (SimpleElement element : elements) { in findPrimary()
180 return elements[0]; in findPrimary()
213 ArrayList<SimpleElement> elements = new ArrayList<SimpleElement>(); in parseString() local
218 elements.add(element); in parseString()
220 return elements.toArray(new SimpleElement[elements.size()]); in parseString()
DSelectionItem.java187 List<SimpleElement> elements = new ArrayList<SimpleElement>(); in getAsElements() local
193 elements.add(e); in getAsElements()
205 elements.add(e); in getAsElements()
208 return elements.toArray(new SimpleElement[elements.size()]); in getAsElements()
DOutlineDropListener.java68 final SimpleElement[] elements; in performDrop() local
72 elements = (SimpleElement[]) data; in performDrop()
79 if (elements.length == 0) { in performDrop()
123 String label = MoveGesture.computeUndoLabel(targetNode, elements, event.detail); in performDrop()
133 BaseLayoutRule.insertAt(targetNode, elements, createNew, indexFinal); in performDrop()
DDomUtilities.java102 List<Element> elements = new ArrayList<Element>(64); in getAllElements() local
103 addElements(node, elements); in getAllElements()
104 return elements; in getAllElements()
107 private static void addElements(@NonNull Node node, @NonNull List<Element> elements) { in addElements() argument
109 elements.add((Element) node); in addElements()
114 addElements(childNodes.item(i), elements); in addElements() local
580 public static boolean isContiguous(@NonNull List<Element> elements) { in isContiguous() argument
581 if (elements.size() > 1) { in isContiguous()
583 Node parent = elements.get(0).getParentNode(); in isContiguous()
587 for (Element node : elements) { in isContiguous()
[all …]
DGlobalCanvasDragInfo.java81 @NonNull SimpleElement[] elements, in startDrag()
85 mCurrentElements = elements; in startDrag()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/
DWorkingSetHelper.java87 List<?> elements = treeSelection.toList(); in getSelectedWorkingSet()
88 if (elements.size() == 1) { in getSelectedWorkingSet()
89 Object element= elements.get(0); in getSelectedWorkingSet()
110 for (Iterator<?> iterator = elements.iterator(); iterator.hasNext();) { in getSelectedWorkingSet()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DUnwrapRefactoring.java115 List<Element> elements = DomUtilities.getChildren(mContainer); in checkInitialConditions() local
116 if (elements.size() == 0) { in checkInitialConditions()
186 List<Element> elements = DomUtilities.getChildren(mContainer); in computeChanges() local
187 assert elements.size() == 1; in computeChanges()
188 Element newRoot = elements.get(0); in computeChanges()
/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/
DDdmsPlugin.java301 IConfigurationElement[] elements = findConfigElements( in start() local
304 IToolsLocator[] locators = instantiateToolsLocators(elements); in start()
333elements = findConfigElements("com.android.ide.eclipse.ddms.traceviewLauncher"); //$NON-NLS-1$ in start()
334 mTraceviewLaunchers = instantiateTraceviewLauncher(elements); in start()
437 private List<IClientAction> instantiateClientSpecificActions(IConfigurationElement[] elements) in instantiateClientSpecificActions() argument
439 if (elements == null || elements.length == 0) { in instantiateClientSpecificActions()
445 for (IConfigurationElement e : elements) { in instantiateClientSpecificActions()
851 IConfigurationElement[] elements = in getClientSpecificActions() local
854 mClientSpecificActions = instantiateClientSpecificActions(elements); in getClientSpecificActions()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtils.java157 String elements[] = key.split("/"); //$NON-NLS-1$ in appendAttribute() local
159 if (elements.length < 1) { in appendAttribute()
161 } else if (elements.length == 1) { in appendAttribute()
162 overrideAttrLocalName = elements[0]; in appendAttribute()
163 elements = null; in appendAttribute()
165 overrideAttrLocalName = elements[elements.length - 1]; in appendAttribute()
166 elements = elements[0].split(","); //$NON-NLS-1$ in appendAttribute()
174 boolean ok_element = elements != null && elements.length < 1; in appendAttribute()
175 if (!ok_element && elements != null) { in appendAttribute()
176 for (String element : elements) { in appendAttribute()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DMoveHandler.java62 public MoveHandler(INode layout, IDragElement[] elements, IClientRulesEngine rulesEngine) { in MoveHandler() argument
67 for (IDragElement element : elements) { in MoveHandler()
84 for (IDragElement element : elements) { in MoveHandler()
179 public void updateMove(DropFeedback feedback, IDragElement[] elements, in updateMove() argument
183 Rect firstBounds = elements[0].getBounds(); in updateMove()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcolor1-expected-completion45.txt2 …ector ></selector> : Required. This must be the root element. Contains one or more <item> elements.
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java288 Object targetView, IDragElement[] elements) { in callOnDropEnter() argument
294 return rule.onDropEnter(targetNode, targetView, elements); in callOnDropEnter()
312 IDragElement[] elements, in callOnDropMove() argument
320 return rule.onDropMove(targetNode, elements, feedback, where); in callOnDropMove()
336 IDragElement[] elements, in callOnDropLeave() argument
343 rule.onDropLeave(targetNode, elements, feedback); in callOnDropLeave()
357 IDragElement[] elements, in callOnDropped() argument
367 rule.onDropped(targetNode, elements, feedback, where); in callOnDropped()

12