/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 40 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 …]
|
D | AbsListView_LayoutParamsTest.java | 47 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 …]
|
D | TableRow_LayoutParamsTest.java | 58 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 …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 44 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()
|
D | TableLayout_LayoutParamsTest.java | 47 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 …]
|
D | LinearLayout_LayoutParamsTest.java | 43 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()
|
D | RadioGroupTest.java | 288 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 …]
|
D | TableRowTest.java | 158 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()
|
D | RadioGroup_LayoutParamsTest.java | 141 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()
|
D | RelativeLayoutTest.java | 266 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()
|
D | GalleryTest.java | 167 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()
|
D | TableLayoutTest.java | 580 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()
|
D | AbsoluteLayoutTest.java | 88 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() local 89 assertFalse(mMyAbsoluteLayout.checkLayoutParams(layoutParams)); in testCheckLayoutParams()
|
D | TextViewFadingEdgeTest.java | 158 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in createTextView() local 161 layout.setLayoutParams(layoutParams); in createTextView()
|
D | TextViewTest.java | 1324 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/ |
D | ChangeImageTransformTest.java | 238 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/ |
D | GridLayoutAnimationControllerTest.java | 334 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams( 336 layoutParams.layoutAnimationParameters = animationParams; 337 return layoutParams;
|
D | LayoutAnimationControllerTest.java | 377 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams( 379 layoutParams.layoutAnimationParameters = animationParams; 380 return layoutParams;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 482 LayoutParams layoutParams = new LayoutParams(newWidth, newHeight); 483 mCameraView.setLayoutParams(layoutParams);
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 505 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 …]
|