HomeSort by relevance Sort by last modified time
    Searched refs:LAYOUT (Results 1 - 25 of 50) sorted by null

1 2

  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
ResourceNameValidatorTest.java 55 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT)
57 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT)
63 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT)
ResourceHelperTest.java 125 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT));
141 assertFalse(ResourceHelper.isValueBasedResourceType(ResourceType.LAYOUT));
149 assertTrue(ResourceHelper.canCreateResource("@layout/foo"));
155 assertFalse(ResourceHelper.canCreateResource("@layout/foo bar")); // space
156 assertFalse(ResourceHelper.canCreateResource("@layout/new")); // keyword
163 assertTrue(ResourceHelper.canCreateResourceType(ResourceType.LAYOUT));
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
LayoutEditorMatchingStrategy.java 17 package com.android.ide.eclipse.adt.internal.editors.layout;
32 * Matching strategy for the Layout Editor. This is used to open all configurations of a layout
39 // first check that the file being opened is a layout file.
43 // get the IFile object and check it's in one of the layout folders.
56 // if it's a layout, we now check the name of the fileInput against the name of the
58 if (resFolder != null && resFolder.getType() == ResourceFolderType.LAYOUT) {
67 || editorFolder.getType() != ResourceFolderType.LAYOUT) {
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
EclipseXmlPrettyPrinter.java 24 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
193 case LAYOUT:
194 return XmlFormatStyle.LAYOUT;
215 case LAYOUT:
216 return XmlFormatStyle.LAYOUT;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/
CommonMatchingStrategy.java 23 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorMatchingStrategy;
46 // get the IFile object and check it's in one of the layout folders.
50 if (resFolder != null && resFolder.getType() == ResourceFolderType.LAYOUT) {
56 // layout files we can't just use editorRef.getName(), since
58 // files are in layout- folders.
CommonXmlEditor.java 28 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
170 if (type == ResourceFolderType.LAYOUT) {
171 // The layout editor has a lot of hardcoded requirements for real IFiles
172 // and IProjects so for now just use a plain XML editor for project-less layout
302 * Change the tab/title name to include the name of the layout.
  /external/chromium_org/ui/message_center/views/
message_center_view_unittest.cc 26 LAYOUT
45 virtual void Layout() OVERRIDE;
75 void MockNotificationView::Layout() {
76 test_->RegisterCall(LAYOUT);
78 NotificationView::Layout();
260 // Verify that this didn't generate more than 2 Layout() call per descendant
265 EXPECT_LE(GetCallCount(LAYOUT), GetNotificationCount() * 2);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
Parameter.java 29 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
92 * when other constraints are specified, such as {@link #LAYOUT}, which
94 * represent an existing layout resource name
100 * when other constraints are specified, such as {@link #LAYOUT}, which
124 /** The associated value should represent a valid layout resource name */
125 LAYOUT,
297 if (constraints.contains(Constraint.LAYOUT)) {
299 mValidator = ResourceNameValidator.create(false, project, ResourceType.LAYOUT);
301 mValidator = ResourceNameValidator.create(false, ResourceFolderType.LAYOUT);
  /frameworks/base/tools/layoutlib/bridge/src/android/view/
BridgeInflater.java 165 ResourceType.LAYOUT, layoutInfo.getSecond());
171 ResourceType.LAYOUT, layoutInfo.getSecond());
233 // looks like we inside an embedded layout.
235 // top level of the embedded layout. If there is a merge tag, then
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/
ConfigMatchTest.java 242 ResourceFolderType.LAYOUT, testConfig);
284 String folderName = config.getFolderName(ResourceFolderType.LAYOUT);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
NewXmlFileWizard.java 31 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager;
211 if (folderType == ResourceFolderType.LAYOUT && root.equals(GRID_LAYOUT)) {
283 && (folderType == ResourceFolderType.LAYOUT
342 * Specific New XML File wizard tied to the {@link ResourceFolderType#LAYOUT} type
352 setWindowTitle("New Android Layout XML File");
353 super.mMainPage.setTitle("New Android Layout XML File");
354 super.mMainPage.setDescription("Creates a new Android Layout XML file.");
355 super.mMainPage.setInitialFolderType(ResourceFolderType.LAYOUT);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
LayoutCreatorDialog.java 17 package com.android.ide.eclipse.adt.internal.editors.layout.configuration;
31 import org.eclipse.swt.layout.GridData;
32 import org.eclipse.swt.layout.GridLayout;
77 // parent's layout is a GridLayout as specified in the javadoc.
115 mStatusComposite.layout();
145 mConfig.getFolderName(ResourceFolderType.LAYOUT), mFileName),
ConfigurationDescription.java 17 package com.android.ide.eclipse.adt.internal.editors.layout.configuration;
71 * device to render the current layout with
271 String folderName = fullConfig.getFolderName(ResourceFolderType.LAYOUT);
348 // If we are rendering a layout in included context, pick the theme
349 // from the outer layout instead
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
CreateNewConfigJob.java 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2;
22 import com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser;
42 /** Job which creates a new layout file for a given configuration */
52 super("Create Alternate Layout");
61 String folderName = mConfig.getFolderName(ResourceFolderType.LAYOUT);
96 // The given old layout has been forked into a new layout
97 // for a given configuration. This means that the old layout
105 // Finally open the new layout
117 AdtPlugin.displayError("Layout Creation", message)
    [all...]
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;
26 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
27 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode;
61 super(isGrid ? "Preview Grid Content" : isSpinner ? "Preview Spinner Layout"
72 IAction action = new PickLayoutAction("Choose Layout...", KEY_LV_ITEM);
137 public SetListTypeAction(String title, String layout, String selected) {
139 mLayout = layout;
187 String layout = null; local
212 LayoutMetadata.setProperty(delegate.getEditor(), xmlNode, type, layout); local
    [all...]
FragmentMenu.java 16 package com.android.ide.eclipse.adt.internal.editors.layout.gle2;
23 import static com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutMetadata.KEY_FRAGMENT_LAYOUT;
28 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
29 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode;
54 * Fragment context menu allowing a layout to be chosen for previewing in the fragment frame.
57 private static final String R_LAYOUT_RESOURCE_PREFIX = "R.layout."; //$NON-NLS-1$
58 private static final String ANDROID_R_PREFIX = "android.R.layout"; //$NON-NLS-1$
69 super("Fragment Layout");
75 IAction action = new PickLayoutAction("Choose Layout...");
115 // for layout references of the form R.layout.*
143 String layout; local
206 String layout = LayoutMetadata.getProperty( local
222 String layout = getFragmentLayout(node.getXmlNode()); local
246 layout); local
    [all...]
IncludeFinder.java 17 package com.android.ide.eclipse.adt.internal.editors.layout.gle2;
28 import static com.android.resources.ResourceType.LAYOUT;
96 /** Map from a layout resource name to a set of layouts included by the given resource */
161 * Gets the list of all other layouts that are including the given layout.
190 * Returns true if the given resource is included from some other layout in the
194 * @return true if the file is included by some other layout
239 * it strips out the @layout/ prefix, and eliminates the values for empty string
366 // hit this -- even with an average layout root name of 20 characters
416 * Scan the whole project for XML layout resources that are performing includes.
421 Collection<ResourceItem> layouts = resources.getResourceItemsOfType(LAYOUT);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
ExtractIncludeWizard.java 17 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring;
19 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
26 import org.eclipse.swt.layout.GridData;
27 import org.eclipse.swt.layout.GridLayout;
68 nameLabel.setText("New Layout Name:");
79 "Replace occurrences in all layouts with include to new layout");
100 setErrorMessage("Provide a name for the new layout");
104 ResourceType.LAYOUT);
ExtractIncludeRefactoring.java 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring;
36 import static com.android.resources.ResourceType.LAYOUT;
44 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
45 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo;
46 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
47 import com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode;
96 * Extracts the selection and writes it out as a separate layout file, then adds an
97 * include to that new layout file. Interactively asks the user for a new name for the
98 * layout.
321 // place the extracted include in the base layout folder (if not it goes next t
    [all...]
UnwrapRefactoring.java 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring;
26 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
27 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
52 * Removes the layout surrounding the current selection (or if the current selection has
53 * children, removes the current layout), and migrates namespace and layout attributes.
174 // (3) Transfer layout attributes?
217 MultiTextEdit formatted = reformat(rootEdit, XmlFormatStyle.LAYOUT);
UseCompoundDrawableRefactoring.java 16 package com.android.ide.eclipse.adt.internal.editors.layout.refactoring;
49 import com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditorDelegate;
50 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo;
51 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
154 Element layout = mElements.get(0); local
155 List<Element> children = DomUtilities.getChildren(layout);
216 // attribute (depending on the orientation and order), as well as any layout
218 // (2) Delete the linear layout and replace with the text view.
223 Element layout = mElements.get(0); local
224 List<Element> children = DomUtilities.getChildren(layout);
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
SelectCalendarsSyncAdapter.java 57 private static final int LAYOUT = R.layout.calendar_sync_item;
156 view = mInflater.inflate(LAYOUT, parent, false);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
AndroidTypeRenameParticipant.java 37 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities;
91 * The class updates android manifest and the layout file
335 if (folderType != ResourceFolderType.LAYOUT &&
382 assert folderType == ResourceFolderType.LAYOUT;
  /prebuilts/sdk/tools/lib/
common.jar 
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/
AdtUtils.java 28 import com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart;
    [all...]

Completed in 1697 milliseconds

1 2