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()
225 private int findTargetPosition(View view, int keyCode, KeyEvent event) { in findTargetPosition() argument
226 switch (keyCode) { in findTargetPosition()
233 return findPagedTargetPosition(view, keyCode, event); in findTargetPosition()
238 switch (keyCode) { in findTargetPosition()
250 switch (keyCode) { in findTargetPosition()
304 private int findPagedTargetPosition(View view, int keyCode, KeyEvent event) { in findPagedTargetPosition() argument
310 if (keyCode == KeyEvent.KEYCODE_PAGE_UP) { in findPagedTargetPosition()
321 if (keyCode == KeyEvent.KEYCODE_PAGE_DOWN) { in findPagedTargetPosition()
333 throw new IllegalArgumentException("Unsupported keyCode: " + keyCode); in findPagedTargetPosition()
441 public boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event) { in handleKey() argument
442 switch (keyCode) { in handleKey()
464 if (Events.isNavigationKeyCode(keyCode)) { in handleKey()
471 boolean handled = mTextListener.onKeyDown(doc.itemView, mSearchString, keyCode, event); in handleKey()
474 if (keyCode == KeyEvent.KEYCODE_DEL) { in handleKey()