Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 106) 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 …]
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 …]
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 …]
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 …]
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()
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()
/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/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()
/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/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/media/src/android/mediav2/cts/
DCodecDecoderSurfaceTest.java61 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in setScreenParams() local
64 lp.width = width; in setScreenParams()
65 lp.height = height; in setScreenParams()
69 lp.width = dm.widthPixels; in setScreenParams()
70 lp.height = a; in setScreenParams()
72 lp.width = dm.heightPixels * width / height; in setScreenParams()
73 lp.height = dm.heightPixels; in setScreenParams()
76 assertTrue(lp.width <= dm.widthPixels); in setScreenParams()
77 assertTrue(lp.height <= dm.heightPixels); in setScreenParams()
78 mActivityRule.getActivity().runOnUiThread(() -> mSurfaceView.setLayoutParams(lp)); in setScreenParams()
/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/
DCaptivePortalApiTest.kt176 val lp = runAsShell(NETWORK_SETTINGS) { in testApiCallbacks() constant
184 it.network == ncCb.network && it.lp.captivePortalData != null in testApiCallbacks()
185 }.lp in testApiCallbacks()
191 assertEquals(capportUrl, lp.captivePortalApiUrl) in testApiCallbacks()
192 with(lp.captivePortalData) { in testApiCallbacks()
DNetworkAgentTest.kt185 val lp: LinkProperties, in willExpectDisconnectOnce() constant
188 nc, lp, TEST_NETWORK_SCORE, conf, Provider(context, looper)) { in willExpectDisconnectOnce()
315 val lp = LinkProperties().apply { in createNetworkAgent() constant
319 return TestableNetworkAgent(mHandlerThread.looper, nc, lp, config).also { in createNetworkAgent()
466 val lp = LinkProperties(agent.lp) in agent() constant
467 lp.setInterfaceName(ifaceName) in agent()
468 agent.sendLinkProperties(lp) in agent()
DDnsTest.java292 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in ensureIpv6Connectivity()
293 if (lp.hasGlobalIpv6Address()) { in ensureIpv6Connectivity()
/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/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/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/tests/tests/net/util/java/android/net/cts/util/
DCtsNetUtils.java452 public void onLinkPropertiesChanged(Network n, LinkProperties lp) { in awaitPrivateDnsSetting()
453 if (requiresValidatedServers && lp.getValidatedPrivateDnsServers().isEmpty()) { in awaitPrivateDnsSetting()
456 if (network.equals(n) && server.equals(lp.getPrivateDnsServerName())) { in awaitPrivateDnsSetting()

12345