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

1234567

/frameworks/support/v4/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/v4/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
221 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
229 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...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java297 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
298 final int top = child.getTop() - lp.topMargin - mDividerHeight;
310 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
311 bottom = child.getBottom() + lp.bottomMargin;
325 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
328 position = child.getRight() + lp.rightMargin;
330 position = child.getLeft() - lp.leftMargin - mDividerWidth;
347 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
349 position = child.getLeft() - lp.leftMargin - mDividerWidth;
351 position = child.getRight() + lp
[all...]
H A DActionMenuView.java168 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
169 lp.leftMargin = lp.rightMargin = 0;
225 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
226 lp.expanded = false;
227 lp.extraPixels = 0;
228 lp.cellsUsed = 0;
229 lp.expandable = false;
230 lp.leftMargin = 0;
231 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.java195 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
197 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin);
199 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin);
202 if (lp.width == LayoutParams.MATCH_PARENT ||
203 lp.height == LayoutParams.MATCH_PARENT) {
233 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
236 if (lp.width == LayoutParams.MATCH_PARENT) {
239 - lp
[all...]
H A DLinearLayout.java354 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
355 final int top = child.getTop() - lp.topMargin - mDividerHeight;
367 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
368 bottom = child.getBottom() + lp.bottomMargin;
396 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
399 position = child.getRight() + lp.rightMargin;
401 position = child.getLeft() - lp.leftMargin - mDividerWidth;
418 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
420 position = child.getLeft() - lp.leftMargin - mDividerWidth;
422 position = child.getRight() + lp
[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);
H A DDayPickerViewPager.java70 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
75 if (lp.width == LayoutParams.MATCH_PARENT ||
76 lp.height == LayoutParams.MATCH_PARENT) {
107 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
111 if (lp.width == LayoutParams.MATCH_PARENT) {
118 lp.width);
121 if (lp.height == LayoutParams.MATCH_PARENT) {
128 lp.height);
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkPropertiesTest.java241 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
242 for (RouteInfo r : lp.getRoutes()) {
254 LinkProperties lp = new LinkProperties();
256 assertTrue(lp.addRoute(r));
257 assertEquals(1, lp.getRoutes().size());
258 assertAllRoutesHaveInterface(null, lp);
261 assertFalse(lp.addRoute(r));
262 assertEquals(1, lp.getRoutes().size());
267 lp.addRoute(r);
272 lp
358 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/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/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBrowseRowsFrameLayout.java46 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
48 getPaddingLeft() + getPaddingRight() + widthUsed, lp.width);
50 getPaddingTop() + getPaddingBottom() + heightUsed, lp.height);
H A DScaleFrameLayout.java93 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
101 int gravity = lp.gravity;
112 lp.leftMargin - lp.rightMargin;
115 childLeft = parentRight - width - lp.rightMargin;
119 childLeft = parentLeft + lp.leftMargin;
124 childTop = parentTop + lp.topMargin;
128 lp.topMargin - lp.bottomMargin;
131 childTop = parentBottom - height - lp
[all...]
H A DControlBar.java78 LayoutParams lp = (LayoutParams) second.getLayoutParams();
79 int extraMargin = marginStart - lp.getMarginStart();
80 lp.setMarginStart(marginStart);
81 second.setLayoutParams(lp);
H A DDetailsOverviewLogoPresenter.java74 ViewGroup.LayoutParams lp = imageView.getLayoutParams();
75 lp.width = row.getImageDrawable().getIntrinsicWidth();
76 lp.height = row.getImageDrawable().getIntrinsicHeight();
77 imageView.setLayoutParams(lp);
/frameworks/support/design/src/android/support/design/widget/
H A DCoordinatorLayout.java303 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
304 lp.resetTouchBehaviorTracking();
343 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
344 final Behavior b = lp.getBehavior();
383 final boolean wasBlocking = lp.didBlockInteraction();
384 final boolean isBlocking = lp.isBlockingInteractionBelow(this, child);
433 final LayoutParams lp = (LayoutParams) mBehaviorTouchView.getLayoutParams();
434 final Behavior b = lp.getBehavior();
555 final LayoutParams lp = getResolvedLayoutParams(child);
556 if (!resortRequired && lp
[all...]
/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/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeApp.java117 WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
123 lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
125 lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
126 lp.height = ViewGroup.LayoutParams.MATCH_PARENT;
129 lp.x = maxSize;
130 lp.y = maxSize;
131 lp.setTitle(getPackageName());
132 wm.addView(view, lp);
/frameworks/support/v4/java/android/support/v4/app/
H A DNoSaveStateFrameLayout.java37 NoSaveStateFrameLayout.LayoutParams lp = new NoSaveStateFrameLayout.LayoutParams(
39 child.setLayoutParams(lp);
/frameworks/support/v4/java/android/support/v4/widget/
H A DSlidingPaneLayout.java507 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
510 lp.dimWhenOffset = false;
514 if (lp.weight > 0) {
515 weightSum += lp.weight;
519 if (lp.width == 0) continue;
523 final int horizontalMargin = lp.leftMargin + lp.rightMargin;
524 if (lp.width == LayoutParams.WRAP_CONTENT) {
527 } else if (lp.width == LayoutParams.FILL_PARENT) {
531 childWidthSpec = MeasureSpec.makeMeasureSpec(lp
[all...]

Completed in 2497 milliseconds

1234567