/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() local 90 assertNotNull(rootView); in normal() 91 assertEquals("LinearLayout", rootView.getName()); in normal() 92 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getAbsRect()); in normal() 93 assertEquals(new Rectangle(10, 10, 89, 89), rootView.getSelectionRect()); in normal() 94 assertNull(rootView.getParent()); in normal() 95 assertSame(rootView.getUiViewNode(), rootNode); in normal() 96 assertEquals(2, rootView.getChildren().size()); in normal() 97 CanvasViewInfo childView1 = rootView.getChildren().get(0); in normal() 98 CanvasViewInfo childView2 = rootView.getChildren().get(1); in normal() [all …]
|
D | SelectionManagerTest.java | 56 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testBasic() local 57 assertNotNull(rootView); in testBasic() 59 manager.selectMultiple(Arrays.asList(rootView, rootView.getChildren().get(0), rootView in testBasic() 77 manager.selectSingle(rootView); in testBasic() 80 assertSame(rootView, manager.getSelections().get(0).getViewInfo()); in testBasic() 82 manager.selectMultiple(Arrays.asList(rootView, rootView.getChildren().get(0), rootView in testBasic() 86 manager.deselect(rootView.getChildren().get(0)); in testBasic() 88 manager.deselect(rootView); in testBasic() 90 assertSame(rootView.getChildren().get(1), manager.getSelections().get(0).getViewInfo()); in testBasic() 107 CanvasViewInfo rootView = CanvasViewInfo.create(root, true /* layoutlib5 */).getFirst(); in testSelectParent() local [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | CanvasViewInfo.java | 683 CanvasViewInfo rootView = createView(null, root, 0, 0); in create() local 684 addKeyedSubtrees(rootView, root, 0, 0); in create() 687 for (CanvasViewInfo vi : rootView.getChildren()) { in create() 708 if (view.getParent() != rootView) { in create() 730 CanvasViewInfo mergeView = new CanvasViewInfo(rootView, VIEW_MERGE, null, in create() 733 if (rootView.removeChild(view)) { in create() 737 rootView.addChild(mergeView); in create() 741 return Pair.of(rootView, includedBounds); in create() 745 CanvasViewInfo rootView = addKeyedSubtrees(null, root, 0, 0); in create() local 750 if (rootView != null && hasMergeParent(rootView.getUiViewNode())) { in create() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeLayoutRefactoring.java | 585 CanvasViewInfo rootView = mRootView; in convertAnyToRelative() local 586 if (rootView == null) { in convertAnyToRelative() 589 rootView = viewHierarchy.getRoot(); in convertAnyToRelative() 593 new RelativeLayoutConversionHelper(this, layout, mFlatten, rootEdit, rootView); in convertAnyToRelative() 607 CanvasViewInfo rootView = mRootView; in convertAnyToGridLayout() local 608 if (rootView == null) { in convertAnyToGridLayout() 611 rootView = viewHierarchy.getRoot(); in convertAnyToGridLayout() 615 rootEdit, rootView); in convertAnyToGridLayout() 649 public void setRootView(CanvasViewInfo rootView) { in setRootView() argument 650 mRootView = rootView; in setRootView()
|
D | GridLayoutConverter.java | 123 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in GridLayoutConverter() argument 128 mRootView = rootView; in GridLayoutConverter()
|
D | RelativeLayoutConversionHelper.java | 113 Element layout, boolean flatten, MultiTextEdit rootEdit, CanvasViewInfo rootView) { in RelativeLayoutConversionHelper() argument 118 mRootView = rootView; in RelativeLayoutConversionHelper()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeLayoutRefactoringTest.java | 120 CanvasViewInfo rootView = info.mRootView; in checkRefactoring() local 131 refactoring.setRootView(rootView); in checkRefactoring()
|
D | RefactoringTest.java | 295 CanvasViewInfo rootView = CanvasViewInfo.create(info, true /* layoutlib5 */).getFirst(); in setupTestContext() local 307 testInfo.mRootView = rootView; in setupTestContext()
|