Lines Matching refs:keyEvent
36 import android.view.KeyEvent;
143 // of the view that had focus when KeyEvent.ACTION_DOWN was fired. This is because we only
144 // manually change focus on KeyEvent.ACTION_UP (to prevent holding down the DOWN button and
1198 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
1199 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) {
1206 final boolean isActionUp = keyEvent.getAction() == KeyEvent.ACTION_UP;
1209 final boolean isUp = keyCode == KeyEvent.KEYCODE_DPAD_UP;
1210 final boolean isDown = keyCode == KeyEvent.KEYCODE_DPAD_DOWN;
1217 if (mNavigationController.onInterceptKeyFromCV(keyCode, keyEvent, navigateAway)) {
1257 if (keyCode == KeyEvent.KEYCODE_BACK && id != R.id.conversation_topmost_overlay) {
1262 } else if (keyCode == KeyEvent.KEYCODE_ENTER &&