Home
last modified time | relevance | path

Searched refs:mColumnCount (Results 1 – 5 of 5) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java61 protected int mColumnCount; field in ContactTileAdapter
111 mColumnCount = (displayType == DisplayType.FREQUENT_ONLY ? 1 : numCols); in ContactTileAdapter()
129 mColumnCount = columnCount; in setColumnCount()
316 return entryCount == 0 ? 0 : ((entryCount - 1) / mColumnCount) + 1; in getRowCount()
320 return mColumnCount; in getColumnCount()
329 ArrayList<ContactEntry> resultList = new ArrayList<ContactEntry>(mColumnCount); in getItem()
330 int contactIndex = position * mColumnCount; in getItem()
337 for (int columnCounter = 0; columnCounter < mColumnCount; columnCounter++) { in getItem()
344 for (int columnCounter = 0; columnCounter < mColumnCount && in getItem()
493 int columnCount = mItemViewType == ViewTypes.FREQUENT ? 1 : mColumnCount; in configureRow()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTileGrid.java53 private int mColumnCount; field in AttachmentTileGrid
138 mColumnCount = width / mTileMinSize; in onMeasureForTiles()
141 if (mColumnCount == 0) { in onMeasureForTiles()
142 mColumnCount = 1; in onMeasureForTiles()
156 final int widthMinusPadding = width - (mColumnCount - 1) * mTilePadding; in onMeasureForTiles()
158 final int imageSize = (widthMinusPadding) / mColumnCount; in onMeasureForTiles()
159 final int remainder = widthMinusPadding - (imageSize * mColumnCount); in onMeasureForTiles()
173 final int numRows = ((childCount - 1) / mColumnCount) + 1; in onMeasureForTiles()
207 if (!skipBeginningOfRowFirstTime && i % mColumnCount == 0) { in onLayoutForTiles()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorPadLayout.java32 private int mColumnCount; field in CalculatorPadLayout
48 mColumnCount = a.getInt(1, 1); in CalculatorPadLayout()
67 Math.round((float) (right - left - paddingLeft - paddingRight)) / mColumnCount; in onLayout()
83 (isRTL ? (mColumnCount - 1) - columnIndex : columnIndex) * columnWidth; in onLayout()
96 rowIndex = (rowIndex + (columnIndex + 1) / mColumnCount) % mRowCount; in onLayout()
97 columnIndex = (columnIndex + 1) % mColumnCount; in onLayout()
/packages/apps/Contacts/src/com/android/contacts/list/
DGroupMemberTileAdapter.java76 final ArrayList<ContactEntry> resultList = Lists.newArrayListWithCapacity(mColumnCount); in getItem()
77 int contactIndex = position * mColumnCount; in getItem()
79 for (int columnCounter = 0; columnCounter < mColumnCount; columnCounter++) { in getItem()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java162 private final int mColumnCount; field in AutoInstallsLayout
187 mColumnCount = idp.numColumns; in AutoInstallsLayout()
269 convertToDistanceFromEnd(getAttributeValue(parser, ATTR_X), mColumnCount)); in parseAndAddNode()