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.java101 public void setXPos(final float keyXPos) { in setXPos() argument
102 mCurrentX = keyXPos; in setXPos()
115 final float keyXPos = keyAttr.getFraction(R.styleable.Keyboard_Key_keyXPos, in getKeyX() local
117 if (keyXPos < 0) { in getKeyX()
124 return Math.max(keyXPos + keyboardRightEdge, mCurrentX); in getKeyX()
126 return keyXPos + mParams.mLeftPadding; in getKeyX()
136 public float getKeyWidth(final TypedArray keyAttr, final float keyXPos) { in getKeyWidth() argument
144 return keyboardRightEdge - keyXPos; in getKeyWidth()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java234 final float keyXPos = row.getKeyX(keyAttr); in Key() local
235 final float keyWidth = row.getKeyWidth(keyAttr, keyXPos); in Key()
239 mX = Math.round(keyXPos + horizontalGap / 2); in Key()
242 mHitBox.set(Math.round(keyXPos), keyYPos, Math.round(keyXPos + keyWidth) + 1, in Key()
245 row.setXPos(keyXPos + keyWidth); in Key()