Home
last modified time | relevance | path

Searched refs:mWidthGap (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java45 private int mWidthGap; field in PagedViewCellLayout
71 mOriginalWidthGap = mOriginalHeightGap = mWidthGap = mHeightGap = -1; in PagedViewCellLayout()
76 mChildren.setGap(mWidthGap, mHeightGap); in PagedViewCellLayout()
200 mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0); in onMeasure()
203 mChildren.setGap(mWidthGap, mHeightGap); in onMeasure()
205 mWidthGap = mOriginalWidthGap; in onMeasure()
214 ((mCellCountX - 1) * mWidthGap); in onMeasure()
248 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap); in getWidthBeforeFirstLayout()
297 mOriginalWidthGap = mWidthGap = widthGap; in setGap()
333 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap)); in estimateCellHSpan()
[all …]
DShortcutAndWidgetContainer.java39 private int mWidthGap; field in ShortcutAndWidgetContainer
54 mWidthGap = widthGap; in setCellDimensions()
103 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap); in setupLp()
111 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap); in measureChild()
DPagedViewCellLayoutChildren.java36 private int mWidthGap; field in PagedViewCellLayoutChildren
56 mWidthGap = widthGap; in setGap()
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure()
DCellLayout.java70 private int mWidthGap; field in CellLayout
185 mWidthGap = mOriginalWidthGap = a.getDimensionPixelSize(R.styleable.CellLayout_widthGap, 0); in CellLayout()
279 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap); in CellLayout()
755 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
789 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
816 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
817 (spanX * mCellWidth + (spanX - 1) * mWidthGap) / 2; in regionToCenterPoint()
832 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect()
834 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect()
854 return mWidthGap; in getWidthGap()
[all …]