Lines Matching refs:ev

106     private boolean isEventOverFolderTextRegion(Folder folder, MotionEvent ev) {  in isEventOverFolderTextRegion()  argument
108 if (mHitRect.contains((int) ev.getX(), (int) ev.getY())) { in isEventOverFolderTextRegion()
114 private boolean isEventOverFolder(Folder folder, MotionEvent ev) { in isEventOverFolder() argument
116 if (mHitRect.contains((int) ev.getX(), (int) ev.getY())) { in isEventOverFolder()
122 private boolean handleTouchDown(MotionEvent ev, boolean intercept) { in handleTouchDown() argument
124 int x = (int) ev.getX(); in handleTouchDown()
125 int y = (int) ev.getY(); in handleTouchDown()
143 if (!isEventOverFolderTextRegion(currentFolder, ev)) { in handleTouchDown()
150 if (!isEventOverFolder(currentFolder, ev)) { in handleTouchDown()
159 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
160 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent()
161 if (handleTouchDown(ev, true)) { in onInterceptTouchEvent()
166 return mDragController.onInterceptTouchEvent(ev); in onInterceptTouchEvent()
170 public boolean onInterceptHoverEvent(MotionEvent ev) { in onInterceptHoverEvent() argument
181 final int action = ev.getAction(); in onInterceptHoverEvent()
185 isOverFolder = isEventOverFolder(currentFolder, ev); in onInterceptHoverEvent()
196 isOverFolder = isEventOverFolder(currentFolder, ev); in onInterceptHoverEvent()
251 public boolean onHoverEvent(MotionEvent ev) { in onHoverEvent() argument
258 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument
260 int action = ev.getAction(); in onTouchEvent()
262 int x = (int) ev.getX(); in onTouchEvent()
263 int y = (int) ev.getY(); in onTouchEvent()
265 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent()
266 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in onTouchEvent()
267 if (handleTouchDown(ev, false)) { in onTouchEvent()
287 return mDragController.onTouchEvent(ev); in onTouchEvent()