/sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/ |
D | Perspective.java | 37 public void createInitialLayout(IPageLayout layout) { in createInitialLayout() argument 41 layout.setEditorAreaVisible(false); in createInitialLayout() 43 String editorArea = layout.getEditorArea(); in createInitialLayout() 46 folder = layout.createFolder("logcat", IPageLayout.BOTTOM, 0.8f, //$NON-NLS-1$ in createInitialLayout() 51 folder = layout.createFolder("devices", IPageLayout.LEFT, 0.3f, //$NON-NLS-1$ in createInitialLayout() 56 folder = layout.createFolder("ddms-detail", IPageLayout.RIGHT, 0.5f, //$NON-NLS-1$ in createInitialLayout() 66 layout.addPerspectiveShortcut("org.eclipse.ui.resourcePerspective"); //$NON-NLS-1$ in createInitialLayout() 67 layout.addPerspectiveShortcut("org.eclipse.debug.ui.DebugPerspective"); //$NON-NLS-1$ in createInitialLayout() 68 layout.addPerspectiveShortcut("org.eclipse.jdt.ui.JavaPerspective"); //$NON-NLS-1$ in createInitialLayout() 70 layout.addShowViewShortcut(DeviceView.ID); in createInitialLayout() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer/src/com/android/ide/eclipse/hierarchyviewer/ |
D | TreeViewPerspective.java | 35 public void createInitialLayout(IPageLayout layout) { in createInitialLayout() argument 36 layout.setEditorAreaVisible(false); in createInitialLayout() 38 String editorArea = layout.getEditorArea(); in createInitialLayout() 41 … folder = layout.createFolder("properties", IPageLayout.LEFT, 0.10f, editorArea); //$NON-NLS-1$ in createInitialLayout() 45 …folder = layout.createFolder("main", IPageLayout.RIGHT, 0.24f, "properties"); //$NON-NLS-1$ //$NON… in createInitialLayout() 48 …folder = layout.createFolder("panel-top", IPageLayout.RIGHT, 0.7f, "main"); //$NON-NLS-1$ //$NON-N… in createInitialLayout() 52 …folder = layout.createFolder("panel-bottom", IPageLayout.BOTTOM, 0.5f, "panel-top"); //$NON-NLS-1$… in createInitialLayout() 55 layout.addShowViewShortcut(DeviceSelectorView.ID); in createInitialLayout() 56 layout.addShowViewShortcut(PropertyView.ID); in createInitialLayout() 57 layout.addShowViewShortcut(TreeOverviewView.ID); in createInitialLayout() [all …]
|
D | PixelPerfectPespective.java | 35 public void createInitialLayout(IPageLayout layout) { in createInitialLayout() argument 36 layout.setEditorAreaVisible(false); in createInitialLayout() 38 String editorArea = layout.getEditorArea(); in createInitialLayout() 41 folder = layout.createFolder("tree", IPageLayout.LEFT, 0.25f, editorArea); //$NON-NLS-1$ in createInitialLayout() 45 folder = layout.createFolder("overview", IPageLayout.RIGHT, 0.4f, editorArea); //$NON-NLS-1$ in createInitialLayout() 48 folder = layout.createFolder("main", IPageLayout.RIGHT, 0.35f, editorArea); //$NON-NLS-1$ in createInitialLayout() 52 layout.addShowViewShortcut(DeviceSelectorView.ID); in createInitialLayout() 53 layout.addShowViewShortcut(PixelPerfectTreeView.ID); in createInitialLayout() 54 layout.addShowViewShortcut(PixelPerfectLoupeView.ID); in createInitialLayout() 55 layout.addShowViewShortcut(PixelPerfectView.ID); in createInitialLayout() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/relative/ |
D | DeletionHandlerTest.java | 16 package com.android.ide.common.layout.relative; 22 import com.android.ide.common.layout.BaseViewRule; 23 import com.android.ide.common.layout.TestNode; 72 INode layout = button2.getParent(); in testSimple() local 75 assertSame(layout, targetNode); in testSimple() 76 layout.removeChild(button2); in testSimple() 78 DeletionHandler handler = new DeletionHandler(deletedNodes, movedNodes, layout); in testSimple() 204 INode layout = button7.getParent(); in testTransitive() local 207 assertSame(layout, targetNode); in testTransitive() 208 layout.removeChild(button7); in testTransitive() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | ExplodeRenderingHelperTest.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout; 42 MockXmlNode layout = createLinearLayout(true /*horizontal*/, in testSingleHorizontalLinearLayout() local 45 ExplodedRenderingHelper helper = new ExplodedRenderingHelper(layout, mLayoutNames); in testSingleHorizontalLinearLayout() 53 MockXmlNode layout = createLinearLayout(false /*horizontal*/, in testSingleVerticalLinearLayout() local 56 ExplodedRenderingHelper helper = new ExplodedRenderingHelper(layout, mLayoutNames); in testSingleVerticalLinearLayout() 69 MockXmlNode layout = createLinearLayout(false /*horizontal*/, in testEmbeddedLinearLayouts() local 77 ExplodedRenderingHelper helper = new ExplodedRenderingHelper(layout, mLayoutNames); in testEmbeddedLinearLayouts() 89 MockXmlNode layout = createRelativeLayout( in testSimpleRelativeLayoutWithOneLinearLayouts() local 95 ExplodedRenderingHelper helper = new ExplodedRenderingHelper(layout, mLayoutNames); in testSimpleRelativeLayoutWithOneLinearLayouts() 126 MockXmlNode layout = createRelativeLayout(new MockXmlNode[] { linear1, linear2 } ); in RelativeLayoutWithVerticalLinearLayouts() local [all …]
|
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/ui/ |
D | GridDialog.java | 22 import org.eclipse.swt.layout.GridData; 23 import org.eclipse.swt.layout.GridLayout; 67 GridLayout layout = new GridLayout(mNumColumns, mMakeColumnsEqualWidth); in createDialogArea() local 68 layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); in createDialogArea() 69 layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); in createDialogArea() 70 layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); in createDialogArea() 71 layout.horizontalSpacing = convertHorizontalDLUsToPixels( in createDialogArea() 73 top.setLayout(layout); in createDialogArea()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | FragmentMenu.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 22 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_FRAGMENT_… 31 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 32 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 149 String layout; in addMenuItems() local 153 layout = ANDROID_LAYOUT_RESOURCE_PREFIX + title; in addMenuItems() 155 layout = LAYOUT_RESOURCE_PREFIX + title; in addMenuItems() 158 layouts.add(Pair.of(title, layout)); in addMenuItems() 168 for (Pair<String, String> layout : layouts) { in addMenuItems() 169 action = new SetFragmentLayoutAction(layout.getFirst(), in addMenuItems() [all …]
|
D | ListViewTypeMenu.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 19 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_FOOTER; 20 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_HEADER; 21 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_LV_ITEM; 27 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 28 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 142 public SetListTypeAction(String title, String layout, String selected) { in SetListTypeAction() argument 144 mLayout = layout; in SetListTypeAction() 146 if (layout.equals(selected)) { in SetListTypeAction() 196 String layout = getSelectedLayout(); in run() local [all …]
|
D | AccordionControl.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 35 import org.eclipse.swt.layout.GridData; 36 import org.eclipse.swt.layout.GridLayout; 37 import org.eclipse.swt.layout.RowLayout; 88 RowLayout layout = new RowLayout(SWT.HORIZONTAL); in createChildContainer() local 89 layout.center = true; in createChildContainer() 90 composite.setLayout(layout); in createChildContainer() 92 RowLayout layout = new RowLayout(SWT.VERTICAL); in createChildContainer() local 93 layout.spacing = ITEM_SPACING; in createChildContainer() 94 layout.marginHeight = 0; in createChildContainer() [all …]
|
D | LayoutMetadata.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 35 import com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback; 36 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 363 private static String stripLayoutPrefix(String layout) { in stripLayoutPrefix() argument 364 if (layout.startsWith(ANDROID_LAYOUT_RESOURCE_PREFIX)) { in stripLayoutPrefix() 365 layout = layout.substring(ANDROID_LAYOUT_RESOURCE_PREFIX.length()); in stripLayoutPrefix() 366 } else if (layout.startsWith(LAYOUT_RESOURCE_PREFIX)) { in stripLayoutPrefix() 367 layout = layout.substring(LAYOUT_RESOURCE_PREFIX.length()); in stripLayoutPrefix() 370 return layout; in stripLayoutPrefix() 386 String layout = getProperty(xmlNode, KEY_LV_ITEM); in getNodeBinding() local [all …]
|
D | LintTooltip.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2; 20 import com.android.ide.common.layout.BaseLayoutRule; 21 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 22 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode; 27 import org.eclipse.swt.layout.GridData; 28 import org.eclipse.swt.layout.GridLayout;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeLayoutRefactoring.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 47 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate; 48 import com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor; 49 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 50 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities; 51 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas; 52 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.ViewHierarchy; 236 Element layout = getPrimaryElement(); in computeChanges() local 237 String oldName = layout.getNodeName(); in computeChanges() 249 String oldId = getId(layout); in computeChanges() [all …]
|
D | RelativeLayoutConversionHelper.java | 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring; 18 import static com.android.ide.common.layout.GravityHelper.GRAVITY_BOTTOM; 19 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ; 20 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_VERT; 21 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_HORIZ; 22 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_VERT; 23 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT; 24 import static com.android.ide.common.layout.GravityHelper.GRAVITY_RIGHT; 25 import static com.android.ide.common.layout.GravityHelper.GRAVITY_TOP; 26 import static com.android.ide.common.layout.GravityHelper.GRAVITY_VERT_MASK; [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | GravityHelperTest.java | 16 package com.android.ide.common.layout; 18 import static com.android.ide.common.layout.GravityHelper.GRAVITY_BOTTOM; 19 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_HORIZ; 20 import static com.android.ide.common.layout.GravityHelper.GRAVITY_CENTER_VERT; 21 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_HORIZ; 22 import static com.android.ide.common.layout.GravityHelper.GRAVITY_FILL_VERT; 23 import static com.android.ide.common.layout.GravityHelper.GRAVITY_LEFT; 24 import static com.android.ide.common.layout.GravityHelper.GRAVITY_RIGHT; 25 import static com.android.ide.common.layout.GravityHelper.GRAVITY_TOP; 26 import static com.android.ide.common.layout.GravityHelper.getGravity;
|
/sdk/templates/activities/MasterDetailFlow/root/res/layout/ |
D | activity_content_twopane.xml.ftl | 13 This layout is a two-pane layout for the ${objectKindPlural} 15 res/values-sw600dp/refs.xml for an example of layout aliases 16 that replace the single-pane version of the layout with 19 For more on layout aliases, see: 29 tools:layout="@android:layout/list_content" />
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridMatch.java | 16 package com.android.ide.common.layout.grid; 18 import static com.android.ide.common.layout.grid.GridModel.UNDEFINED; 88 public String getDisplayName(INode layout) { in getDisplayName() argument 104 return String.format("Align left at x=%1$d", matchedLine - layout.getBounds().x); in getDisplayName() 109 return String.format("Align right at x=%1$d", matchedLine - layout.getBounds().x); in getDisplayName() 120 return String.format("Align top at y=%1d", matchedLine - layout.getBounds().y); in getDisplayName() 125 return String.format("Align bottom at y=%1d", matchedLine - layout.getBounds().y); in getDisplayName()
|
/sdk/templates/activities/MasterDetailFlow/root/res/values-large/ |
D | refs.xml.ftl | 3 Layout alias to replace the single-pane version of the layout with a 6 For more on layout aliases, see: 9 …<item type="layout" name="activity_${collection_name}">@layout/activity_${extractLetters(objectKin…
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | GLTracePerspective.java | 33 public void createInitialLayout(IPageLayout layout) { in createInitialLayout() argument 40 IFolderLayout column2 = layout.createFolder(STATE_FOLDER_ID, IPageLayout.RIGHT, 0.65f, in createInitialLayout() 41 layout.getEditorArea()); in createInitialLayout() 45 IFolderLayout column3 = layout.createFolder(FB_FOLDER_ID, IPageLayout.RIGHT, 0.6f, in createInitialLayout() 50 IFolderLayout column3bottom = layout.createFolder(TEXTURE_VIEW_FOLDER_ID, in createInitialLayout()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.hierarchyviewer/src/com/android/ide/eclipse/hierarchyviewer/views/ |
D | TreeViewView.java | 33 import org.eclipse.swt.layout.FillLayout; 34 import org.eclipse.swt.layout.GridData; 35 import org.eclipse.swt.layout.GridLayout; 49 GridLayout layout = new GridLayout(); in createPartControl() local 50 layout.marginWidth = layout.marginHeight = 0; in createPartControl() 51 layout.horizontalSpacing = layout.verticalSpacing = 0; in createPartControl() 52 parent.setLayout(layout); in createPartControl()
|
/sdk/templates/activities/MasterDetailFlow/root/res/values-sw600dp/ |
D | refs.xml.ftl | 3 Layout alias to replace the single-pane version of the layout with a 7 For more on layout aliases, see: 10 …<item type="layout" name="activity_${collection_name}">@layout/activity_${extractLetters(objectKin…
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | ResizeState.java | 17 package com.android.ide.common.layout; 42 public final INode layout; field in ResizeState 94 ResizeState(BaseLayoutRule rule, INode layout, Object layoutView, INode node) { in ResizeState() argument 97 this.layout = layout; in ResizeState()
|
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/ |
D | DuplicateIdDetector.java | 209 String layout = element.getAttribute(ATTR_LAYOUT); // NOTE: Not in android: namespace in visitElement() local 210 if (layout.startsWith(LAYOUT_RESOURCE_PREFIX)) { // Ignore @android:layout/ layouts in visitElement() 211 layout = layout.substring(LAYOUT_RESOURCE_PREFIX.length()); in visitElement() 219 to.add(layout); in visitElement() 227 Collection<Occurrence> occurrences = map.get(layout); in visitElement() 480 for (Layout layout : mFileToLayout.values()) { in check() 481 if (!layout.isIncluded()) { // Only check from "root" nodes in check() 483 getIds(layout, stack, new HashSet<Layout>()); in check() 495 private Set<String> getIds(Layout layout, Deque<Layout> stack, Set<Layout> seen) { in getIds() argument 496 seen.add(layout); in getIds() [all …]
|
D | MergeRootFrameLayoutDetector.java | 123 String layout = pair.getFirst(); in afterCheckProject() local 124 if (mWhitelistedLayouts.contains(layout)) { in afterCheckProject() 153 String layout = element.getAttribute(ATTR_LAYOUT); // NOTE: Not in android: namespace in visitElement() local 154 if (layout.startsWith(LAYOUT_RESOURCE_PREFIX)) { // Ignore @android:layout/ layouts in visitElement() 155 layout = layout.substring(LAYOUT_RESOURCE_PREFIX.length()); in visitElement() 156 whiteListLayout(layout); in visitElement() 166 String layout = LintUtils.getLayoutName(context.file); in visitElement() local 173 mPending.add(Pair.of(layout, handle)); in visitElement() 178 private void whiteListLayout(String layout) { in whiteListLayout() argument 182 mWhitelistedLayouts.add(layout); in whiteListLayout()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | NodeFactory.java | 17 package com.android.ide.eclipse.adt.internal.editors.layout.gre; 20 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo; 21 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas; 22 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.SwtUtils; 23 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode;
|
/sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/ |
D | TreeViewControls.java | 30 import org.eclipse.swt.layout.GridData; 31 import org.eclipse.swt.layout.GridLayout; 46 GridLayout layout = new GridLayout(5, false); in TreeViewControls() local 47 layout.marginWidth = layout.marginHeight = 2; in TreeViewControls() 48 layout.verticalSpacing = layout.horizontalSpacing = 4; in TreeViewControls() 49 setLayout(layout); in TreeViewControls()
|