Searched refs:mNumColumns (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/photos/views/
H A DHeaderGridView.java221 private int mNumColumns = 1; field in class:HeaderGridView.HeaderViewGridAdapter
255 if (mNumColumns != numColumns) {
256 mNumColumns = numColumns;
291 return getHeadersCount() * mNumColumns + mAdapter.getCount();
293 return getHeadersCount() * mNumColumns;
309 int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns;
311 return (position % mNumColumns == 0)
312 && mHeaderViewInfos.get(position / mNumColumns).isSelectable;
331 int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns;
333 if (position % mNumColumns
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
H A DMoreKeysKeyboardBuilderFixedOrderTests.java73 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns);
85 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns);
97 assertEquals("1 key fix 5 L1 columns", 1, params.mNumColumns);
109 assertEquals("1 key fix 5 L2 columns", 1, params.mNumColumns);
121 assertEquals("1 key fix 5 R0 columns", 1, params.mNumColumns);
133 assertEquals("1 key fix 5 R1 columns", 1, params.mNumColumns);
145 assertEquals("1 key fix 5 R2 columns", 1, params.mNumColumns);
157 assertEquals("2 key fix 5 M0 columns", 2, params.mNumColumns);
170 assertEquals("2 key fix 5 L0 columns", 2, params.mNumColumns);
183 assertEquals("2 key fix 5 L1 columns", 2, params.mNumColumns);
[all...]
H A DMoreKeysKeyboardBuilderTests.java73 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns);
85 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns);
97 assertEquals("1 key max 5 L1 columns", 1, params.mNumColumns);
109 assertEquals("1 key max 5 L2 columns", 1, params.mNumColumns);
121 assertEquals("1 key max 5 R0 columns", 1, params.mNumColumns);
133 assertEquals("1 key max 5 R1 columns", 1, params.mNumColumns);
145 assertEquals("1 key max 5 R2 columns", 1, params.mNumColumns);
157 assertEquals("2 key max 5 M0 columns", 2, params.mNumColumns);
170 assertEquals("2 key max 5 L0 columns", 2, params.mNumColumns);
183 assertEquals("2 key max 5 L1 columns", 2, params.mNumColumns);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMoreKeysKeyboard.java50 public int mNumColumns; field in class:MoreKeysKeyboard.MoreKeysKeyboardParams
88 mNumColumns = numColumns;
128 mBaseWidth = mOccupiedWidth = mNumColumns * mColumnWidth - mDividerWidth;
135 if (mNumRows == 1 || mTopKeys % 2 == 1 || mTopKeys == mNumColumns
143 if (mNumRows == 1 || mTopKeys == 1 || mNumColumns % 2 == mTopKeys % 2
156 final int col = n % mNumColumns;
157 final int row = n / mNumColumns;
176 final int col = n % mNumColumns;
177 final int row = n / mNumColumns;
343 final int row = n / params.mNumColumns;
[all...]

Completed in 249 milliseconds