Lines Matching refs:keyCode
109 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument
111 if (mSearchHelper.handleKey(doc, keyCode, event)) { in handleKey()
115 if (Events.isNavigationKeyCode(keyCode)) { in handleKey()
117 int endPos = findTargetPosition(doc.itemView, keyCode, event); in handleKey()
220 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument
221 switch (keyCode) { in findTargetPosition()
228 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition()
233 switch (keyCode) { in findTargetPosition()
245 switch (keyCode) { in findTargetPosition()
299 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument
305 if (keyCode == KeyEvent.KEYCODE_PAGE_UP) { in findPagedTargetPosition()
316 if (keyCode == KeyEvent.KEYCODE_PAGE_DOWN) { in findPagedTargetPosition()
328 throw new IllegalArgumentException("Unsupported keyCode: " + keyCode); in findPagedTargetPosition()
434 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument
435 switch (keyCode) { in handleKey()
457 if (Events.isNavigationKeyCode(keyCode)) { in handleKey()
464 boolean handled = mTextListener.onKeyDown(doc.itemView, mSearchString, keyCode, event); in handleKey()
467 if (keyCode == KeyEvent.KEYCODE_DEL) { in handleKey()