Searched defs:mCellWidth (Results 1 - 11 of 11) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedViewCellLayoutChildren.java34 private int mCellWidth; field in class:PagedViewCellLayoutChildren
62 mCellWidth = width;
94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
H A DShortcutAndWidgetContainer.java36 private int mCellWidth; field in class:ShortcutAndWidgetContainer
53 mCellWidth = cellWidth;
105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(),
115 final int cellWidth = mCellWidth;
H A DPagedViewCellLayout.java41 private int mCellWidth; field in class:PagedViewCellLayout
65 mOriginalCellWidth = mCellWidth =
75 mChildren.setCellDimensions(mCellWidth, mCellHeight);
82 return mCellWidth;
202 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) +
237 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap);
294 int smallerSize = Math.min(mCellWidth, mCellHeight);
322 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap));
346 getPaddingLeft() + (x * mCellWidth) + (x * mWidthGap) + (mCellWidth /
[all...]
H A DCellLayout.java65 private int mCellWidth; field in class:CellLayout
189 mCellWidth = a.getDimensionPixelSize(R.styleable.CellLayout_cellWidth, 10);
286 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
336 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
476 cd.setBounds(0, 0, mCellWidth, mCellHeight);
502 int centerX = mTempLocation[0] + mCellWidth / 2;
517 centerX = mTempLocation[0] + mCellWidth / 2;
532 int centerX = mTempLocation[0] + mCellWidth / 2;
810 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap);
829 pointToCellExact(x + (mCellWidth /
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DShortcutAndWidgetContainer.java37 private int mCellWidth; field in class:ShortcutAndWidgetContainer
53 mCellWidth = cellWidth;
92 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX,
95 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX);
115 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX,
119 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX);
H A DCellLayout.java80 @Thunk int mCellWidth; field in class:CellLayout
207 mCellWidth = mCellHeight = -1;
287 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY);
365 mFixedCellWidth = mCellWidth = width;
367 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY);
376 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY);
482 cd.setBounds(0, 0, mCellWidth, mCellHeight);
694 result[0] = (x - hStartPadding) / mCellWidth;
713 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result);
728 result[0] = hStartPadding + cellX * mCellWidth;
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DProximityInfo.java48 private final int mCellWidth; field in class:ProximityInfo
68 mCellWidth = (minWidth + mGridWidth - 1) / mGridWidth;
251 final int lastPixelXCoordinate = mGridWidth * mCellWidth - 1;
263 final int halfCellWidth = mCellWidth / 2;
338 final int xDeltaToGrid = leftPixelWithinThreshold % mCellWidth;
341 xMiddleOfLeftCell + (xDeltaToGrid <= halfCellWidth ? 0 : mCellWidth));
344 int baseIndexOfCurrentRow = (yStart / mCellHeight) * mGridWidth + (xStart / mCellWidth);
347 for (int centerX = xStart; centerX <= xEnd; centerX += mCellWidth) {
398 int index = (y / mCellHeight) * mGridWidth + (x / mCellWidth);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state.h49 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0),
203 int mCellWidth; member in class:latinime::ProximityInfoState
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DKeyboard.java156 private int mCellWidth; field in class:Keyboard
702 mCellWidth = (getMinWidth() + GRID_WIDTH - 1) / GRID_WIDTH;
706 final int gridWidth = GRID_WIDTH * mCellWidth;
708 for (int x = 0; x < gridWidth; x += mCellWidth) {
714 key.squaredDistanceFrom(x + mCellWidth - 1, y) < mProximityThreshold ||
715 key.squaredDistanceFrom(x + mCellWidth - 1, y + mCellHeight - 1)
718 key.isInside(x, y, mCellWidth, mCellHeight)) {
724 mGridNeighbors[(y / mCellHeight) * GRID_WIDTH + (x / mCellWidth)] = cell;
739 int index = (y / mCellHeight) * GRID_WIDTH + (x / mCellWidth);
/packages/apps/Gallery/src/com/android/camera/
H A DGridViewSpecial.java82 mCellWidth = dpToPx(w, metrics);
87 int mCellWidth, mCellHeight; field in class:GridViewSpecial.LayoutSpec
215 mColumns = 1 + (width - mSpec.mCellWidth)
216 / (mSpec.mCellWidth + mSpec.mCellSpacing);
220 - (mColumns * mSpec.mCellWidth)) / 2;
262 int w = mSpec.mCellWidth;
507 + (col * (mSpec.mCellWidth + mSpec.mCellSpacing));
511 left + mSpec.mCellWidth + mSpec.mCellSpacing,
525 (x - leftSpacing) / (mSpec.mCellWidth + spacing));
679 mSpec.mCellWidth, mSpe
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DDayView.java330 private int mCellWidth; field in class:DayView
1226 mCellWidth = (gridAreaWidth - (mNumDays * DAY_GAP)) / mNumDays;
1351 final int eventAreaWidth = mNumDays * (mCellWidth + DAY_GAP);
2360 // r.right = mHoursWidth + mNumDays * (mCellWidth + DAY_GAP);
2377 if (mDateStrWidth < mCellWidth) {
4569 int day = (x - mHoursWidth) / (mCellWidth + DAY_GAP);
4629 int cellWidth = mCellWidth;

Completed in 443 milliseconds