Home
last modified time | relevance | path

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

1234

/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java92 LayoutParams lp; in AppWidgetResizeFrame() local
95 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
97 addView(mLeftHandle, lp); in AppWidgetResizeFrame()
101 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
103 addView(mRightHandle, lp); in AppWidgetResizeFrame()
107 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
109 addView(mTopHandle, lp); in AppWidgetResizeFrame()
113 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
115 addView(mBottomHandle, lp); in AppWidgetResizeFrame()
200 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in visualizeResizeForDelta() local
[all …]
DShortcutAndWidgetContainer.java68 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() local
70 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
71 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
88 … final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in dispatchDraw() local
90 canvas.drawRect(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height, p); in dispatchDraw()
112 public void setupLp(CellLayout.LayoutParams lp) { in setupLp() argument
113 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
145 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild() local
146 if (!lp.isFullscreen) { in measureChild()
147 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in measureChild()
[all …]
DCellLayout.java596 final LayoutParams lp = params; in addViewToCellLayout() local
609 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
612 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX; in addViewToCellLayout()
613 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY; in addViewToCellLayout()
617 mShortcutsAndWidgets.addView(child, index, lp); in addViewToCellLayout()
982 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in animateChildToPosition() local
986 if (mReorderAnimators.containsKey(lp)) { in animateChildToPosition()
987 mReorderAnimators.get(lp).cancel(); in animateChildToPosition()
988 mReorderAnimators.remove(lp); in animateChildToPosition()
991 final int oldX = lp.x; in animateChildToPosition()
[all …]
DDeviceProfile.java702 FrameLayout.LayoutParams lp; in layout() local
708 lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams(); in layout()
711 lp.gravity = Gravity.TOP | Gravity.LEFT; in layout()
712 lp.width = searchBarSpaceHeightPx; in layout()
713 lp.height = LayoutParams.WRAP_CONTENT; in layout()
719 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL; in layout()
720 lp.width = searchBarSpaceWidthPx; in layout()
721 lp.height = searchBarSpaceHeightPx; in layout()
723 searchBar.setLayoutParams(lp); in layout()
727 lp = (FrameLayout.LayoutParams) workspace.getLayoutParams(); in layout()
[all …]
DPagedViewCellLayoutChildren.java92 PagedViewCellLayout.LayoutParams lp = in onMeasure() local
94 lp.setup(getContext(), in onMeasure()
99 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, in onMeasure()
101 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, in onMeasure()
122 PagedViewCellLayout.LayoutParams lp = in onLayout() local
124 minRowX = Math.min(minRowX, lp.x); in onLayout()
125 maxRowX = Math.max(maxRowX, lp.x + lp.width); in onLayout()
135 PagedViewCellLayout.LayoutParams lp = in onLayout() local
138 int childLeft = offsetX + lp.x; in onLayout()
139 int childTop = lp.y; in onLayout()
[all …]
DDragLayer.java126 LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in showOverlayView() local
128 addView(overlayView, lp); in showOverlayView()
448 public LayoutParams(ViewGroup.LayoutParams lp) { in LayoutParams() argument
449 super(lp); in LayoutParams()
492 final LayoutParams lp = (LayoutParams) flp; in onLayout() local
493 if (lp.customPosition) { in onLayout()
494 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height); in onLayout()
523 LayoutParams lp = new LayoutParams(-1, -1); in addResizeFrame() local
524 lp.customPosition = true; in addResizeFrame()
526 addView(resizeFrame, lp); in addResizeFrame()
[all …]
DPagedViewCellLayout.java97 final PagedViewCellLayout.LayoutParams lp = params; in addViewToCellLayout() local
101 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) && in addViewToCellLayout()
102 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) { in addViewToCellLayout()
105 if (lp.cellHSpan < 0) lp.cellHSpan = mCellCountX; in addViewToCellLayout()
106 if (lp.cellVSpan < 0) lp.cellVSpan = mCellCountY; in addViewToCellLayout()
109 mChildren.addView(child, index, lp); in addViewToCellLayout()
303 … PagedViewCellLayout.LayoutParams lp = (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); in onDragChild() local
304 lp.isDragging = true; in onDragChild()
DFolder.java661 CellLayout.LayoutParams lp = in createAndAddShortcut() local
665 mContent.addViewToCellLayout(textView, insert ? 0 : -1, (int)item.id, lp, true); in createAndAddShortcut()
993 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in centerAboutIcon() local
1045 lp.width = width; in centerAboutIcon()
1046 lp.height = height; in centerAboutIcon()
1047 lp.x = left; in centerAboutIcon()
1048 lp.y = top; in centerAboutIcon()
1061 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in setupContentForNumItems() local
1062 if (lp == null) { in setupContentForNumItems()
1063 lp = new DragLayer.LayoutParams(0, 0); in setupContentForNumItems()
[all …]
DInsettableFrameLayout.java22 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in setFrameLayoutChildInsets() local
26 } else if (!lp.ignoreInsets) { in setFrameLayoutChildInsets()
27 lp.topMargin += (newInsets.top - oldInsets.top); in setFrameLayoutChildInsets()
28 lp.leftMargin += (newInsets.left - oldInsets.left); in setFrameLayoutChildInsets()
29 lp.rightMargin += (newInsets.right - oldInsets.right); in setFrameLayoutChildInsets()
30 lp.bottomMargin += (newInsets.bottom - oldInsets.bottom); in setFrameLayoutChildInsets()
32 child.setLayoutParams(lp); in setFrameLayoutChildInsets()
82 public LayoutParams(ViewGroup.LayoutParams lp) { in LayoutParams() argument
83 super(lp); in LayoutParams()
/packages/apps/Launcher2/src/com/android/launcher2/
DAppWidgetResizeFrame.java95 LayoutParams lp; in AppWidgetResizeFrame() local
98 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
100 addView(mLeftHandle, lp); in AppWidgetResizeFrame()
104 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
106 addView(mRightHandle, lp); in AppWidgetResizeFrame()
110 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
112 addView(mTopHandle, lp); in AppWidgetResizeFrame()
116 lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, in AppWidgetResizeFrame()
118 addView(mBottomHandle, lp); in AppWidgetResizeFrame()
203 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in visualizeResizeForDelta() local
[all …]
DCellLayout.java617 final LayoutParams lp = params; in addViewToCellLayout() local
636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
639 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX; in addViewToCellLayout()
640 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY; in addViewToCellLayout()
644 mShortcutsAndWidgets.addView(child, index, lp); in addViewToCellLayout()
721 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in setTagToCellInfoForPoint() local
724 lp.isLockedToGrid) { in setTagToCellInfoForPoint()
739 cellInfo.cellX = lp.cellX; in setTagToCellInfoForPoint()
740 cellInfo.cellY = lp.cellY; in setTagToCellInfoForPoint()
741 cellInfo.spanX = lp.cellHSpan; in setTagToCellInfoForPoint()
[all …]
DShortcutAndWidgetContainer.java64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() local
66 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
67 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
84 … final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in dispatchDraw() local
86 canvas.drawRect(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height, p); in dispatchDraw()
104 public void setupLp(CellLayout.LayoutParams lp) { in setupLp() argument
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
117 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild() local
119 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), mCountX); in measureChild()
120 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, MeasureSpec.EXACTLY); in measureChild()
[all …]
DPagedViewCellLayoutChildren.java92 PagedViewCellLayout.LayoutParams lp = in onMeasure() local
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure()
98 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.width, in onMeasure()
100 int childheightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.height, in onMeasure()
121 PagedViewCellLayout.LayoutParams lp = in onLayout() local
123 minRowX = Math.min(minRowX, lp.x); in onLayout()
124 maxRowX = Math.max(maxRowX, lp.x + lp.width); in onLayout()
134 PagedViewCellLayout.LayoutParams lp = in onLayout() local
137 int childLeft = offsetX + lp.x; in onLayout()
138 int childTop = lp.y; in onLayout()
[all …]
DFolder.java546 CellLayout.LayoutParams lp = in createAndAddShortcut() local
550 mContent.addViewToCellLayout(textView, insert ? 0 : -1, (int)item.id, lp, true); in createAndAddShortcut()
795 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in centerAboutIcon() local
843 lp.width = width; in centerAboutIcon()
844 lp.height = height; in centerAboutIcon()
845 lp.x = left; in centerAboutIcon()
846 lp.y = top; in centerAboutIcon()
859 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in setupContentForNumItems() local
860 if (lp == null) { in setupContentForNumItems()
861 lp = new DragLayer.LayoutParams(0, 0); in setupContentForNumItems()
[all …]
DPagedViewCellLayout.java103 final PagedViewCellLayout.LayoutParams lp = params; in addViewToCellLayout() local
107 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) && in addViewToCellLayout()
108 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) { in addViewToCellLayout()
111 if (lp.cellHSpan < 0) lp.cellHSpan = mCellCountX; in addViewToCellLayout()
112 if (lp.cellVSpan < 0) lp.cellVSpan = mCellCountY; in addViewToCellLayout()
115 mChildren.addView(child, index, lp); in addViewToCellLayout()
309 … PagedViewCellLayout.LayoutParams lp = (PagedViewCellLayout.LayoutParams) child.getLayoutParams(); in onDragChild() local
310 lp.isDragging = true; in onDragChild()
DWorkspace.java548 CellLayout.LayoutParams lp; in addInScreen() local
550 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen()
552 lp = (CellLayout.LayoutParams) genericLp; in addInScreen()
553 lp.cellX = x; in addInScreen()
554 lp.cellY = y; in addInScreen()
555 lp.cellHSpan = spanX; in addInScreen()
556 lp.cellVSpan = spanY; in addInScreen()
560 lp.isLockedToGrid = false; in addInScreen()
566 if (!layout.addViewToCellLayout(child, insert ? 0 : -1, childId, lp, markCellsAsOccupied)) { in addInScreen()
570 … Log.w(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java859 final LayoutParams lp = (LayoutParams) view.getLayoutParams(); in handleDrop() local
860 if (lp.position > mReorderHelper.getDraggedChildPosition()) { in handleDrop()
1296 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in recycleOffscreenViews() local
1305 rec = recreateLayoutRecord(mFirstPosition + i, child, lp); in recycleOffscreenViews()
1313 final int span = Math.min(mColCount, lp.span); in recycleOffscreenViews()
1315 final int col = mIsRtlLayout ? lp.column - spanIndex : in recycleOffscreenViews()
1316 lp.column + spanIndex; in recycleOffscreenViews()
1341 private LayoutRecord recreateLayoutRecord(int position, View child, LayoutParams lp) { in recreateLayoutRecord() argument
1344 rec.column = lp.column; in recreateLayoutRecord()
1346 rec.id = lp.id; in recreateLayoutRecord()
[all …]
/packages/apps/Dialer/src/com/android/dialer/widget/
DOverlappingPaneLayout.java414 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local
420 if (lp.weight > 0) { in onMeasure()
421 weightSum += lp.weight; in onMeasure()
425 if (lp.height == 0) continue; in onMeasure()
429 final int verticalMargin = lp.topMargin + lp.bottomMargin; in onMeasure()
430 if (lp.height == LayoutParams.WRAP_CONTENT) { in onMeasure()
433 } else if (lp.height == LayoutParams.MATCH_PARENT) { in onMeasure()
437 childHeightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY); in onMeasure()
441 if (lp.width == LayoutParams.WRAP_CONTENT) { in onMeasure()
443 } else if (lp.width == LayoutParams.MATCH_PARENT) { in onMeasure()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorColorBorderTabletUI.java93 LinearLayout lp = (LinearLayout) inflater.inflate( in EditorColorBorderTabletUI() local
98 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles); in EditorColorBorderTabletUI()
100 mCBCornerSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderCornerSizeSeekBar); in EditorColorBorderTabletUI()
101 mCBCornerSizeValue = (TextView) lp.findViewById(R.id.colorBorderCornerValue); in EditorColorBorderTabletUI()
102 mCBSizeSeekBar = (SeekBar) lp.findViewById(R.id.colorBorderSizeSeekBar); in EditorColorBorderTabletUI()
104 mCBSizeValue = (TextView) lp.findViewById(R.id.colorBorderSizeValue); in EditorColorBorderTabletUI()
105 setupCBSizeSeekBar(lp); in EditorColorBorderTabletUI()
106 setupCBCornerSizeSeekBar(lp); in EditorColorBorderTabletUI()
107 setupColor(lp, res); in EditorColorBorderTabletUI()
110 private void setupCBSizeSeekBar(LinearLayout lp) { in setupCBSizeSeekBar() argument
[all …]
DEditorDrawTabletUI.java89 public EditorDrawTabletUI(EditorDraw editorDraw, Context context, LinearLayout lp) { in EditorDrawTabletUI() argument
95 LinearLayout buttonContainer = (LinearLayout) lp.findViewById(R.id.listStyles); in EditorDrawTabletUI()
97 mdrawSizeSeekBar = (SeekBar) lp.findViewById(R.id.drawSizeSeekBar); in EditorDrawTabletUI()
98 mDrawSizeValue = (TextView) lp.findViewById(R.id.drawSizeValue); in EditorDrawTabletUI()
100 Button clearButton = (Button) lp.findViewById(R.id.clearButton); in EditorDrawTabletUI()
157 final LinearLayout ctls = (LinearLayout) lp.findViewById(R.id.controls); in EditorDrawTabletUI()
158 final LinearLayout pick = (LinearLayout) lp.findViewById(R.id.colorPicker); in EditorDrawTabletUI()
159 Button b = (Button) lp.findViewById(R.id.draw_color_popupbutton); in EditorDrawTabletUI()
175 mColorButton[i] = (Button) lp.findViewById(ids[i]); in EditorDrawTabletUI()
210 mHueView = (ColorHueView) lp.findViewById(R.id.ColorHueView); in EditorDrawTabletUI()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiLayoutParams.java64 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) vp.getLayoutParams(); in setPagerProperties() local
65 lp.height = mEmojiKeyboardHeight; in setPagerProperties()
66 lp.bottomMargin = mEmojiPagerBottomMargin; in setPagerProperties()
67 vp.setLayoutParams(lp); in setPagerProperties()
71 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) v.getLayoutParams(); in setCategoryPageIdViewProperties() local
72 lp.height = mEmojiCategoryPageIdViewHeight; in setCategoryPageIdViewProperties()
73 v.setLayoutParams(lp); in setCategoryPageIdViewProperties()
81 final LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) ll.getLayoutParams(); in setActionBarProperties() local
82 lp.height = getActionBarHeight(); in setActionBarProperties()
83 ll.setLayoutParams(lp); in setActionBarProperties()
[all …]
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java393 ListPreference lp = new ListPreference(getActivity()) { in buildCertificationMenu() local
414 lp.setTitle(R.string.wifi_display_wps_config); in buildCertificationMenu()
415 lp.setEntries(wpsEntries); in buildCertificationMenu()
416 lp.setEntryValues(wpsValues); in buildCertificationMenu()
417 lp.setValue("" + mWpsConfig); in buildCertificationMenu()
418 lp.setSummary("%1$s"); in buildCertificationMenu()
419 mCertCategory.addPreference(lp); in buildCertificationMenu()
422 lp = new ListPreference(getActivity()) { in buildCertificationMenu()
436 lp.setTitle(R.string.wifi_display_listen_channel); in buildCertificationMenu()
437 lp.setEntries(lcEntries); in buildCertificationMenu()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java621 ViewGroup.LayoutParams lp = view.getLayoutParams(); in obtainView() local
624 if (lp == null) { in obtainView()
625 lp = generateDefaultLayoutParams(); in obtainView()
626 } else if (!checkLayoutParams(lp)) { in obtainView()
627 lp = generateLayoutParams(lp); in obtainView()
629 view.setLayoutParams(lp); in obtainView()
632 final LayoutParams sglp = (LayoutParams) lp; in obtainView()
683 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { in generateLayoutParams() argument
684 return new LayoutParams(lp); in generateLayoutParams()
688 protected boolean checkLayoutParams(ViewGroup.LayoutParams lp) { in checkLayoutParams() argument
[all …]
/packages/apps/Browser/src/com/android/browser/
DBookmarkItem.java164 final ViewGroup.LayoutParams lp = child.getLayoutParams(); in measureChild() local
167 mPaddingLeft + mPaddingRight, lp.width); in measureChild()
169 mPaddingTop + mPaddingBottom, lp.height); in measureChild()
184 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in measureChildWithMargins() local
187 mPaddingLeft + mPaddingRight + lp.leftMargin + lp.rightMargin in measureChildWithMargins()
188 + widthUsed, lp.width); in measureChildWithMargins()
190 mPaddingTop + mPaddingBottom + lp.topMargin + lp.bottomMargin in measureChildWithMargins()
191 + heightUsed, lp.height); in measureChildWithMargins()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DViewLayoutUtils.java49 final ViewGroup.LayoutParams lp = view.getLayoutParams(); in placeViewAt() local
50 if (lp instanceof MarginLayoutParams) { in placeViewAt()
51 final MarginLayoutParams marginLayoutParams = (MarginLayoutParams)lp; in placeViewAt()
75 final ViewGroup.LayoutParams lp = view.getLayoutParams(); in updateLayoutGravityOf() local
76 if (lp instanceof LinearLayout.LayoutParams) { in updateLayoutGravityOf()
77 final LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)lp; in updateLayoutGravityOf()
82 } else if (lp instanceof FrameLayout.LayoutParams) { in updateLayoutGravityOf()
83 final FrameLayout.LayoutParams params = (FrameLayout.LayoutParams)lp; in updateLayoutGravityOf()
90 + lp.getClass().getName()); in updateLayoutGravityOf()

1234