Home
last modified time | relevance | path

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

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DComposingView.java247 int cursorPos = mDecInfo.getCursorPosInCmpsDisplay(); in drawForPinyin() local
248 int cmpsPos = cursorPos; in drawForPinyin()
251 if (cursorPos > activeCmpsLen) cmpsPos = activeCmpsLen; in drawForPinyin()
254 if (cursorPos <= activeCmpsLen) { in drawForPinyin()
266 if (cursorPos > activeCmpsLen) { in drawForPinyin()
267 if (cursorPos > cmpsStr.length()) cursorPos = cmpsStr.length(); in drawForPinyin()
268 canvas.drawText(cmpsStr, oriPos, cursorPos, x, y, mPaint); in drawForPinyin()
269 x += mPaint.measureText(cmpsStr, oriPos, cursorPos); in drawForPinyin()
275 oriPos = cursorPos; in drawForPinyin()
DPinyinIME.java2060 int cursorPos = mCursorPos; in getCursorPosInCmps() local
2065 cursorPos -= mSplStart[hzPos + 2] - mSplStart[hzPos + 1]; in getCursorPosInCmps()
2066 cursorPos += 1; in getCursorPosInCmps()
2069 return cursorPos; in getCursorPosInCmps()
2073 int cursorPos = getCursorPosInCmps(); in getCursorPosInCmpsDisplay() local
2081 cursorPos++; in getCursorPosInCmpsDisplay()
2084 return cursorPos; in getCursorPosInCmpsDisplay()
/packages/apps/Calculator/src/com/android/calculator2/
DLogic.java75 int cursorPos = editText.getSelectionStart(); in eatHorizontalMove() local
76 return toLeft ? cursorPos == 0 : cursorPos >= editText.length(); in eatHorizontalMove()