/cts/tests/tests/widget/src/android/widget/cts/ |
D | RelativeLayout_LayoutParamsTest.java | 62 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(200, 300); in testConstructor() local 63 assertEquals(200, layoutParams.width); in testConstructor() 64 assertEquals(300, layoutParams.height); in testConstructor() 66 RelativeLayout.LayoutParams tempLayoutParams = layoutParams; in testConstructor() 67 layoutParams = new RelativeLayout.LayoutParams(tempLayoutParams); in testConstructor() 68 assertEquals(200, layoutParams.width); in testConstructor() 69 assertEquals(300, layoutParams.height); in testConstructor() 72 layoutParams = new RelativeLayout.LayoutParams(tempViewGroupLayoutParams); in testConstructor() 73 assertEquals(300, layoutParams.width); in testConstructor() 74 assertEquals(400, layoutParams.height); in testConstructor() [all …]
|
D | AbsListView_LayoutParamsTest.java | 56 AbsListView.LayoutParams layoutParams; in testConstructors() local 58 layoutParams = new AbsListView.LayoutParams(mContext, mAttributeSet); in testConstructors() 59 assertEquals(TEST_WIDTH, layoutParams.width); in testConstructors() 60 assertEquals(TEST_HEIGHT, layoutParams.height); in testConstructors() 62 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 64 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 65 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors() 67 layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, in testConstructors() 69 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructors() 70 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testConstructors() [all …]
|
D | TableRow_LayoutParamsTest.java | 66 TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(200, 300); in testConstructor() local 67 assertEquals(200, layoutParams.width); in testConstructor() 68 assertEquals(300, layoutParams.height); in testConstructor() 69 assertEquals(-1, layoutParams.column); in testConstructor() 70 assertEquals(1, layoutParams.span); in testConstructor() 71 ViewGroup.LayoutParams oldParams = layoutParams; in testConstructor() 73 layoutParams = new TableRow.LayoutParams(200, 300, 1.2f); in testConstructor() 74 assertEquals(200, layoutParams.width); in testConstructor() 75 assertEquals(300, layoutParams.height); in testConstructor() 76 assertEquals(1.2f, layoutParams.weight, 0.0f); in testConstructor() [all …]
|
D | TableLayout_LayoutParamsTest.java | 55 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(); in testConstructor() local 56 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 57 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 60 layoutParams = new TableLayout.LayoutParams(mContext, null); in testConstructor() 61 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 62 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); in testConstructor() 65 layoutParams = new TableLayout.LayoutParams(200, 300); in testConstructor() 66 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); in testConstructor() 67 assertEquals(300, layoutParams.height); in testConstructor() 70 layoutParams = new TableLayout.LayoutParams(250, 350, 1.2f); in testConstructor() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 59 LayoutParams layoutParams; in testConstructor() local 61 layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testConstructor() 62 assertEquals(1, layoutParams.width); in testConstructor() 63 assertEquals(2, layoutParams.height); in testConstructor() 64 assertEquals(3, layoutParams.x); in testConstructor() 65 assertEquals(4, layoutParams.y); in testConstructor() 67 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() 78 LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(1, 2, 3, 4); in testDebug() local 79 assertNotNull(layoutParams.debug("test: ")); in testDebug()
|
D | RadioGroupTest.java | 301 RadioGroup.LayoutParams layoutParams = in testGenerateLayoutParams() local 303 assertNotNull(layoutParams); in testGenerateLayoutParams() 305 assertEquals(0.0, layoutParams.weight, 0); in testGenerateLayoutParams() 306 assertEquals(-1, layoutParams.gravity); in testGenerateLayoutParams() 307 assertEquals(0, layoutParams.leftMargin); in testGenerateLayoutParams() 308 assertEquals(0, layoutParams.topMargin); in testGenerateLayoutParams() 309 assertEquals(0, layoutParams.rightMargin); in testGenerateLayoutParams() 310 assertEquals(0, layoutParams.bottomMargin); in testGenerateLayoutParams() 311 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateLayoutParams() 312 assertEquals(LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateLayoutParams() [all …]
|
D | LinearLayout_LayoutParamsTest.java | 67 LayoutParams layoutParams = new LayoutParams(200, 480); in testConstructor() local 68 linearLayoutParams = new LinearLayout.LayoutParams(layoutParams); in testConstructor() 93 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(320, 240); in testDebug() local 94 assertNotNull(layoutParams.debug("test: ")); in testDebug()
|
D | TableRowTest.java | 177 LinearLayout.LayoutParams layoutParams = mockTableRow.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local 178 assertNotNull(layoutParams); in testGenerateDefaultLayoutParams() 179 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateDefaultLayoutParams() 186 LinearLayout.LayoutParams layoutParams = mockTableRow.generateLayoutParams( in testGenerateLayoutParamsFromLayoutParams() local 188 assertNotNull(layoutParams); in testGenerateLayoutParamsFromLayoutParams() 189 assertEquals(200, layoutParams.width); in testGenerateLayoutParamsFromLayoutParams() 190 assertEquals(300, layoutParams.height); in testGenerateLayoutParamsFromLayoutParams() 191 assertTrue(layoutParams instanceof TableRow.LayoutParams); in testGenerateLayoutParamsFromLayoutParams()
|
D | RadioGroup_LayoutParamsTest.java | 143 MockLayoutParams layoutParams = new MockLayoutParams(mContext, null); in testSetBaseAttributes() local 145 assertEquals(RadioGroup.LayoutParams.WRAP_CONTENT, layoutParams.width); in testSetBaseAttributes() 146 assertEquals(RadioGroup.LayoutParams.WRAP_CONTENT, layoutParams.height); in testSetBaseAttributes() 151 layoutParams.setBaseAttributes(a, in testSetBaseAttributes() 155 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testSetBaseAttributes() 156 assertEquals(RadioGroup.LayoutParams.MATCH_PARENT, layoutParams.height); in testSetBaseAttributes()
|
D | RelativeLayoutTest.java | 259 LayoutParams layoutParams = relativeLayout.generateLayoutParams(parser); in testGenerateLayoutParams1() local 260 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams1() 261 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams1() 271 RelativeLayout.LayoutParams layoutParams = in testGenerateLayoutParams2() local 273 assertEquals(200, layoutParams.width); in testGenerateLayoutParams2() 274 assertEquals(300, layoutParams.height); in testGenerateLayoutParams2() 287 ViewGroup.LayoutParams layoutParams = myRelativeLayout.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local 288 assertTrue(layoutParams instanceof RelativeLayout.LayoutParams); in testGenerateDefaultLayoutParams() 289 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.width); in testGenerateDefaultLayoutParams() 290 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, layoutParams.height); in testGenerateDefaultLayoutParams()
|
D | GalleryTest.java | 166 LayoutParams layoutParams = gallery.generateLayoutParams(lp); in testGenerateLayoutParams() local 167 assertEquals(width, layoutParams.width); in testGenerateLayoutParams() 168 assertEquals(height, layoutParams.height); in testGenerateLayoutParams() 175 layoutParams = mGallery.generateLayoutParams(attrs); in testGenerateLayoutParams() 176 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParams() 177 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height); in testGenerateLayoutParams()
|
D | TableLayoutTest.java | 586 LinearLayout.LayoutParams layoutParams = mTableCustomEmpty.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local 587 assertNotNull(layoutParams); in testGenerateDefaultLayoutParams() 588 assertTrue(layoutParams instanceof TableLayout.LayoutParams); in testGenerateDefaultLayoutParams() 594 LinearLayout.LayoutParams layoutParams = mTableCustomEmpty.generateLayoutParams( in testGenerateLayoutParamsFromLayoutParams() local 596 assertNotNull(layoutParams); in testGenerateLayoutParamsFromLayoutParams() 597 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, layoutParams.width); in testGenerateLayoutParamsFromLayoutParams() 598 assertEquals(300, layoutParams.height); in testGenerateLayoutParamsFromLayoutParams() 599 assertTrue(layoutParams instanceof TableLayout.LayoutParams); in testGenerateLayoutParamsFromLayoutParams()
|
D | AbsoluteLayoutTest.java | 95 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); in testCheckLayoutParams() local 96 assertFalse(mMyAbsoluteLayout.checkLayoutParams(layoutParams)); in testCheckLayoutParams()
|
D | TextViewFadingEdgeTest.java | 173 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in createTextView() local 176 layout.setLayoutParams(layoutParams); in createTextView()
|
D | TextViewTest.java | 1662 final ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(textViewWidth, in testSetTextUpdatesHeightAfterRemovingImageSpan() local 1664 layout.addView(mTextView, layoutParams); in testSetTextUpdatesHeightAfterRemovingImageSpan() 1665 layout.setLayoutParams(layoutParams); in testSetTextUpdatesHeightAfterRemovingImageSpan() 3057 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in testEllipsizeAndMaxLinesForSingleLine() local 3060 layout.addView(tvEllipsizeEnd, layoutParams); in testEllipsizeAndMaxLinesForSingleLine() 3061 layout.addView(tvEllipsizeNone, layoutParams); in testEllipsizeAndMaxLinesForSingleLine() 3062 layout.addView(tvNoMaxLine, layoutParams); in testEllipsizeAndMaxLinesForSingleLine() 3102 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( in testEllipsizeAndMaxLinesForMultiLine() local 3106 layout.addView(tvNoMaxLine, layoutParams); in testEllipsizeAndMaxLinesForMultiLine() 3107 layout.addView(tvEllipsizeEnd, layoutParams); in testEllipsizeAndMaxLinesForMultiLine() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVCameraPreview.java | 150 ViewGroup.LayoutParams layoutParams = getLayoutParams(); in adjustLayoutParamsIfNeeded() local 157 layoutParams.height = (int)Math.round(curWidth * mAspect); in adjustLayoutParamsIfNeeded() 158 layoutParams.width = curWidth; in adjustLayoutParamsIfNeeded() 160 layoutParams.height = curHeight; in adjustLayoutParamsIfNeeded() 161 layoutParams.width = (int)Math.round(curHeight / mAspect); in adjustLayoutParamsIfNeeded() 164 if (layoutParams.height != curHeight || layoutParams.width != curWidth) { in adjustLayoutParamsIfNeeded() 166 layoutParams.width, layoutParams.height)); in adjustLayoutParamsIfNeeded() 167 setLayoutParams(layoutParams); in adjustLayoutParamsIfNeeded()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/ |
D | UsbTest.java | 75 WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams( in showOverlay() local 83 layoutParams.format = PixelFormat.TRANSLUCENT; in showOverlay() 84 layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in showOverlay() 85 layoutParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in showOverlay() 86 layoutParams.x = 0; in showOverlay() 87 layoutParams.y = dipToPx(-46); in showOverlay() 88 layoutParams.gravity = Gravity.CENTER; in showOverlay() 89 layoutParams.windowAnimations = 0; in showOverlay() 93 windowManager.addView(mOverlay, layoutParams); in showOverlay()
|
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/ |
D | AnimationTestCase.java | 33 FrameLayout.LayoutParams layoutParams, in AnimationTestCase() argument 37 mLayoutParams = layoutParams; in AnimationTestCase()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 253 LayoutParams layoutParams = mImageView.getLayoutParams(); in enterImageViewScene() local 256 layoutParams.width = Math.round(size); in enterImageViewScene() 257 layoutParams.height = Math.round(size * 2); in enterImageViewScene() 258 mImageView.setLayoutParams(layoutParams); in enterImageViewScene()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 344 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams( in setAnimationParameters() local 346 layoutParams.layoutAnimationParameters = animationParams; in setAnimationParameters() 347 return layoutParams; in setAnimationParameters()
|
D | LayoutAnimationControllerTest.java | 387 final AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams( in setAnimationParameters() local 389 layoutParams.layoutAnimationParameters = animationParams; in setAnimationParameters() 390 return layoutParams; in setAnimationParameters()
|
/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 | 622 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, 100); in testOnSizeChanged() local 623 mActivityRule.runOnUiThread(() -> view.setLayoutParams(layoutParams)); in testOnSizeChanged() 939 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(newWidth, 100); in testComputeHorizontalScroll() local 940 mActivityRule.runOnUiThread(() -> view.setLayoutParams(layoutParams)); in testComputeHorizontalScroll() 971 final LinearLayout.LayoutParams layoutParams = in testComputeVerticalScroll() local 973 mActivityRule.runOnUiThread(() -> view.setLayoutParams(layoutParams)); in testComputeVerticalScroll() 1898 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(200, 100); in testMeasure() local 1899 mActivityRule.runOnUiThread(() -> view.setLayoutParams(layoutParams)); in testMeasure() 3606 final LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(300, 500); in testSetScrollContainer() local 3611 mockView.setLayoutParams(layoutParams); in testSetScrollContainer() [all …]
|