Searched refs:keyEvent (Results 1 – 5 of 5) sorted by relevance
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
D | MusicIntentReceiver.java | 42 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/ |
D | MonkeyKeyEvent.java | 119 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/ |
D | PlaybackControlSupportHelper.java | 119 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()
|
D | PlaybackControlHelper.java | 117 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/ |
D | SortedListActivity.java | 58 public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { in onCreate() 60 (keyEvent == null || keyEvent.getAction() == KeyEvent.ACTION_DOWN)) { in onCreate()
|