Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DPagedViewCellLayout.java42 private int mCellHeight; field in PagedViewCellLayout
67 mOriginalCellHeight = mCellHeight = in PagedViewCellLayout()
75 mChildren.setCellDimensions(mCellWidth, mCellHeight); in PagedViewCellLayout()
86 return mCellHeight; in getCellHeight()
204 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) + in onMeasure()
230 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap); in getContentHeight()
263 bottom += mCellHeight / 2; in onTouchEvent()
294 int smallerSize = Math.min(mCellWidth, mCellHeight); in getCellCountForDimensions()
337 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap)); in estimateCellVSpan()
347 getPaddingTop() + (y * mCellHeight) + (y * mHeightGap) + (mCellHeight / 2) in estimateCellPosition()
[all …]
DShortcutAndWidgetContainer.java37 private int mCellHeight; field in ShortcutAndWidgetContainer
54 mCellHeight = cellHeight; in setCellDimensions()
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
116 final int cellHeight = mCellHeight; in measureChild()
DPagedViewCellLayoutChildren.java35 private int mCellHeight; field in PagedViewCellLayoutChildren
63 mCellHeight = height; in setCellDimensions()
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure()
DCellLayout.java66 private int mCellHeight; field in CellLayout
190 mCellHeight = a.getDimensionPixelSize(R.styleable.CellLayout_cellHeight, 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()
811 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
829 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
845 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
873 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint()
874 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java49 private final int mCellHeight; field in ProximityInfo
69 mCellHeight = (height + mGridHeight - 1) / mGridHeight; in ProximityInfo()
252 final int lastPixelYCoordinate = mGridHeight * mCellHeight - 1; in computeNearestNeighbors()
264 final int halfCellHeight = mCellHeight / 2; in computeNearestNeighbors()
331 final int yDeltaToGrid = topPixelWithinThreshold % mCellHeight; in computeNearestNeighbors()
334 yMiddleOfTopCell + (yDeltaToGrid <= halfCellHeight ? 0 : mCellHeight)); in computeNearestNeighbors()
344 int baseIndexOfCurrentRow = (yStart / mCellHeight) * mGridWidth + (xStart / mCellWidth); in computeNearestNeighbors()
345 for (int centerY = yStart; centerY <= yEnd; centerY += mCellHeight) { in computeNearestNeighbors()
398 int index = (y / mCellHeight) * mGridWidth + (x / mCellWidth); in getNearestKeys()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java470 private static int mCellHeight = 0; // shared among all DayViews field in DayView
763 if (mCellHeight == 0) { in DayView()
764 mCellHeight = Utils.getSharedPreference(mContext, in DayView()
1024 gotoY = mBaseDate.hour * (mCellHeight + HOUR_GAP); in setSelected()
1026 lastHour = (mGridAreaHeight - mFirstHourOffset) / (mCellHeight + HOUR_GAP) in setSelected()
1036 * (mCellHeight + HOUR_GAP) - mGridAreaHeight); in setSelected()
1042 + (mCellHeight + HOUR_GAP) + " lh " + lastHour + " gh " + mGridAreaHeight in setSelected()
1261 if (mCellHeight < mMinCellHeight) { in remeasure()
1262 mCellHeight = mMinCellHeight; in remeasure()
1319 mNumHours = mGridAreaHeight / (mCellHeight + HOUR_GAP); in remeasure()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboard.java157 private int mCellHeight; field in Keyboard
703 mCellHeight = (getHeight() + GRID_HEIGHT - 1) / GRID_HEIGHT; in computeNearestNeighbors()
707 final int gridHeight = GRID_HEIGHT * mCellHeight; in computeNearestNeighbors()
709 for (int y = 0; y < gridHeight; y += mCellHeight) { in computeNearestNeighbors()
715 key.squaredDistanceFrom(x + mCellWidth - 1, y + mCellHeight - 1) in computeNearestNeighbors()
717 key.squaredDistanceFrom(x, y + mCellHeight - 1) < mProximityThreshold || 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/
DShortcutAndWidgetContainer.java39 private int mCellHeight; field in ShortcutAndWidgetContainer
60 mCellHeight = cellHeight; in setCellDimensions()
116 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
144 final int cellHeight = mCellHeight; in measureChild()
DCellLayout.java74 @Thunk int mCellHeight; field in CellLayout
193 mCellWidth = mCellHeight = -1; in CellLayout()
272 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
357 mFixedCellHeight = mCellHeight = height; 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()
726 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
744 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
760 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java83 mCellHeight = dpToPx(h, metrics); in LayoutSpec()
87 int mCellWidth, mCellHeight; field in GridViewSpecial.LayoutSpec
223 mBlockHeight = mSpec.mCellSpacing + mSpec.mCellHeight; in onLayout()
263 int h = mSpec.mCellHeight; in generateOutlineBitmap()
512 top + mSpec.mCellHeight + mSpec.mCellSpacing); in getRectForPosition()
523 int row = (mScrollY + y - spacing) / (mSpec.mCellHeight + spacing); in computeSelectedIndex()
679 mSpec.mCellWidth, mSpec.mCellHeight); in paintDecoration()
758 mBlockHeight = mSpec.mCellSpacing + mSpec.mCellHeight; in ImageBlockManager()
960 mEmptyBitmap = Bitmap.createBitmap(mSpec.mCellWidth, mSpec.mCellHeight, in initGraphics()
1104 mSpec.mCellWidth, mSpec.mCellHeight); in drawBitmap()
/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()
202 int mCellHeight; variable
Dproximity_info_state.cpp60 mCellHeight = proximityInfo->getCellHeight(); in initInputParams()