Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderAutoOrderTests.java79 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0()
92 assertEquals("1 key auto 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L0()
105 assertEquals("1 key auto 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L1()
118 assertEquals("1 key auto 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L2()
131 assertEquals("1 key auto 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R0()
144 assertEquals("1 key auto 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R1()
157 assertEquals("1 key auto 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R2()
170 assertEquals("2 key auto 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyAuto5M0()
184 assertEquals("2 key auto 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyAuto5L0()
198 assertEquals("2 key auto 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyAuto5L1()
[all …]
DMoreKeysKeyboardBuilderFixedOrderTests.java79 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0()
92 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyFix5L0()
105 assertEquals("1 key fix 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyFix5L1()
118 assertEquals("1 key fix 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyFix5L2()
131 assertEquals("1 key fix 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyFix5R0()
144 assertEquals("1 key fix 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyFix5R1()
157 assertEquals("1 key fix 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyFix5R2()
170 assertEquals("2 key fix 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyFix5M0()
184 assertEquals("2 key fix 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyFix5L0()
198 assertEquals("2 key fix 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyFix5L1()
[all …]
DMoreKeysKeyboardBuilderMaxOrderTests.java79 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0()
92 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyMax5L0()
105 assertEquals("1 key max 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyMax5L1()
118 assertEquals("1 key max 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyMax5L2()
131 assertEquals("1 key max 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyMax5R0()
144 assertEquals("1 key max 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyMax5R1()
157 assertEquals("1 key max 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyMax5R2()
170 assertEquals("2 key max 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyMax5M0()
184 assertEquals("2 key max 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyMax5L0()
198 assertEquals("2 key max 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyMax5L1()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DHeaderGridView.java221 private int mNumColumns = 1; field in HeaderGridView.HeaderViewGridAdapter
255 if (mNumColumns != numColumns) { in setNumColumns()
256 mNumColumns = numColumns; in setNumColumns()
291 return getHeadersCount() * mNumColumns + mAdapter.getCount(); in getCount()
293 return getHeadersCount() * mNumColumns; in getCount()
309 int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns; in isEnabled()
311 return (position % mNumColumns == 0) in isEnabled()
312 && mHeaderViewInfos.get(position / mNumColumns).isSelectable; in isEnabled()
331 int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns; in getItem()
333 if (position % mNumColumns == 0) { in getItem()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java49 public int mNumColumns; field in MoreKeysKeyboard.MoreKeysKeyboardParams
93 mNumColumns = numColumns; in setParameters()
133 mBaseWidth = mOccupiedWidth = mNumColumns * mColumnWidth - mDividerWidth; in setParameters()
140 if (mNumRows == 1 || mTopKeys % 2 == 1 || mTopKeys == mNumColumns in getFixedOrderTopRowAdjustment()
148 if (mNumRows == 1 || mTopKeys == 1 || mNumColumns % 2 == mTopKeys % 2 in getAutoOrderTopRowAdjustment()
161 final int col = n % mNumColumns; in getFixedOrderColumnPos()
162 final int row = n / mNumColumns; in getFixedOrderColumnPos()
181 final int col = n % mNumColumns; in getAutomaticColumnPos()
182 final int row = n / mNumColumns; in getAutomaticColumnPos()
340 final int row = n / params.mNumColumns; in build()