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

12345

/packages/apps/Launcher3/src/com/android/launcher3/
H A DShortcutAndWidgetContainer.java62 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
64 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
65 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
89 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
92 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX,
95 lp
[all...]
H A DInsettableFrameLayout.java31 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
35 } else if (!lp.ignoreInsets) {
36 lp.topMargin += (newInsets.top - oldInsets.top);
37 lp.leftMargin += (newInsets.left - oldInsets.left);
38 lp.rightMargin += (newInsets.right - oldInsets.right);
39 lp.bottomMargin += (newInsets.bottom - oldInsets.bottom);
41 child.setLayoutParams(lp);
95 public LayoutParams(ViewGroup.LayoutParams lp) { argument
96 super(lp);
H A DAppWidgetResizeFrame.java203 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
206 lp.x = mTempRange1.start;
207 lp.width = mTempRange1.size();
211 lp.y = mTempRange1.start;
212 lp.height = mTempRange1.size();
220 lp.width = sTmpRect.width() + sTmpRect.left - lp.x;
223 lp.height = sTmpRect.height() + sTmpRect.top - lp.y;
226 lp
[all...]
H A DLauncherRootView.java57 MarginLayoutParams lp = (MarginLayoutParams) mAlignedView.getLayoutParams();
58 if (lp.leftMargin != insets.left || lp.rightMargin != insets.right) {
59 lp.leftMargin = insets.left;
60 lp.rightMargin = insets.right;
61 mAlignedView.setLayoutParams(lp);
H A DDeviceProfile.java516 FrameLayout.LayoutParams lp;
522 lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams();
523 lp.width = searchBarBounds.x;
524 lp.height = searchBarBounds.y;
525 lp.topMargin = mInsets.top + edgeMarginPx;
526 searchBar.setLayoutParams(lp);
538 lp = (FrameLayout.LayoutParams) qsbContainer.getLayoutParams();
539 lp.topMargin = mInsets.top + workspacePadding.top;
540 qsbContainer.setLayoutParams(lp);
545 lp
[all...]
H A DCellLayout.java609 final LayoutParams lp = params;
622 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
625 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX;
626 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY;
632 mShortcutsAndWidgets.addView(child, index, lp);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiLayoutParams.java64 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) vp.getLayoutParams();
65 lp.height = mEmojiKeyboardHeight;
66 lp.bottomMargin = mEmojiPagerBottomMargin;
67 vp.setLayoutParams(lp);
71 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) v.getLayoutParams();
72 lp.height = mEmojiCategoryPageIdViewHeight;
73 v.setLayoutParams(lp);
81 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams();
82 lp.height = getActionBarHeight();
83 ll.setLayoutParams(lp);
[all...]
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DCalculatorScrollView.java59 final ViewGroup.LayoutParams lp = child.getLayoutParams();
61 0 /* padding */, lp.width);
63 getPaddingTop() + getPaddingBottom(), lp.height);
75 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
77 lp.leftMargin + lp.rightMargin, lp.width);
79 getPaddingTop() + getPaddingBottom() + lp.topMargin + lp.bottomMargin, lp
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DShortcutAndWidgetContainer.java64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
66 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) &&
67 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) {
84 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams();
86 canvas.drawRect(lp.x, lp
104 setupLp(CellLayout.LayoutParams lp) argument
[all...]
H A DPagedViewCellLayoutChildren.java92 PagedViewCellLayout.LayoutParams lp =
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
98 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width,
100 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height,
121 PagedViewCellLayout.LayoutParams lp =
123 minRowX = Math.min(minRowX, lp.x);
124 maxRowX = Math.max(maxRowX, lp.x + lp.width);
134 PagedViewCellLayout.LayoutParams lp =
137 int childLeft = offsetX + lp
[all...]
H A DAppWidgetResizeFrame.java95 LayoutParams lp;
98 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
100 addView(mLeftHandle, lp);
104 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
106 addView(mRightHandle, lp);
110 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
112 addView(mTopHandle, lp);
116 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT,
118 addView(mBottomHandle, lp);
203 DragLayer.LayoutParams lp
[all...]
H A DCellLayout.java617 final LayoutParams lp = params;
636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
639 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX;
640 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY;
644 mShortcutsAndWidgets.addView(child, index, lp);
[all...]
H A DPagedViewCellLayout.java103 final PagedViewCellLayout.LayoutParams lp = params;
107 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) &&
108 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) {
111 if (lp.cellHSpan < 0) lp.cellHSpan = mCellCountX;
112 if (lp.cellVSpan < 0) lp.cellVSpan = mCellCountY;
115 mChildren.addView(child, index, lp);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DPreviewImageView.java57 DragLayer.LayoutParams lp;
59 lp = (DragLayer.LayoutParams) getLayoutParams();
61 lp = new DragLayer.LayoutParams(width, height);
67 lp.customPosition = true;
68 lp.x = mTempRect.left;
69 lp.y = mTempRect.top;
70 lp.width = (int) (scale * width);
71 lp.height = (int) (scale * height);
80 mParent.addView(this, lp);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DViewLayoutUtils.java49 final ViewGroup.LayoutParams lp = view.getLayoutParams();
50 if (lp instanceof MarginLayoutParams) {
51 final MarginLayoutParams marginLayoutParams = (MarginLayoutParams)lp;
75 final ViewGroup.LayoutParams lp = view.getLayoutParams();
76 if (lp instanceof LinearLayout.LayoutParams) {
77 final LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)lp;
82 } else if (lp instanceof FrameLayout.LayoutParams) {
83 final FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)lp;
90 + lp.getClass().getName());
/packages/apps/TV/src/com/android/tv/guide/
H A DTimeListAdapter.java76 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) itemView.getLayoutParams();
77 lp.width = GuideUtils.convertMillisToPixel(startTime, endTime);
80 lp.setMarginStart(sRowHeaderOverlapping - lp.width / 2);
82 lp.setMarginStart(0);
84 itemView.setLayoutParams(lp);
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DCheckBoxItem.java49 LinearLayout.LayoutParams lp =
51 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
52 lp.topMargin = view.getResources().getDimensionPixelOffset(
54 checkBox.setLayoutParams(lp);
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DMaxWidthLayout.java78 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
79 if (lp.width == LayoutParams.MATCH_PARENT) {
86 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams();
89 mMaxChildrenWidth - lp.leftMargin - lp.rightMargin, MeasureSpec.EXACTLY);
/packages/apps/Settings/src/com/android/settings/widget/
H A DMatchParentShrinkingLinearLayout.java337 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
338 final int top = child.getTop() - lp.topMargin - mDividerHeight;
350 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
351 bottom = child.getBottom() + lp.bottomMargin;
365 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
368 position = child.getRight() + lp.rightMargin;
370 position = child.getLeft() - lp.leftMargin - mDividerWidth;
387 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
389 position = child.getLeft() - lp.leftMargin - mDividerWidth;
391 position = child.getRight() + lp
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorColorBorderTabletUI.java93 LinearLayout lp = (LinearLayout) inflater.inflate(
98 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles);
100 mCBCornerSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderCornerSizeSeekBar);
101 mCBCornerSizeValue = (TextView) lp.findViewById(R.id.colorBorderCornerValue);
102 mCBSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderSizeSeekBar);
104 mCBSizeValue = (TextView) lp.findViewById(R.id.colorBorderSizeValue);
105 setupCBSizeSeekBar(lp);
106 setupCBCornerSizeSeekBar(lp);
107 setupColor(lp, res);
110 private void setupCBSizeSeekBar(LinearLayout lp) { argument
130 setupCBCornerSizeSeekBar(LinearLayout lp) argument
150 setupColor(LinearLayout lp, Resources res) argument
[all...]
H A DEditorDrawTabletUI.java89 public EditorDrawTabletUI(EditorDraw editorDraw, Context context, LinearLayout lp) { argument
95 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles);
97 mdrawSizeSeekBar = (SeekBar) lp.findViewById(R.id.drawSizeSeekBar);
98 mDrawSizeValue = (TextView) lp.findViewById(R.id.drawSizeValue);
100 Button clearButton = (Button) lp.findViewById(R.id.clearButton);
157 final LinearLayout ctls = (LinearLayout) lp.findViewById(R.id.controls);
158 final LinearLayout pick = (LinearLayout) lp.findViewById(R.id.colorPicker);
159 Button b = (Button) lp.findViewById(R.id.draw_color_popupbutton);
175 mColorButton[i] = (Button) lp.findViewById(ids[i]);
210 mHueView = (ColorHueView) lp
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseScrollAdapterFragment.java192 LayoutParams lp = mSelectorView.getLayoutParams();
193 lp.height = selectorHeight = mFragment.getActivity().getResources()
195 mSelectorView.setLayoutParams(lp);
215 LayoutParams lp = mSelectorView.getLayoutParams();
216 lp.height = 0;
217 mSelectorView.setLayoutParams(lp);
/packages/experimental/Bummer/src/com/android/dreams/bummer/
H A DBummer.java54 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
59 mFrame.addView(mApology, lp);
/packages/apps/TV/src/com/android/tv/ui/
H A DTvViewUiManager.java512 FrameLayout.LayoutParams lp;
516 if (lp == null) {
517 lp = new FrameLayout.LayoutParams(0, 0);
518 lp.gravity = startValue.gravity;
520 interpolateMarginsRelative(lp, startValue, endValue, fraction);
521 return lp;
638 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mPipView.getLayoutParams();
639 if (lp.width != width || lp.height != height || lp
[all...]
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
H A DCarDrawerLayout.java419 LayoutParams lp = (LayoutParams) findDrawerView().getLayoutParams();
420 setDrawerLockMode(lockMode, lp.gravity);
540 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
541 if (lp.knownOpen) {
542 lp.knownOpen = false;
550 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
551 if (!lp.knownOpen) {
552 lp.knownOpen = true;
582 LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
583 lp
[all...]

Completed in 3334 milliseconds

12345