Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 675) sorted by relevance

12345678910>>...27

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java117 private static void layout(CharSequence source, int[] breaks) { in layout() method in StaticLayoutLineBreakingTest
118 layout(source, breaks, WIDTH); in layout()
121 private static void layout(CharSequence source, int[] breaks, int width) { in layout() method in StaticLayoutLineBreakingTest
232 layout("", NO_BREAK); in testNoLineBreak()
233 layout("I", NO_BREAK); in testNoLineBreak()
234 layout("V", NO_BREAK); in testNoLineBreak()
235 layout("X", NO_BREAK); in testNoLineBreak()
236 layout("L", NO_BREAK); in testNoLineBreak()
237 layout("I VILI", NO_BREAK); in testNoLineBreak()
238 layout("XXXX", NO_BREAK); in testNoLineBreak()
[all …]
DStaticLayoutTest.java162 StaticLayout layout = builder.build(); in testBuilder() local
164 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder()
165 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
166 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder()
168 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder()
169 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder()
170 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder()
171 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder()
177 StaticLayout layout = builder.build(); in testBuilder() local
187 StaticLayout layout = builder.build(); in testBuilder() local
[all …]
DSelectionTest.java187 StaticLayout layout = new StaticLayout(text, new TextPaint(), 50, null, 0, 0, false); in testMoveLeft() local
192 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft()
196 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft()
201 assertFalse(Selection.moveLeft(builder, layout)); in testMoveLeft()
206 assertTrue(Selection.moveLeft(builder, layout)); in testMoveLeft()
215 StaticLayout layout = new StaticLayout(text, new TextPaint(), 200, null, 0, 0, false); in testMoveRight() local
220 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight()
224 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight()
228 assertTrue(Selection.moveRight(builder, layout)); in testMoveRight()
233 assertFalse(Selection.moveRight(builder, layout)); in testMoveRight()
[all …]
DDynamicLayoutTest.java323 final DynamicLayout layout = builder.build(); in testBuilder_obtain() local
325 assertEquals(MULTLINE_CHAR_SEQUENCE, layout.getText()); in testBuilder_obtain()
326 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
327 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder_obtain()
329 assertEquals(Layout.Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder_obtain()
330 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder_obtain()
331 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder_obtain()
332 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder_obtain()
338 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullText() local
345 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullPaint() local
[all …]
DStaticLayoutLineBreakingVariantsTest.java56 final StaticLayout layout = buildLayout(text, LocaleList.forLanguageTags(locale), width); in assertLineBreak() local
57 assertEquals(expected.length, layout.getLineCount()); in assertLineBreak()
63 + text.substring(layout.getLineStart(i), layout.getLineEnd(i)); in assertLineBreak()
64 assertEquals(msg, currentExpectedOffset, layout.getLineEnd(i)); in assertLineBreak()
/cts/tests/tests/view/src/android/view/cts/
DViewGroupChildDrawingOrderTest.java46 LinearLayout layout = new LinearLayout(mContext); in testPublicGetChildDrawingOrderWithDefaultOrder() local
47 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
48 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
49 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
51 assertEquals(0, layout.getChildDrawingOrder(0)); in testPublicGetChildDrawingOrderWithDefaultOrder()
52 assertEquals(1, layout.getChildDrawingOrder(1)); in testPublicGetChildDrawingOrderWithDefaultOrder()
53 assertEquals(2, layout.getChildDrawingOrder(2)); in testPublicGetChildDrawingOrderWithDefaultOrder()
58 LinearLayoutWithDrawingOrder layout = new LinearLayoutWithDrawingOrder(mContext); in testPublicGetChildDrawingOrderWithCustomOrder() local
59 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
60 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
[all …]
DFocusFinderCtsActivity.java26 public ViewGroup layout; field in FocusFinderCtsActivity
39 setContentView(R.layout.focus_finder_layout); in onCreate()
40 layout = (ViewGroup) findViewById(R.id.layout); in onCreate()
/cts/hostsidetests/theme/app/src/android/theme/app/
DTestConfiguration.java171 new LayoutInfo(R.layout.button, "button"),
172 new LayoutInfo(R.layout.button, "button_pressed",
174 new LayoutInfo(R.layout.checkbox, "checkbox"),
175 new LayoutInfo(R.layout.checkbox, "checkbox_checked",
177 new LayoutInfo(R.layout.chronometer, "chronometer"),
178 new LayoutInfo(R.layout.color_blue_bright, "color_blue_bright"),
179 new LayoutInfo(R.layout.color_blue_dark, "color_blue_dark"),
180 new LayoutInfo(R.layout.color_blue_light, "color_blue_light"),
181 new LayoutInfo(R.layout.color_green_dark, "color_green_dark"),
182 new LayoutInfo(R.layout.color_green_light, "color_green_light"),
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java87 startTransition(R.layout.scene1); in testAddListener()
96 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testAddListener()
120 startTransition(R.layout.scene1); in testRemoveListener()
130 enterScene(R.layout.scene4); in testAddTargetId()
136 startTransition(R.layout.scene1); in testAddTargetId()
144 enterScene(R.layout.scene4); in testRemoveTargetId()
153 startTransition(R.layout.scene1); in testRemoveTargetId()
161 enterScene(R.layout.scene4); in testAddTargetClass()
166 startTransition(R.layout.scene1); in testAddTargetClass()
174 enterScene(R.layout.scene4); in testRemoveTargetClass()
[all …]
DChangeBoundsTest.java83 enterScene(R.layout.scene1); in testBasicChangeBounds()
89 startTransition(R.layout.scene6); in testBasicChangeBounds()
101 enterScene(R.layout.scene1); in testResizeClip()
107 startTransition(R.layout.scene6); in testResizeClip()
118 enterScene(R.layout.scene6); in testResizeClipSmaller()
123 startTransition(R.layout.scene1); in testResizeClipSmaller()
133 enterScene(R.layout.scene1); in testInterruptSameDestination()
137 List<RedAndGreen> points1 = startTransitionAndWatch(R.layout.scene6); in testInterruptSameDestination()
141 List<RedAndGreen> points2 = startTransitionAndWatch(R.layout.scene6); in testInterruptSameDestination()
145 assertFalse(isRestartingAnimation(points2, R.layout.scene1)); in testInterruptSameDestination()
[all …]
DVisibilityTest.java64 enterScene(R.layout.scene4); in testMode()
65 startTransition(R.layout.scene1); in testMode()
70 startTransition(R.layout.scene4); in testMode()
77 startTransition(R.layout.scene1); in testMode()
83 startTransition(R.layout.scene4); in testMode()
89 startTransition(R.layout.scene1); in testMode()
94 startTransition(R.layout.scene4); in testMode()
103 enterScene(R.layout.scene1); in testIsVisible()
124 enterScene(R.layout.scene4); in testOnAppear()
128 startTransition(R.layout.scene5); in testOnAppear()
[all …]
DTransitionManagerTest.java54 View view = mActivity.getLayoutInflater().inflate(R.layout.scene1, mSceneRoot, in testBeginDelayedTransition()
77 enterScene(R.layout.scene1); in testDefaultBeginDelayedTransition()
79 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultBeginDelayedTransition()
150 startTransition(R.layout.scene1); in testGo()
170 enterScene(R.layout.scene1); in testDefaultGo()
172 final Scene scene6 = loadScene(R.layout.scene6); in testDefaultGo()
196 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition1()
215 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition1()
229 scenes[0] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testSetTransition2()
230 scenes[1] = Scene.getSceneForLayout(mSceneRoot, R.layout.scene2, mActivity); in testSetTransition2()
[all …]
DChangeTransformTest.java56 enterScene(R.layout.scene1); in testTranslation()
77 enterScene(R.layout.scene1); in testRotation()
96 enterScene(R.layout.scene1); in testScale()
118 enterScene(R.layout.scene5); in testReparent()
119 startTransition(R.layout.scene9); in testReparent()
126 startTransition(R.layout.scene5); in testReparent()
133 enterScene(R.layout.scene5); in testReparentWithOverlay()
134 startTransition(R.layout.scene9); in testReparentWithOverlay()
151 startTransition(R.layout.scene5); in testReparentWithOverlay()
DSceneTest.java52 R.layout.scene1, mSceneRoot, true)).when(enterCheck).run(); in testDynamicConstructor()
68 enterScene(R.layout.scene4); in testDynamicConstructor()
77 View view = loadLayout(R.layout.scene1); in testViewConstructor()
86 View view = loadLayout(R.layout.scene1); in testDeprecatedConstructor()
95 Scene scene = loadScene(R.layout.scene1); in testFactory()
101 Scene scene = Scene.getSceneForLayout(mSceneRoot, R.layout.scene1, mActivity); in testGetCurrentScene()
/cts/tests/tests/widget/src/android/widget/cts/
DResourceCursorAdapterTest.java63 mParent = (ViewGroup) layoutInflater.inflate(R.layout.cursoradapter_host, null); in setup()
75 adapter = new MockResourceCursorAdapter(mContext, R.layout.cursoradapter_item0, mCursor); in testConstructor()
81 R.layout.cursoradapter_item0, mCursor, false); in testConstructor()
90 R.layout.cursoradapter_item0, mCursor); in testSetViewResource()
97 mResourceCursorAdapter.setViewResource(R.layout.cursoradapter_item1); in testSetViewResource()
107 R.layout.cursoradapter_item0, mCursor); in testSetDropDownViewResource()
115 mResourceCursorAdapter.setDropDownViewResource(R.layout.cursoradapter_item1); in testSetDropDownViewResource()
133 R.layout.cursoradapter_item0, mCursor); in testNewDropDownView()
139 R.layout.cursoradapter_item1, mCursor); in testNewDropDownView()
150 R.layout.cursoradapter_item0, mCursor); in testNewView()
[all …]
DAbsSpinnerTest.java80 XmlPullParser parser = mActivity.getResources().getXml(R.layout.gallery_test); in testConstructor()
94 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionIntBoolean()
95 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean()
117 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionInt()
118 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt()
139 R.array.string, android.R.layout.simple_spinner_item); in testAccessAdapter()
140 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter()
155 absSpinner.layout(0, 0, 200, 300); in testRequestLayout()
171 R.array.string, android.R.layout.simple_spinner_item); in testGetCount()
178 android.R.layout.simple_spinner_item, anotherStringArray); in testGetCount()
[all …]
DWidgetAttributeTest.kt67 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeResolutionStack()
75 assertEquals(R.layout.widget_attribute_layout, stackToolbar1padding[0]) in testGetAttributeResolutionStack()
81 assertEquals(R.layout.widget_attribute_layout, stackToolbar1titleMarginEnd[0]) in testGetAttributeResolutionStack()
91 assertEquals(R.layout.widget_attribute_layout, stackToolbar2padding[0]) in testGetAttributeResolutionStack()
99 assertEquals(R.layout.widget_attribute_layout, stackToobar2titleMarginEnd[0]) in testGetAttributeResolutionStack()
112 assertEquals(R.layout.widget_attribute_layout, stackTextView1textSize[0]) in testGetAttributeResolutionStack()
119 assertEquals(R.layout.widget_attribute_layout, stackTextView1textColorHighlight[0]) in testGetAttributeResolutionStack()
129 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeSourceResourceMap()
134 assertEquals(R.layout.widget_attribute_layout, in testGetAttributeSourceResourceMap()
136 assertEquals(R.layout.widget_attribute_layout, in testGetAttributeSourceResourceMap()
[all …]
DTableLayoutTest.java91 mActivity.setContentView(R.layout.table_layout_2); in testConstructor()
121 mTableEmpty.layout(0, 0, 200, 300); in testRequestLayout()
162 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed()
171 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed()
178 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed()
185 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnCollapsed()
201 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable()
210 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable()
217 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable()
224 mTableEmpty.layout(0, 0, 200, 300); in testAccessColumnStretchable()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DLayerTests.java67 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintAlpha()
84 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithHardware()
98 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithSoftware()
110 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintXfermodeWithSoftware()
122 .addLayout(R.layout.frame_layout, view -> { in testLayerPaintAlphaChanged()
159 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintColorFilter()
176 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintBlend()
227 .addLayout(R.layout.frame_layout, initializer, true) in testLayerClear()
252 .addLayout(R.layout.frame_layout, initializer) in testAlphaLayerChild()
260 .addLayout(R.layout.frame_layout, view -> { in testLayerInitialSizeZero()
[all …]
DViewClippingTests.java72 .addLayout(R.layout.blue_padded_layout, null) in testSimpleUnclipped()
79 .addLayout(R.layout.blue_padded_layout, BOUNDS_CLIP_INIT) in testSimpleBoundsClip()
86 .addLayout(R.layout.blue_padded_layout, CLIP_BOUNDS_CLIP_INIT) in testSimpleClipBoundsClip()
93 .addLayout(R.layout.blue_padded_layout, PADDING_CLIP_INIT) in testSimplePaddingClip()
102 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, true) in testSimpleOutlineClip()
107 .addLayout(R.layout.blue_padded_layout, OUTLINE_CLIP_INIT, false) in testSimpleOutlineClip()
117 .addLayout(R.layout.blue_padded_layout, view -> { in testOvalOutlineClip()
140 .addLayout(R.layout.blue_padded_layout, view -> { in testConcaveOutlineClip()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java79 final LinearLayout layout = new LinearLayout(activity); in launchTestActivity()
80 layout.setOrientation(LinearLayout.VERTICAL); in launchTestActivity()
88 layout.addView(editText); in launchTestActivity()
89 return layout; in launchTestActivity()
138 final LinearLayout layout = new LinearLayout(activity); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
139 layout.setOrientation(LinearLayout.VERTICAL); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
152 layout.addView(textView); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
153 return layout; in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
181 final LinearLayout layout = new LinearLayout(activity); in testEditorStartsInput()
182 layout.setOrientation(LinearLayout.VERTICAL); in testEditorStartsInput()
[all …]
DInputMethodManagerTest.java80 final LinearLayout layout = new LinearLayout(activity); in testIsActive()
81 layout.setOrientation(LinearLayout.VERTICAL); in testIsActive()
84 layout.addView(focusedEditText); in testIsActive()
89 layout.addView(nonFocusedEditText); in testIsActive()
92 return layout; in testIsActive()
104 final LinearLayout layout = new LinearLayout(activity); in testIsAcceptingText()
105 layout.setOrientation(LinearLayout.VERTICAL); in testIsAcceptingText()
114 layout.addView(focusedFakeEditText); in testIsAcceptingText()
117 return layout; in testIsAcceptingText()
DInputMethodServiceTest.java106 final LinearLayout layout = new LinearLayout(activity);
107 layout.setOrientation(LinearLayout.VERTICAL);
111 layout.addView(editText);
115 return layout;
244 final LinearLayout layout = new LinearLayout(activity);
245 layout.setOrientation(LinearLayout.VERTICAL);
266 layout.addView(editText);
268 return layout;
313 final LinearLayout layout = new LinearLayout(activity);
314 layout.setOrientation(LinearLayout.VERTICAL);
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentViewTests.java50 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addFragments()
96 FragmentTestUtil.setContentView(mActivityRule, R.layout.double_container); in addTwoContainers()
143 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in doubleAdd()
170 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeFragments()
228 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeHiddenView()
254 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeDetatchedView()
282 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in addRemoveAdd()
304 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in removeNotThere()
314 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in hideFragment()
343 FragmentTestUtil.setContentView(mActivityRule, R.layout.simple_container); in doubleHide()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DShowWhenLockedAttrImeActivity.java32 final LinearLayout layout = new LinearLayout(this); in onCreate() local
33 layout.setOrientation(LinearLayout.VERTICAL); in onCreate()
34 layout.addView(editText); in onCreate()
35 setContentView(layout); in onCreate()

12345678910>>...27