Searched defs:mCellWidth (Results 1 - 9 of 9) sorted by last modified time

/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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DProximityInfo.java40 private final int mCellWidth; field in class:ProximityInfo
63 mCellWidth = (minWidth + mGridWidth - 1) / mGridWidth;
198 final int gridWidth = mGridWidth * mCellWidth;
200 for (int x = 0; x < gridWidth; x += mCellWidth) {
202 final int centerX = x + mCellWidth / 2;
211 mGridNeighbors[(y / mCellHeight) * mGridWidth + (x / mCellWidth)] =
248 int index = (y / mCellHeight) * mGridWidth + (x / mCellWidth);
/packages/inputmethods/LatinIME/native/jni/src/
H A Dproximity_info_state.h56 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0),
277 int mCellWidth; member in class:latinime::ProximityInfoState
/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/Launcher2/src/com/android/launcher2/
H A DCellLayout.java63 private int mCellWidth; field in class:CellLayout
186 mCellWidth = a.getDimensionPixelSize(R.styleable.CellLayout_cellWidth, 10);
283 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mWidthGap, mHeightGap);
464 cd.setBounds(0, 0, mCellWidth, mCellHeight);
490 int centerX = mTempLocation[0] + mCellWidth / 2;
505 centerX = mTempLocation[0] + mCellWidth / 2;
520 int centerX = mTempLocation[0] + mCellWidth / 2;
798 result[0] = (x - hStartPadding) / (mCellWidth + mWidthGap);
817 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result);
832 result[0] = hStartPadding + cellX * (mCellWidth
[all...]
H A DPagedViewCellLayout.java41 private int mCellWidth; field in class:PagedViewCellLayout
65 mOriginalCellWidth = mCellWidth =
75 mChildren.setCellDimensions(mCellWidth, mCellHeight);
82 return mCellWidth;
213 newWidth = getPaddingLeft() + getPaddingRight() + (mCellCountX * mCellWidth) +
248 return mCellCountX * mCellWidth + (mCellCountX - 1) * Math.max(0, mWidthGap);
305 int smallerSize = Math.min(mCellWidth, mCellHeight);
333 int n = Math.max(1, (availWidth + mWidthGap) / (mCellWidth + mWidthGap));
357 getPaddingLeft() + (x * mCellWidth) + (x * mWidthGap) + (mCellWidth /
[all...]
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
48 mCellWidth = cellWidth;
99 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap);
103 final int cellWidth = mCellWidth;
/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);
2357 // r.right = mHoursWidth + mNumDays * (mCellWidth + DAY_GAP);
2374 if (mDateStrWidth < mCellWidth) {
4563 int day = (x - mHoursWidth) / (mCellWidth + DAY_GAP);
4623 int cellWidth = mCellWidth;

Completed in 37 milliseconds