Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderAutoOrderTests.java80 assertEquals("1 key auto 5 M0 rows", 1, params.mNumRows); in testLayout1KeyAuto5M0()
93 assertEquals("1 key auto 5 L0 rows", 1, params.mNumRows); in testLayout1KeyAuto5L0()
106 assertEquals("1 key auto 5 L1 rows", 1, params.mNumRows); in testLayout1KeyAuto5L1()
119 assertEquals("1 key auto 5 L2 rows", 1, params.mNumRows); in testLayout1KeyAuto5L2()
132 assertEquals("1 key auto 5 R0 rows", 1, params.mNumRows); in testLayout1KeyAuto5R0()
145 assertEquals("1 key auto 5 R1 rows", 1, params.mNumRows); in testLayout1KeyAuto5R1()
158 assertEquals("1 key auto 5 R2 rows", 1, params.mNumRows); in testLayout1KeyAuto5R2()
171 assertEquals("2 key auto 5 M0 rows", 1, params.mNumRows); in testLayout2KeyAuto5M0()
185 assertEquals("2 key auto 5 L0 rows", 1, params.mNumRows); in testLayout2KeyAuto5L0()
199 assertEquals("2 key auto 5 L1 rows", 1, params.mNumRows); in testLayout2KeyAuto5L1()
[all …]
DMoreKeysKeyboardBuilderFixedOrderTests.java80 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0()
93 assertEquals("1 key fix 5 L0 rows", 1, params.mNumRows); in testLayout1KeyFix5L0()
106 assertEquals("1 key fix 5 L1 rows", 1, params.mNumRows); in testLayout1KeyFix5L1()
119 assertEquals("1 key fix 5 L2 rows", 1, params.mNumRows); in testLayout1KeyFix5L2()
132 assertEquals("1 key fix 5 R0 rows", 1, params.mNumRows); in testLayout1KeyFix5R0()
145 assertEquals("1 key fix 5 R1 rows", 1, params.mNumRows); in testLayout1KeyFix5R1()
158 assertEquals("1 key fix 5 R2 rows", 1, params.mNumRows); in testLayout1KeyFix5R2()
171 assertEquals("2 key fix 5 M0 rows", 1, params.mNumRows); in testLayout2KeyFix5M0()
185 assertEquals("2 key fix 5 L0 rows", 1, params.mNumRows); in testLayout2KeyFix5L0()
199 assertEquals("2 key fix 5 L1 rows", 1, params.mNumRows); in testLayout2KeyFix5L1()
[all …]
DMoreKeysKeyboardBuilderMaxOrderTests.java80 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0()
93 assertEquals("1 key max 5 L0 rows", 1, params.mNumRows); in testLayout1KeyMax5L0()
106 assertEquals("1 key max 5 L1 rows", 1, params.mNumRows); in testLayout1KeyMax5L1()
119 assertEquals("1 key max 5 L2 rows", 1, params.mNumRows); in testLayout1KeyMax5L2()
132 assertEquals("1 key max 5 R0 rows", 1, params.mNumRows); in testLayout1KeyMax5R0()
145 assertEquals("1 key max 5 R1 rows", 1, params.mNumRows); in testLayout1KeyMax5R1()
158 assertEquals("1 key max 5 R2 rows", 1, params.mNumRows); in testLayout1KeyMax5R2()
171 assertEquals("2 key max 5 M0 rows", 1, params.mNumRows); in testLayout2KeyMax5M0()
185 assertEquals("2 key max 5 L0 rows", 1, params.mNumRows); in testLayout2KeyMax5L0()
199 assertEquals("2 key max 5 L1 rows", 1, params.mNumRows); in testLayout2KeyMax5L1()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java48 public int mNumRows; field in MoreKeysKeyboard.MoreKeysKeyboardParams
90 mNumRows = numRows; in setParameters()
135 mBaseHeight = mOccupiedHeight = mNumRows * mDefaultRowHeight - mVerticalGap 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()
224 while (getTopRowEmptySlots(numKeys, numColumns) >= mNumRows) { in getOptimizedColumns()
243 return (mNumRows - 1 - row) * mDefaultRowHeight + mTopPadding; in getY()
254 return mNumRows > 1 && rowCount == mNumRows - 1; in isTopRow()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DControlBar.java87 private int mNumRows; field in ControlBar
128 mNumRows = mRowsContainer.getChildCount(); in init()
129 Preconditions.checkState(mNumRows > 0, "Must have at least 1 row"); in init()
131 mSlots = new FrameLayout[mNumColumns * mNumRows]; in init()
136 for (int i = 0; i < mNumRows; i++) { in init()
138 ViewGroup row = (ViewGroup) mRowsContainer.getChildAt(mNumRows - i - 1); in init()
271 if (mNumRows > 1) { in updateViewsLayout()
274 for (int i = 1; i < mNumRows; i++) { in updateViewsLayout()
276 int rowIndex = mNumRows - 1 - i; in updateViewsLayout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java48 private int mNumRows; field in MoreSuggestions.MoreSuggestionsParam
96 mNumRows = row + 1; in layout()
99 mBaseHeight = mOccupiedHeight = mNumRows * mDefaultRowHeight + mVerticalGap; in layout()
114 for (int row = 0; row < mNumRows; row++) { in calcurateMaxRowWidth()
150 return (mNumRows -1 - row) * mDefaultRowHeight + mTopPadding; in getY()
162 if (row == mNumRows - 1) in markAsEdgeKey()