/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnEN.java | 406 @Override synchronized public boolean onEvent(OpenWnnEvent ev) { in onEvent() argument 408 switch (ev.code) { in onEvent() 411 onKeyUpEvent(ev.keyEvent); in onEvent() 426 ev.word = mUserDictionaryWords[ 0 ]; in onEvent() 439 mConverterEN.addWord(ev.word); in onEvent() 443 mConverterEN.deleteWord(ev.word); in onEvent() 467 KeyEvent keyEvent = ev.keyEvent; in onEvent() 473 if (ev.code == OpenWnnEvent.INPUT_SOFT_KEY && mInputConnection != null) { in onEvent() 481 if (ev.code == OpenWnnEvent.LIST_CANDIDATES_FULL) { in onEvent() 484 } else if (ev.code == OpenWnnEvent.LIST_CANDIDATES_NORMAL) { in onEvent() [all …]
|
D | OpenWnnJAJP.java | 693 @Override synchronized public boolean onEvent(OpenWnnEvent ev) { in onEvent() argument 698 switch (ev.code) { in onEvent() 701 onKeyUpEvent(ev.keyEvent); in onEvent() 705 return onKeyLongPressEvent(ev.keyEvent); in onEvent() 721 ev.word = mUserDictionaryWords[0]; in onEvent() 734 mConverterJAJP.addWord(ev.word); in onEvent() 738 mConverterJAJP.deleteWord(ev.word); in onEvent() 742 changeEngineMode(ev.mode); in onEvent() 743 if (!(ev.mode == ENGINE_MODE_SYMBOL || ev.mode == ENGINE_MODE_EISU_KANA)) { in onEvent() 807 KeyEvent keyEvent = ev.keyEvent; in onEvent() [all …]
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | ScrollerView.java | 494 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 505 final int action = ev.getAction(); in onInterceptTouchEvent() 531 final int pointerIndex = ev.findPointerIndex(activePointerId); in onInterceptTouchEvent() 532 final float y = mHorizontal ? ev.getX(pointerIndex) : ev in onInterceptTouchEvent() 539 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 545 final float ocoord = mHorizontal ? ev.getY(pointerIndex) : ev in onInterceptTouchEvent() 551 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 558 final float y = mHorizontal ? ev.getX() : ev.getY(); in onInterceptTouchEvent() 559 mDownCoords.x = ev.getX(); in onInterceptTouchEvent() 560 mDownCoords.y = ev.getY(); in onInterceptTouchEvent() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/widget/ |
D | ViewDragHelper.java | 904 private void saveLastMotion(MotionEvent ev) { 905 final int pointerCount = MotionEventCompat.getPointerCount(ev); 907 final int pointerId = MotionEventCompat.getPointerId(ev, i); 908 final float x = MotionEventCompat.getX(ev, i); 909 final float y = MotionEventCompat.getY(ev, i); 1007 public boolean shouldInterceptTouchEvent(MotionEvent ev) { 1008 final int action = MotionEventCompat.getActionMasked(ev); 1009 final int actionIndex = MotionEventCompat.getActionIndex(ev); 1020 mVelocityTracker.addMovement(ev); 1024 final float x = ev.getX(); [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ModeListView.java | 196 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 208 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 348 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 353 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 354 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 355 mFocusItem = getFocusItem(ev.getX(), ev.getY()); in onTouchEvent() 446 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 454 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 455 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 461 if (isTouchInsideList(ev)) { in onTouchEvent() [all …]
|
D | Switch.java | 214 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 215 mVelocityTracker.addMovement(ev); in onTouchEvent() 216 final int action = ev.getActionMasked(); in onTouchEvent() 219 final float x = ev.getX(); in onTouchEvent() 220 final float y = ev.getY(); in onTouchEvent() 236 final float x = ev.getX(); in onTouchEvent() 237 final float y = ev.getY(); in onTouchEvent() 250 final float x = ev.getX(); in onTouchEvent() 268 stopDrag(ev); in onTouchEvent() 277 return super.onTouchEvent(ev); in onTouchEvent() [all …]
|
D | MainActivityLayout.java | 79 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 80 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 82 mDown = MotionEvent.obtain(ev); in onInterceptTouchEvent() 90 } else if (ev.getActionMasked() == MotionEvent.ACTION_POINTER_DOWN) { in onInterceptTouchEvent() 99 if (ev.getEventTime() - ev.getDownTime() > SWIPE_TIME_OUT) { in onInterceptTouchEvent() 105 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() 106 int deltaY = (int) (ev.getY() - mDown.getY()); in onInterceptTouchEvent() 107 if (ev.getActionMasked() == MotionEvent.ACTION_MOVE in onInterceptTouchEvent() 127 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 130 return mTouchReceiver.dispatchTouchEvent(ev); in onTouchEvent()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTouchListener.java | 67 private float getAngle(View target, MotionEvent ev) { in getAngle() argument 69 int a = ev.findPointerIndex(mA); in getAngle() 70 int b = ev.findPointerIndex(mB); in getAngle() 122 public boolean onTouch(View target, MotionEvent ev) { in onTouch() argument 123 final int action = ev.getActionMasked(); in onTouch() 126 for(int i = 0; i < 10 && i < ev.getPointerCount(); i++) { in onTouch() 127 pts[i*2] = ev.getX(i); in onTouch() 128 pts[i*2 + 1] = ev.getY(i); in onTouch() 135 mInitialTouchTime = ev.getEventTime(); in onTouch() 136 mA = ev.getPointerId(ev.getActionIndex()); in onTouch() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | PagedView.java | 475 AccessibilityEvent ev = in computeScrollHelper() local 477 ev.getText().add(getCurrentPageDescription()); in computeScrollHelper() 478 sendAccessibilityEventUnchecked(ev); in computeScrollHelper() 985 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 991 acquireVelocityTrackerAndAddMovement(ev); in onInterceptTouchEvent() 994 if (getChildCount() <= 0) return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 1001 final int action = ev.getAction(); in onInterceptTouchEvent() 1014 determineScrollingStart(ev); in onInterceptTouchEvent() 1025 final float x = ev.getX(); in onInterceptTouchEvent() 1026 final float y = ev.getY(); in onInterceptTouchEvent() [all …]
|
D | DragLayer.java | 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 [all …]
|
D | PagedViewWithDraggableItems.java | 67 private void handleTouchEvent(MotionEvent ev) { in handleTouchEvent() argument 68 final int action = ev.getAction(); in handleTouchEvent() 76 determineDraggingStart(ev); in handleTouchEvent() 83 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 84 handleTouchEvent(ev); in onInterceptTouchEvent() 85 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 89 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 90 handleTouchEvent(ev); in onTouchEvent() 91 return super.onTouchEvent(ev); in onTouchEvent() 120 protected void determineScrollingStart(MotionEvent ev) { in determineScrollingStart() argument [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 711 AccessibilityEvent ev = in sendScrollAccessibilityEvent() local 713 ev.setItemCount(getChildCount()); in sendScrollAccessibilityEvent() 714 ev.setFromIndex(mCurrentPage); in sendScrollAccessibilityEvent() 715 ev.setToIndex(getNextPage()); in sendScrollAccessibilityEvent() 724 ev.setAction(action); in sendScrollAccessibilityEvent() 725 sendAccessibilityEventUnchecked(ev); in sendScrollAccessibilityEvent() 1375 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 1385 acquireVelocityTrackerAndAddMovement(ev); in onInterceptTouchEvent() 1388 if (getChildCount() <= 0) return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 1395 final int action = ev.getAction(); in onInterceptTouchEvent() [all …]
|
D | PagedViewWithDraggableItems.java | 67 private void handleTouchEvent(MotionEvent ev) { in handleTouchEvent() argument 68 final int action = ev.getAction(); in handleTouchEvent() 76 determineDraggingStart(ev); in handleTouchEvent() 83 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 84 handleTouchEvent(ev); in onInterceptTouchEvent() 85 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 89 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 90 handleTouchEvent(ev); in onTouchEvent() 91 return super.onTouchEvent(ev); in onTouchEvent() 124 protected void determineScrollingStart(MotionEvent ev) { in determineScrollingStart() argument [all …]
|
D | DragLayer.java | 139 private boolean isEventOverFolderTextRegion(Folder folder, MotionEvent ev) { in isEventOverFolderTextRegion() argument 141 if (mHitRect.contains((int) ev.getX(), (int) ev.getY())) { in isEventOverFolderTextRegion() 147 private boolean isEventOverFolder(Folder folder, MotionEvent ev) { in isEventOverFolder() argument 149 if (mHitRect.contains((int) ev.getX(), (int) ev.getY())) { in isEventOverFolder() 159 private boolean handleTouchDown(MotionEvent ev, boolean intercept) { in handleTouchDown() argument 161 int x = (int) ev.getX(); in handleTouchDown() 162 int y = (int) ev.getY(); in handleTouchDown() 184 if (!isEventOverFolderTextRegion(currentFolder, ev)) { in handleTouchDown() 191 if (!isEventOverFolder(currentFolder, ev)) { in handleTouchDown() 200 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument [all …]
|
D | LauncherAppWidgetHostView.java | 73 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 76 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 88 switch (ev.getAction()) { in onInterceptTouchEvent() 100 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onInterceptTouchEvent() 110 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 113 switch (ev.getAction()) { in onTouchEvent() 119 if (!Utilities.pointInView(this, ev.getX(), ev.getY(), mSlop)) { in onTouchEvent()
|
/packages/apps/Dialer/src/com/android/dialer/list/ |
D | SwipeHelper.java | 214 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 215 final int action = ev.getAction(); in onInterceptTouchEvent() 218 mLastY = ev.getY(); in onInterceptTouchEvent() 220 mCurrView = mCallback.getChildAtPosition(ev); in onInterceptTouchEvent() 226 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 227 mInitialTouchPosX = ev.getX(); in onInterceptTouchEvent() 228 mInitialTouchPosY = ev.getY(); in onInterceptTouchEvent() 235 float currY = ev.getY(); in onInterceptTouchEvent() 236 float currX = ev.getX(); in onInterceptTouchEvent() 240 mLastY = ev.getY(); in onInterceptTouchEvent() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | SwipeHelper.java | 202 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 203 final int action = ev.getAction(); in onInterceptTouchEvent() 206 mLastY = ev.getY(); in onInterceptTouchEvent() 208 View view = mCallback.getChildAtPosition(ev); in onInterceptTouchEvent() 216 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 217 mInitialTouchPosX = ev.getX(); in onInterceptTouchEvent() 218 mInitialTouchPosY = ev.getY(); in onInterceptTouchEvent() 226 float currY = ev.getY(); in onInterceptTouchEvent() 227 float currX = ev.getX(); in onInterceptTouchEvent() 232 mLastY = ev.getY(); in onInterceptTouchEvent() [all …]
|
D | GmailDragHelper.java | 95 public boolean processTouchEvent(MotionEvent ev, int dragMode) { in processTouchEvent() argument 96 return processTouchEvent(ev, dragMode, null); in processTouchEvent() 104 public boolean processTouchEvent(MotionEvent ev, int dragMode, @Nullable Float xThreshold) { in processTouchEvent() argument 108 mVelocityTracker.addMovement(ev); in processTouchEvent() 110 switch (ev.getAction()) { in processTouchEvent() 112 mInitialInterceptedX = ev.getX(); in processTouchEvent() 113 mInitialInterceptedY = ev.getY(); in processTouchEvent() 117 mCallback.onDrag(ev.getX() - mStartDragX); in processTouchEvent() 120 final float evX = ev.getX(); in processTouchEvent() 139 final float deltaY = Math.abs(ev.getY() - mInitialInterceptedY); in processTouchEvent() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | VerticalViewPager.java | 79 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 82 final float x = ev.getX(); in onTouchEvent() 83 final float y = ev.getY(); in onTouchEvent() 84 switch (ev.getAction()) { in onTouchEvent() 88 if (!mParentViewPager.onTouchEvent(ev)) in onTouchEvent() 90 return verticalDrag(ev); in onTouchEvent() 103 return mParentViewPager.onTouchEvent(ev); in onTouchEvent() 105 return verticalDrag(ev); in onTouchEvent() 111 return mParentViewPager.onTouchEvent(ev); in onTouchEvent() 115 return verticalDrag(ev); in onTouchEvent() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 3042 Event ev = mSelectedEvents.get(ii); in computeAllDayNeighbors() local 3043 ev.nextUp = null; in computeAllDayNeighbors() 3044 ev.nextDown = null; in computeAllDayNeighbors() 3045 ev.nextLeft = null; in computeAllDayNeighbors() 3046 ev.nextRight = null; in computeAllDayNeighbors() 3064 Event ev = mSelectedEvents.get(ii); in computeAllDayNeighbors() local 3065 int position = ev.getColumn(); in computeAllDayNeighbors() 3067 startEvent = ev; in computeAllDayNeighbors() 3069 maxPositionEvent = ev; in computeAllDayNeighbors() 3079 ev.nextUp = neighbor; in computeAllDayNeighbors() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageScrollView.java | 126 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 128 LogUtils.d(LOG_TAG, "IN ScrollView.onIntercept, NOW stealing. ev=%s", ev); in onInterceptTouchEvent() 131 LogUtils.d(LOG_TAG, "IN ScrollView.onIntercept, already stealing. ev=%s", ev); in onInterceptTouchEvent() 135 mWantToIntercept = super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 136 LogUtils.d(LOG_TAG, "OUT ScrollView.onIntercept, steal=%s ev=%s", mWantToIntercept, ev); in onInterceptTouchEvent() 141 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument 142 final int action = ev.getActionMasked(); in dispatchTouchEvent() 154 mScaleDetector.onTouchEvent(ev); in dispatchTouchEvent() 155 mGestureDetector.onTouchEvent(ev); in dispatchTouchEvent() 157 final boolean handled = super.dispatchTouchEvent(ev); in dispatchTouchEvent() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | Switch.java | 223 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 224 mVelocityTracker.addMovement(ev); in onTouchEvent() 225 final int action = ev.getActionMasked(); in onTouchEvent() 228 final float x = ev.getX(); in onTouchEvent() 229 final float y = ev.getY(); in onTouchEvent() 245 final float x = ev.getX(); in onTouchEvent() 246 final float y = ev.getY(); in onTouchEvent() 259 final float x = ev.getX(); in onTouchEvent() 277 stopDrag(ev); in onTouchEvent() 286 return super.onTouchEvent(ev); in onTouchEvent() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 90 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 117 switch (ev.getAction()) { in onInterceptTouchEvent() 119 int x = (int) ev.getX(); in onInterceptTouchEvent() 120 int y = (int) ev.getY(); in onInterceptTouchEvent() 128 mXOffset = ((int)ev.getRawX()) - x; in onInterceptTouchEvent() 129 mYOffset = ((int)ev.getRawY()) - y; in onInterceptTouchEvent() 149 return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 298 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 300 mGestureDetector.onTouchEvent(ev); in onTouchEvent() 303 int action = ev.getAction(); in onTouchEvent() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthListView.java | 95 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 96 return processEvent(ev) || super.onTouchEvent(ev); in onTouchEvent() 100 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 101 return processEvent(ev) || super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 104 private boolean processEvent (MotionEvent ev) { in processEvent() argument 105 switch (ev.getAction() & MotionEvent.ACTION_MASK) { in processEvent() 116 mTracker.addMovement(ev); in processEvent() 125 mTracker.addMovement(ev); in processEvent()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperPreview.java | 192 public boolean dispatchTouchEvent(MotionEvent ev) { in dispatchTouchEvent() argument 194 MotionEvent dup = MotionEvent.obtainNoHistory(ev); in dispatchTouchEvent() 201 if (ev.getAction() == MotionEvent.ACTION_DOWN) { in dispatchTouchEvent() 204 boolean handled = getWindow().superDispatchTouchEvent(ev); in dispatchTouchEvent() 206 handled = onTouchEvent(ev); in dispatchTouchEvent() 210 int action = ev.getActionMasked(); in dispatchTouchEvent() 215 (int) ev.getX(), (int) ev.getY(), 0, null); in dispatchTouchEvent() 217 int pointerIndex = ev.getActionIndex(); in dispatchTouchEvent() 220 (int) ev.getX(pointerIndex), (int) ev.getY(pointerIndex), 0, null); in dispatchTouchEvent()
|