Home
last modified time | relevance | path

Searched refs:mHeightGap (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DPagedViewCellLayout.java43 private int mHeightGap; field in PagedViewCellLayout
66 mOriginalWidthGap = mOriginalHeightGap = mWidthGap = mHeightGap = -1; in PagedViewCellLayout()
70 mChildren.setGap(mWidthGap, mHeightGap); in PagedViewCellLayout()
184 mHeightGap = numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0; in onMeasure()
186 mChildren.setGap(mWidthGap, mHeightGap); in onMeasure()
189 mHeightGap = mOriginalHeightGap; in onMeasure()
199 ((mCellCountY - 1) * mHeightGap); in onMeasure()
224 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap); in getContentHeight()
281 mOriginalHeightGap = mHeightGap = heightGap; in setGap()
331 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap)); in estimateCellVSpan()
[all …]
DCellLayout.java72 private int mHeightGap; field in CellLayout
197 mHeightGap = mOriginalHeightGap = 0; in CellLayout()
288 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
312 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setCellDimensions()
322 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
701 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
735 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
763 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint()
764 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
778 final int top = vStartPadding + cellY * (mCellHeight + mHeightGap); in regionToRect()
[all …]
DShortcutAndWidgetContainer.java42 private int mHeightGap; field in ShortcutAndWidgetContainer
59 mHeightGap = heightGap; in setCellDimensions()
113 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
147 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in measureChild()
DPagedViewCellLayoutChildren.java37 private int mHeightGap; field in PagedViewCellLayoutChildren
57 mHeightGap = heightGap; in setGap()
95 mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure() local
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java46 private int mHeightGap; field in PagedViewCellLayout
71 mOriginalWidthGap = mOriginalHeightGap = mWidthGap = mHeightGap = -1; in PagedViewCellLayout()
76 mChildren.setGap(mWidthGap, mHeightGap); in PagedViewCellLayout()
190 mHeightGap = Math.min(mMaxGap,numHeightGaps > 0 ? (vFreeSpace / numHeightGaps) : 0); in onMeasure()
192 mChildren.setGap(mWidthGap, mHeightGap); in onMeasure()
195 mHeightGap = mOriginalHeightGap; in onMeasure()
205 ((mCellCountY - 1) * mHeightGap); in onMeasure()
230 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap); in getContentHeight()
287 mOriginalHeightGap = mHeightGap = heightGap; in setGap()
337 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap)); in estimateCellVSpan()
[all …]
DCellLayout.java74 private int mHeightGap; field in CellLayout
192mHeightGap = mOriginalHeightGap = a.getDimensionPixelSize(R.styleable.CellLayout_heightGap, 0); in CellLayout()
286 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
336 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
811 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
845 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
873 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint()
874 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
888 final int top = vStartPadding + cellY * (mCellHeight + mHeightGap); in regionToRect()
890 top + (spanY * mCellHeight + (spanY - 1) * mHeightGap)); in regionToRect()
[all …]
DShortcutAndWidgetContainer.java40 private int mHeightGap; field in ShortcutAndWidgetContainer
56 mHeightGap = heightGap; in setCellDimensions()
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
119 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), mCountX); in measureChild()
DPagedViewCellLayoutChildren.java37 private int mHeightGap; field in PagedViewCellLayoutChildren
57 mHeightGap = heightGap; in setGap()
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure()