Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DCellLayoutLayoutParams.java115 public void setup(int cellWidth, int cellHeight, boolean invertHorizontally, int colCount, in setup() argument
117 setup(cellWidth, cellHeight, invertHorizontally, colCount, rowCount, 1.0f, 1.0f, in setup()
128 public void setup(int cellWidth, int cellHeight, boolean invertHorizontally, int colCount, in setup() argument
144 float myCellWidth = ((myCellHSpan * cellWidth) + hBorderSpacing) / cellScaleX; in setup()
149 x = leftMargin + (myCellX * cellWidth) + (myCellX * borderSpace.x); in setup()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h53 const int *const proximityCharsArray, const int cellHeight, const int cellWidth, in initializeProximities() argument
67 proximityCharsArray, cellHeight, cellWidth, gridWidth, mostCommonKeyWidth, in initializeProximities()
85 const int cellHeight, const int cellWidth, const int gridWidth) { in getStartIndexFromCoordinates() argument
86 return ((y / cellHeight) * gridWidth + (x / cellWidth)) * MAX_PROXIMITY_CHARS_SIZE; in getStartIndexFromCoordinates()
145 const int *const proximityCharsArray, const int cellHeight, const int cellWidth, in calculateProximities() argument
158 const int startIndex = getStartIndexFromCoordinates(x, y, cellHeight, cellWidth, gridWidth); in calculateProximities()
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/pagination/
DPageMeasurementHelper.java114 int cellWidth = gridWidth / mNumOfCols; in handleWindowSizeChange() local
116 mGridDimensions = new GridDimensions(gridWidth, gridHeight, cellWidth, cellHeight); in handleWindowSizeChange()
176 public GridDimensions(int gridWidth, int gridHeight, int cellWidth, int cellHeight) { in GridDimensions() argument
179 cellWidthPx = cellWidth; in GridDimensions()
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java95 public int getWidthMeasureSpec(final int cellWidth, final int padding) { in getWidthMeasureSpec() argument
96 return MeasureSpec.makeMeasureSpec((endX - startX + 1) * cellWidth - padding * 2, in getWidthMeasureSpec()
307 final int cellWidth = width / GRID_WIDTH; in onMeasure() local
315 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
330 mPlusTextView.measure(imageTile.getWidthMeasureSpec(cellWidth, padding), in onMeasure()
340 final int cellWidth = getMeasuredWidth() / GRID_WIDTH; in onLayout() local
349 final int tileLeft = imageTile.startX * cellWidth; in onLayout()
/packages/apps/Calendar/src/com/android/calendar/
DEventGeometry.kt44 fun computeEventRect(date: Int, left: Int, top: Int, cellWidth: Int, event: Event): Boolean { in computeEventRect()
88 val colWidth = (cellWidth - (maxCols + 1) * mCellMargin).toFloat() / maxCols.toFloat() in computeEventRect()
DDayView.kt2342 val cellWidth = computeDayLeftPosition(dayIndex + 1) - left + 1 in drawEvents() constant
2350 selectionArea.right = selectionArea.left + cellWidth in drawEvents()
2359 if (!geometry.computeEventRect(date, left, top, cellWidth, event)) { in drawEvents()
3258 val cellWidth = mCellWidth in findSelectedEvent() constant
3333 if (!geometry.computeEventRect(date, left, top, cellWidth, event as Event)) { in findSelectedEvent()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAppsSearchContainerLayout.java106 int cellWidth = DeviceProfile.calculateCellWidth(rowWidth, in onMeasure() local
109 int iconPadding = cellWidth - iconVisibleSize; in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfo.java175 private int getSpanX(Rect widgetPadding, int widgetWidth, int cellSpacing, float cellWidth) { in getSpanX() argument
177 widgetWidth, cellSpacing, cellWidth); in getSpanX()
/packages/apps/Launcher3/src/com/android/launcher3/
DShortcutAndWidgetContainer.java79 public void setCellDimensions(int cellWidth, int cellHeight, int countX, int countY, in setCellDimensions() argument
81 mCellWidth = cellWidth; in setCellDimensions()
DCellLayout.java1799 final int cellWidth = mCellWidth; in cellToRect() local
1807 int x = hStartPadding + (cellX * mBorderSpace.x) + (cellX * cellWidth); in cellToRect()
1810 int width = cellHSpan * cellWidth + ((cellHSpan - 1) * mBorderSpace.x); in cellToRect()
DDeviceProfile.java1877 int cellWidth = DeviceProfile.calculateCellWidth(
1881 int iconAlignmentMargin = (cellWidth - getIconVisibleSizePx(allAppsIconSizePx)) / 2;
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java880 int cellWidth = getScaledSize(R.dimen.grid_width); in calculateColumnCount() local
891 (mRecView.getWidth() - viewPadding) / (cellWidth + cellMargin)); in calculateColumnCount()