Home
last modified time | relevance | path

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

/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/apps/Launcher3/src/com/android/launcher3/
DPagedViewCellLayout.java39 private int mCellHeight; field in PagedViewCellLayout
63 mOriginalCellHeight = mCellHeight = grid.cellHeightPx; in PagedViewCellLayout()
69 mChildren.setCellDimensions(mCellWidth, mCellHeight); in PagedViewCellLayout()
80 return mCellHeight; in getCellHeight()
198 newHeight = getPaddingTop() + getPaddingBottom() + (mCellCountY * mCellHeight) + in onMeasure()
224 return mCellCountY * mCellHeight + (mCellCountY - 1) * Math.max(0, mHeightGap); in getContentHeight()
257 bottom += mCellHeight / 2; in onTouchEvent()
288 int smallerSize = Math.min(mCellWidth, mCellHeight); in getCellCountForDimensions()
331 int n = Math.max(1, (availHeight + mHeightGap) / (mCellHeight + mHeightGap)); in estimateCellVSpan()
341 getPaddingTop() + (y * mCellHeight) + (y * mHeightGap) + (mCellHeight / 2) in estimateCellPosition()
[all …]
DCellLayout.java62 private int mCellHeight; field in CellLayout
194 mCellWidth = mCellHeight = -1; in CellLayout()
288 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in CellLayout()
311 mFixedCellHeight = mCellHeight = height; in setCellDimensions()
312 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setCellDimensions()
322 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap, in setGridSize()
439 cd.setBounds(0, 0, mCellWidth, mCellHeight); in onDraw()
701 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
719 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
735 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
[all …]
DShortcutAndWidgetContainer.java39 private int mCellHeight; field in ShortcutAndWidgetContainer
57 mCellHeight = cellHeight; in setCellDimensions()
113 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), in setupLp()
144 final int cellHeight = mCellHeight; in measureChild()
DPagedViewCellLayoutChildren.java35 private int mCellHeight; field in PagedViewCellLayoutChildren
63 mCellHeight = height; in setCellDimensions()
95 mCellWidth, mCellHeight, mWidthGap, mHeightGap, in onMeasure() local
/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 …]
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 …]
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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java47 private final int mCellHeight; field in ProximityInfo
71 mCellHeight = (height + mGridHeight - 1) / mGridHeight; in ProximityInfo()
254 final int lastPixelYCoordinate = mGridHeight * mCellHeight - 1; in computeNearestNeighbors()
266 final int halfCellHeight = mCellHeight / 2; in computeNearestNeighbors()
333 final int yDeltaToGrid = topPixelWithinThreshold % mCellHeight; in computeNearestNeighbors()
336 yMiddleOfTopCell + (yDeltaToGrid <= halfCellHeight ? 0 : mCellHeight)); in computeNearestNeighbors()
346 int baseIndexOfCurrentRow = (yStart / mCellHeight) * mGridWidth + (xStart / mCellWidth); in computeNearestNeighbors()
347 for (int centerY = yStart; centerY <= yEnd; centerY += mCellHeight) { in computeNearestNeighbors()
402 int index = (y / mCellHeight) * mGridWidth + (x / mCellWidth); in getNearestKeys()
/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/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.h48 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0), in ProximityInfoState()
201 int mCellHeight; variable
Dproximity_info_state.cpp60 mCellHeight = proximityInfo->getCellHeight(); in initInputParams()