/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GradControl.java | 98 float dx = handlex[i] - x; in getCloseHandle() local 100 float dist = dx * dx + dy * dy; in getCloseHandle() 111 float dx = handlex[i] - x; in getCloseHandle() local 113 float dist = (float) Math.hypot(dx, dy); in getCloseHandle() 155 float dx = x - mDownX; in actionMove() local 159 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, in actionMove() 160 mDownPoint2X + dx, mDownPoint2Y + dy)) { in actionMove() 163 line.setPoint1(mDownPoint1X + dx, mDownPoint1Y + dy); in actionMove() 164 line.setPoint2(mDownPoint2X + dx, mDownPoint2Y + dy); in actionMove() 167 if (centerIsOutside(mDownPoint1X + dx, mDownPoint1Y + dy, in actionMove() [all …]
|
D | EclipseControl.java | 81 float dx = handlex[i] - x; in getCloseHandle() local 83 float dist = dx * dx + dy * dy; in getCloseHandle() 94 float dx = handlex[i] - x; in getCloseHandle() local 96 float dist = (float) Math.sqrt(dx * dx + dy * dy); in getCloseHandle() 182 float dx = x - oval.getCenterX(); in actionMove() local 184 float nr = Math.abs(Math.abs(dx) + Math.abs(dy) - downRad); in actionMove() 252 float dx = rx + 10; in paintOvallines() local 254 rect.left = cx - dx; in paintOvallines() 256 rect.right = cx + dx; in paintOvallines() 259 dx = rx - 10; in paintOvallines() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 141 float dx = x - right; in pointToEvent() local 145 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 150 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 153 return dx; in pointToEvent() 156 float dx = left - x; in pointToEvent() local 160 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 165 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 168 return dx; in pointToEvent()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 242 void handleMotion(int edge, float dx, float dy) { in handleMotion() argument 248 moveBy(dx * (mCropRect.width() / r.width()), in handleMotion() 252 dx = 0; in handleMotion() 260 float xDelta = dx * (mCropRect.width() / r.width()); in handleMotion() 268 void moveBy(float dx, float dy) { in moveBy() argument 271 mCropRect.offset(dx, dy); in moveBy() 289 void growBy(float dx, float dy) { in growBy() argument 291 if (dx != 0) { in growBy() 292 dy = dx / mInitialAspectRatio; in growBy() 294 dx = dy * mInitialAspectRatio; in growBy() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropObject.java | 201 float dx = 0; in moveCurrentSelection() local 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; in moveCurrentSelection() 211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) in moveCurrentSelection() 234 dx, dy in moveCurrentSelection() 238 dx = sp * bUnit[0]; in moveCurrentSelection() 240 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); in moveCurrentSelection() 245 crop.left += dx; in moveCurrentSelection() 251 crop.right += dx; in moveCurrentSelection() 295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument 299 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height() in fixedCornerResize() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 728 final public boolean canScroll(int dx, int dy) { in canScroll() argument 729 if (dx == 0 && dy == 0) { in canScroll() 732 return (dx == 0 || horizontal.canScroll(dx < 0)) && in canScroll() 748 private void updateDirection(float dx, float dy) { in updateDirection() argument 749 mMainHorizontal = Math.abs(dx) >= Math.abs(dy); in updateDirection() 750 if (dx > 0) { in updateDirection() 752 } else if (dx < 0) { in updateDirection() 782 final public void startScroll(int dx, int dy, boolean easeFling, int duration, boolean page) { in startScroll() argument 802 dx = basex + dx - scroller.getCurrX(); in startScroll() 807 updateDirection(dx, dy); in startScroll() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
D | HistogramView.java | 90 float dx = 0; // Spline.curveHandleSize() / 2.0f; in drawHistogram() local 101 canvas.drawRect(dx, 0, dx + w, h, mPaint); in drawHistogram() 102 canvas.drawLine(dx + w / 3, 0, dx + w / 3, h, mPaint); in drawHistogram() 103 canvas.drawLine(dx + 2 * w / 3, 0, dx + 2 * w / 3, h, mPaint); in drawHistogram() 110 mHistoPath.moveTo(dx, h); in drawHistogram() 115 float x = i * wl + dx; in drawHistogram()
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | TimelineRow.java | 54 int dx = (scrollOffset - getScrollOffset()) in scrollTo() local 57 smoothScrollBy(dx, 0); in scrollTo() 59 scrollBy(dx, 0); in scrollTo() 73 public void onScrolled(int dx, int dy) { in onScrolled() argument 74 if (dx == 0 && dy == 0) { in onScrolled() 77 mScrollPosition += dx; in onScrolled()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_rob_image_homography.cpp | 231 double JtJ[9],min_Jtf[3],dx[3],H_p_dx[9]; in db_RobCamRotation_Polish() local 249 db_Compute_dx_3x3(dx,JtJ,min_Jtf,lambda); in db_RobCamRotation_Polish() 252 db_UpdateRotation(H_p_dx,H,dx); in db_RobCamRotation_Polish() 513 inline void db_ImageHomographyUpdateGeneric(double H_p_dx[9],double H[9],double *dx,int homography_… in db_ImageHomographyUpdateGeneric() argument 520 db_MultiplyScaleOntoImageHomography(H,1.0+dx[0]); in db_ImageHomographyUpdateGeneric() 521 db_MultiplyRotationOntoImageHomography(H,dx[1]); in db_ImageHomographyUpdateGeneric() 522 H_p_dx[2]+=dx[2]; in db_ImageHomographyUpdateGeneric() 523 H_p_dx[5]+=dx[3]; in db_ImageHomographyUpdateGeneric() 527 db_MultiplyRotationOntoImageHomography(H,dx[0]); in db_ImageHomographyUpdateGeneric() 530 db_MultiplyScaleOntoImageHomography(H,1.0+dx[0]); in db_ImageHomographyUpdateGeneric() [all …]
|
D | db_utilities_camera.h | 146 inline void db_UpdateRotation(double R_p_dx[9],double R[9],const double dx[3]) in db_UpdateRotation() 150 db_IncrementalRotationMatrix(R_temp,dx); in db_UpdateRotation() 293 inline void db_UpdateImageHomographyAffine(double H_p_dx[9],const double H[9],const double dx[6]) in db_UpdateImageHomographyAffine() 295 db_AddVectors6(H_p_dx,H,dx); in db_UpdateImageHomographyAffine() 299 inline void db_UpdateImageHomographyProjective(double H_p_dx[9],const double H[9],const double dx[8… in db_UpdateImageHomographyProjective() 307 H_p_dx[i]=H[i]+dx[j]; in db_UpdateImageHomographyProjective() 314 inline void db_UpdateRotFocalHomography(double H_p_dx[9],const double H[9],const double dx[4]) in db_UpdateRotFocalHomography() 321 db_IncrementalRotationMatrix(dR,dx); in db_UpdateRotFocalHomography() 323 fp=f+dx[3]; in db_UpdateRotFocalHomography()
|
D | db_bundle.h | 38 inline void db_Compute_dx(double *dx,double **JtJ,double *min_Jtf,double lambda,double *d,int n) in db_Compute_dx() argument 47 db_CholeskyBacksub(dx,JtJ,d,n,min_Jtf); in db_Compute_dx() 54 inline void db_Compute_dx_3x3(double dx[3],double JtJ[9],const double min_Jtf[3],double lambda) in db_Compute_dx_3x3() 63 db_CholeskyBacksub3x3(dx,JtJ,d,min_Jtf); in db_Compute_dx_3x3()
|
D | db_feature_detection.cpp | 221 float dx,dy; in db_gxx_gxy_gyy_row_f() local 226 dx=Ix0[c]; in db_gxx_gxy_gyy_row_f() 228 Ixx0=dx*dx; in db_gxx_gxy_gyy_row_f() 229 Ixy0=dx*dy; in db_gxx_gxy_gyy_row_f() 232 dx=Ix1[c]; in db_gxx_gxy_gyy_row_f() 234 Ixx1=dx*dx; in db_gxx_gxy_gyy_row_f() 235 Ixy1=dx*dy; in db_gxx_gxy_gyy_row_f() 238 dx=Ix2[c]; in db_gxx_gxy_gyy_row_f() 240 Ixx2=dx*dx; in db_gxx_gxy_gyy_row_f() 241 Ixy2=dx*dy; in db_gxx_gxy_gyy_row_f() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 103 double dx = x2 - x0; in FindTriangleCentroid() local 106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid() 107 double m1 = dy / dx; in FindTriangleCentroid() 118 dx = x1 - x; in FindTriangleCentroid() 120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
|
D | Blend.cpp | 1132 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect() local 1134 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect() 1138 if (dx > epsilon) in ClipBlendRect() 1141 …_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / dx) < brect.rgt) in ClipBlendRect() 1144 else if (dx < -epsilon) in ClipBlendRect() 1147 …_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / dx) > brect.lft) in ClipBlendRect() 1153 …if ((inter = m_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / d… in ClipBlendRect() 1159 …if ((inter = -m_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / … in ClipBlendRect() 1303 double dx = prevX - firstX; in ComputeBlendParameters() local 1311 double radiusTheta = dx / cos(3.14159 / 2.0 - m_wb.theta); in ComputeBlendParameters() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 316 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 317 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 333 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 340 mFinalX = startX + dx; in startScroll() 342 mDeltaX = dx; in startScroll() 372 float dx = mFinalX - mStartX; in fling() local 374 float hyp = (float) Math.hypot(dx, dy); in fling() 376 float ndx = dx / hyp; in fling()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherScroller.java | 352 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 353 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 370 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 377 mFinalX = startX + dx; in startScroll() 379 mDeltaX = dx; in startScroll() 409 float dx = (float) (mFinalX - mStartX); in fling() local 411 float hyp = (float) Math.hypot(dx, dy); in fling() 413 float ndx = dx / hyp; in fling()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripLayout.java | 333 public boolean onScroll(float x, float y, float dx, float dy) { in onScroll() argument 341 mFilmstripGestureListener.onScroll(x, y, dx, dy)) { in onScroll() 344 mSwipeTrend = (((int) dx) >> 1) + (mSwipeTrend >> 1); in onScroll() 345 if (dx < 0 && mFilmstripContentLayout.getTranslationX() == 0) { in onScroll() 356 if (dx > 0 && mFilmstripContentLayout.getTranslationX() == getMeasuredWidth()) { in onScroll() 358 dx = currentItemLeft; in onScroll() 362 float translate = mFilmstripContentLayout.getTranslationX() - dx; in onScroll() 371 if (translate == 0 && dx > 0) { in onScroll()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 306 final float dx = x - mLastTouchX + mTouchRemainderX; in onInterceptTouchEvent() local 307 final int deltaY = (int) dx; in onInterceptTouchEvent() 308 mTouchRemainderX = dx - deltaY; in onInterceptTouchEvent() 310 if (Math.abs(dx) > mTouchSlop) { in onInterceptTouchEvent() 342 final float dx = x - mLastTouchX + mTouchRemainderX; in onTouchEvent() local 343 final int deltaX = (int) dx; in onTouchEvent() 344 mTouchRemainderX = dx - deltaX; in onTouchEvent() 346 if (Math.abs(dx) > mTouchSlop) { in onTouchEvent() 536 final int dx = (int) (x - mLastTouchX); in computeScroll() local 538 final boolean stopped = !trackMotionScroll(dx, false); in computeScroll() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ZoomView.java | 235 float dx = 0, dy = 0; in adjustToFitInBounds() local 238 dx = viewportWidth / 2 - (newRect.left + newRect.right) / 2; in adjustToFitInBounds() 241 dx = -newRect.left; in adjustToFitInBounds() 243 dx = viewportWidth - newRect.right; in adjustToFitInBounds() 257 if (dx != 0 || dy != 0) { in adjustToFitInBounds() 258 newRect.offset(dx, dy); in adjustToFitInBounds()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | SmoothPagedView.java | 177 final float dx = mTouchX - mUnboundedScrollX; in computeScroll() local 178 scrollTo(Math.round(mUnboundedScrollX + dx * e), getScrollY()); in computeScroll() 182 if (dx > 1.f || dx < -1.f) { in computeScroll()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | MediaPickerPanel.java | 472 final float dx = ev.getRawX() - mDownEvent.getRawX(); in shouldAllowRecaptureTouch() local 475 final float maxAbsDelta = Math.max(Math.abs(dx), Math.abs(dy)); in shouldAllowRecaptureTouch() 487 final float dx = motionEvent.getRawX() - mDownEvent.getRawX(); in onTouch() local 498 if ((dx == 0 || (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) && in onTouch() 535 final float dx = mDownEvent.getRawX() - motionEvent.getRawX(); in onTouch() local 539 (Math.abs(dy) / Math.abs(dx)) > DIRECTION_RATIO) { in onTouch()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | geometry_utils.h | 34 const int dx = x1 - x2; in getAngle() local 36 if (dx == 0 && dy == 0) return 0.0f; in getAngle() 37 return atan2f(static_cast<float>(dy), static_cast<float>(dx)); in getAngle()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 91 double dx = event.getX() - mCenterX; in dispatchTouchEvent() local 93 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() 95 double angle = Math.atan2(dy, dx); in dispatchTouchEvent()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | RoundedLine.java | 46 final double dx = p2x - p1x; in makePath() local 49 final double l = Math.hypot(dx, dy); in makePath() 54 final double a = Math.atan2(dy, dx); in makePath()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GestureRecognizer.java | 34 boolean onScroll(float dx, float dy, float totalX, float totalY); in onScroll() argument 89 MotionEvent e1, MotionEvent e2, float dx, float dy) { in onScroll() argument 91 dx, dy, e2.getX() - e1.getX(), e2.getY() - e1.getY()); in onScroll()
|