/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | BoxInsetLayout.java | 117 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/ |
D | GridLayoutTest.java | 173 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 …]
|
D | HorizontalScrollViewTest.java | 474 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 …]
|
D | ScrollViewTest.java | 488 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 …]
|
D | FrameLayoutTest.java | 236 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()
|
D | LinearLayoutTest.java | 228 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 …]
|
D | RelativeLayoutTest.java | 300 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()
|
D | GalleryTest.java | 164 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/ |
D | ListItemFactory.java | 96 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 …]
|
D | ExpandableListScenario.java | 260 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in createView() local 263 result.setLayoutParams(lp); in createView()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraCtsActivity.java | 37 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/ |
D | LocationInWindowTests.java | 110 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()
|
D | LocationOnScreenTests.java | 123 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()
|
D | WindowTest.java | 269 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/ |
D | PlayVideoActivity.java | 193 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/ |
D | MediaRecorderCameraActivity.java | 76 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/ |
D | ViewAnimationMatrixTest.java | 98 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()
|
D | ViewGroup_MarginLayoutParamsTest.java | 78 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/ |
D | Utils.java | 99 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/ |
D | DnsTest.java | 289 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in ensureIpv6Connectivity() 290 if (lp.hasGlobalIpv6Address()) { in ensureIpv6Connectivity()
|
D | DnsResolverTest.java | 624 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/ |
D | ConnectivityManagerLegacyTest.java | 98 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/ |
D | BatterySaverLocationTest.java | 116 LocationProvider lp = mLocationManager.getProvider(TEST_PROVIDER_NAME); in setUp() local 117 if (lp != null) { in setUp()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 344 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/ |
D | VpnTest.java | 928 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()
|