Home
last modified time | relevance | path

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

/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.java158 ViewGroup.LayoutParams lp = gridLayout.generateLayoutParams(null); in testGenerateDefaultLayoutParams() local
159 assertNotNull(lp); in testGenerateDefaultLayoutParams()
160 assertTrue(lp instanceof GridLayout.LayoutParams); in testGenerateDefaultLayoutParams()
161 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.width); in testGenerateDefaultLayoutParams()
162 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, lp.height); in testGenerateDefaultLayoutParams()
167 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
168 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
169 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
170 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
171 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
[all …]
DLinearLayoutTest.java191 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in testWeightDistribution() local
192 lp.height = 0; in testWeightDistribution()
193 lp.width = LayoutParams.MATCH_PARENT; in testWeightDistribution()
194 child.setLayoutParams(lp); in testWeightDistribution()
210 LayoutParams lp = (LayoutParams) child.getLayoutParams(); in testWeightDistribution() local
211 lp.height = LayoutParams.MATCH_PARENT; in testWeightDistribution()
212 lp.width = 0; in testWeightDistribution()
213 child.setLayoutParams(lp); in testWeightDistribution()
229 ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(320, 240); in testGenerateLayoutParams() local
231 LayoutParams layoutParams1 = mockLinearLayout.generateLayoutParams(lp); in testGenerateLayoutParams()
[all …]
DHorizontalScrollViewTest.java447 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(10, 10); in testFillViewportWithChildMargins() local
448 lp.leftMargin = 3; in testFillViewportWithChildMargins()
449 lp.topMargin = 10; in testFillViewportWithChildMargins()
450 lp.rightMargin = 5; in testFillViewportWithChildMargins()
451 lp.bottomMargin = 7; in testFillViewportWithChildMargins()
453 child.setLayoutParams(lp); in testFillViewportWithChildMargins()
490 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in testFillViewportWithChildMarginsAlreadyFills() local
494 lp.leftMargin = 3; in testFillViewportWithChildMarginsAlreadyFills()
495 lp.topMargin = 10; in testFillViewportWithChildMarginsAlreadyFills()
496 lp.rightMargin = 5; in testFillViewportWithChildMarginsAlreadyFills()
[all …]
DScrollViewTest.java466 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(10, 10); in testFillViewportWithChildMargins() local
467 lp.leftMargin = 3; in testFillViewportWithChildMargins()
468 lp.topMargin = 10; in testFillViewportWithChildMargins()
469 lp.rightMargin = 5; in testFillViewportWithChildMargins()
470 lp.bottomMargin = 7; in testFillViewportWithChildMargins()
472 child.setLayoutParams(lp); in testFillViewportWithChildMargins()
509 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in testFillViewportWithChildMarginsAlreadyFills() local
513 lp.leftMargin = 3; in testFillViewportWithChildMarginsAlreadyFills()
514 lp.topMargin = 10; in testFillViewportWithChildMarginsAlreadyFills()
515 lp.rightMargin = 5; in testFillViewportWithChildMarginsAlreadyFills()
[all …]
DFrameLayoutTest.java226 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
227 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
228 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
229 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
230 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
231 LayoutParams generated = (LayoutParams) myFrameLayout.generateLayoutParams(lp); in testGenerateLayoutParamsFromMarginParams()
DRelativeLayoutTest.java301 ViewGroup.MarginLayoutParams lp = new ViewGroup.MarginLayoutParams(3, 5); in testGenerateLayoutParamsFromMarginParams() local
302 lp.leftMargin = 1; in testGenerateLayoutParamsFromMarginParams()
303 lp.topMargin = 2; in testGenerateLayoutParamsFromMarginParams()
304 lp.rightMargin = 3; in testGenerateLayoutParamsFromMarginParams()
305 lp.bottomMargin = 4; in testGenerateLayoutParamsFromMarginParams()
307 layout.generateLayoutParams(lp); in testGenerateLayoutParamsFromMarginParams()
DGalleryTest.java165 LayoutParams lp = new LayoutParams(width, height); in testGenerateLayoutParams() local
167 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.java257 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in createView() local
260 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/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.java73 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in onResume() local
74 lp.width = LAYOUT_WIDTH; in onResume()
75 lp.height = LAYOUT_HEIGHT; in onResume()
76 mSurfaceView.setLayoutParams(lp); in onResume()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java97 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(w, h); in overScan() local
98 lp.setMargins(marginLeft, marginTop, marginRight, marginBottom); in overScan()
99 videoView.setLayoutParams(lp); in overScan()
/cts/tests/tests/view/src/android/view/cts/
DViewGroup_MarginLayoutParamsTest.java68 ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(320, 480); in testConstructor() local
69 mMarginLayoutParams = new ViewGroup.MarginLayoutParams(lp); in testConstructor()
DWindowTest.java221 final ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(VIEWGROUP_LAYOUT_WIDTH, in testAddContentView() local
231 mWindow.addContentView(inflater.inflate(R.layout.windowstub_addlayout, null), lp); in testAddContentView()
429 final ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(VIEWGROUP_LAYOUT_WIDTH, in testSetContentView() local
452 mWindow.setContentView(setView, lp); in testSetContentView()
DViewGroupTest.java719 LayoutParams lp = vg.generateDefaultLayoutParams(); in testGenerateDefaultLayoutParams() local
721 assertEquals(LayoutParams.WRAP_CONTENT, lp.width); in testGenerateDefaultLayoutParams()
722 assertEquals(LayoutParams.WRAP_CONTENT, lp.height); in testGenerateDefaultLayoutParams()
730 LayoutParams lp = vg.generateLayoutParams(set); in testGenerateLayoutParamsWithParaAttributeSet() local
731 assertNotNull(lp); in testGenerateLayoutParamsWithParaAttributeSet()
732 assertEquals(25, lp.height); in testGenerateLayoutParamsWithParaAttributeSet()
733 assertEquals(25, lp.width); in testGenerateLayoutParamsWithParaAttributeSet()
/cts/tests/app/src/android/app/cts/
DDialogTest.java284 final WindowManager.LayoutParams lp = d.getWindow().getAttributes(); in testSetContentView() local
290 d.setContentView(inflate2.inflate(R.layout.alert_dialog_text_entry, null), lp); in testSetContentView()
467 final WindowManager.LayoutParams lp = d.getWindow().getAttributes(); in testOnWindowAttributesChanged() local
468 lp.setTitle("test OnWindowAttributesChanged"); in testOnWindowAttributesChanged()
471 d.getWindow().setAttributes(lp); in testOnWindowAttributesChanged()
477 assertSame(lp, d.getWindow().getAttributes()); in testOnWindowAttributesChanged()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java99 LinkProperties lp = mCm.getLinkProperties(networks[i]); in getIpAddresses() local
100 for (LinkAddress address : lp.getLinkAddresses()) { in getIpAddresses()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java78 LocationProvider lp = mManager.getProvider(TEST_MOCK_PROVIDER_NAME); in setUp() local
79 if (lp != null) { in setUp()
/cts/apps/CtsVerifier/libs/
Dopencv3-android.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/opencv/ org/ ...
/cts/tests/tests/media/assets/
Dsegment000001.ts606 …�ğ1�K��6���ș����ȷ%\ *T[���F|�g�i��`٠h>��8�/���q�~�`���jG�!t;8��lp�Y�� �x�6I���%,�…
1774 �]�w@M�eW��n*h p�e�e�#n��lp˩��Γ�m��n�4�L��X�BF6_�^�a�ʵ�X 8�|p:��HGA�5� f������T��!�O�…
DfileSequence1.ts2075 �]�w@M�eW��n*h p�e�e�#n��lp˩��Γ�m��n�4�L��X�BF6_�^�a�ʵ�X 8�|p:��H�� ���A���_�a��tK��p�…
/cts/tests/tests/media/res/raw/
Dtestmp3_3.raw1 …8n6P/+5mc4IUyA9+d1IMfWQwSAYki225m3SBom55cKg/BOzolnxj+vXP1/BpTtRHsq7mb+uF3b+lp+9/roqUt71/9OhlOM9x1B…
Dfootball_qvga.yuv10 …����������vrh^\dhggd`\^aXNH?==COZiw}����������{phif`^WTTSX^cit~������������lp|�����u][h}����������…
35 …MQVY\\Z[YSQQLPTUUTWVXYZ][VTTVVYZVSUUTTVWZ^acghgggd�������������������rj~���lp���WY��������������wo…
73 …XYZXPQh��rSPx~N-!'?\XLU]`frx{�����������������������NBJOUTRSRQRLM�ǿ�īxN{�lp{>)9Q��e\R;15-##'-/23…
95 …���������V,Lb<;==9;@=;ADD?4'!#$#$0GZ`_\YN?04M^ly|~�����������xpfbfe\K0-_{lp�����������������}nko…
153 …A@><;8=CEEB@HYfcac_[VV_ilkhgijjghnv}}|y||{ysm_r����|{kajw��|vpnosuv~������lp����)cۨ0L���������vk…
193 …���������������ocgklljjjjmspjihc]][Z[\dhikjeafopt{{usmcWK?;?JS]gijkmnhmxy~}lp}xtrpqtcf���Hq�R$E[…
272 …ccddddccccccfhgedegggeZI=1-.216D>Nu{z|||||{{}~�������}}{zyyyw}���������lp�����������~xurllrppp…
292 …ihdcdcdfihhikjhijmpnjjifedc``cfihggfgjkikkjkjey��y������������mW`rfBL������lp������_Ml~��xwwrmloi…
295 …hihhigegggijiihhiiggihhhiihiiiikkjjiiej���ɽ���lMAb}}~{yuh_g���������������{lp���~ywpptsm`K9,'(%$/…
297lp��vsrspmllsxlR7' #$$$&(# &^�zdsyp~�E%d�sXP[eiikmlkmmmllkihfggfddfdffddefghijjiiiiiihhhhggfefgf…
[all …]