Home
last modified time | relevance | path

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

/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()
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()
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 …]
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java48 private final int mCellWidth; field in ProximityInfo
68 mCellWidth = (minWidth + mGridWidth - 1) / mGridWidth; in ProximityInfo()
251 final int lastPixelXCoordinate = mGridWidth * mCellWidth - 1; in computeNearestNeighbors()
263 final int halfCellWidth = mCellWidth / 2; in computeNearestNeighbors()
338 final int xDeltaToGrid = leftPixelWithinThreshold % mCellWidth; in computeNearestNeighbors()
341 xMiddleOfLeftCell + (xDeltaToGrid <= halfCellWidth ? 0 : mCellWidth)); in computeNearestNeighbors()
344 int baseIndexOfCurrentRow = (yStart / mCellHeight) * mGridWidth + (xStart / mCellWidth); in computeNearestNeighbors()
347 for (int centerX = xStart; centerX <= xEnd; centerX += mCellWidth) { in computeNearestNeighbors()
398 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/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java73 @Thunk int mCellWidth; field in CellLayout
193 mCellWidth = mCellHeight = -1; in CellLayout()
272 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
356 mFixedCellWidth = mCellWidth = width; in setCellDimensions()
358 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setCellDimensions()
368 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
484 cd.setBounds(0, 0, mCellWidth, mCellHeight); in onDraw()
511 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
547 int centerX = mTempLocation[0] + mCellWidth / 2; in onDraw()
725 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap); in pointToCellExact()
[all …]
DShortcutAndWidgetContainer.java38 private int mCellWidth; field in ShortcutAndWidgetContainer
59 mCellWidth = cellWidth; in setCellDimensions()
116 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
143 final int cellWidth = mCellWidth; in measureChild()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.h49 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0), in ProximityInfoState()
203 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()