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

12345678910

/frameworks/support/compat/jellybean-mr1/android/support/v4/view/
H A DMarginLayoutParamsCompatJellybeanMr1.java23 public static int getMarginStart(ViewGroup.MarginLayoutParams lp) { argument
24 return lp.getMarginStart();
27 public static int getMarginEnd(ViewGroup.MarginLayoutParams lp) { argument
28 return lp.getMarginEnd();
31 public static void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) { argument
32 lp.setMarginStart(marginStart);
35 public static void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) { argument
36 lp.setMarginEnd(marginEnd);
39 public static boolean isMarginRelative(ViewGroup.MarginLayoutParams lp) { argument
40 return lp
43 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
47 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
51 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/preference/
H A DListPreferenceTest.java26 ListPreference lp = new ListPreference(getContext());
27 lp.setEntries(entries);
28 lp.setEntryValues(entryValues);
30 lp.setValue(entryValues[1]);
31 assertTrue(lp.getSummary() == null);
33 lp.setSummary("%1$s");
34 assertEquals(entries[1], lp.getSummary());
36 lp.setValue(entryValues[2]);
37 assertEquals(entries[2], lp.getSummary());
39 lp
[all...]
/frameworks/support/compat/java/android/support/v4/view/
H A DMarginLayoutParamsCompat.java29 int getMarginStart(ViewGroup.MarginLayoutParams lp); argument
30 int getMarginEnd(ViewGroup.MarginLayoutParams lp); argument
31 void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart); argument
32 void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd); argument
33 boolean isMarginRelative(ViewGroup.MarginLayoutParams lp); argument
34 int getLayoutDirection(ViewGroup.MarginLayoutParams lp); argument
35 void setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); argument
36 void resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); argument
42 public int getMarginStart(ViewGroup.MarginLayoutParams lp) { argument
43 return lp
47 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
52 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
57 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
62 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
67 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
72 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
77 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
85 getMarginStart(ViewGroup.MarginLayoutParams lp) argument
90 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
95 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
100 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
105 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
110 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
115 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
120 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
146 getMarginStart(ViewGroup.MarginLayoutParams lp) argument
161 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
176 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
191 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
200 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
210 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
228 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
236 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DSoftInputWindow.java50 WindowManager.LayoutParams lp = getWindow().getAttributes();
51 lp.token = token;
52 getWindow().setAttributes(lp);
112 WindowManager.LayoutParams lp = getWindow().getAttributes();
113 lp.gravity = gravity;
114 updateWidthHeight(lp);
115 getWindow().setAttributes(lp);
122 private void updateWidthHeight(WindowManager.LayoutParams lp) { argument
123 if (lp.gravity == Gravity.TOP || lp
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DDialogViewAnimator.java57 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
58 final boolean matchWidth = lp.width == LayoutParams.MATCH_PARENT;
59 final boolean matchHeight = lp.height == LayoutParams.MATCH_PARENT;
72 + lp.leftMargin + lp.rightMargin);
78 + lp.topMargin + lp.bottomMargin);
110 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
113 if (lp.width == LayoutParams.MATCH_PARENT) {
116 - lp
[all...]
H A DMessagingLinearLayout.java109 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
110 lp.hide = true;
123 LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams();
136 int newHeight = Math.max(totalHeight, totalHeight + childHeight + lp.topMargin +
137 lp.bottomMargin + (first ? 0 : mSpacing));
142 lp.hide = false;
156 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
158 if (child.getVisibility() == GONE || lp.hide) {
178 child.getMeasuredWidth() + lp.leftMargin + lp
262 generateLayoutParams(ViewGroup.LayoutParams lp) argument
[all...]
H A DNotificationActionListLayout.java117 MarginLayoutParams lp = (MarginLayoutParams) c.getLayoutParams();
134 usedWidth += c.getMeasuredWidth() + lp.rightMargin + lp.leftMargin;
142 MarginLayoutParams lp = (MarginLayoutParams) lastNotGoneChild.getLayoutParams();
145 usedWidth -= lastNotGoneChild.getMeasuredWidth() + lp.rightMargin + lp.leftMargin;
148 int originalWidth = lp.width;
149 lp.width = LayoutParams.MATCH_PARENT;
152 lp.width = originalWidth;
154 usedWidth += lastNotGoneChild.getMeasuredWidth() + lp
[all...]
H A DWatchListDecorLayout.java113 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
116 if (lp.width == LayoutParams.MATCH_PARENT) {
119 - lp.leftMargin - lp.rightMargin);
125 lp.leftMargin + lp.rightMargin,
126 lp.width);
130 if (lp.height == LayoutParams.MATCH_PARENT) {
133 - lp.topMargin - lp
[all...]
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DCustomLayout.java44 CustomLayout.LayoutParams lp = (CustomLayout.LayoutParams) child.getLayoutParams();
45 child.layout(lp.mLeft, lp.mTop, lp.mRight, lp.mBottom);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DDetailsOverviewLogoPresenter.java98 ViewGroup.LayoutParams lp = view.getLayoutParams();
99 vh.setSizeFromDrawableIntrinsic(lp.width == ViewGroup.LayoutParams.WRAP_CONTENT &&
100 lp.width == ViewGroup.LayoutParams.WRAP_CONTENT);
145 ViewGroup.LayoutParams lp = imageView.getLayoutParams();
146 lp.width = row.getImageDrawable().getIntrinsicWidth();
147 lp.height = row.getImageDrawable().getIntrinsicHeight();
151 if (lp.width > imageView.getMaxWidth()) {
152 maxScaleWidth = imageView.getMaxWidth() / (float) lp.width;
157 if (lp.height > imageView.getMaxHeight()) {
158 maxScaleHeight = imageView.getMaxHeight() / (float) lp
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java301 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
302 final int top = child.getTop() - lp.topMargin - mDividerHeight;
314 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
315 bottom = child.getBottom() + lp.bottomMargin;
329 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
332 position = child.getRight() + lp.rightMargin;
334 position = child.getLeft() - lp.leftMargin - mDividerWidth;
351 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
353 position = child.getLeft() - lp.leftMargin - mDividerWidth;
355 position = child.getRight() + lp
[all...]
H A DActionMenuView.java169 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
170 lp.leftMargin = lp.rightMargin = 0;
226 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
227 lp.expanded = false;
228 lp.extraPixels = 0;
229 lp.cellsUsed = 0;
230 lp.expandable = false;
231 lp.leftMargin = 0;
232 lp
[all...]
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java164 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
165 lp.leftMargin = lp.rightMargin = 0;
221 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
222 lp.expanded = false;
223 lp.extraPixels = 0;
224 lp.cellsUsed = 0;
225 lp.expandable = false;
226 lp.leftMargin = 0;
227 lp
[all...]
H A DFrameLayout.java186 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
188 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin);
190 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin);
193 if (lp.width == LayoutParams.MATCH_PARENT ||
194 lp.height == LayoutParams.MATCH_PARENT) {
224 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
227 if (lp.width == LayoutParams.MATCH_PARENT) {
230 - lp
384 generateLayoutParams(ViewGroup.LayoutParams lp) argument
[all...]
H A DLinearLayout.java364 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
365 final int top = child.getTop() - lp.topMargin - mDividerHeight;
377 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
378 bottom = child.getBottom() + lp.bottomMargin;
405 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
408 position = child.getRight() + lp.rightMargin;
410 position = child.getLeft() - lp.leftMargin - mDividerWidth;
427 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
429 position = child.getLeft() - lp.leftMargin - mDividerWidth;
431 position = child.getRight() + lp
1846 generateLayoutParams(ViewGroup.LayoutParams lp) argument
[all...]
H A DViewSwitcher.java86 LayoutParams lp = (LayoutParams) child.getLayoutParams();
87 if (lp == null) {
88 lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
90 addView(child, lp);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardStatusBarView.java87 MarginLayoutParams lp = (MarginLayoutParams) mMultiUserAvatar.getLayoutParams();
88 lp.width = lp.height = getResources().getDimensionPixelSize(
90 mMultiUserAvatar.setLayoutParams(lp);
92 lp = (MarginLayoutParams) mMultiUserSwitch.getLayoutParams();
93 lp.width = getResources().getDimensionPixelSize(
95 lp.setMarginEnd(getResources().getDimensionPixelSize(
97 mMultiUserSwitch.setLayoutParams(lp);
99 lp = (MarginLayoutParams) mSystemIconsSuperContainer.getLayoutParams();
100 lp
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkPropertiesTest.java247 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
248 for (RouteInfo r : lp.getRoutes()) {
260 LinkProperties lp = new LinkProperties();
262 assertTrue(lp.addRoute(r));
263 assertEquals(1, lp.getRoutes().size());
264 assertAllRoutesHaveInterface(null, lp);
267 assertFalse(lp.addRoute(r));
268 assertEquals(1, lp.getRoutes().size());
273 lp.addRoute(r);
278 lp
364 getFirstLinkAddress(LinkProperties lp) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListViewHeight.java62 ViewGroup.MarginLayoutParams lp;
63 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams();
64 lp.height = 200;
65 mInnerList.setLayoutParams(lp);
78 ViewGroup.MarginLayoutParams lp;
79 lp = (ViewGroup.MarginLayoutParams) mInnerList.getLayoutParams();
80 lp.height = lp.MATCH_PARENT;
81 mInnerList.setLayoutParams(lp);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DTestedFrameLayout.java48 FullControlLayoutParams lp = (FullControlLayoutParams) recyclerView.getLayoutParams();
49 if (lp.wSpec == null && lp.hSpec == null) {
54 if (lp.wSpec != null) {
55 childWidthMeasureSpec = lp.wSpec;
56 } else if (lp.width == LayoutParams.MATCH_PARENT) {
58 - lp.leftMargin - lp.rightMargin);
62 lp.leftMargin + lp
[all...]
H A DStaggeredGridLayoutManagerWrapContentTest.java67 TestedFrameLayout.FullControlLayoutParams lp =
81 layoutAndCheck(lp, adapter, expected, 60, 20);
87 TestedFrameLayout.FullControlLayoutParams lp =
101 layoutAndCheck(lp, adapter, expected, 20, 60);
106 TestedFrameLayout.FullControlLayoutParams lp =
108 lp.wSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
121 layoutAndCheck(lp, adapter, expected, 6000, 20);
126 TestedFrameLayout.FullControlLayoutParams lp =
128 lp.hSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
141 layoutAndCheck(lp, adapte
[all...]
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
H A DLinearLayoutTest.java36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
37 lp.gravity = va | ha;
39 container.addView(v, lp);
H A DAbstractLayoutTest.java60 ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) v.getLayoutParams();
61 lp.topMargin = (lp.topMargin + 1) % 31;
62 lp.leftMargin = (lp.leftMargin + 1) % 31;
/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java96 final LinearLayout.LayoutParams lp
98 lp.setMargins(10, 0, 10, 0);
99 lp.weight = 0.33f;
121 ll.addView(button, lp);
123 ll.addView(new View(context), lp);
129 ll.addView(button, lp);
131 ll.addView(new View(context), lp);
137 ll.addView(button, lp);
139 ll.addView(new View(context), lp);
159 final ViewGroup.LayoutParams lp
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DIPv6TetheringCoordinator.java119 final LinkProperties lp = getInterfaceIPv6LinkProperties(sm);
120 sm.sendMessage(TetherInterfaceStateMachine.CMD_IPV6_TETHER_UPDATE, 0, 0, lp);
140 final LinkProperties lp = getIPv6OnlyLinkProperties(
142 if (lp.hasIPv6DefaultRoute() && lp.hasGlobalIPv6Address()) {
143 return lp;
216 private static LinkProperties getIPv6OnlyLinkProperties(LinkProperties lp) { argument
218 if (lp == null) {
225 v6only.setInterfaceName(lp.getInterfaceName());
227 v6only.setMtu(lp
[all...]

Completed in 632 milliseconds

12345678910