Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 101) sorted by relevance

12345

/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java117 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); in onMeasure() local
124 if ((lp.boxedEdges & LayoutParams.BOX_LEFT) == 0) { in onMeasure()
125 marginLeft = lp.leftMargin; in onMeasure()
127 if ((lp.boxedEdges & LayoutParams.BOX_RIGHT) == 0) { in onMeasure()
128 marginRight = lp.rightMargin; in onMeasure()
130 if ((lp.boxedEdges & LayoutParams.BOX_TOP) == 0) { in onMeasure()
131 marginTop = lp.topMargin; in onMeasure()
133 if ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) == 0) { in onMeasure()
134 marginBottom = lp.bottomMargin; in onMeasure()
138 marginLeft = lp.leftMargin; in onMeasure()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DGridLayoutTest.java173 ViewGroup.LayoutParams lp = mGridLayout.generateLayoutParams(null); in testGenerateDefaultLayoutParams() local
174 assertNotNull(lp); in testGenerateDefaultLayoutParams()
175 assertTrue(lp instanceof GridLayout.LayoutParams); in testGenerateDefaultLayoutParams()
176 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.width); in testGenerateDefaultLayoutParams()
177 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.height); in testGenerateDefaultLayoutParams()
183 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
184 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
185 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
186 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
187 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
[all …]
DHorizontalScrollViewTest.java474 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(10, 10); in testFillViewportWithChildMargins() local
475 lp.leftMargin = 3; in testFillViewportWithChildMargins()
476 lp.topMargin = 10; in testFillViewportWithChildMargins()
477 lp.rightMargin = 5; in testFillViewportWithChildMargins()
478 lp.bottomMargin = 7; in testFillViewportWithChildMargins()
480 child.setLayoutParams(lp); in testFillViewportWithChildMargins()
519 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in testFillViewportWithChildMarginsAlreadyFills() local
523 lp.leftMargin = 3; in testFillViewportWithChildMarginsAlreadyFills()
524 lp.topMargin = 10; in testFillViewportWithChildMarginsAlreadyFills()
525 lp.rightMargin = 5; in testFillViewportWithChildMarginsAlreadyFills()
[all …]
DScrollViewTest.java488 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(10, 10); in testFillViewportWithChildMargins() local
489 lp.leftMargin = 3; in testFillViewportWithChildMargins()
490 lp.topMargin = 10; in testFillViewportWithChildMargins()
491 lp.rightMargin = 5; in testFillViewportWithChildMargins()
492 lp.bottomMargin = 7; in testFillViewportWithChildMargins()
494 child.setLayoutParams(lp); in testFillViewportWithChildMargins()
533 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in testFillViewportWithChildMarginsAlreadyFills() local
537 lp.leftMargin = 3; in testFillViewportWithChildMarginsAlreadyFills()
538 lp.topMargin = 10; in testFillViewportWithChildMarginsAlreadyFills()
539 lp.rightMargin = 5; in testFillViewportWithChildMarginsAlreadyFills()
[all …]
DFrameLayoutTest.java236 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
237 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
238 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
239 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
240 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
241 LayoutParams generated = (LayoutParams) myFrameLayout.generateLayoutParams(lp); in testGenerateLayoutParamsFromMarginParams()
DLinearLayoutTest.java228 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in testWeightDistribution() local
229 lp.height = 0; in testWeightDistribution()
230 lp.width = LayoutParams.MATCH_PARENT; in testWeightDistribution()
231 child.setLayoutParams(lp); in testWeightDistribution()
247 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in testWeightDistribution() local
248 lp.height = LayoutParams.MATCH_PARENT; in testWeightDistribution()
249 lp.width = 0; in testWeightDistribution()
250 child.setLayoutParams(lp); in testWeightDistribution()
268 ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(320, 240); in testGenerateLayoutParams() local
270 LayoutParams layoutParams1 = parent.generateLayoutParams(lp); in testGenerateLayoutParams()
[all …]
DRelativeLayoutTest.java300 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
301 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
302 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
303 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
304 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
306 layout.generateLayoutParams(lp); in testGenerateLayoutParamsFromMarginParams()
DGalleryTest.java164 LayoutParams lp = new LayoutParams(width, height); in testGenerateLayoutParams() local
166 LayoutParams layoutParams = gallery.generateLayoutParams(lp); in testGenerateLayoutParams()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java96 final LinearLayout.LayoutParams lp in horizontalButtonSlots() local
98 lp.setMargins(10, 0, 10, 0); in horizontalButtonSlots()
99 lp.weight = 0.33f; in horizontalButtonSlots()
121 ll.addView(button, lp); in horizontalButtonSlots()
123 ll.addView(new View(context), lp); in horizontalButtonSlots()
129 ll.addView(button, lp); in horizontalButtonSlots()
131 ll.addView(new View(context), lp); in horizontalButtonSlots()
137 ll.addView(button, lp); in horizontalButtonSlots()
139 ll.addView(new View(context), lp); in horizontalButtonSlots()
158 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in button() local
[all …]
DExpandableListScenario.java260 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in createView() local
263 result.setLayoutParams(lp); in createView()
/cts/tests/camera/src/android/hardware/cts/
DCameraCtsActivity.java37 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in onCreate() local
38 lp.width = LAYOUT_WIDTH; in onCreate()
39 lp.height = LAYOUT_HEIGHT; in onCreate()
40 mSurfaceView.setLayoutParams(lp); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLocationInWindowTests.java110 private void runTest(LayoutParams lp) { in runTest() argument
111 final TestActivity activity = launchAndWait(mActivity, lp); in runTest()
162 LayoutParams lp) { in launchAndWait() argument
164 new Intent().putExtra(EXTRA_LAYOUT_PARAMS, lp)); in launchAndWait()
186 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(1, 1); in onCreate() local
187 lp.leftMargin = 6; in onCreate()
188 lp.topMargin = 7; in onCreate()
189 frame.addView(mView, lp); in onCreate()
DLocationOnScreenTests.java123 private void runTest(LayoutParams lp) { in runTest() argument
124 final TestActivity activity = launchAndWait(mDisplayCutoutActivity, lp); in runTest()
149 LayoutParams lp) { in launchAndWait() argument
151 new Intent().putExtra(EXTRA_LAYOUT_PARAMS, lp)); in launchAndWait()
DWindowTest.java269 final ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(VIEWGROUP_LAYOUT_WIDTH, in testAddContentView() local
277 mWindow.addContentView(inflater.inflate(R.layout.windowstub_addlayout, null), lp); in testAddContentView() local
455 final ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(VIEWGROUP_LAYOUT_WIDTH, in testSetContentView() local
477 mWindow.setContentView(setView, lp); in testSetContentView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/
DPlayVideoActivity.java193 LayoutParams lp = mSurfaceView.getLayoutParams();
196 lp.width = rect.width();
197 lp.height = (int) (rect.width() / aspectRatio);
199 lp.width = (int) (rect.height() * aspectRatio);
200 lp.height = rect.height();
202 mSurfaceView.setLayoutParams(lp);
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DMediaRecorderCameraActivity.java76 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in onResume() local
77 lp.width = LAYOUT_WIDTH; in onResume()
78 lp.height = LAYOUT_HEIGHT; in onResume()
79 mSurfaceView.setLayoutParams(lp); in onResume()
/cts/tests/tests/view/src/android/view/cts/
DViewAnimationMatrixTest.java98 final ViewGroup.MarginLayoutParams lp = in moveToTopLeftCorner() local
101 matrix.setRotate(-view.getRotation(), lp.width / 2f, lp.height / 2f); in moveToTopLeftCorner()
102 matrix.postTranslate(-lp.leftMargin, 0); in moveToTopLeftCorner()
DViewGroup_MarginLayoutParamsTest.java78 ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(320, 480); in testConstructor() local
79 mMarginLayoutParams = new ViewGroup.MarginLayoutParams(lp); in testConstructor()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java99 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(w, h); in overScan() local
100 lp.setMargins(marginLeft, marginTop, marginRight, marginBottom); in overScan()
101 videoView.setLayoutParams(lp); in overScan()
/cts/tests/tests/net/src/android/net/cts/
DDnsTest.java289 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in ensureIpv6Connectivity()
290 if (lp.hasGlobalIpv6Address()) { in ensureIpv6Connectivity()
DDnsResolverTest.java624 public void onLinkPropertiesChanged(Network n, LinkProperties lp) { in awaitPrivateDnsSetting()
625 if (network.equals(n) && server.equals(lp.getPrivateDnsServerName())) { in awaitPrivateDnsSetting()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java98 LinkProperties lp = mCm.getLinkProperties(networks[i]); in getIpAddresses() local
99 for (LinkAddress address : lp.getLinkAddresses()) { in getIpAddresses()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverLocationTest.java116 LocationProvider lp = mLocationManager.getProvider(TEST_PROVIDER_NAME); in setUp() local
117 if (lp != null) { in setUp()
/cts/tests/app/src/android/app/cts/
DDialogTest.java344 final WindowManager.LayoutParams lp = d.getWindow().getAttributes(); in testSetContentView() local
350 d.setContentView(inflate2.inflate(R.layout.alert_dialog_text_entry, null), lp); in testSetContentView()
570 final WindowManager.LayoutParams lp = d.getWindow().getAttributes(); in testOnWindowAttributesChanged() local
571 lp.setTitle("test OnWindowAttributesChanged"); in testOnWindowAttributesChanged()
574 d.getWindow().setAttributes(lp); in testOnWindowAttributesChanged()
580 assertSame(lp, d.getWindow().getAttributes()); in testOnWindowAttributesChanged()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DVpnTest.java928 LinkProperties lp = mCM.getLinkProperties(network); in assertNetworkHasExpectedProxy() local
929 assertNotNull("The network link properties object is null.", lp); in assertNetworkHasExpectedProxy()
930 assertEquals("Incorrect proxy config.", expected, lp.getHttpProxy()); in assertNetworkHasExpectedProxy()

12345