Home
last modified time | relevance | path

Searched refs:keyWidth (Results 1 – 10 of 10) 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()
86 mDefaultKeyWidth = keyWidth; in setParameters()
100 final int maxLeftKeys = coordXInParent / keyWidth; in setParameters()
101 final int maxRightKeys = (parentKeyboardWidth - coordXInParent) / keyWidth; in setParameters()
287 final int keyWidth, rowHeight; in Builder() local
296 keyWidth = keyPreviewVisibleWidth; in Builder()
303 keyWidth = getMaxKeyWidth(key, mParams.mDefaultKeyWidth, padding, paintToMeasure); in Builder()
308 dividerWidth = (int)(keyWidth * DIVIDER_RATIO); in Builder()
[all …]
DKeyboardView.java352 final int keyWidth = key.getDrawWidth(); in onDrawKeyBackground() local
361 keyWidth / (float)intrinsicWidth, keyHeight / (float)intrinsicHeight); in onDrawKeyBackground()
364 bgX = (keyWidth - bgWidth) / 2; in onDrawKeyBackground()
368 bgWidth = keyWidth + padding.left + padding.right; in onDrawKeyBackground()
385 final int keyWidth = key.getDrawWidth(); in onDrawKeyTopVisuals() local
387 final float centerX = keyWidth * 0.5f; in onDrawKeyTopVisuals()
416 final float ratio = Math.min(1.0f, (keyWidth * MAX_LABEL_RATIO) / in onDrawKeyTopVisuals()
469 hintX = keyWidth - mKeyShiftedLetterHintPadding - labelCharWidth / 2.0f; in onDrawKeyTopVisuals()
477 hintX = keyWidth - mKeyHintLetterPadding in onDrawKeyTopVisuals()
491 iconWidth = (int)(keyWidth * mSpacebarIconWidthRatio); in onDrawKeyTopVisuals()
[all …]
DMoreKeysKeyboardView.java94 final int keyWidth = key.getDrawWidth(); in onDrawKeyTopVisuals() local
96 final int iconWidth = Math.min(mDivider.getIntrinsicWidth(), keyWidth); in onDrawKeyTopVisuals()
98 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center in onDrawKeyTopVisuals()
DKey.java266 final float keyWidth = row.getKeyWidth(keyAttr, keyXPos); in Key() local
272 mWidth = Math.round(keyWidth - horizontalGapFloat); in Key()
273 mHitBox.set(Math.round(keyXPos), keyYPos, Math.round(keyXPos + keyWidth) + 1, in Key()
276 row.setXPos(keyXPos + keyWidth); in Key()
DPointerTracker.java356 final int keyWidth = mKeyboard.mMostCommonKeyWidth; in setKeyDetectorInner() local
358 mBatchInputArbiter.setKeyboardGeometry(keyWidth, mKeyboard.mOccupiedHeight); in setKeyDetectorInner()
362 mPhantomSuddenMoveThreshold = (int)(keyWidth * PHANTOM_SUDDEN_MOVE_THRESHOLD); in setKeyDetectorInner()
363 mBogusMoveEventDetector.setKeyboardGeometry(keyWidth, keyHeight); in setKeyDetectorInner()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java80 public void setKeyboardGeometry(final int keyWidth, final int keyboardHeight) { in setKeyboardGeometry() argument
81 mKeyWidth = keyWidth; in setKeyboardGeometry()
86 keyWidth * mRecognitionParams.mDetectFastMoveSpeedThreshold); in setKeyboardGeometry()
88 keyWidth * mRecognitionParams.mDynamicDistanceThresholdFrom); in setKeyboardGeometry()
90 keyWidth * mRecognitionParams.mDynamicDistanceThresholdTo); in setKeyboardGeometry()
92 keyWidth * mRecognitionParams.mSamplingMinimumDistance); in setKeyboardGeometry()
94 keyWidth * mRecognitionParams.mRecognitionSpeedThreshold); in setKeyboardGeometry()
98 mPointerId, keyWidth, in setKeyboardGeometry()
DBogusMoveEventDetector.java68 public void setKeyboardGeometry(final int keyWidth, final int keyHeight) { in setKeyboardGeometry() argument
69 final float keyDiagonal = (float)Math.hypot(keyWidth, keyHeight); in setKeyboardGeometry()
DBatchInputArbiter.java51 public void setKeyboardGeometry(final int keyWidth, final int keyboardHeight) { in setKeyboardGeometry() argument
52 mRecognitionPoints.setKeyboardGeometry(keyWidth, keyboardHeight); in setKeyboardGeometry()
DKeyboardBuilder.java419 final float keyWidth = gridRows.getKeyWidth(null, 0.0f); in parseGridRows() local
420 final int numColumns = (int)(mParams.mOccupiedWidth / keyWidth); in parseGridRows()
456 final int width = (int)keyWidth; in parseGridRows()
462 row.advanceXPos(keyWidth); in parseGridRows()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp202 const int keyWidth = mKeyWidths[keyId]; in getKeyCenterXOfKeyIdG() local
204 && keyWidth > getMostCommonKeyWidth()) { in getKeyCenterXOfKeyIdG()
207 const int keyWidthHalfDiff = (keyWidth - getMostCommonKeyWidth()) / 2; in getKeyCenterXOfKeyIdG()