Home
last modified time | relevance | path

Searched refs:widthGap (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DPagedViewCellLayout.java279 public void setGap(int widthGap, int heightGap) { in setGap() argument
280 mOriginalWidthGap = mWidthGap = widthGap; in setGap()
282 mChildren.setGap(widthGap, heightGap); in setGap()
457 int cellWidth, int cellHeight, int widthGap, int heightGap, in setup() argument
465 width = myCellHSpan * cellWidth + ((myCellHSpan - 1) * widthGap) - in setup()
471 x = hStartPadding + myCellX * (cellWidth + widthGap) + leftMargin; in setup()
474 x = myCellX * (cellWidth + widthGap) + leftMargin; in setup()
DAppWidgetResizeFrame.java355 int widthGap = landMetrics.right; in getWidgetSizeRanges() local
357 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
363 widthGap = portMetrics.right; in getWidgetSizeRanges()
365 int portWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
DPagedViewCellLayoutChildren.java55 public void setGap(int widthGap, int heightGap) { in setGap() argument
56 mWidthGap = widthGap; in setGap()
DShortcutAndWidgetContainer.java54 public void setCellDimensions(int cellWidth, int cellHeight, int widthGap, int heightGap, in setCellDimensions() argument
58 mWidthGap = widthGap; in setCellDimensions()
DCellLayout.java2880 final int widthGap = mWidthGap; in cellToRect() local
2886 int width = cellHSpan * cellWidth + ((cellHSpan - 1) * widthGap); in cellToRect()
2889 int x = hStartPadding + cellX * (cellWidth + widthGap); in cellToRect()
3176 public void setup(int cellWidth, int cellHeight, int widthGap, int heightGap, in setup() argument
3188 width = myCellHSpan * cellWidth + ((myCellHSpan - 1) * widthGap) - in setup()
3192 x = (int) (myCellX * (cellWidth + widthGap) + leftMargin); in setup()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java285 public void setGap(int widthGap, int heightGap) { in setGap() argument
286 mOriginalWidthGap = mWidthGap = widthGap; in setGap()
288 mChildren.setGap(widthGap, heightGap); in setGap()
462 public void setup(int cellWidth, int cellHeight, int widthGap, int heightGap, in setup() argument
470 width = myCellHSpan * cellWidth + ((myCellHSpan - 1) * widthGap) - in setup()
476 x = hStartPadding + myCellX * (cellWidth + widthGap) + leftMargin; in setup()
479 x = myCellX * (cellWidth + widthGap) + leftMargin; in setup()
DCellLayout.java933 int widthGap; in getMetrics() local
946 widthGap = res.getDimensionPixelSize(R.dimen.workspace_width_gap_land); in getMetrics()
956 widthGap = res.getDimensionPixelSize(R.dimen.workspace_width_gap_port); in getMetrics()
964 if (widthGap < 0 || heightGap < 0) { in getMetrics()
969 widthGap = Math.min(maxGap, numWidthGaps > 0 ? (hFreeSpace / numWidthGaps) : 0); in getMetrics()
972 metrics.set(cellWidth, cellHeight, widthGap, heightGap); in getMetrics()
2967 final int widthGap = mWidthGap; in cellToRect() local
2973 int width = cellHSpan * cellWidth + ((cellHSpan - 1) * widthGap); in cellToRect()
2976 int x = hStartPadding + cellX * (cellWidth + widthGap); in cellToRect()
3255 public void setup(int cellWidth, int cellHeight, int widthGap, int heightGap, in setup() argument
[all …]
DAppWidgetResizeFrame.java358 int widthGap = landMetrics.right; in getWidgetSizeRanges() local
360 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
366 widthGap = portMetrics.right; in getWidgetSizeRanges()
368 int portWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges()
DPagedViewCellLayoutChildren.java55 public void setGap(int widthGap, int heightGap) { in setGap() argument
56 mWidthGap = widthGap; in setGap()
DShortcutAndWidgetContainer.java51 public void setCellDimensions(int cellWidth, int cellHeight, int widthGap, int heightGap, in setCellDimensions() argument
55 mWidthGap = widthGap; in setCellDimensions()