Home
last modified time | relevance | path

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

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyboard.java316 SoftKey sKey = softKeys.get(i); in mapToKey() local
317 if (sKey.mLeft <= x && sKey.mTop <= y && sKey.mRight > x in mapToKey()
318 && sKey.mBottom > y) { in mapToKey()
319 return sKey; in mapToKey()
337 SoftKey sKey = softKeys.get(i); in mapToKey() local
338 int disx = (sKey.mLeft + sKey.mRight) / 2 - x; in mapToKey()
339 int disy = (sKey.mTop + sKey.mBottom) / 2 - y; in mapToKey()
343 nearestKey = sKey; in mapToKey()
359 SoftKey sKey = softKeys.get(i); in switchQwertyMode() local
360 if (sKey instanceof SoftKeyToggle) { in switchQwertyMode()
[all …]
DSkbContainer.java311 private void responseKeyEvent(SoftKey sKey) { in responseKeyEvent() argument
312 if (null == sKey) return; in responseKeyEvent()
313 ((PinyinIME) mService).responseSoftKeyEvent(sKey); in responseKeyEvent()
DPinyinIME.java963 public void responseSoftKeyEvent(SoftKey sKey) { in responseSoftKeyEvent() argument
964 if (null == sKey) return; in responseSoftKeyEvent()
969 int keyCode = sKey.getKeyCode(); in responseSoftKeyEvent()
972 if (sKey.isKeyCodeKey()) { in responseSoftKeyEvent()
976 if (sKey.isUserDefKey()) { in responseSoftKeyEvent()
981 if (sKey.isKeyCodeKey()) { in responseSoftKeyEvent()
989 } else if (sKey.isUniStrKey()) { in responseSoftKeyEvent()
991 String keyLabel = sKey.getKeyLabel(); in responseSoftKeyEvent()