/packages/apps/Dialer/src/com/android/dialer/widget/ |
D | ViewDragHelper.java | 175 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) {} in onViewPositionChanged() argument 320 public int clampViewPositionHorizontal(View child, int left, int dx) { in clampViewPositionHorizontal() argument 586 final int dx = finalLeft - startLeft; in forceSettleCapturedViewAt() local 589 if (dx == 0 && dy == 0) { in forceSettleCapturedViewAt() 596 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); in forceSettleCapturedViewAt() 597 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt() 604 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument 607 final int absDx = Math.abs(dx); in computeSettleDuration() 619 int xduration = computeAxisDuration(dx, xvel, mCallback.getViewHorizontalDragRange(child)); in computeSettleDuration() 976 protected boolean canScroll(View v, boolean checkV, int dx, int dy, int x, int y) { [all …]
|
/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.sqrt(dx * dx + dy * 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/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/Camera/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_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 …]
|
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()
|
/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_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 …]
|
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()
|
/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/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/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/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/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 317 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 318 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 334 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 341 mFinalX = startX + dx; in startScroll() 343 mDeltaX = dx; in startScroll() 373 float dx = mFinalX - mStartX; in fling() local 375 float hyp = FloatMath.sqrt(dx * dx + dy * dy); in fling() 377 float ndx = dx / hyp; in fling()
|
/packages/apps/Camera/src/com/android/camera/ |
D | PreviewGestures.java | 245 float dx = 0; in isSwipe() local 249 dx = m.getX() - mDown.getX(); in isSwipe() 253 dx = - (m.getY() - mDown.getY()); in isSwipe() 257 dx = -(m.getX() - mDown.getX()); in isSwipe() 261 dx = m.getY() - mDown.getY(); in isSwipe() 266 return (dx < 0 && dy / -dx < 0.6f); in isSwipe() 268 return (dx > 0 && dy / dx < 0.6f); in isSwipe()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherScroller.java | 353 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument 354 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll() 371 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument 378 mFinalX = startX + dx; in startScroll() 380 mDeltaX = dx; in startScroll() 410 float dx = (float) (mFinalX - mStartX); in fling() local 412 float hyp = FloatMath.sqrt(dx * dx + dy * dy); in fling() 414 float ndx = dx / hyp; in fling()
|
/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/Camera/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 | 1152 double dx = (m_AllSites[ce->second].getVCenter().x - m_AllSites[ce->first].getVCenter().x); in ClipBlendRect() local 1154 double xmid = m_AllSites[ce->first].getVCenter().x + dx/2.0; in ClipBlendRect() 1158 if (dx > epsilon) in ClipBlendRect() 1161 …_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / dx) < brect.rgt) in ClipBlendRect() 1164 else if (dx < -epsilon) in ClipBlendRect() 1167 …_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / dx) > brect.lft) in ClipBlendRect() 1173 …if ((inter = m_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / d… in ClipBlendRect() 1179 …if ((inter = -m_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / … in ClipBlendRect() 1323 double dx = prevX - firstX; in ComputeBlendParameters() local 1331 double radiusTheta = dx / cos(3.14159 / 2.0 - m_wb.theta); in ComputeBlendParameters() [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/Camera2/src/com/android/camera/widget/ |
D | FilmstripLayout.java | 316 public boolean onScroll(float x, float y, float dx, float dy) { in onScroll() argument 324 mFilmstripGestureListener.onScroll(x, y, dx, dy)) { in onScroll() 327 mSwipeTrend = (((int) dx) >> 1) + (mSwipeTrend >> 1); in onScroll() 328 if (dx < 0 && mFilmstripContentLayout.getTranslationX() == 0) { in onScroll() 339 if (dx > 0 && mFilmstripContentLayout.getTranslationX() == getMeasuredWidth()) { in onScroll() 341 dx = currentItemLeft; in onScroll() 345 float translate = mFilmstripContentLayout.getTranslationX() - dx; in onScroll() 354 if (translate == 0 && dx > 0) { in onScroll()
|
/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/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 758 public void move(final View photo, float dx, float dy, boolean drop) { in move() argument 760 final float x = photo.getX() + dx; in move() 764 Log.d(TAG, "[" + photo.getX() + ", " + photo.getY() + "] + (" + dx + "," + dy + ")"); in move() 793 public void fling(final View photo, float dx, float dy, int duration, boolean spin) { in fling() argument 802 .xBy(dx) in fling() 811 if (photoOffTable(photo, (int) dx, (int) dy)) { in fling() 825 public boolean photoOffTable(final View photo, final int dx, final int dy) { in photoOffTable() argument 828 hit.offset(dx, dy); in photoOffTable() 856 float dx = x - x0; in dropOnTable() local 859 float dist = (float) Math.hypot(dx, dy); in dropOnTable()
|