Home
last modified time | relevance | path

Searched refs:mCellWidth (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java82 mCellWidth = dpToPx(w, metrics); in LayoutSpec()
87 int mCellWidth, mCellHeight; field in GridViewSpecial.LayoutSpec
215 mColumns = 1 + (width - mSpec.mCellWidth) in onLayout()
216 / (mSpec.mCellWidth + mSpec.mCellSpacing); in onLayout()
220 - (mColumns * mSpec.mCellWidth)) / 2; in onLayout()
262 int w = mSpec.mCellWidth; in generateOutlineBitmap()
507 + (col * (mSpec.mCellWidth + mSpec.mCellSpacing)); in getRectForPosition()
511 left + mSpec.mCellWidth + mSpec.mCellSpacing, in getRectForPosition()
525 (x - leftSpacing) / (mSpec.mCellWidth + spacing)); in computeSelectedIndex()
679 mSpec.mCellWidth, mSpec.mCellHeight); in paintDecoration()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedViewCellLayout.java38 private int mCellWidth; field in PagedViewCellLayout
62 mOriginalCellWidth = mCellWidth = grid.cellWidthPx; in PagedViewCellLayout()
69 mChildren.setCellDimensions(mCellWidth, mCellHeight); in PagedViewCellLayout()
76 return mCellWidth; in getCellWidth()
196 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) + in onMeasure()
231 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap); in getWidthBeforeFirstLayout()
288 int smallerSize = Math.min(mCellWidth, mCellHeight); in getCellCountForDimensions()
316 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap)); in estimateCellHSpan()
340 getPaddingLeft() + (x * mCellWidth) + (x * mWidthGap) + (mCellWidth / 2), in estimateCellPosition()
356 return hSpan * mCellWidth; in estimateCellWidth()
DCellLayout.java61 private int mCellWidth; field in CellLayout
194 mCellWidth = mCellHeight = -1; in CellLayout()
288 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
310 mFixedCellWidth = mCellWidth = width; in setCellDimensions()
312 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setCellDimensions()
322 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
359 - (mCountX * mCellWidth); in setPressedIcon()
439 cd.setBounds(0, 0, mCellWidth, mCellHeight); in onDraw()
467 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
503 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
[all …]
DShortcutAndWidgetContainer.java38 private int mCellWidth; field in ShortcutAndWidgetContainer
56 mCellWidth = cellWidth; in setCellDimensions()
113 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
143 final int cellWidth = mCellWidth; in measureChild()
DPagedViewCellLayoutChildren.java34 private int mCellWidth; field in PagedViewCellLayoutChildren
62 mCellWidth = width; in setCellDimensions()
95 mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure() local
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java41 private int mCellWidth; field in PagedViewCellLayout
65 mOriginalCellWidth = mCellWidth = in PagedViewCellLayout()
75 mChildren.setCellDimensions(mCellWidth, mCellHeight); in PagedViewCellLayout()
82 return mCellWidth; in getCellWidth()
202 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) + in onMeasure()
237 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap); in getWidthBeforeFirstLayout()
294 int smallerSize = Math.min(mCellWidth, mCellHeight); in getCellCountForDimensions()
322 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap)); in estimateCellHSpan()
346 getPaddingLeft() + (x * mCellWidth) + (x * mWidthGap) + (mCellWidth / 2), in estimateCellPosition()
362 return hSpan * mCellWidth; in estimateCellWidth()
DCellLayout.java65 private int mCellWidth; field in CellLayout
189 mCellWidth = a.getDimensionPixelSize(R.styleable.CellLayout_cellWidth, 10); in CellLayout()
286 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
336 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
476 cd.setBounds(0, 0, mCellWidth, mCellHeight); in onDraw()
502 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
517 centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
532 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
810 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
829 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
[all …]
DShortcutAndWidgetContainer.java36 private int mCellWidth; field in ShortcutAndWidgetContainer
53 mCellWidth = cellWidth; in setCellDimensions()
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
115 final int cellWidth = mCellWidth; in measureChild()
DPagedViewCellLayoutChildren.java34 private int mCellWidth; field in PagedViewCellLayoutChildren
62 mCellWidth = width; in setCellDimensions()
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java46 private final int mCellWidth; field in ProximityInfo
70 mCellWidth = (minWidth + mGridWidth - 1) / mGridWidth; in ProximityInfo()
253 final int lastPixelXCoordinate = mGridWidth * mCellWidth - 1; in computeNearestNeighbors()
265 final int halfCellWidth = mCellWidth / 2; in computeNearestNeighbors()
340 final int xDeltaToGrid = leftPixelWithinThreshold % mCellWidth; in computeNearestNeighbors()
343 xMiddleOfLeftCell + (xDeltaToGrid <= halfCellWidth ? 0 : mCellWidth)); in computeNearestNeighbors()
346 int baseIndexOfCurrentRow = (yStart / mCellHeight) * mGridWidth + (xStart / mCellWidth); in computeNearestNeighbors()
349 for (int centerX = xStart; centerX <= xEnd; centerX += mCellWidth) { in computeNearestNeighbors()
402 int index = (y / mCellHeight) * mGridWidth + (x / mCellWidth); in getNearestKeys()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboard.java156 private int mCellWidth; field in Keyboard
702 mCellWidth = (getMinWidth() + GRID_WIDTH - 1) / GRID_WIDTH; in computeNearestNeighbors()
706 final int gridWidth = GRID_WIDTH * mCellWidth; in computeNearestNeighbors()
708 for (int x = 0; x < gridWidth; x += mCellWidth) { in computeNearestNeighbors()
714 key.squaredDistanceFrom(x + mCellWidth - 1, y) < mProximityThreshold || in computeNearestNeighbors()
715 key.squaredDistanceFrom(x + mCellWidth - 1, y + mCellHeight - 1) in computeNearestNeighbors()
718 key.isInside(x, y, mCellWidth, mCellHeight)) { in computeNearestNeighbors()
724 mGridNeighbors[(y / mCellHeight) * GRID_WIDTH + (x / mCellWidth)] = cell; in computeNearestNeighbors()
739 int index = (y / mCellHeight) * GRID_WIDTH + (x / mCellWidth); in getNearestKeys()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.h48 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0), in ProximityInfoState()
202 int mCellWidth; variable
Dproximity_info_state.cpp61 mCellWidth = proximityInfo->getCellWidth(); in initInputParams()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java330 private int mCellWidth; field in DayView
1226 mCellWidth = (gridAreaWidth - (mNumDays * DAY_GAP)) / mNumDays; in onSizeChanged()
1351 final int eventAreaWidth = mNumDays * (mCellWidth + DAY_GAP); in remeasure()
2377 if (mDateStrWidth < mCellWidth) { in drawDayHeaderLoop()
4569 int day = (x - mHoursWidth) / (mCellWidth + DAY_GAP); in setSelectionFromPosition()
4629 int cellWidth = mCellWidth; in findSelectedEvent()