Home
last modified time | relevance | path

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

123456789

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DLocaleTest.java27 Locale locale = Locale.create("en-rUS"); in test1()
35 Locale locale = Locale.create("zh"); in test2()
43 Locale locale = Locale.create("zh"); in testEquals()
66 assertFalse(Locale.create(new LocaleQualifier(LocaleQualifier.FAKE_VALUE)).hasLanguage()); in test()
68 assertFalse(Locale.create(new LocaleQualifier(LocaleQualifier.FAKE_VALUE)).hasRegion()); in test()
70 assertEquals(Locale.create(qualifier1), Locale.create(qualifier1)); in test()
71 assertTrue(Locale.create(qualifier1).hasLanguage()); in test()
72 assertFalse(Locale.create(qualifier1).hasRegion()); in test()
73 assertTrue(Locale.create(qualifier3).hasLanguage()); in test()
74 assertTrue(Locale.create(qualifier3).hasRegion()); in test()
[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()
DTestDragElement.java91 public static TestDragElement create(String fqn, Rect bounds) { in create() method in TestDragElement
92 return create(fqn).setBounds(bounds); in create()
95 public static TestDragElement create(String fqn) { in create() method in TestDragElement
99 public static IDragElement[] create(TestDragElement... elements) { in create() method in TestDragElement
/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/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/
DEclipseXmlPrettyPrinterTest.java43 EclipseXmlFormatPreferences formatPrefs = EclipseXmlFormatPreferences.create(); in setUp()
126 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); in checkFormat()
157 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); in testLayout3()
257 EclipseXmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testWindowsDelimiters()
270 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); in testRemoveBlanklines()
294 EclipseXmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testRange()
307 EclipseXmlFormatPreferences.create(), "res/layout-xlarge/layout.xml", in testOpenTagOnly()
318 EclipseXmlFormatPreferences prefs = EclipseXmlFormatPreferences.create(); in testRange2()
504 EclipseXmlFormatPreferences.create(), "res/layout/layout1.xml", in testCommentHandling()
548 EclipseXmlFormatPreferences.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()
DGestureManager.java179 overlay.create(device); in paint()
410 return ControlPoint.create(mCanvas, mLastMouseX, mLastMouseY); in getCurrentControlPoint()
448 ControlPoint controlPoint = ControlPoint.create(mCanvas, e); in mouseMove()
465 ControlPoint mousePos = ControlPoint.create(mCanvas, e); in mouseUp()
511 LayoutPoint p = ControlPoint.create(mCanvas, e).toLayout(); in mouseDoubleClick()
523 ControlPoint mousePos = ControlPoint.create(mCanvas, e); in mouseEnter()
529 ControlPoint mousePos = ControlPoint.create(mCanvas, e); in mouseExit()
561 ControlPoint controlPoint = ControlPoint.create(mCanvas, in keyPressed()
620 startGesture(ControlPoint.create(mCanvas, event), in dragEnter()
648 finishGesture(ControlPoint.create(mCanvas, event), true); in dragLeave()
[all …]
/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/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DConfigurationMenuListener.java147 create(menu, "Add As Thumbnail...", in show()
151 MenuItem item = create(menu, "Delete All Thumbnails", in show()
168 create(menu, "Preview Representative Sample", in show()
171 create(menu, "Preview All Screen Sizes", in show()
175 MenuItem localeItem = create(menu, "Preview All Locales", in show()
192 MenuItem includedItem = create(menu, "Preview Included", in show()
201 MenuItem variationsItem = create(menu, "Preview Layout Versions", in show()
208 create(menu, "Manual Previews", in show()
211 create(menu, "None", in show()
226 MenuItem item = create(menu, title, in show()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DUseCompoundDrawableAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in UseCompoundDrawableAction
45 return create("Convert to a Compound Drawable...", editorDelegate, in create()
DUnwrapAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in UnwrapAction
45 return create("Remove Container...", editorDelegate, UnwrapAction.class); in create()
DChangeViewAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in ChangeViewAction
45 return create("Change Widget Type...", editorDelegate, ChangeViewAction.class); in create()
DExtractStyleAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in ExtractStyleAction
45 return create("Extract Style...", editorDelegate, ExtractStyleAction.class); in create()
DWrapInAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in WrapInAction
45 return create("Wrap in Container...", editorDelegate, WrapInAction.class); in create()
DExtractIncludeAction.java44 public static IAction create(LayoutEditorDelegate editorDelegate) { in create() method in ExtractIncludeAction
45 return create("Extract Include...", editorDelegate, ExtractIncludeAction.class); in create()

123456789