Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java73 public void setParameters(final int numKeys, final int maxColumns, final int keyWidth, in setParameters() argument
77 if (parentKeyboardWidth / keyWidth < Math.min(numKeys, maxColumns)) { in setParameters()
81 + numKeys + " " + maxColumns); in setParameters()
86 final int numRows = (numKeys + maxColumns - 1) / maxColumns; in setParameters()
88 final int numColumns = mIsFixedOrder ? Math.min(numKeys, maxColumns) in setParameters()
89 : getOptimizedColumns(numKeys, maxColumns); in setParameters()
91 final int topKeys = numKeys % numColumns; in setParameters()
214 private static int getTopRowEmptySlots(final int numKeys, final int numColumns) { in getTopRowEmptySlots() argument
215 final int remainings = numKeys % numColumns; in getTopRowEmptySlots()
219 private int getOptimizedColumns(final int numKeys, final int maxColumns) { in getOptimizedColumns() argument
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderTests.java46 private static MoreKeysKeyboardParams createParams(final int numKeys, final int maxColumns, in createParams() argument
49 params.setParameters(numKeys, maxColumns, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()
DMoreKeysKeyboardBuilderFixedOrderTests.java46 private static MoreKeysKeyboardParams createParams(final int numKeys, final int columnNum, in createParams() argument
49 params.setParameters(numKeys, columnNum, WIDTH, HEIGHT, coordXInParent, KEYBOARD_WIDTH, in createParams()