/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/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/Launcher3/src/com/android/launcher3/notification/ |
D | SwipeHelper.java | 122 private float getPos(MotionEvent ev) { in getPos() argument 123 return mSwipeDirection == X ? ev.getX() : ev.getY(); in getPos() 126 private float getPerpendicularPos(MotionEvent ev) { in getPerpendicularPos() argument 127 return mSwipeDirection == X ? ev.getY() : ev.getX(); in getPerpendicularPos() 252 public boolean onInterceptTouchEvent(final MotionEvent ev) { in onInterceptTouchEvent() argument 253 final int action = ev.getAction(); in onInterceptTouchEvent() 262 mCurrView = mCallback.getChildAtPosition(ev); in onInterceptTouchEvent() 267 mVelocityTracker.addMovement(ev); in onInterceptTouchEvent() 268 mInitialTouchPos = getPos(ev); in onInterceptTouchEvent() 269 mPerpendicularInitialTouchPos = getPerpendicularPos(ev); in onInterceptTouchEvent() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ModeListView.java | 197 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 209 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 349 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 354 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 355 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 356 mFocusItem = getFocusItem(ev.getX(), ev.getY()); in onTouchEvent() 447 public boolean shouldHandleTouchEvent(MotionEvent ev) { in shouldHandleTouchEvent() argument 455 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 456 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onTouchEvent() 462 if (isTouchInsideList(ev)) { in onTouchEvent() [all …]
|
D | MainActivityLayout.java | 77 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 78 if (ev.getActionMasked() == MotionEvent.ACTION_DOWN) { in onInterceptTouchEvent() 80 mDown = MotionEvent.obtain(ev); in onInterceptTouchEvent() 88 } else if (ev.getActionMasked() == MotionEvent.ACTION_POINTER_DOWN) { in onInterceptTouchEvent() 97 if (ev.getEventTime() - ev.getDownTime() > SWIPE_TIME_OUT) { in onInterceptTouchEvent() 103 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() 104 int deltaY = (int) (ev.getY() - mDown.getY()); in onInterceptTouchEvent() 105 if (ev.getActionMasked() == MotionEvent.ACTION_MOVE in onInterceptTouchEvent() 125 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 128 return mTouchReceiver.dispatchTouchEvent(ev); in onTouchEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | UserEventDispatcher.java | 162 LauncherEvent ev = createLauncherEvent(v, intent.hashCode(), intent.getComponent()); in logAppLaunch() local 163 if (ev == null) { in logAppLaunch() 166 dispatchUserEvent(ev, intent); in logAppLaunch() 171 LauncherEvent ev = createLauncherEvent(v, intent.hashCode(), dummyComponent); in logNotificationLaunch() local 172 if (ev == null) { in logNotificationLaunch() 175 dispatchUserEvent(ev, null); in logNotificationLaunch() 301 public void dispatchUserEvent(LauncherEvent ev, Intent intent) { in dispatchUserEvent() argument 302 ev.isInLandscapeMode = mIsInLandscapeMode; in dispatchUserEvent() 303 ev.isInMultiWindowMode = mIsInMultiWindowMode; in dispatchUserEvent() 304 ev.elapsedContainerMillis = SystemClock.uptimeMillis() - mElapsedContainerMillis; in dispatchUserEvent() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 160 public boolean isEventOverPageIndicator(MotionEvent ev) { in isEventOverPageIndicator() argument 161 return isEventOverView(mLauncher.getWorkspace().getPageIndicator(), ev); in isEventOverPageIndicator() 164 public boolean isEventOverHotseat(MotionEvent ev) { in isEventOverHotseat() argument 165 return isEventOverView(mLauncher.getHotseat(), ev); in isEventOverHotseat() 168 private boolean isEventOverFolder(Folder folder, MotionEvent ev) { in isEventOverFolder() argument 169 return isEventOverView(folder, ev); in isEventOverFolder() 172 private boolean isEventOverDropTargetBar(MotionEvent ev) { in isEventOverDropTargetBar() argument 173 return isEventOverView(mLauncher.getDropTargetBar(), ev); in isEventOverDropTargetBar() 176 public boolean isEventOverView(View view, MotionEvent ev) { in isEventOverView() argument 178 return mHitRect.contains((int) ev.getX(), (int) ev.getY()); in isEventOverView() [all …]
|
D | DragDriver.java | 48 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 49 final int action = ev.getAction(); in onTouchEvent() 53 mEventListener.onDriverDragMove(ev.getX(), ev.getY()); in onTouchEvent() 56 mEventListener.onDriverDragMove(ev.getX(), ev.getY()); in onTouchEvent() 57 mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); in onTouchEvent() 70 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 71 final int action = ev.getAction(); in onInterceptTouchEvent() 75 mEventListener.onDriverDragEnd(ev.getX(), ev.getY()); in onInterceptTouchEvent() 113 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 118 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 546 AccessibilityEvent ev = in sendScrollAccessibilityEvent() local 548 ev.setScrollable(true); in sendScrollAccessibilityEvent() 549 ev.setScrollX(getScrollX()); in sendScrollAccessibilityEvent() 550 ev.setScrollY(getScrollY()); in sendScrollAccessibilityEvent() 551 ev.setMaxScrollX(mMaxScrollX); in sendScrollAccessibilityEvent() 552 ev.setMaxScrollY(0); in sendScrollAccessibilityEvent() 554 sendAccessibilityEventUnchecked(ev); in sendScrollAccessibilityEvent() 1161 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 1167 acquireVelocityTrackerAndAddMovement(ev); in onInterceptTouchEvent() 1170 if (getChildCount() <= 0) return super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() [all …]
|
D | BaseRecyclerView.java | 106 public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent ev) { in onInterceptTouchEvent() argument 107 return handleTouchEvent(ev); in onInterceptTouchEvent() 111 public void onTouchEvent(RecyclerView rv, MotionEvent ev) { in onTouchEvent() argument 112 handleTouchEvent(ev); in onTouchEvent() 119 private boolean handleTouchEvent(MotionEvent ev) { in handleTouchEvent() argument 120 int action = ev.getAction(); in handleTouchEvent() 121 int x = (int) ev.getX(); in handleTouchEvent() 122 int y = (int) ev.getY(); in handleTouchEvent() 128 if (shouldStopScroll(ev)) { in handleTouchEvent() 131 mScrollbar.handleTouchEvent(ev, mDownX, mDownY, mLastY); in handleTouchEvent() [all …]
|
D | BaseContainerView.java | 161 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 162 return handleTouchEvent(ev); in onInterceptTouchEvent() 167 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 168 return handleTouchEvent(ev); in onTouchEvent() 188 private boolean handleTouchEvent(MotionEvent ev) { in handleTouchEvent() argument 189 switch (ev.getAction()) { in handleTouchEvent() 194 if (ev.getX() < leftBoundPx || in handleTouchEvent() 195 ev.getX() > (touchDelegateTargetView.getWidth() + leftBoundPx)) { in handleTouchEvent() 196 mLastTouchDownPosPx.set((int) ev.getX(), (int) ev.getY()); in handleTouchEvent() 202 float dx = ev.getX() - mLastTouchDownPosPx.x; in handleTouchEvent() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
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 …]
|
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 | 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 …]
|
/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/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/DeskClock/src/com/android/deskclock/ |
D | VerticalViewPager.java | 60 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 61 final boolean toIntercept = super.onInterceptTouchEvent(flipXY(ev)); in onInterceptTouchEvent() 63 flipXY(ev); in onInterceptTouchEvent() 68 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 69 final boolean toHandle = super.onTouchEvent(flipXY(ev)); in onTouchEvent() 71 flipXY(ev); in onTouchEvent() 75 private MotionEvent flipXY(MotionEvent ev) { in flipXY() argument 79 final float x = (ev.getY() / height) * width; in flipXY() 80 final float y = (ev.getX() / width) * height; in flipXY() 82 ev.setLocation(x, y); in flipXY() [all …]
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | CalculatorPadViewPager.java | 146 public boolean onSingleTapUp(MotionEvent ev) { 152 return super.onSingleTapUp(ev); 189 public boolean onInterceptTouchEvent(MotionEvent ev) { in onInterceptTouchEvent() argument 193 if (isAccessibilityFocused() || super.onInterceptTouchEvent(ev)) { in onInterceptTouchEvent() 198 final int action = ev.getActionMasked(); in onInterceptTouchEvent() 215 final int actionIndex = ev.getActionIndex(); in onInterceptTouchEvent() 216 final float x = ev.getX(actionIndex) + getScrollX(); in onInterceptTouchEvent() 217 final float y = ev.getY(actionIndex) + getScrollY(); in onInterceptTouchEvent() 240 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 245 mGestureDetector.onTouchEvent(ev); in onTouchEvent() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 89 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() 297 public boolean onTouchEvent(MotionEvent ev) { in onTouchEvent() argument 299 mGestureDetector.onTouchEvent(ev); in onTouchEvent() 302 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/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MediaPickerPanel.java | 346 public boolean onInterceptTouchEvent(final MotionEvent ev) { in onInterceptTouchEvent() argument 347 return mTouchHandler.onInterceptTouchEvent(ev) || super.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 413 public boolean onInterceptTouchEvent(final MotionEvent ev) { in onInterceptTouchEvent() argument 414 switch (ev.getActionMasked()) { in onInterceptTouchEvent() 418 mTouchHandler.onTouch(MediaPickerPanel.this, ev); in onInterceptTouchEvent() 428 if (shouldAllowRecaptureTouch(ev)) { in onInterceptTouchEvent() 451 mTouchHandler.onTouch(MediaPickerPanel.this, ev); in onInterceptTouchEvent() 465 private boolean shouldAllowRecaptureTouch(MotionEvent ev) { in shouldAllowRecaptureTouch() argument 466 final long elapsedMs = ev.getEventTime() - ev.getDownTime(); in shouldAllowRecaptureTouch() 472 final float dx = ev.getRawX() - mDownEvent.getRawX(); in shouldAllowRecaptureTouch() [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/Launcher3/src/com/android/launcher3/util/ |
D | VerticalFlingDetector.java | 45 public boolean onTouch(View v, MotionEvent ev) { in onTouch() argument 49 mVelocityTracker.addMovement(ev); in onTouch() 50 switch (ev.getAction()) { in onTouch() 52 mDownX = ev.getX(); in onTouch() 53 mDownY = ev.getY(); in onTouch() 60 if (Math.abs(ev.getY() - mDownY) > mCustomTouchSlop && in onTouch() 61 Math.abs(ev.getY() - mDownY) > Math.abs(ev.getX() - mDownX)) { in onTouch()
|