Home
last modified time | relevance | path

Searched refs:cellWidth (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DShortcutAndWidgetContainer.java51 public void setCellDimensions(int cellWidth, int cellHeight, int widthGap, int heightGap ) { in setCellDimensions() argument
52 mCellWidth = cellWidth; in setCellDimensions()
107 final int cellWidth = mCellWidth; in measureChild() local
111 lp.setup(cellWidth, cellHeight, mWidthGap, mHeightGap); in measureChild()
DPagedViewCellLayout.java473 public void setup(int cellWidth, int cellHeight, int widthGap, int heightGap, in setup() argument
481 width = myCellHSpan * cellWidth + ((myCellHSpan - 1) * widthGap) - in setup()
487 x = hStartPadding + myCellX * (cellWidth + widthGap) + leftMargin; in setup()
490 x = myCellX * (cellWidth + widthGap) + leftMargin; in setup()
DAppWidgetResizeFrame.java324 int cellWidth = landMetrics.left; in updateWidgetSizeRanges() local
328 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in updateWidgetSizeRanges()
332 cellWidth = portMetrics.left; in updateWidgetSizeRanges()
336 int portWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in updateWidgetSizeRanges()
DCellLayout.java287 int cellWidth = r.getDimensionPixelSize(R.dimen.workspace_cell_width); in widthInPortrait() local
291 return minGap * (numCells - 1) + cellWidth * numCells; in widthInPortrait()
880 int cellWidth; in getMetrics() local
889 cellWidth = res.getDimensionPixelSize(R.dimen.workspace_cell_width_land); in getMetrics()
899 cellWidth = res.getDimensionPixelSize(R.dimen.workspace_cell_width_port); in getMetrics()
912 int hFreeSpace = hSpace - (countX * cellWidth); in getMetrics()
917 metrics.set(cellWidth, cellHeight, widthGap, heightGap); in getMetrics()
2654 final int cellWidth = mCellWidth; in cellToRect() local
2662 int width = cellHSpan * cellWidth + ((cellHSpan - 1) * widthGap); in cellToRect()
2665 int x = hStartPadding + cellX * (cellWidth + widthGap); in cellToRect()
[all …]
DAppsCustomizePagedView.java1135 int cellWidth, int cellHeight, int cellCountX) { in prepareLoadWidgetPreviewsTask() argument
1153 AsyncTaskPageData pageData = new AsyncTaskPageData(page, widgets, cellWidth, cellHeight, in prepareLoadWidgetPreviewsTask()
1385 final int cellWidth = ((contentWidth - mPageLayoutPaddingLeft - mPageLayoutPaddingRight in syncWidgetPageItems() local
1442 lp.width = cellWidth; in syncWidgetPageItems()
1456 int maxPreviewWidth = cellWidth; in syncWidgetPageItems()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
100 float colWidth = (float) (cellWidth - (maxCols + 1) * mCellMargin) / (float) maxCols; in computeEventRect()
DDayView.java3091 int cellWidth = computeDayLeftPosition(dayIndex + 1) - left + 1; in drawEvents() local
3099 selectionArea.right = selectionArea.left + cellWidth; in drawEvents()
3111 if (!geometry.computeEventRect(date, left, top, cellWidth, event)) { in drawEvents()
4586 int cellWidth = mCellWidth; in findSelectedEvent() local
4663 if (!geometry.computeEventRect(date, left, top, cellWidth, event)) { in findSelectedEvent()