Lines Matching refs:keyCode
115 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument
117 if (mSearchHelper.handleKey(doc, keyCode, event)) { in handleKey()
121 if (Events.isNavigationKeyCode(keyCode)) { in handleKey()
123 int endPos = findTargetPosition(doc.itemView, keyCode, event); in handleKey()
252 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument
253 switch (keyCode) { in findTargetPosition()
260 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition()
265 switch (keyCode) { in findTargetPosition()
277 switch (keyCode) { in findTargetPosition()
331 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument
337 if (keyCode == KeyEvent.KEYCODE_PAGE_UP) { in findPagedTargetPosition()
348 if (keyCode == KeyEvent.KEYCODE_PAGE_DOWN) { in findPagedTargetPosition()
360 throw new IllegalArgumentException("Unsupported keyCode: " + keyCode); in findPagedTargetPosition()
468 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument
469 switch (keyCode) { in handleKey()
491 if (Events.isNavigationKeyCode(keyCode)) { in handleKey()
498 boolean handled = mTextListener.onKeyDown(doc.itemView, mSearchString, keyCode, event); in handleKey()
501 if (keyCode == KeyEvent.KEYCODE_DEL) { in handleKey()