Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderFixedOrderTests.java74 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0()
86 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyFix5L0()
98 assertEquals("1 key fix 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyFix5L1()
110 assertEquals("1 key fix 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyFix5L2()
122 assertEquals("1 key fix 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyFix5R0()
134 assertEquals("1 key fix 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyFix5R1()
146 assertEquals("1 key fix 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyFix5R2()
158 assertEquals("2 key fix 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyFix5M0()
171 assertEquals("2 key fix 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyFix5L0()
184 assertEquals("2 key fix 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyFix5L1()
[all …]
DMoreKeysKeyboardBuilderMaxOrderTests.java74 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0()
86 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyMax5L0()
98 assertEquals("1 key max 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyMax5L1()
110 assertEquals("1 key max 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyMax5L2()
122 assertEquals("1 key max 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyMax5R0()
134 assertEquals("1 key max 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyMax5R1()
146 assertEquals("1 key max 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyMax5R2()
158 assertEquals("2 key max 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyMax5M0()
171 assertEquals("2 key max 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyMax5L0()
184 assertEquals("2 key max 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyMax5L1()
[all …]
DMoreKeysKeyboardBuilderAutoOrderTests.java74 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0()
86 assertEquals("1 key auto 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L0()
98 assertEquals("1 key auto 5 L1 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L1()
110 assertEquals("1 key auto 5 L2 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L2()
122 assertEquals("1 key auto 5 R0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R0()
134 assertEquals("1 key auto 5 R1 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R1()
146 assertEquals("1 key auto 5 R2 columns", 1, params.mNumColumns); in testLayout1KeyAuto5R2()
158 assertEquals("2 key auto 5 M0 columns", 2, params.mNumColumns); in testLayout2KeyAuto5M0()
171 assertEquals("2 key auto 5 L0 columns", 2, params.mNumColumns); in testLayout2KeyAuto5L0()
184 assertEquals("2 key auto 5 L1 columns", 2, params.mNumColumns); in testLayout2KeyAuto5L1()
[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/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/
DBandController_GridModelTest.java285 private final int mNumColumns; field in BandController_GridModelTest.TestEnvironment
296 mNumColumns = numColumns; in TestEnvironment()
297 mSeparatorPosition = mNumColumns + 1; in TestEnvironment()
312 for (int j = 0; j < mNumColumns && i < mNumChildren; j++) { in setupGrid()
350 int mod = mSeparatorPosition % mNumColumns; in getNumItemsInRow()
351 if (index == (mSeparatorPosition / mNumColumns)) { in getNumItemsInRow()
353 return mod > 0 ? mod : mNumColumns; in getNumItemsInRow()
358 int finalRowCount = (mNumChildren - mod) % mNumColumns; in getNumItemsInRow()
359 return finalRowCount > 0 ? finalRowCount : mNumColumns; in getNumItemsInRow()
362 return mNumColumns; in getNumItemsInRow()
[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()