Home
last modified time | relevance | path

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

/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
DFullscreenActivity.java95 ButtonMapping(int keyCode) { in ButtonMapping() argument
96 mKeyCode = keyCode; in ButtonMapping()
346 public boolean onKeyDown(final int keyCode, KeyEvent ev) { in onKeyDown() argument
352 int index = getButtonMappingIndex(keyCode); in onKeyDown()
360 return super.onKeyDown(keyCode, ev); in onKeyDown()
368 public boolean onKeyUp(final int keyCode, KeyEvent ev) { in onKeyUp() argument
374 int index = getButtonMappingIndex(keyCode); in onKeyUp()
382 return super.onKeyUp(keyCode, ev); in onKeyUp()
407 private int getButtonMappingIndex(int keyCode) { in getButtonMappingIndex() argument
409 if (buttonMapping.getKeycode() == keyCode) { in getButtonMappingIndex()
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/
DSimplePlaybackTransportControlGlue.java79 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) { in onKey() argument
87 return super.onKey(view, keyCode, keyEvent); in onKey()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DPlayerActivity.java334 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
344 switch (keyCode) { in onKeyDown()
365 return super.onKeyDown(keyCode, event); in onKeyDown()
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DMainActivity.java463 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
464 return handleMediaKey(event) || super.onKeyDown(keyCode, event); in onKeyDown()
468 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
469 return handleMediaKey(event) || super.onKeyUp(keyCode, event); in onKeyUp()
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DMainActivity.java463 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
464 return handleMediaKey(event) || super.onKeyDown(keyCode, event); in onKeyDown()
468 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
469 return handleMediaKey(event) || super.onKeyUp(keyCode, event); in onKeyUp()