/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | ViewHierarchy.java | 78 private CanvasViewInfo mLastValidViewInfoRoot; 95 private final List<CanvasViewInfo> mInvisibleParents = new ArrayList<CanvasViewInfo>(); 101 private final List<CanvasViewInfo> mInvisibleParentsReadOnly = 121 private Map<UiViewElementNode, CanvasViewInfo> mNodeToView = Collections.emptyMap(); 124 private Map<Node, CanvasViewInfo> mDomNodeToView = Collections.emptyMap(); 162 mNodeToView = new HashMap<UiViewElementNode, CanvasViewInfo>(50); in setSession() 166 Pair<CanvasViewInfo,List<Rectangle>> infos = null; in setSession() 175 infos = CanvasViewInfo.create(mergeRoot, layoutlib5); in setSession() 183 infos = CanvasViewInfo.create(mergeRoot, layoutlib5); in setSession() 188 infos = CanvasViewInfo.create(root, layoutlib5); in setSession() [all …]
|
D | CanvasAlternateSelection.java | 26 private final CanvasViewInfo mOriginatingView; 27 private final List<CanvasViewInfo> mAltViews; 34 public CanvasAlternateSelection(CanvasViewInfo originatingView, List<CanvasViewInfo> altViews) { in CanvasAlternateSelection() 43 public List<CanvasViewInfo> getAltViews() { in getAltViews() 48 public CanvasViewInfo getOriginatingView() { in getOriginatingView() 56 public CanvasViewInfo getCurrent() { in getCurrent() 64 public CanvasViewInfo getNext() { in getNext()
|
D | CanvasViewInfo.java | 70 public class CanvasViewInfo implements IPropertySource { class 82 private CanvasViewInfo mParent; 84 private final List<CanvasViewInfo> mChildren = new ArrayList<CanvasViewInfo>(); 102 private List<CanvasViewInfo> mNodeSiblings; 107 private CanvasViewInfo(CanvasViewInfo parent, String name, in CanvasViewInfo() method in CanvasViewInfo 161 public CanvasViewInfo getParent() { in getParent() 173 public List<CanvasViewInfo> getChildren() { in getChildren() 183 private CanvasViewInfo getPrimaryNodeSibling() { in getPrimaryNodeSibling() 213 public List<CanvasViewInfo> getNodeSiblings() { in getNodeSiblings() 232 public List<CanvasViewInfo> getUniqueChildren() { in getUniqueChildren() [all …]
|
D | SelectionManager.java | 175 CanvasViewInfo vi = cs.getViewInfo(); in getSelection() 190 public static TreePath getTreePath(CanvasViewInfo viewInfo) { in getTreePath() 241 Set<CanvasViewInfo> oldSelected = new HashSet<CanvasViewInfo>(); in setSelection() 250 if (seg instanceof CanvasViewInfo) { in setSelection() 251 CanvasViewInfo newVi = (CanvasViewInfo) seg; in setSelection() 276 for (CanvasViewInfo vi : oldSelected) { in setSelection() 323 CanvasViewInfo vi = mCanvas.getViewHierarchy().findViewInfoAt(p); in menuClick() 370 CanvasViewInfo vi = mCanvas.getViewHierarchy().findViewInfoAt(p); in select() 420 CanvasViewInfo vi2 = mAltSelection.getCurrent(); in select() 428 CanvasViewInfo vi2 = mAltSelection.getCurrent(); in select() [all …]
|
D | SelectionItem.java | 42 private final CanvasViewInfo mCanvasViewInfo; 61 public SelectionItem(LayoutCanvas canvas, CanvasViewInfo canvasViewInfo) { in SelectionItem() 103 public CanvasViewInfo getViewInfo() { in getViewInfo() 150 CanvasViewInfo vi = cs.getViewInfo(); in getAsText() 190 CanvasViewInfo vi = primary.getViewInfo(); in getAsElements() 202 CanvasViewInfo vi = cs.getViewInfo(); in getAsElements()
|
D | OutlinePage.java | 409 if (element instanceof CanvasViewInfo) { in createOutline() 410 UiViewElementNode key = ((CanvasViewInfo) element).getUiViewNode(); in createOutline() 423 if (a instanceof CanvasViewInfo && b instanceof CanvasViewInfo) { in createOutline() 424 UiViewElementNode keyA = ((CanvasViewInfo) a).getUiViewNode(); in createOutline() 425 UiViewElementNode keyB = ((CanvasViewInfo) b).getUiViewNode(); in createOutline() 453 CanvasViewInfo vi = getViewInfo(selection[0].getData()); in createOutline() 555 public void setModel(CanvasViewInfo rootViewInfo) { in setModel() 670 private CanvasViewInfo mRoot; 672 public void setRoot(CanvasViewInfo root) { in setRoot() 676 public CanvasViewInfo getRoot() { in getRoot() [all …]
|
D | OutlineOverlay.java | 76 CanvasViewInfo lastRoot = mViewHierarchy.getRoot(); in paint() 87 private void drawOutline(GC gc, CanvasViewInfo info) { in drawOutline() 102 for (CanvasViewInfo vi : info.getChildren()) { in drawOutline()
|
D | SelectionOverlay.java | 98 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() 113 CanvasViewInfo root = mCanvas.getViewHierarchy().getRoot(); in paint() 179 CanvasViewInfo viewInfo = viewHierarchy.findViewInfoFor((NodeProxy) parent); in paintSelectionFeedback() 190 CanvasViewInfo view = item.getViewInfo(); in paintSelection() 219 List<CanvasViewInfo> siblings = view.getNodeSiblings(); in paintSelection() 221 for (CanvasViewInfo sibling : siblings) { in paintSelection()
|
D | OutlineDragListener.java | 52 CanvasViewInfo over = getViewInfo(overTreeItem); in dragStart() 68 CanvasViewInfo viewInfo = getViewInfo(item); in dragStart() 121 private CanvasViewInfo getViewInfo(TreeItem item) { in getViewInfo()
|
D | ClipboardSupport.java | 171 CanvasViewInfo vi = cs.getViewInfo(); in deleteSelection() 173 CanvasViewInfo parent = vi.getParent(); in deleteSelection() 240 CanvasViewInfo vi = cs.getViewInfo(); in deleteSelection() 270 CanvasViewInfo lastRoot = mCanvas.getViewHierarchy().getRoot(); in pasteSelection() 281 final CanvasViewInfo target; in pasteSelection()
|
D | MarqueeGesture.java | 43 private Collection<CanvasViewInfo> mInitialSelection; 57 mInitialSelection = new ArrayList<CanvasViewInfo>(selection.size()); in MarqueeGesture()
|
D | OutlineDropListener.java | 84 CanvasViewInfo parent = OutlinePage.getViewInfo(event.item.getData()); in performDrop() 177 CanvasViewInfo parent = OutlinePage.getViewInfo(event.item.getData()); in validateDrop()
|
D | EmptyViewsOverlay.java | 82 for (CanvasViewInfo info : mViewHierarchy.getInvisibleViews()) { in paint()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | CanvasViewInfoTest.java | 89 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in normal() 97 CanvasViewInfo childView1 = rootView.getChildren().get(0); in normal() 98 CanvasViewInfo childView2 = rootView.getChildren().get(1); in normal() 135 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in showIn() 143 CanvasViewInfo includedView = rootView.getChildren().get(0); in showIn() 151 CanvasViewInfo grandChild = includedView.getChildren().get(0); in showIn() 174 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in testIncludeTag() 183 CanvasViewInfo childView1 = rootView.getChildren().get(0); in testIncludeTag() 184 CanvasViewInfo includedView = rootView.getChildren().get(1); in testIncludeTag() 216 CanvasViewInfo rootView = CanvasViewInfo.create(root, layoutlib5).getFirst(); in testNoIncludeTag() [all …]
|
D | SelectionManagerTest.java | 56 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testBasic() 107 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testSelectParent()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | NodeFactoryTest.java | 23 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 51 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testCreateCanvasViewInfo() 98 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testCreateDup() 110 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testClear()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | PropertySheetPage.java | 20 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 74 private List<CanvasViewInfo> mSelection; 136 if (next instanceof CanvasViewInfo) { in selectionChanged() 137 CanvasViewInfo info = (CanvasViewInfo) next; in selectionChanged() 160 List<CanvasViewInfo> newSelection = new ArrayList<CanvasViewInfo>(selectionCount); in selectionChanged() 164 if (next instanceof CanvasViewInfo) { in selectionChanged() 165 CanvasViewInfo info = (CanvasViewInfo) next; in selectionChanged() 186 for (CanvasViewInfo item : mSelection) { in startTrackingSelection() 197 for (CanvasViewInfo item : mSelection) { in stopTrackingSelection()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | GridLayoutConverter.java | 64 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 115 private final CanvasViewInfo mRootView; 123 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in GridLayoutConverter() 138 CanvasViewInfo layoutView = findViewForElement(mRootView, mLayout); in convertToGridLayout() 479 private CanvasViewInfo findViewForElement(CanvasViewInfo info, Element element) { in findViewForElement() 484 for (CanvasViewInfo child : info.getChildren()) { in findViewForElement() 485 CanvasViewInfo result = findViewForElement(child, element); in findViewForElement() 495 private static Element getElement(CanvasViewInfo info) { in getElement() 516 private CanvasViewInfo mInfo; 519 public View(CanvasViewInfo view, Element element) { in View() [all …]
|
D | RelativeLayoutConversionHelper.java | 66 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 109 private final CanvasViewInfo mRootView; 113 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in RelativeLayoutConversionHelper() 128 CanvasViewInfo layoutView = findViewForElement(mRootView, mLayout); in convertToRelative() 150 private List<View> analyzeLayout(CanvasViewInfo layoutView) { in analyzeLayout() 965 private CanvasViewInfo findViewForElement(CanvasViewInfo info, Element element) { in findViewForElement() 970 for (CanvasViewInfo child : info.getChildren()) { in findViewForElement() 971 CanvasViewInfo result = findViewForElement(child, element); in findViewForElement() 981 private static Element getElement(CanvasViewInfo info) { in getElement() 1305 private CanvasViewInfo mInfo; [all …]
|
D | VisualRefactoring.java | 40 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 199 if (lastSegment instanceof CanvasViewInfo) { in VisualRefactoring() 200 CanvasViewInfo viewInfo = (CanvasViewInfo) lastSegment; in VisualRefactoring() 672 if (lastSegment instanceof CanvasViewInfo) { in initElements() 673 CanvasViewInfo viewInfo = (CanvasViewInfo) lastSegment; in initElements() 767 protected List<CanvasViewInfo> getSelectedViewInfos() { in getSelectedViewInfos() 768 List<CanvasViewInfo> infos = new ArrayList<CanvasViewInfo>(); in getSelectedViewInfos() 772 if (lastSegment instanceof CanvasViewInfo) { in getSelectedViewInfos() 773 infos.add((CanvasViewInfo) lastSegment); in getSelectedViewInfos() 780 protected boolean validateNotEmpty(List<CanvasViewInfo> infos, RefactoringStatus status) { in validateNotEmpty() [all …]
|
D | VisualRefactoringAction.java | 22 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 86 if (firstElement instanceof CanvasViewInfo) { in selectionChanged()
|
D | ChangeLayoutRefactoring.java | 49 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 585 CanvasViewInfo rootView = mRootView; in convertAnyToRelative() 607 CanvasViewInfo rootView = mRootView; in convertAnyToGridLayout() 646 protected CanvasViewInfo mRootView; 649 public void setRootView(CanvasViewInfo rootView) { in setRootView()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | NodeFactory.java | 20 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 48 public NodeProxy create(CanvasViewInfo canvasViewInfo) { in create()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeLayoutRefactoringTest.java | 22 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 120 CanvasViewInfo rootView = info.mRootView; in checkRefactoring()
|
D | RefactoringTest.java | 23 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 295 CanvasViewInfo rootView = CanvasViewInfo.create(info, true /* layoutlib5 */).getFirst(); in setupTestContext() 325 protected CanvasViewInfo mRootView;
|