Home
last modified time | relevance | path

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

12345

/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java62 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt() local
64 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
65 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
89 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in setupLp() local
92 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX, in setupLp()
95 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX); in setupLp()
110 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild() local
111 if (!lp.isFullscreen) { in measureChild()
115 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX, in measureChild()
119 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX); in measureChild()
[all …]
DCellLayout.java604 final LayoutParams lp = params; in addViewToCellLayout() local
617 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
620 if (lp.cellHSpan < 0) lp.cellHSpan = mCountX; in addViewToCellLayout()
621 if (lp.cellVSpan < 0) lp.cellVSpan = mCountY; in addViewToCellLayout()
627 mShortcutsAndWidgets.addView(child, index, lp); in addViewToCellLayout()
911 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in animateChildToPosition() local
915 if (mReorderAnimators.containsKey(lp)) { in animateChildToPosition()
916 mReorderAnimators.get(lp).cancel(); in animateChildToPosition()
917 mReorderAnimators.remove(lp); in animateChildToPosition()
920 final int oldX = lp.x; in animateChildToPosition()
[all …]
DAppWidgetResizeFrame.java202 DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams(); in visualizeResizeForDelta() local
205 lp.x = mTempRange1.start; in visualizeResizeForDelta()
206 lp.width = mTempRange1.size(); in visualizeResizeForDelta()
210 lp.y = mTempRange1.start; in visualizeResizeForDelta()
211 lp.height = mTempRange1.size(); in visualizeResizeForDelta()
219 lp.width = sTmpRect.width() + sTmpRect.left - lp.x; in visualizeResizeForDelta()
222 lp.height = sTmpRect.height() + sTmpRect.top - lp.y; in visualizeResizeForDelta()
225 lp.x = sTmpRect.left; in visualizeResizeForDelta()
228 lp.y = sTmpRect.top; in visualizeResizeForDelta()
253 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) mWidgetView.getLayoutParams(); in resizeWidgetIfNeeded() local
[all …]
DDeviceProfile.java607 FrameLayout.LayoutParams lp; in layout() local
613 lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams(); in layout()
614 lp.width = searchBarBounds.x; in layout()
615 lp.height = searchBarBounds.y; in layout()
616 lp.topMargin = mInsets.top + edgeMarginPx; in layout()
617 searchBar.setLayoutParams(lp); in layout()
628 lp = (FrameLayout.LayoutParams) hotseat.getLayoutParams(); in layout()
646 lp.gravity = Gravity.RIGHT; in layout()
647 lp.width = hotseatBarSizePx + mInsets.left + mInsets.right in layout()
649 lp.height = LayoutParams.MATCH_PARENT; in layout()
[all …]
DInsettableFrameLayout.java28 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in setFrameLayoutChildInsets() local
32 } else if (!lp.ignoreInsets) { in setFrameLayoutChildInsets()
33 lp.topMargin += (newInsets.top - oldInsets.top); in setFrameLayoutChildInsets()
34 lp.leftMargin += (newInsets.left - oldInsets.left); in setFrameLayoutChildInsets()
35 lp.rightMargin += (newInsets.right - oldInsets.right); in setFrameLayoutChildInsets()
36 lp.bottomMargin += (newInsets.bottom - oldInsets.bottom); in setFrameLayoutChildInsets()
38 child.setLayoutParams(lp); in setFrameLayoutChildInsets()
92 public LayoutParams(ViewGroup.LayoutParams lp) { in LayoutParams() argument
93 super(lp); in LayoutParams()
DWorkspace.java609 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, firstPage.getCountX(), 1); in bindAndInitFirstWorkspaceScreen() local
610 lp.canReorder = false; in bindAndInitFirstWorkspaceScreen()
611 if (!firstPage.addViewToCellLayout(qsb, 0, R.id.search_container_workspace, lp, true)) { in bindAndInitFirstWorkspaceScreen()
737 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, spanX, spanY); in addToCustomContentPage() local
738 lp.canReorder = false; in addToCustomContentPage()
739 lp.isFullscreen = true; in addToCustomContentPage()
754 customScreen.addViewToCellLayout(customContent, 0, 0, lp, true); in addToCustomContentPage()
1096 CellLayout.LayoutParams lp; in addInScreen() local
1098 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen()
1100 lp = (CellLayout.LayoutParams) genericLp; in addInScreen()
[all …]
DLauncherRootView.java68 MarginLayoutParams lp = (MarginLayoutParams) mAlignedView.getLayoutParams(); in fitSystemWindows() local
69 if (lp.leftMargin != mLeftInsetBarWidth || lp.rightMargin != mRightInsetBarWidth) { in fitSystemWindows()
70 lp.leftMargin = mLeftInsetBarWidth; in fitSystemWindows()
71 lp.rightMargin = mRightInsetBarWidth; in fitSystemWindows()
72 mAlignedView.setLayoutParams(lp); in fitSystemWindows()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java337 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local
338 final int top = child.getTop() - lp.topMargin - mDividerHeight; in drawDividersVertical()
350 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersVertical() local
351 bottom = child.getBottom() + lp.bottomMargin; in drawDividersVertical()
365 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local
368 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal()
370 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal()
387 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in drawDividersHorizontal() local
389 position = child.getLeft() - lp.leftMargin - mDividerWidth; in drawDividersHorizontal()
391 position = child.getRight() + lp.rightMargin; in drawDividersHorizontal()
[all …]
/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 …]
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 …]
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 …]
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 …]
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()
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 …]
DDragLayer.java414 final LayoutParams lp = (LayoutParams) flp; in onLayout() local
415 if (lp.customPosition) { in onLayout()
416 child.layout(lp.x, lp.y, lp.x + lp.width, lp.y + lp.height); in onLayout()
445 LayoutParams lp = new LayoutParams(-1, -1); in addResizeFrame() local
446 lp.customPosition = true; in addResizeFrame()
448 addView(resizeFrame, lp); in addResizeFrame()
478 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition() local
486 coord[0] = lp.x + (int) (child.getMeasuredWidth() * (1 - childScale) / 2); in animateViewIntoPosition()
487 coord[1] = lp.y + (int) (child.getMeasuredHeight() * (1 - childScale) / 2); in animateViewIntoPosition()
/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/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/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java394 ListPreference lp = new ListPreference(getPrefContext()); in buildCertificationMenu() local
395 lp.setOnPreferenceChangeListener(new OnPreferenceChangeListener() { in buildCertificationMenu()
416 lp.setKey("wps"); in buildCertificationMenu()
417 lp.setTitle(R.string.wifi_display_wps_config); in buildCertificationMenu()
418 lp.setEntries(wpsEntries); in buildCertificationMenu()
419 lp.setEntryValues(wpsValues); in buildCertificationMenu()
420 lp.setValue("" + mWpsConfig); in buildCertificationMenu()
421 lp.setSummary("%1$s"); in buildCertificationMenu()
422 mCertCategory.addPreference(lp); in buildCertificationMenu()
425 lp = new ListPreference(getPrefContext()); in buildCertificationMenu()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorScrollView.java59 final ViewGroup.LayoutParams lp = child.getLayoutParams(); in measureChild() local
61 0 /* padding */, lp.width); in measureChild()
63 getPaddingTop() + getPaddingBottom(), lp.height); in measureChild()
75 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); in measureChildWithMargins() local
77 lp.leftMargin + lp.rightMargin, lp.width); in measureChildWithMargins()
79 getPaddingTop() + getPaddingBottom() + lp.topMargin + lp.bottomMargin, 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()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewImageView.java56 DragLayer.LayoutParams lp; in copy() local
58 lp = (DragLayer.LayoutParams) getLayoutParams(); in copy()
60 lp = new DragLayer.LayoutParams(width, height); in copy()
66 lp.customPosition = true; in copy()
67 lp.x = mTempRect.left; in copy()
68 lp.y = mTempRect.top; in copy()
69 lp.width = (int) (scale * width); in copy()
70 lp.height = (int) (scale * height); in copy()
79 mParent.addView(this, lp); in copy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java488 private void updateLinkProperties(LinkProperties lp) { in updateLinkProperties() argument
489 mCallbackCaptor.getValue().onLinkPropertiesChanged(mockNetwork, new LinkProperties(lp)); in updateLinkProperties()
517 LinkProperties lp = new LinkProperties(); in onLinkPropertiesChanged_updatesFields() local
519 lp.addLinkAddress(Constants.IPV6_LINKLOCAL); in onLinkPropertiesChanged_updatesFields()
520 updateLinkProperties(lp); in onLinkPropertiesChanged_updatesFields()
524 lp.addRoute(Constants.IPV4_DEFAULT); in onLinkPropertiesChanged_updatesFields()
525 updateLinkProperties(lp); in onLinkPropertiesChanged_updatesFields()
529 lp.addLinkAddress(Constants.IPV4_ADDR); in onLinkPropertiesChanged_updatesFields()
530 lp.addRoute(Constants.IPV4_SUBNET); in onLinkPropertiesChanged_updatesFields()
531 updateLinkProperties(lp); in onLinkPropertiesChanged_updatesFields()
[all …]
/packages/apps/TV/src/com/android/tv/ui/
DTvViewUiManager.java376 FrameLayout.LayoutParams lp; in setTvViewPosition()
380 if (lp == null) { in setTvViewPosition()
381 lp = new FrameLayout.LayoutParams(0, 0); in setTvViewPosition()
382 lp.gravity = startValue.gravity; in setTvViewPosition()
384 interpolateMargins(lp, startValue, endValue, fraction); in setTvViewPosition()
385 return lp; in setTvViewPosition()
580 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(0, 0); in createMarginLayoutParams() local
581 lp.setMarginStart(startMargin); in createMarginLayoutParams()
582 lp.setMarginEnd(endMargin); in createMarginLayoutParams()
583 lp.topMargin = topMargin; in createMarginLayoutParams()
[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 …]

12345