Lines Matching refs:keyCode

33     public boolean onKey(View v, int keyCode, KeyEvent event) {  in onKey()  argument
34 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey()
43 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument
44 return FocusHelper.handleHotseatButtonKeyEvent(v, keyCode, event); in onKey()
53 public boolean onKey(View v, int keyCode, KeyEvent event) { in onKey() argument
54 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT in onKey()
55 || keyCode == KeyEvent.KEYCODE_PAGE_DOWN || keyCode == KeyEvent.KEYCODE_PAGE_UP) { in onKey()
59 return FocusHelper.handleIconKeyEvent(v, keyCode, event); in onKey()
82 public boolean onKey(View v, int keyCode, KeyEvent e) { in onKey() argument
83 boolean consume = FocusLogic.shouldConsume(keyCode); in onKey()
89 KeyEvent.keyCodeToString(keyCode))); in onKey()
113 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
116 handleNoopKey(keyCode, v); in onKey()
177 playSoundEffect(keyCode, v); in onKey()
179 handleNoopKey(keyCode, v); in onKey()
184 public void handleNoopKey(int keyCode, View v) { in handleNoopKey() argument
185 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN) { in handleNoopKey()
187 playSoundEffect(keyCode, v); in handleNoopKey()
198 static boolean handleHotseatButtonKeyEvent(View v, int keyCode, KeyEvent e) { in handleHotseatButtonKeyEvent() argument
199 boolean consume = FocusLogic.shouldConsume(keyCode); in handleHotseatButtonKeyEvent()
210 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleHotseatButtonKeyEvent()
237 if (keyCode == KeyEvent.KEYCODE_DPAD_UP && in handleHotseatButtonKeyEvent()
243 } else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT && in handleHotseatButtonKeyEvent()
249 } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && in handleHotseatButtonKeyEvent()
251 keyCode = KeyEvent.KEYCODE_PAGE_DOWN; in handleHotseatButtonKeyEvent()
268 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleHotseatButtonKeyEvent()
328 playSoundEffect(keyCode, v); in handleHotseatButtonKeyEvent()
337 static boolean handleIconKeyEvent(View v, int keyCode, KeyEvent e) { in handleIconKeyEvent() argument
338 boolean consume = FocusLogic.shouldConsume(keyCode); in handleIconKeyEvent()
348 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleIconKeyEvent()
371 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && !profile.isVerticalBarLayout()) { in handleIconKeyEvent()
374 } else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT && in handleIconKeyEvent()
391 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleIconKeyEvent()
398 if (keyCode == KeyEvent.KEYCODE_DPAD_UP) { in handleIconKeyEvent()
414 newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, FocusLogic.PIVOT, in handleIconKeyEvent()
453 newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, FocusLogic.PIVOT, in handleIconKeyEvent()
492 playSoundEffect(keyCode, v); in handleIconKeyEvent()
513 @Thunk static void playSoundEffect(int keyCode, View v) { in playSoundEffect() argument
514 switch (keyCode) { in playSoundEffect()
540 int keyCode = event.getKeyCode(); in isUninstallKeyChord() local
541 return (keyCode == KeyEvent.KEYCODE_DEL || keyCode == KeyEvent.KEYCODE_FORWARD_DEL) && in isUninstallKeyChord()
549 int keyCode = event.getKeyCode(); in isDeleteKeyChord() local
550 return (keyCode == KeyEvent.KEYCODE_DEL || keyCode == KeyEvent.KEYCODE_FORWARD_DEL) && in isDeleteKeyChord()