Home
last modified time | relevance | path

Searched refs:layoutParams (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DRelativeLayout_LayoutParamsTest.java40 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() local
41 assertEquals(200, layoutParams.width); in testConstructor()
42 assertEquals(300, layoutParams.height); in testConstructor()
44 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor()
45 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor()
46 assertEquals(200, layoutParams.width); in testConstructor()
47 assertEquals(300, layoutParams.height); in testConstructor()
50 layoutParams = new RelativeLayout.LayoutParams(tempMarginLayoutParams); in testConstructor()
51 assertEquals(400, layoutParams.width); in testConstructor()
52 assertEquals(500, layoutParams.height); in testConstructor()
[all …]
DAbsListView_LayoutParamsTest.java47 AbsListView.LayoutParams layoutParams; in testConstructors() local
49 layoutParams = new AbsListView.LayoutParams(getContext(), mAttributeSet); in testConstructors()
50 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors()
51 assertEquals(TEST_HEIGHT, layoutParams.height); in testConstructors()
53 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors()
55 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors()
56 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors()
58 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors()
60 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors()
61 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors()
[all …]
DTableRow_LayoutParamsTest.java58 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); in testConstructor() local
59 assertEquals(200, layoutParams.width); in testConstructor()
60 assertEquals(300, layoutParams.height); in testConstructor()
61 assertEquals(-1, layoutParams.column); in testConstructor()
62 assertEquals(1, layoutParams.span); in testConstructor()
63 ViewGroup.LayoutParams oldParams = layoutParams; in testConstructor()
65 layoutParams = new TableRow.LayoutParams(200, 300, 1.2f); in testConstructor()
66 assertEquals(200, layoutParams.width); in testConstructor()
67 assertEquals(300, layoutParams.height); in testConstructor()
68 assertEquals(1.2f, layoutParams.weight); in testConstructor()
[all …]
DAbsoluteLayout_LayoutParamsTest.java44 LayoutParams layoutParams; in testConstructor() local
46 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testConstructor()
47 assertEquals(1, layoutParams.width); in testConstructor()
48 assertEquals(2, layoutParams.height); in testConstructor()
49 assertEquals(3, layoutParams.x); in testConstructor()
50 assertEquals(4, layoutParams.y); in testConstructor()
52 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor()
62 LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testDebug() local
63 assertNotNull(layoutParams.debug("test: ")); in testDebug()
DTableLayout_LayoutParamsTest.java47 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(200, 300); in testConstructor() local
48 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
49 assertEquals(300, layoutParams.height); in testConstructor()
50 TableLayout.LayoutParams oldParams = layoutParams; in testConstructor()
52 layoutParams = new TableLayout.LayoutParams(200, 300, 1.2f); in testConstructor()
53 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor()
54 assertEquals(300, layoutParams.height); in testConstructor()
55 assertEquals(1.2f, layoutParams.weight); in testConstructor()
56 TableLayout.LayoutParams oldMarginParams = layoutParams; in testConstructor()
60 layoutParams = new TableLayout.LayoutParams(oldParams); in testConstructor()
[all …]
DLinearLayout_LayoutParamsTest.java43 LayoutParams layoutParams = new LayoutParams(320, 480); in testConstructor() local
44 new LinearLayout.LayoutParams(layoutParams); in testConstructor()
51 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(320, 240); in testDebug() local
52 assertNotNull(layoutParams.debug("test: ")); in testDebug()
DRadioGroupTest.java288 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() local
290 assertNotNull(layoutParams); in testGenerateLayoutParams()
292 assertEquals(0.0, layoutParams.weight, 0); in testGenerateLayoutParams()
293 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams()
294 assertEquals(0, layoutParams.leftMargin); in testGenerateLayoutParams()
295 assertEquals(0, layoutParams.topMargin); in testGenerateLayoutParams()
296 assertEquals(0, layoutParams.rightMargin); in testGenerateLayoutParams()
297 assertEquals(0, layoutParams.bottomMargin); in testGenerateLayoutParams()
298 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams()
299 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams()
[all …]
DTableRowTest.java158 LinearLayout.LayoutParams layoutParams = mockTableRow.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local
159 assertNotNull(layoutParams); in testGenerateDefaultLayoutParams()
160 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateDefaultLayoutParams()
166 LinearLayout.LayoutParams layoutParams = mockTableRow.generateLayoutParams( in testGenerateLayoutParams2() local
168 assertNotNull(layoutParams); in testGenerateLayoutParams2()
169 assertEquals(200, layoutParams.width); in testGenerateLayoutParams2()
170 assertEquals(300, layoutParams.height); in testGenerateLayoutParams2()
171 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateLayoutParams2()
174 layoutParams = mockTableRow.generateLayoutParams((ViewGroup.LayoutParams) null); in testGenerateLayoutParams2()
DRadioGroup_LayoutParamsTest.java141 MockLayoutParams layoutParams = new MockLayoutParams(getContext(), null); in testSetBaseAttributes() local
143 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetBaseAttributes()
144 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testSetBaseAttributes()
148 layoutParams.setBaseAttributes(a, in testSetBaseAttributes()
152 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testSetBaseAttributes()
153 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testSetBaseAttributes()
DRelativeLayoutTest.java266 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); in testGenerateLayoutParams1() local
267 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams1()
268 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams1()
277 RelativeLayout.LayoutParams layoutParams = in testGenerateLayoutParams2() local
279 assertEquals(200, layoutParams.width); in testGenerateLayoutParams2()
280 assertEquals(300, layoutParams.height); in testGenerateLayoutParams2()
293 ViewGroup.LayoutParams layoutParams = myRelativeLayout.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local
294 assertTrue(layoutParams instanceof RelativeLayout.LayoutParams); in testGenerateDefaultLayoutParams()
295 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateDefaultLayoutParams()
296 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateDefaultLayoutParams()
DGalleryTest.java167 LayoutParams layoutParams = gallery.generateLayoutParams(lp); in testGenerateLayoutParams() local
168 assertEquals(width, layoutParams.width); in testGenerateLayoutParams()
169 assertEquals(height, layoutParams.height); in testGenerateLayoutParams()
176 layoutParams = mGallery.generateLayoutParams(attrs); in testGenerateLayoutParams()
177 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams()
178 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams()
DTableLayoutTest.java580 LinearLayout.LayoutParams layoutParams = mockTableLayout.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local
581 assertNotNull(layoutParams); in testGenerateDefaultLayoutParams()
582 assertTrue(layoutParams instanceof TableLayout.LayoutParams); in testGenerateDefaultLayoutParams()
588 LinearLayout.LayoutParams layoutParams = mockTableLayout.generateLayoutParams( in testGenerateLayoutParams2() local
590 assertNotNull(layoutParams); in testGenerateLayoutParams2()
591 assertEquals(200, layoutParams.width); in testGenerateLayoutParams2()
592 assertEquals(300, layoutParams.height); in testGenerateLayoutParams2()
593 assertTrue(layoutParams instanceof TableLayout.LayoutParams); in testGenerateLayoutParams2()
596 layoutParams = mockTableLayout.generateLayoutParams((ViewGroup.LayoutParams) null); in testGenerateLayoutParams2()
DAbsoluteLayoutTest.java88 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() local
89 assertFalse(mMyAbsoluteLayout.checkLayoutParams(layoutParams)); in testCheckLayoutParams()
DTextViewFadingEdgeTest.java158 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in createTextView() local
161 layout.setLayoutParams(layoutParams); in createTextView()
DTextViewTest.java1324 final ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(textViewWidth, in testSetText_updatesHeightAfterRemovingImageSpan() local
1326 layout.addView(textView, layoutParams); in testSetText_updatesHeightAfterRemovingImageSpan()
1327 layout.setLayoutParams(layoutParams); in testSetText_updatesHeightAfterRemovingImageSpan()
2614 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( local
2617 layout.addView(tvEllipsizeEnd, layoutParams);
2618 layout.addView(tvEllipsizeNone, layoutParams);
2619 layout.setLayoutParams(layoutParams);
2650 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine() local
2654 layout.addView(tvEllipsizeEnd, layoutParams); in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine()
2655 layout.addView(tvEllipsizeNone, layoutParams); in testEllipsizeEndAndNoEllipsizeHasSameBaselineForMultiLine()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java238 LayoutParams layoutParams = mImageView.getLayoutParams(); in enterImageViewScene()
241 layoutParams.width = Math.round(size); in enterImageViewScene()
242 layoutParams.height = Math.round(size * 2); in enterImageViewScene()
243 mImageView.setLayoutParams(layoutParams); in enterImageViewScene()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java334 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams(
336 layoutParams.layoutAnimationParameters = animationParams;
337 return layoutParams;
DLayoutAnimationControllerTest.java377 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams(
379 layoutParams.layoutAnimationParameters = animationParams;
380 return layoutParams;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java482 LayoutParams layoutParams = new LayoutParams(newWidth, newHeight);
483 mCameraView.setLayoutParams(layoutParams);
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java505 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, 100); in testOnSizeChanged() local
509 view.setLayoutParams(layoutParams); in testOnSizeChanged()
857 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(newWidth, 100); in testComputeHorizontalScroll() local
861 view.setLayoutParams(layoutParams); in testComputeHorizontalScroll()
903 … final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, newHeight); in testComputeVerticalScroll() local
907 view.setLayoutParams(layoutParams); in testComputeVerticalScroll()
1730 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, 100); in testMeasure() local
1734 view.setLayoutParams(layoutParams); in testMeasure()
3398 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(300, 500); in testSetScrollContainer() local
3405 mockView.setLayoutParams(layoutParams); in testSetScrollContainer()
[all …]