Home
last modified time | relevance | path

Searched refs:mWidthGap (Results 1 – 6 of 6) 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()
189 mWidthGap = Math.min(mMaxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0); in onMeasure()
192 mChildren.setGap(mWidthGap, mHeightGap); in onMeasure()
194 mWidthGap = mOriginalWidthGap; in onMeasure()
203 ((mCellCountX - 1) * mWidthGap); in onMeasure()
237 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap); in getWidthBeforeFirstLayout()
286 mOriginalWidthGap = mWidthGap = widthGap; in setGap()
322 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap)); in estimateCellHSpan()
[all …]
DShortcutAndWidgetContainer.java39 private int mWidthGap; field in ShortcutAndWidgetContainer
55 mWidthGap = widthGap; in setCellDimensions()
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
119 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), mCountX); 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.java73 private int mWidthGap; field in CellLayout
191 mWidthGap = mOriginalWidthGap = a.getDimensionPixelSize(R.styleable.CellLayout_widthGap, 0); in CellLayout()
286 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
336 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
810 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
844 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
871 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
872 (spanX * mCellWidth + (spanX - 1) * mWidthGap) / 2; in regionToCenterPoint()
887 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect()
889 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java41 private int mWidthGap; field in ShortcutAndWidgetContainer
61 mWidthGap = widthGap; in setCellDimensions()
116 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
147 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in measureChild()
DCellLayout.java83 @Thunk int mWidthGap; field in CellLayout
195 mWidthGap = mOriginalWidthGap = 0; in CellLayout()
272 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
358 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setCellDimensions()
368 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
725 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
759 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
786 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
787 (spanX * mCellWidth + (spanX - 1) * mWidthGap) / 2; in regionToCenterPoint()
802 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect()
[all …]