Home
last modified time | relevance | path

Searched refs:keyEvent (Results 1 – 5 of 5) sorted by relevance

/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicIntentReceiver.java42 KeyEvent keyEvent = (KeyEvent) intent.getExtras().get(Intent.EXTRA_KEY_EVENT); in onReceive() local
43 if (keyEvent.getAction() != KeyEvent.ACTION_DOWN) in onReceive()
46 switch (keyEvent.getKeyCode()) { in onReceive()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyKeyEvent.java119 KeyEvent keyEvent = mKeyEvent; in injectEvent() local
120 if (keyEvent == null) { in injectEvent()
129 keyEvent = new KeyEvent(downTime, eventTime, mAction, mKeyCode, in injectEvent()
133 if (!InputManager.getInstance().injectInputEvent(keyEvent, in injectEvent()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DPlaybackControlSupportHelper.java119 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
120 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
121 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
127 return super.onKey(view, keyCode, keyEvent); in onKey()
DPlaybackControlHelper.java117 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
118 if (keyEvent.getAction() == KeyEvent.ACTION_DOWN) { in onKey()
119 Action action = getControlsRow().getActionForKeyCode(keyEvent.getKeyCode()); in onKey()
125 return super.onKey(view, keyCode, keyEvent); in onKey()
/development/samples/Support7Demos/src/com/example/android/supportv7/util/
DSortedListActivity.java58 public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { in onCreate()
60 (keyEvent == null || keyEvent.getAction() == KeyEvent.ACTION_DOWN)) { in onCreate()