/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | HeadsUpNotificationOnTouchListener.java | 92 float deltaX = motionEvent.getRawX() - mDownX; in onTouch() local 100 if (Math.abs(deltaX) > viewWidth * THRESHOLD) { in onTouch() 103 dismissRight = deltaX > 0; in onTouch() 109 dismiss = (velocityX < 0) == (deltaX < 0); in onTouch() 146 float deltaX = motionEvent.getRawX() - mDownX; in onTouch() local 147 if (Math.abs(deltaX) > TOUCH_SLOP) { in onTouch() 149 mSwipingSlop = (deltaX > 0 ? TOUCH_SLOP : -TOUCH_SLOP); in onTouch() 162 mTranslationX = deltaX; in onTouch() 163 mView.setTranslationX(deltaX - mSwipingSlop); in onTouch() 168 1f - 2f * Math.abs(deltaX) / viewWidth))); in onTouch()
|
D | CarNotificationItemTouchListener.java | 228 float deltaX = currX - mInitialX; in onInterceptTouchEvent() local 230 float absDeltaX = Math.abs(deltaX); in onInterceptTouchEvent() 323 float deltaX = event.getX() - mInitialX; in onTouchEvent() local 325 deltaX); in onTouchEvent() 326 float alpha = mDismissAnimationHelper.calculateAlphaValue(mViewHolder, deltaX); in onTouchEvent()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | MainActivityLayout.java | 103 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 106 && Math.abs(deltaX) > mSlop) { in onInterceptTouchEvent() 108 if (deltaX >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 114 else if (deltaX < -Math.abs(deltaY) * 2) { in onInterceptTouchEvent()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 343 final int deltaX = (int) dx; in onTouchEvent() local 344 mTouchRemainderX = dx - deltaX; in onTouchEvent() 353 if (!trackMotionScroll(deltaX, true)) { in onTouchEvent() 388 private boolean trackMotionScroll(int deltaX, boolean allowOverScroll) { in trackMotionScroll() argument 390 final int allowOverhang = Math.abs(deltaX); in trackMotionScroll() 398 if (deltaX > 0) { in trackMotionScroll() 422 EdgeEffectCompat edge = deltaX > 0 ? mLeftEdge : mRightEdge; in trackMotionScroll() 423 edge.onPull((float) Math.abs(deltaX) / getWidth()); in trackMotionScroll() 429 return deltaX == 0 || movedBy != 0; in trackMotionScroll()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1100 double deltaX = X - m_wb.x; in FrameToMosaic() local 1102 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1103 double deltaTheta = asin(deltaX / length); in FrameToMosaic() 1110 double deltaX = X - m_wb.x; in FrameToMosaic() local 1112 double length = sqrt(deltaX * deltaX + deltaY * deltaY); in FrameToMosaic() 1218 double deltaX = currX - prevX; in SelectRelevantFrames() local 1220 double center2centerDist = sqrt(deltaY * deltaY + deltaX * deltaX); in SelectRelevantFrames() 1222 if (fabs(deltaX) > STRIP_SEPARATION_THRESHOLD_PXLS || in SelectRelevantFrames() 1276 double deltaX = currX - prevX; in ComputeBlendParameters() local 1281 arcLength += sqrt(deltaY * deltaY + deltaX * deltaX); in ComputeBlendParameters() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OneHandedModeInputConsumer.java | 170 private boolean isValidStartAngle(float deltaX, float deltaY) { in isValidStartAngle() argument 171 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidStartAngle() 175 private boolean isValidExitAngle(float deltaX, float deltaY) { in isValidExitAngle() argument 176 final float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidExitAngle()
|
D | AssistantInputConsumer.java | 257 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument 258 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 202 float deltaX = 0, deltaY = 0; in center() local 218 deltaX = (viewWidth - width) / 2 - rect.left; in center() 220 deltaX = -rect.left; in center() 222 deltaX = viewWidth - rect.right; in center() 226 postTranslate(deltaX, deltaY); in center()
|
D | Util.java | 156 int deltaX = source.getWidth() - targetWidth; in transform() local 158 if (!scaleUp && (deltaX < 0 || deltaY < 0)) { in transform() 169 int deltaXHalf = Math.max(0, deltaX / 2); in transform()
|
D | CropImage.java | 611 protected void postTranslate(float deltaX, float deltaY) { in postTranslate() argument 612 super.postTranslate(deltaX, deltaY); in postTranslate() 615 hv.mMatrix.postTranslate(deltaX, deltaY); in postTranslate()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAnimator.kt | 97 val deltaX = toX - fromX in animateMove() constant 101 if (deltaX == 0 && deltaY == 0) { in animateMove() 109 view.translationX = -deltaX.toFloat() in animateMove() 113 if (deltaX != 0 && deltaY != 0) { in animateMove() 117 } else if (deltaX != 0) { in animateMove()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 132 final float deltaX = currX - mInitialX; in onInterceptTouchEvent() local 134 final float absDeltaX = Math.abs(deltaX); in onInterceptTouchEvent() 343 final float deltaX = animateTo - itemView.getSwipeTranslationX(); in animateDismiss() local 344 duration = calculateTranslationDuration(deltaX, velocityX); in animateDismiss()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/ui/section/ |
D | ScreenPreviewView.kt | 76 val deltaX = event.x - downX in distanceMoved() constant 78 return sqrt(deltaX.pow(2) + deltaY.pow(2)) in distanceMoved()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 127 double deltaX = points[i + 1][0] - points[i - 1][0]; in solveSystem() local 132 system[i][1] = d3 * deltaX; // b_i in solveSystem()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | OldSpeedDialFragment.java | 297 int deltaX = 0; in animateGridView() 302 deltaX = startLeft - left; in animateGridView() 303 animators.add(ObjectAnimator.ofFloat(child, "translationX", deltaX, 0.0f)); in animateGridView()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 1632 int deltaX = (int) (ev.getX() - mDown.getX()); in onInterceptTouchEvent() local 1635 && deltaX < mSlop * (-1)) { in onInterceptTouchEvent() 1637 if (Math.abs(deltaX) >= Math.abs(deltaY) * 2) { in onInterceptTouchEvent() 2151 public void scroll(float deltaX) { 2155 mCenterX += deltaX; 2765 int deltaX = (int) (dx / mScale); 2787 mController.scroll(deltaX); 2820 if (mViewItems[BUFFER_CENTER] == null || (deltaX < 0 && mCenterX <= 2825 mController.scroll((int) (deltaX * 1.2));
|
D | ModeOptions.java | 282 final int deltaX = getResources() in setupAnimators() local 295 ValueAnimator.ofFloat(deltaX*(childCount-i), 0.0f); in setupAnimators()
|
/packages/apps/Camera2/src/com/android/camera/filmstrip/ |
D | FilmstripController.java | 95 public void scroll(float deltaX); in scroll() argument
|
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 320 float deltaX = Math.abs(mStartX - event.getX()); in handlePossibleVerticalSwipe() local 322 float distance = (deltaX * deltaX) + (deltaY * deltaY); in handlePossibleVerticalSwipe() 326 if (deltaX > deltaY) { in handlePossibleVerticalSwipe()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 2217 private void computeDirectionVector(float deltaX, float deltaY, int[] result) { in computeDirectionVector() argument 2218 double angle = Math.atan(deltaY / deltaX); in computeDirectionVector() 2223 result[0] = (int) Math.signum(deltaX); in computeDirectionVector() 2260 int deltaX = (dropRegionRect.centerX() - dragViewCenterX) / spanX; in getDirectionVectorForDrop() local 2264 deltaX = 0; in getDirectionVectorForDrop() 2270 if (deltaX == 0 && deltaY == 0) { in getDirectionVectorForDrop() 2275 computeDirectionVector(deltaX, deltaY, resultDirection); in getDirectionVectorForDrop() 2312 int deltaX = mTempLocation[0] - boundingRect.left; in addViewsToTempLocation() local 2316 c.cellX += deltaX; in addViewsToTempLocation()
|
D | Utilities.java | 347 int deltaX = (int) (r.width() * (scaleX - scale) * 0.5f); in shrinkRect() local 348 r.left += deltaX; in shrinkRect() 349 r.right -= deltaX; in shrinkRect()
|
D | AppWidgetResizeFrame.java | 337 public void visualizeResizeForDelta(int deltaX, int deltaY) { 338 mDeltaX = mDeltaXRange.clamp(deltaX); 342 mDeltaX = mDeltaXRange.clamp(deltaX);
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | NavBarGestureHandler.java | 269 private boolean isValidAssistantGestureAngle(float deltaX, float deltaY) { in isValidAssistantGestureAngle() argument 270 float angle = (float) Math.toDegrees(Math.atan2(deltaY, deltaX)); in isValidAssistantGestureAngle()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | Spline.java | 363 double deltaX = points[i + 1].x - points[i - 1].x; in solveSystem() local 368 system[i][1] = d3 * deltaX; // b_i in solveSystem()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | CameraAppUI.java | 747 int deltaX = (int) (ev.getX() - mDown.getX()); in onScroll() local 750 if (Math.abs(deltaX) > mSlop || Math.abs(deltaY) > mSlop) { in onScroll() 752 if (deltaX >= Math.abs(deltaY)) { in onScroll() 755 } else if (deltaX <= -Math.abs(deltaY)) { in onScroll()
|