/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
FixedGridLayout.java | 38 int mCellWidth; 46 mCellWidth = px; 57 int cellWidthSpec = MeasureSpec.makeMeasureSpec(mCellWidth, 70 setMeasuredDimension(resolveSize(mCellWidth * minCount, widthMeasureSpec), 76 int cellWidth = mCellWidth;
|
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/ |
FixedGridLayout.java | 38 int mCellWidth; 51 mCellWidth = a.getDimensionPixelSize( 59 mCellWidth = px; 70 int cellWidthSpec = MeasureSpec.makeMeasureSpec(mCellWidth, 81 setMeasuredDimension(resolveSize(mCellWidth*count, widthMeasureSpec), 87 int cellWidth = mCellWidth;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
TileLayout.java | 22 protected int mCellWidth; 99 mCellWidth = (width - mSidePadding * 2 - (mCellMarginHorizontal * mColumns)) / mColumns; 105 record.tileView.measure(exactly(mCellWidth), exactly(mCellHeight)); 145 final int right = left + mCellWidth; 156 column * (mCellWidth + mCellMarginHorizontal);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PagedViewCellLayout.java | 41 private int mCellWidth; 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 / 2) [all...] |
PagedViewCellLayoutChildren.java | 34 private int mCellWidth; 62 mCellWidth = width; 94 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap,
|
ShortcutAndWidgetContainer.java | 36 private int mCellWidth; 53 mCellWidth = cellWidth; 105 lp.setup(mCellWidth, mCellHeight, mWidthGap, mHeightGap, invertLayoutHorizontally(), 115 final int cellWidth = mCellWidth;
|
CellLayout.java | 65 private int mCellWidth; 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 / 2), y + (mCellHeight / 2), result) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
ShortcutAndWidgetContainer.java | 41 private int mCellWidth; 57 mCellWidth = cellWidth; 96 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX, 99 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX); 118 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX, 122 lp.setup(mCellWidth, mCellHeight, invertLayoutHorizontally(), mCountX);
|
CellLayout.java | 82 @Thunk int mCellWidth; 203 mCellWidth = mCellHeight = -1; 283 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY); 354 mFixedCellWidth = mCellWidth = width; 356 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY); 365 mShortcutsAndWidgets.setCellDimensions(mCellWidth, mCellHeight, mCountX, mCountY); 441 cd.setBounds(0, 0, mCellWidth, mCellHeight); 653 result[0] = (x - hStartPadding) / mCellWidth; 672 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); 687 result[0] = hStartPadding + cellX * mCellWidth; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
ProximityInfo.java | 48 private final int mCellWidth; 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/apps/Gallery/src/com/android/camera/ |
GridViewSpecial.java | 82 mCellWidth = dpToPx(w, metrics); 87 int mCellWidth, mCellHeight; 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, mSpec.mCellHeight) [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
Keyboard.java | 156 private int mCellWidth; 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/native/jni/src/suggest/core/layout/ |
proximity_info_state.h | 49 mKeyCount(0), mCellHeight(0), mCellWidth(0), mGridHeight(0), mGridWidth(0), 203 int mCellWidth;
|
proximity_info_state.cpp | 61 mCellWidth = proximityInfo->getCellWidth();
|
/frameworks/base/core/java/android/inputmethodservice/ |
Keyboard.java | 141 private int mCellWidth; 739 mCellWidth = (getMinWidth() + GRID_WIDTH - 1) / GRID_WIDTH; 743 final int gridWidth = GRID_WIDTH * mCellWidth; 745 for (int x = 0; x < gridWidth; x += mCellWidth) { 751 key.squaredDistanceFrom(x + mCellWidth - 1, y) < mProximityThreshold || 752 key.squaredDistanceFrom(x + mCellWidth - 1, y + mCellHeight - 1) 760 mGridNeighbors[(y / mCellHeight) * GRID_WIDTH + (x / mCellWidth)] = cell; 775 int index = (y / mCellHeight) * GRID_WIDTH + (x / mCellWidth); [all...] |
/frameworks/base/core/java/android/widget/ |
SimpleMonthView.java | 105 private int mCellWidth; 238 return mCellWidth; 550 } else if (mCellWidth == 0) { 555 MathUtils.constrain(centerX / mCellWidth, 0, DAYS_IN_WEEK - 1); 640 final int colWidth = mCellWidth; 667 final int colWidth = mCellWidth; [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
DayView.java | 330 private int mCellWidth; [all...] |