Home
last modified time | relevance | path

Searched refs:create (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DLocaleTest.java34 assertFalse(Locale.create(new LanguageQualifier(LanguageQualifier.FAKE_LANG_VALUE), in test()
36 assertFalse(Locale.create(new LanguageQualifier(LanguageQualifier.FAKE_LANG_VALUE), in test()
39 assertEquals(Locale.create(language1), Locale.create(language1)); in test()
40 assertTrue(Locale.create(language1).hasLanguage()); in test()
41 assertFalse(Locale.create(language1).hasRegion()); in test()
42 assertTrue(Locale.create(language1, region1).hasLanguage()); in test()
43 assertTrue(Locale.create(language1, region1).hasRegion()); in test()
45 assertEquals(Locale.create(language1, region1), Locale.create(language1, region1)); in test()
46 assertEquals(Locale.create(language1), Locale.create(language1)); in test()
47 assertTrue(Locale.create(language1).equals(Locale.create(language1))); in test()
[all …]
/sdk/lint/libs/lint_api/src/com/android/tools/lint/detector/api/
DCategory.java63 public static Category create(@NonNull String name, int priority) { in create() method in Category
77 public static Category create( in create() method in Category
140 public static final Category LINT = Category.create("Lint", 110);
143 public static final Category CORRECTNESS = Category.create("Correctness", 100);
146 public static final Category SECURITY = Category.create("Security", 90);
149 public static final Category PERFORMANCE = Category.create("Performance", 80);
152 public static final Category USABILITY = Category.create("Usability", 70);
155 public static final Category A11Y = Category.create("Accessibility", 60);
158 public static final Category I18N = Category.create("Internationalization", 50);
163 public static final Category ICONS = Category.create(USABILITY, "Icons", null, 73);
[all …]
DLocation.java185 public static Location create(@NonNull File file) { in create() method in Location
199 public static Location create( in create() method in Location
217 public static Location create( in create() method in Location
252 return Location.create(file); in create()
265 public static Location create(@NonNull File file, @NonNull String contents, int line) { in create() method in Location
266 return create(file, contents, line, null, null, null); in create()
286 public static Location create(@NonNull File file, @NonNull String contents, int line, in create() method in Location
294 return Location.create(file); in create()
375 return Location.create(file); in create()
576 return Location.create(mFile, mContents, mStartOffset, mEndOffset);
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DBaseLayoutRuleTest.java42 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in createSampleElements()
44 TestDragElement.create("android.widget.LinearLayout", new Rect(0, 80, 100, 280)) in createSampleElements()
46 TestDragElement.create("android.widget.Button", in createSampleElements()
48 TestDragElement.create("android.widget.Button", in createSampleElements()
50 TestDragElement.create("android.widget.Button", new Rect(100, 0, 100, 80)).id( in createSampleElements()
57 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testCollectIds1()
70 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testCollectIds2()
93 INode node = TestNode.create("android.widget.Button").id("@+id/Button012").add( in testCollectExistingIds1()
94 TestNode.create("android.widget.Button").id("@+id/Button2")); in testCollectExistingIds1()
130 INode node = TestNode.create("android.widget.Button").id("@+id/Button012").add( in testRemapIds1()
[all …]
DZoomControlsRuleTest.java29 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in testDoNothing()
32 INode layout = TestNode.create("android.widget.ZoomControls").id("@+id/ZoomControls01") in testDoNothing()
34 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in testDoNothing()
36 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in testDoNothing()
38 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in testDoNothing()
40 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in testDoNothing()
DFrameLayoutRuleTest.java28 INode layout = TestNode.create("android.widget.FrameLayout").id("@+id/FrameLayout01") in dragInto()
30 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DAbsoluteLayoutRuleTest.java30 INode layout = TestNode.create("android.widget.AbsoluteLayout").id("@+id/AbsoluteLayout01") in dragInto()
32 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
36 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
DLinearLayoutRuleTest.java51 INode targetNode = TestNode.create("android.widget.LinearLayout").id( in dragIntoEmpty()
55 IDragElement[] elements = TestDragElement.create(TestDragElement.create( in dragIntoEmpty()
107 INode linearLayout = TestNode.create("android.widget.LinearLayout").id( in dragInto()
112 TestNode.create("android.widget.Button").id("@+id/Button01").bounds( in dragInto()
114 TestNode.create("android.widget.Button").id("@+id/Button02").bounds( in dragInto()
116 TestNode.create("android.widget.Button").id("@+id/Button03").bounds( in dragInto()
118 TestNode.create("android.widget.Button").id("@+id/Button04").bounds( in dragInto()
129 INode node = TestNode.create("android.widget.Button").id("@+id/Button012"); in testContextMenu()
149 INode node = TestNode.create("android.widget.LinearLayout").id("@+id/LinearLayout") in testContextMenuCustom()
175 TestNode node = TestNode.create("android.widget.LinearLayout").id("@+id/LinearLayout012"); in testOrientation()
[all …]
DRelativeLayoutRuleTest.java31 INode layout = TestNode.create("android.widget.RelativeLayout").id("@+id/RelativeLayout01") in dragInto()
34 TestNode.create("android.widget.Button").id("@+id/Centered").bounds( in dragInto()
38 TestNode.create("android.widget.Button").id("@+id/Below").bounds( in dragInto()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidatorTest.java34 ResourceNameValidator validator = ResourceNameValidator.create(true, in testValidator()
47 assertTrue(ResourceNameValidator.create(true, Collections.singleton("foo"), in testValidator()
49 assertTrue(ResourceNameValidator.create(true, in testValidator()
51 assertTrue(ResourceNameValidator.create(false, in testValidator()
55 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT) in testValidator()
57 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT) in testValidator()
61 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.VALUES) in testValidator()
63 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.LAYOUT) in testValidator()
65 assertTrue(ResourceNameValidator.create(true, ResourceFolderType.DRAWABLE) in testValidator()
70 ResourceNameValidator validator = ResourceNameValidator.create(false, (IProject) null, in testIds()
[all …]
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/
DSettingsDialog.java83 GridDataBuilder.create(group).fill().grab().hSpan(2); in createContents()
84 GridLayoutBuilder.create(group).columns(2); in createContents()
87 GridDataBuilder.create(label).hRight().vCenter(); in createContents()
94 GridDataBuilder.create(mTextProxyServer).hFill().hGrab().vCenter(); in createContents()
99 GridDataBuilder.create(label).hRight().vCenter(); in createContents()
106 GridDataBuilder.create(mTextProxyPort).hFill().hGrab().vCenter(); in createContents()
113 GridDataBuilder.create(group).fill().grab().hSpan(2); in createContents()
114 GridLayoutBuilder.create(group).columns(3); in createContents()
117 GridDataBuilder.create(label).hRight().vCenter(); in createContents()
121 GridDataBuilder.create(text).hFill().hGrab().vCenter().hSpan(2); in createContents()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DNodeFactoryTest.java51 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testCreateCanvasViewInfo()
54 NodeProxy proxy = m.create(cvi); in testCreateCanvasViewInfo()
75 NodeProxy proxy = m.create(uiv); in testCreateUiViewElementNode()
98 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testCreateDup()
101 NodeProxy proxy1 = m.create(cvi); in testCreateDup()
102 NodeProxy proxy2 = m.create(cvi); in testCreateDup()
110 CanvasViewInfo cvi = CanvasViewInfo.create(lvi, true /* layoutlib5 */).getFirst(); in testClear()
113 NodeProxy proxy1 = m.create(cvi); in testClear()
114 NodeProxy proxy2 = m.create(cvi); in testClear()
119 NodeProxy proxy3 = m.create(cvi); in testClear()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DControlPointTest.java25 ControlPoint point = ControlPoint.create(mCanvas, mouseEvent); in testCreateFromMouseEvent()
31 ControlPoint point = ControlPoint.create(mCanvas, 10, 20); in testCreateFromCoordinates()
37 ControlPoint point = ControlPoint.create(new TestLayoutCanvas(), 10, 20); in testConvertToLayout()
56 ControlPoint point1 = ControlPoint.create(mCanvas, 1, 1); in testEquals()
57 ControlPoint point2 = ControlPoint.create(mCanvas, 1, 2); in testEquals()
58 ControlPoint point3 = ControlPoint.create(mCanvas, 2, 1); in testEquals()
59 ControlPoint point2b = ControlPoint.create(mCanvas, 1, 2); in testEquals()
DLayoutPointTest.java21 LayoutPoint point = LayoutPoint.create(mCanvas, 10, 20); in testCreateFromCoordinates()
27 LayoutPoint point1 = LayoutPoint.create(mCanvas, 1, 1); in testEquals()
28 LayoutPoint point2 = LayoutPoint.create(mCanvas, 1, 2); in testEquals()
29 LayoutPoint point3 = LayoutPoint.create(mCanvas, 2, 1); in testEquals()
30 LayoutPoint point2b = LayoutPoint.create(mCanvas, 1, 2); in testEquals()
46 LayoutPoint point = LayoutPoint.create(new TestLayoutCanvas(), 10, 20); in testConvertToControl()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/
DXmlPrettyPrinterTest.java42 XmlFormatPreferences formatPrefs = XmlFormatPreferences.create(); in setUp()
124 XmlFormatPreferences prefs = XmlFormatPreferences.create(); in checkFormat()
155 XmlFormatPreferences prefs = XmlFormatPreferences.create(); in testLayout3()
255 XmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testWindowsDelimiters()
268 XmlFormatPreferences prefs = XmlFormatPreferences.create(); in testRemoveBlanklines()
292 XmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testRange()
305 XmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testOpenTagOnly()
316 XmlFormatPreferences prefs = XmlFormatPreferences.create(); in testRange2()
502 XmlFormatPreferences.create(), "res/layout/layout1.xml", in testCommentHandling()
546 XmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testCommentHandling2()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
DMonitorActionBarAdvisor.java47 mQuitAction = ActionFactory.QUIT.create(window); in makeActions()
50 mCopyAction = ActionFactory.COPY.create(window); in makeActions()
53 mSelectAllAction = ActionFactory.SELECT_ALL.create(window); in makeActions()
56 mFindAction = ActionFactory.FIND.create(window); in makeActions()
60 mOpenPerspectiveAction = ActionFactory.OPEN_PERSPECTIVE_DIALOG.create(window); in makeActions()
63 mResetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window); in makeActions()
66 mPreferencesAction = ActionFactory.PREFERENCES.create(window); in makeActions()
69 mAboutAction = ActionFactory.ABOUT.create(window); in makeActions()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DLayoutPoint.java53 public static LayoutPoint create(LayoutCanvas canvas, MouseEvent event) { in create() method in LayoutPoint
57 return ControlPoint.create(canvas, event).toLayout(); in create()
72 public static LayoutPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() method in LayoutPoint
75 return ControlPoint.create(canvas, event).toLayout(); in create()
87 public static LayoutPoint create(LayoutCanvas canvas, int x, int y) { in create() method in LayoutPoint
115 return ControlPoint.create(mCanvas, cx, cy); in toControl()
DControlPoint.java54 public static ControlPoint create(LayoutCanvas canvas, MouseEvent event) { in create() method in ControlPoint
69 public static ControlPoint create(LayoutCanvas canvas, MenuDetectEvent event) { in create() method in ControlPoint
87 public static ControlPoint create(LayoutCanvas canvas, DragSourceEvent event) { in create() method in ControlPoint
102 public static ControlPoint create(LayoutCanvas canvas, DropTargetEvent event) { in create() method in ControlPoint
119 public static ControlPoint create(LayoutCanvas canvas, int x, int y) { in create() method in ControlPoint
151 return LayoutPoint.create(mCanvas, lx, ly); in toLayout()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DNodeFactory.java48 public NodeProxy create(CanvasViewInfo canvasViewInfo) { in create() method in NodeFactory
49 return create(canvasViewInfo.getUiViewNode(), canvasViewInfo.getAbsRect()); in create()
57 public NodeProxy create(UiViewElementNode uiNode) { in create() method in NodeFactory
58 return create(uiNode, null /*bounds*/); in create()
71 private NodeProxy create(UiViewElementNode uiNode, Rectangle bounds) { in create() method in NodeFactory
/sdk/lint/cli/src/com/android/tools/lint/
DLintCliXmlParser.java55 IssueRegistry.PARSER_ERROR, Location.create(context.file), in parseXml()
63 IssueRegistry.PARSER_ERROR, Location.create(context.file), in parseXml()
77 return Location.create(context.file, pos, (OffsetPosition) pos.getEnd()); in getLocation()
80 return Location.create(context.file); in getLocation()
88 return Location.create(context.file, pos, (OffsetPosition) pos.getEnd()); in getLocation()
91 return Location.create(context.file); in getLocation()
188 return Location.create(mFile, pos, (OffsetPosition) pos.getEnd()); in resolve()
191 return Location.create(mFile); in resolve()
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/detector/api/
DLocationTest.java32 Location location1 = Location.create(file1); in testReverse()
33 Location location2 = Location.create(file2); in testReverse()
34 Location location3 = Location.create(file3); in testReverse()
35 Location location4 = Location.create(file4); in testReverse()
93 Location location = Location.create(paths[i]); in testFaen()
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
DProguardDetector.java41 public static final Issue WRONGKEEP = Issue.create(
60 public static final Issue SPLITCONFIG = Issue.create(
105 Location.create(context.file, contents, index, index), in run()
140 Location.create(context.file, contents, index, index), in run()
DManifestOrderDetector.java65 public static final Issue ORDER = Issue.create(
81 public static final Issue USES_SDK = Issue.create(
98 public static final Issue TARGET_NEWER = Issue.create(
122 public static final Issue MULTIPLE_USES_SDK = Issue.create(
139 public static final Issue WRONG_PARENT = Issue.create(
157 public static final Issue DUPLICATE_ACTIVITY = Issue.create(
173 public static final Issue ALLOW_BACKUP = Issue.create(
240 context.report(USES_SDK, Location.create(context.file), in afterCheckFile()
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/ui/
DAddonSitesDialog.java114 GridDataBuilder.create(tabFolder).fill().grab().hSpan(2); in createContents()
126 GridDataBuilder.create(label).hFill().hGrab(); in createContents()
134 GridLayoutBuilder.create(root).columns(3); in createTabOfficialSites()
137 GridDataBuilder.create(label).hLeft().vCenter().hSpan(3); in createTabOfficialSites()
152 GridDataBuilder.create(sitesTable).fill().grab().hSpan(3); in createTabOfficialSites()
198 GridDataBuilder.create(selectAll).hLeft(); in createTabOfficialSites()
208 GridDataBuilder.create(label).hFill().hGrab(); in createTabOfficialSites()
212 GridDataBuilder.create(deselectAll).hRight(); in createTabOfficialSites()
224 GridLayoutBuilder.create(root).columns(2); in createTabUserSites()
227 GridDataBuilder.create(label).hLeft().vCenter().hSpan(2); in createTabUserSites()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DParameter.java284 mValidator = ResourceNameValidator.create(false, project, ResourceType.LAYOUT); in getValidator()
286 mValidator = ResourceNameValidator.create(false, ResourceFolderType.LAYOUT); in getValidator()
291 mValidator = ResourceNameValidator.create(false, project, ResourceType.STRING); in getValidator()
293 mValidator = ResourceNameValidator.create(false, ResourceFolderType.VALUES); in getValidator()
298 mValidator = ResourceNameValidator.create(false, project, ResourceType.ID); in getValidator()
300 mValidator = ResourceNameValidator.create(false, ResourceFolderType.VALUES); in getValidator()
305 mValidator = ResourceNameValidator.create(false, project, in getValidator()
308 mValidator = ResourceNameValidator.create(false, ResourceFolderType.DRAWABLE); in getValidator()

12345678910>>...13