Home
last modified time | relevance | path

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

12345678910>>...37

/cts/tests/tests/text/src/android/text/cts/
DLayoutUseBoundsTest.kt127 var layout = buildLayout(text, 1000) in testBreakOvershoot_trailing_LTR() variable
128 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(0f, 0f, 205f, 10f)) in testBreakOvershoot_trailing_LTR()
129 assertThat(getDrawingHorizontalOffset(layout)).isEqualTo(0) in testBreakOvershoot_trailing_LTR()
130 assertThat(layout.lineCount).isEqualTo(1) in testBreakOvershoot_trailing_LTR()
131 assertThat(layout.getLineEnd(0)).isEqualTo(19) in testBreakOvershoot_trailing_LTR()
132 assertThat(layout.getLineWidth(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
133 assertThat(layout.getLineMax(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
140 layout = buildLayout(text, 150) in testBreakOvershoot_trailing_LTR()
141 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(0f, 0f, 150f, 20f)) in testBreakOvershoot_trailing_LTR()
142 assertThat(layout.lineCount).isEqualTo(2) in testBreakOvershoot_trailing_LTR()
[all …]
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.java163 StaticLayout layout = builder.build(); in testBuilder() local
165 assertEquals(LAYOUT_TEXT, layout.getText()); in testBuilder()
166 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder()
167 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder()
169 assertEquals(Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder()
170 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder()
171 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder()
172 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder()
178 StaticLayout layout = builder.build(); in testBuilder() local
188 StaticLayout layout = builder.build(); in testBuilder() local
[all …]
DBoringLayoutUseBoundsTest.kt74 var layout = buildLayout(text, 1000) in testBreakOvershoot_trailing_LTR() variable
75 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(0f, 0f, 205f, 10f)) in testBreakOvershoot_trailing_LTR()
76 assertThat(layout.lineCount).isEqualTo(1) in testBreakOvershoot_trailing_LTR()
77 assertThat(layout.getLineEnd(0)).isEqualTo(19) in testBreakOvershoot_trailing_LTR()
78 assertThat(layout.getLineWidth(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
79 assertThat(layout.getLineMax(0)).isEqualTo(205) in testBreakOvershoot_trailing_LTR()
90 var layout = buildLayout(text, 1000) in testBreakOvershoot_preceding_LTR() variable
91 assertThat(layout.computeDrawingBoundingBox()).isEqualTo(RectF(-15f, 0f, 190f, 10f)) in testBreakOvershoot_preceding_LTR()
92 assertThat(layout.lineCount).isEqualTo(1) in testBreakOvershoot_preceding_LTR()
93 assertThat(layout.getLineEnd(0)).isEqualTo(19) in testBreakOvershoot_preceding_LTR()
[all …]
DLayoutBuilderTest.kt58 val layout = makeBuilder(BORING_TEXT).build() in makeBuilder() constant
59 assertThat(layout).isInstanceOf(BoringLayout::class.java) in makeBuilder()
60 assertThat(layout.text).isEqualTo(BORING_TEXT) in makeBuilder()
61 assertThat(layout.paint).isSameInstanceAs(PAINT) in makeBuilder()
62 assertThat(layout.width).isEqualTo(WIDTH) in makeBuilder()
67 val layout = makeBuilder(STATIC_LAYOUT_TEXT).build() in buildStaticLayout() constant
68 assertThat(layout).isInstanceOf(StaticLayout::class.java) in buildStaticLayout()
69 assertThat(layout.text).isEqualTo(STATIC_LAYOUT_TEXT) in buildStaticLayout()
70 assertThat(layout.paint).isSameInstanceAs(PAINT) in buildStaticLayout()
71 assertThat(layout.width).isEqualTo(WIDTH) in buildStaticLayout()
[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 …]
DLayoutMinimumLineHeightTest.kt63 val layout = Layout.Builder(text, 0, text.length, paint, 1024) in layout_SetGetMinimumFontMetrics() constant
68 assertThat(layout.minimumFontMetrics).isEqualTo(metrics) in layout_SetGetMinimumFontMetrics()
78 val layout = StaticLayout.Builder.obtain(text, 0, text.length, paint, 1024) in StaticLayout_SetGetMinimumFontMetrics() constant
83 assertThat(layout.minimumFontMetrics).isEqualTo(metrics) in StaticLayout_SetGetMinimumFontMetrics()
93 val layout = DynamicLayout.Builder.obtain(text, paint, 1024) in DynamicLayout_SetGetMinimumFontMetrics() constant
98 assertThat(layout.minimumFontMetrics).isEqualTo(metrics) in DynamicLayout_SetGetMinimumFontMetrics()
112 val layout = Layout.Builder(text, 0, text.length, paint, 1024) in Layout_expandToReserveMinimumFontMetrics() constant
117 assertThat(layout.getLineAscent(0)).isEqualTo(floor(requestMetrics.ascent).toInt()) in Layout_expandToReserveMinimumFontMetrics()
118 assertThat(layout.getLineDescent(0)).isEqualTo(ceil(requestMetrics.descent).toInt()) in Layout_expandToReserveMinimumFontMetrics()
132 val layout = StaticLayout.Builder.obtain(text, 0, text.length, paint, 1024) in StaticLayout_expandToReserveMinimumFontMetrics() constant
[all …]
DLayoutInterJustificationTest.kt71 val layout = Layout.Builder(text, 0, text.length, paint, width) in <lambda>() constant
74 assertThat(layout.justificationMode).isEqualTo(Layout.JUSTIFICATION_MODE_NONE) in <lambda>()
83 var layout = Layout.Builder(text, 0, text.length, paint, width) in <lambda>() variable
87 assertThat(layout.justificationMode).isEqualTo(Layout.JUSTIFICATION_MODE_INTER_CHARACTER) in <lambda>()
89 layout = Layout.Builder(text, 0, text.length, paint, width) in <lambda>()
93 assertThat(layout.justificationMode).isEqualTo(Layout.JUSTIFICATION_MODE_INTER_WORD) in <lambda>()
106 var layout = Layout.Builder( in <lambda>() variable
115 assertThat(layout.getLineStart(1)).isEqualTo(14) in <lambda>()
116 assertThat(layout.getLineEnd(1)).isEqualTo(28) in <lambda>()
146 layout.draw(mockCanvas) in <lambda>()
[all …]
DSelectionParagraphTest.java65 final Layout layout = getSixLineLayout(spannable, PAINT); in testMoveParagraphNext_from_beginning_cursor() local
69 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_beginning_cursor()
72 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_beginning_cursor()
81 final Layout layout = getSixLineLayout(spannable, PAINT); in testMoveParagraphNext_from_middle_cursor() local
86 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_middle_cursor()
89 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_middle_cursor()
98 final Layout layout = getSixLineLayout(spannable, PAINT); in testMoveParagraphNext_from_paragraph_bounds_cursor() local
103 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_paragraph_bounds_cursor()
108 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isTrue(); in testMoveParagraphNext_from_paragraph_bounds_cursor()
112 assertThat(Selection.moveToParagraphEnd(spannable, layout)).isFalse(); in testMoveParagraphNext_from_paragraph_bounds_cursor()
[all …]
DStaticLayoutLineBreakingNoBreakSpanTest.kt58 fun assertLineBreak(layout: Layout, vararg lines: String) { in assertLineBreak()
59 assertThat(layout.lineCount).isEqualTo(lines.size) in assertLineBreak()
61 for (i in 0 until layout.lineCount) { in assertLineBreak()
63 val actualLineRange = Pair(layout.getLineStart(i), layout.getLineEnd(i)) in assertLineBreak()
73 var layout = buildLayout("This is an example.", 80, LineBreaker.BREAK_STRATEGY_HIGH_QUALITY) in testLineBreakPreventLineBreak() variable
74 assertLineBreak(layout, "This ", "is an ", "example.") in testLineBreakPreventLineBreak()
78 layout = buildLayout(SpannableString("This is an example.").apply { in testLineBreakPreventLineBreak()
81 assertLineBreak(layout, "This is ", "an ", "example.") in testLineBreakPreventLineBreak()
DDynamicLayoutTest.java407 final DynamicLayout layout = builder.build(); in testBuilder_obtain() local
409 assertEquals(MULTLINE_CHAR_SEQUENCE, layout.getText()); in testBuilder_obtain()
410 assertEquals(mDefaultPaint, layout.getPaint()); in testBuilder_obtain()
411 assertEquals(DEFAULT_OUTER_WIDTH, layout.getWidth()); in testBuilder_obtain()
413 assertEquals(Layout.Alignment.ALIGN_NORMAL, layout.getAlignment()); in testBuilder_obtain()
414 assertEquals(0.0f, layout.getSpacingAdd(), 0.0f); in testBuilder_obtain()
415 assertEquals(1.0f, layout.getSpacingMultiplier(), 0.0f); in testBuilder_obtain()
416 assertEquals(DEFAULT_OUTER_WIDTH, layout.getEllipsizedWidth()); in testBuilder_obtain()
422 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullText() local
429 final DynamicLayout layout = builder.build(); in testBuilder_obtainWithNullPaint() local
[all …]
DLayoutDrawOrderTest.java94 private TestPaths prepareTestCase(Layout layout) { in prepareTestCase() argument
97 layout.getSelectionPath(1, 2, highlightPath); in prepareTestCase()
101 layout.getSelectionPath(2, 3, out.selectionPath); in prepareTestCase()
110 Layout layout = getBoringLayout(TEST_STRING); in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight() local
111 TestPaths testPaths = prepareTestCase(layout); in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight()
112 layout.draw(canvas, testPaths.highlightPaths, testPaths.highlightPaints, in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight()
130 Layout layout = getStaticLayout(TEST_STRING); in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight() local
131 TestPaths testPaths = prepareTestCase(layout); in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight()
132 layout.draw(canvas, testPaths.highlightPaths, testPaths.highlightPaints, in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight()
150 Layout layout = getDynamicLayout(TEST_STRING); in testDynamicLayout_testDrawOrder_Selection_on_top_of_Highlight() local
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewGroupChildDrawingOrderTest.java48 LinearLayout layout = new LinearLayout(mContext); in testPublicGetChildDrawingOrderWithDefaultOrder() local
49 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
50 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
51 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
53 assertEquals(0, layout.getChildDrawingOrder(0)); in testPublicGetChildDrawingOrderWithDefaultOrder()
54 assertEquals(1, layout.getChildDrawingOrder(1)); in testPublicGetChildDrawingOrderWithDefaultOrder()
55 assertEquals(2, layout.getChildDrawingOrder(2)); in testPublicGetChildDrawingOrderWithDefaultOrder()
60 LinearLayoutWithDrawingOrder layout = new LinearLayoutWithDrawingOrder(mContext); in testPublicGetChildDrawingOrderWithCustomOrder() local
61 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
62 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
[all …]
/cts/hostsidetests/theme/app/src/android/theme/app/
DTestConfiguration.java113 new LayoutInfo(R.layout.checkbox, "checkbox"),
114 new LayoutInfo(R.layout.checkbox, "checkbox_checked",
116 new LayoutInfo(R.layout.chronometer, "chronometer"),
117 new LayoutInfo(R.layout.color_blue_bright, "color_blue_bright"),
118 new LayoutInfo(R.layout.color_blue_dark, "color_blue_dark"),
119 new LayoutInfo(R.layout.color_blue_light, "color_blue_light"),
120 new LayoutInfo(R.layout.color_green_dark, "color_green_dark"),
121 new LayoutInfo(R.layout.color_green_light, "color_green_light"),
122 new LayoutInfo(R.layout.color_orange_dark, "color_orange_dark"),
123 new LayoutInfo(R.layout.color_orange_light, "color_orange_light"),
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsRecyclingTest.java93 RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenIdentical()
96 createRemoteViews(R.layout.remoteviews_textview, View.NO_ID), FIRST_TEXT_ID in recycleWhenIdentical()
99 createRemoteViews(R.layout.remoteviews_textview, View.NO_ID)); in recycleWhenIdentical()
101 createRemoteViews(R.layout.remoteviews_textview), AFTER_TEXT_ID in recycleWhenIdentical()
130 RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle); in doesntRecycleWhenNotAskingForRecycling()
159 RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenInsertView()
168 rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenInsertView()
194 RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenRemovingMiddleView()
203 rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenRemovingMiddleView()
227 RemoteViews rv = createRemoteViews(R.layout.remoteviews_recycle); in recycleWhenAddingAtEnd()
[all …]
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 …]
DRemoteViewsFixedCollectionAdapterTest.java114 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_adapters); in setUp()
134 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling()
135 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling()
142 assertEquals(R.layout.textview_singleline, unparceled.getItemView(0).getLayoutId()); in testParcelingAndUnparceling()
143 assertEquals(R.layout.textview_gravity, unparceled.getItemView(1).getLayoutId()); in testParcelingAndUnparceling()
156 assertEquals(R.layout.textview_singleline, unparceled.getItemView(0).getLayoutId()); in testParcelingAndUnparceling()
157 assertEquals(R.layout.textview_gravity, unparceled.getItemView(1).getLayoutId()); in testParcelingAndUnparceling()
170 .addItem(3 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline)) in testParcelingAndUnparceling_afterAttaching()
171 .addItem(5 /* id */, new RemoteViews(PACKAGE_NAME, R.layout.textview_gravity)) in testParcelingAndUnparceling_afterAttaching()
174 RemoteViews parent = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testParcelingAndUnparceling_afterAttaching()
[all …]
DAbsSpinnerTest.java89 XmlPullParser parser = mActivity.getResources().getXml(R.layout.gallery_test); in testConstructor()
103 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionIntBoolean()
104 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionIntBoolean()
126 R.array.string, android.R.layout.simple_spinner_item); in testSetSelectionInt()
127 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testSetSelectionInt()
148 R.array.string, android.R.layout.simple_spinner_item); in testAccessAdapter()
149 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); in testAccessAdapter()
164 absSpinner.layout(0, 0, 200, 300); in testRequestLayout()
180 R.array.string, android.R.layout.simple_spinner_item); in testGetCount()
187 android.R.layout.simple_spinner_item, anotherStringArray); in testGetCount()
[all …]
/cts/tests/inputmethod/testapp/src/android/view/inputmethod/ctstestapp/
DTranslucentActivity.java35 final var layout = new LinearLayout(this); in onCreate() local
36 layout.setOrientation(LinearLayout.VERTICAL); in onCreate()
41 layout.addView(editor); in onCreate()
43 layout.setFitsSystemWindows(true); in onCreate()
44 setContentView(layout); in onCreate()
/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 …]
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java139 final LinearLayout layout = new LinearLayout(activity); in launchTestActivity()
140 layout.setOrientation(LinearLayout.VERTICAL); in launchTestActivity()
148 layout.addView(editText); in launchTestActivity()
149 return layout; in launchTestActivity()
213 final LinearLayout layout = new LinearLayout(activity); in testSwitchingBetweenEquivalentNonEditableViews()
214 layout.setOrientation(LinearLayout.VERTICAL); in testSwitchingBetweenEquivalentNonEditableViews()
218 layout.addView(view1); in testSwitchingBetweenEquivalentNonEditableViews()
230 layout.addView(view2); in testSwitchingBetweenEquivalentNonEditableViews()
234 return layout; in testSwitchingBetweenEquivalentNonEditableViews()
289 final LinearLayout layout = new LinearLayout(activity); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
[all …]
DInputConnectionHandlerTest.java178 final LinearLayout layout = new LinearLayout(activity); in testCommitText()
179 layout.setOrientation(LinearLayout.VERTICAL); in testCommitText()
201 layout.addView(testEditor); in testCommitText()
202 return layout; in testCommitText()
245 final LinearLayout layout = new LinearLayout(activity); in testCloseConnectionWithRestartInput()
246 layout.setOrientation(LinearLayout.VERTICAL); in testCloseConnectionWithRestartInput()
277 layout.addView(testEditor); in testCloseConnectionWithRestartInput()
279 return layout; in testCloseConnectionWithRestartInput()
324 final LinearLayout layout = new LinearLayout(activity); in testCloseConnectionWithLosingViewFocus()
325 layout.setOrientation(LinearLayout.VERTICAL); in testCloseConnectionWithLosingViewFocus()
[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()
/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 …]

12345678910>>...37