Home
last modified time | relevance | path

Searched refs:keyXPos (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardRow.java140 public void setXPos(final float keyXPos) { in setXPos() argument
141 mCurrentX = keyXPos; in setXPos()
156 final float keyXPos = keyAttr.getFraction(R.styleable.Keyboard_Key_keyXPos, in getKeyX() local
158 if (keyXPos >= 0) { in getKeyX()
159 return keyXPos + mParams.mLeftPadding; in getKeyX()
167 return Math.max(keyXPos + keyboardRightEdge, mCurrentX); in getKeyX()
170 public float getKeyWidth(final TypedArray keyAttr, final float keyXPos) { in getKeyWidth() argument
181 return keyboardRightEdge - keyXPos; in getKeyWidth()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java265 final float keyXPos = row.getKeyX(keyAttr); in Key() local
266 final float keyWidth = row.getKeyWidth(keyAttr, keyXPos); in Key()
270 mX = Math.round(keyXPos + horizontalGapFloat / 2); in Key()
273 mHitBox.set(Math.round(keyXPos), keyYPos, Math.round(keyXPos + keyWidth) + 1, in Key()
276 row.setXPos(keyXPos + keyWidth); in Key()