Home
last modified time | relevance | path

Searched refs:numKeys (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java77 public void setParameters(final int numKeys, final int numColumn, final int keyWidth, in setParameters() argument
82 if (parentKeyboardWidth / keyWidth < Math.min(numKeys, numColumn)) { in setParameters()
84 + parentKeyboardWidth + " " + keyWidth + " " + numKeys + " " + numColumn); in setParameters()
89 final int numRows = (numKeys + numColumn - 1) / numColumn; in setParameters()
91 final int numColumns = isMoreKeysFixedColumn ? Math.min(numKeys, numColumn) in setParameters()
92 : getOptimizedColumns(numKeys, numColumn); in setParameters()
94 final int topKeys = numKeys % numColumns; in setParameters()
217 private static int getTopRowEmptySlots(final int numKeys, final int numColumns) { in getTopRowEmptySlots() argument
218 final int remainings = numKeys % numColumns; in getTopRowEmptySlots()
222 private int getOptimizedColumns(final int numKeys, final int maxColumns) { in getOptimizedColumns() argument
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderMaxOrderTests.java49 private static MoreKeysKeyboardParams createParams(final int numKeys, final int maxColumns, in createParams() argument
52 params.setParameters(numKeys, maxColumns, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()
DMoreKeysKeyboardBuilderAutoOrderTests.java49 private static MoreKeysKeyboardParams createParams(final int numKeys, final int columnNum, in createParams() argument
52 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()
DMoreKeysKeyboardBuilderFixedOrderTests.java49 private static MoreKeysKeyboardParams createParams(final int numKeys, final int columnNum, in createParams() argument
52 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()