Home
last modified time | relevance | path

Searched refs:mLayoutParams (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java57 private WindowManager.LayoutParams mLayoutParams; field in WindowManager_LayoutParamsTest
83 mLayoutParams = new WindowManager.LayoutParams(); in testConstructor()
84 mLayoutParams.token = binder; in testConstructor()
85 mLayoutParams.packageName = PACKAGE_NAME; in testConstructor()
86 mLayoutParams.setTitle(TITLE); in testConstructor()
88 mLayoutParams.writeToParcel(parcel, 0); in testConstructor()
104 mLayoutParams = new WindowManager.LayoutParams(); in testCopyFrom()
110 mLayoutParams.copyFrom(params)); in testCopyFrom()
111 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, mLayoutParams.type); in testCopyFrom()
112 assertEquals(WindowManager.LayoutParams.FLAG_DITHER, mLayoutParams.flags); in testCopyFrom()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DRadioGroup_LayoutParamsTest.java57 RadioGroup.LayoutParams mLayoutParams = in testConstructor() local
59 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor()
60 assertEquals(Integer.MAX_VALUE, mLayoutParams.height); in testConstructor()
61 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
63 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); in testConstructor()
64 assertEquals(Integer.MAX_VALUE, mLayoutParams.width); in testConstructor()
65 assertEquals(Integer.MIN_VALUE, mLayoutParams.height); in testConstructor()
66 assertEquals(0.0f, mLayoutParams.weight, 0.0f); in testConstructor()
68 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, in testConstructor()
70 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java71 private LayoutParams mLayoutParams; field in LocationInWindowTests
75 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp()
82 runTest(mLayoutParams); in testLocationInWindow_appWindow()
87 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationInWindow_appWindow_fullscreen()
88 runTest(mLayoutParams); in testLocationInWindow_appWindow_fullscreen()
93 mLayoutParams.height = 100; in testLocationInWindow_floatingWindow()
94 mLayoutParams.width = 100; in testLocationInWindow_floatingWindow()
95 mLayoutParams.gravity = Gravity.CENTER; in testLocationInWindow_floatingWindow()
96 mLayoutParams.flags &= ~(FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR); in testLocationInWindow_floatingWindow()
97 runTest(mLayoutParams); in testLocationInWindow_floatingWindow()
[all …]
DLocationOnScreenTests.java79 private LayoutParams mLayoutParams; field in LocationOnScreenTests
85 mLayoutParams = new LayoutParams(MATCH_PARENT, MATCH_PARENT, LayoutParams.TYPE_APPLICATION, in setUp()
92 runTest(mLayoutParams); in testLocationOnDisplay_appWindow()
97 mLayoutParams.flags |= LayoutParams.FLAG_FULLSCREEN; in testLocationOnDisplay_appWindow_fullscreen()
98 runTest(mLayoutParams); in testLocationOnDisplay_appWindow_fullscreen()
103 mLayoutParams.height = 50; in testLocationOnDisplay_floatingWindow()
104 mLayoutParams.width = 50; in testLocationOnDisplay_floatingWindow()
105 mLayoutParams.gravity = Gravity.CENTER; in testLocationOnDisplay_floatingWindow()
106 mLayoutParams.flags &= ~(FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR); in testLocationOnDisplay_floatingWindow()
107 runTest(mLayoutParams); in testLocationOnDisplay_floatingWindow()
[all …]
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/
DAnimationTestCase.java25 private final FrameLayout.LayoutParams mLayoutParams; field in AnimationTestCase
37 mLayoutParams = layoutParams; in AnimationTestCase()
50 mParent.addView(view, mLayoutParams); in start()