Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 3 of 3) sorted by relevance

/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java105 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
106 final int action = ev.getActionMasked(); in onInterceptTouchEvent()
111 return mDragHelper.shouldInterceptTouchEvent(ev); in onInterceptTouchEvent()
115 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
116 mDragHelper.processTouchEvent(ev); in onTouchEvent()
/developers/build/prebuilts/gradle/ElevationDrag/Application/src/main/java/com/example/android/elevationdrag/
DDragFrameLayout.java105 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
106 final int action = ev.getActionMasked(); in onInterceptTouchEvent()
111 return mDragHelper.shouldInterceptTouchEvent(ev); in onInterceptTouchEvent()
115 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
116 mDragHelper.processTouchEvent(ev); in onTouchEvent()
/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
DFullscreenActivity.java296 public boolean onGenericMotionEvent(final MotionEvent ev) { in onGenericMotionEvent() argument
298 InputDevice device = ev.getDevice(); in onGenericMotionEvent()
303 mAxes[axesMapping.ordinal()] = getCenteredAxis(ev, device, in onGenericMotionEvent()
310 return super.onGenericMotionEvent(ev); in onGenericMotionEvent()
346 public boolean onKeyDown(final int keyCode, KeyEvent ev) { in onKeyDown() argument
348 InputDevice device = ev.getDevice(); in onKeyDown()
360 return super.onKeyDown(keyCode, ev); in onKeyDown()
368 public boolean onKeyUp(final int keyCode, KeyEvent ev) { in onKeyUp() argument
370 InputDevice device = ev.getDevice(); in onKeyUp()
382 return super.onKeyUp(keyCode, ev); in onKeyUp()