/packages/apps/Calendar/src/com/android/calendar/ |
D | EventGeometry.java | 144 float dy = top - y; in pointToEvent() local 145 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 149 float dy = y - bottom; in pointToEvent() local 150 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 159 float dy = top - y; in pointToEvent() local 160 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent() 164 float dy = y - bottom; in pointToEvent() local 165 return (float) Math.sqrt(dx * dx + dy * dy); in pointToEvent()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 242 void handleMotion(int edge, float dx, float dy) { in handleMotion() argument 249 dy * (mCropRect.height() / r.height())); in handleMotion() 256 dy = 0; in handleMotion() 261 float yDelta = dy * (mCropRect.height() / r.height()); 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 292 dy = dx / mInitialAspectRatio; in growBy() 293 } else if (dy != 0) { in growBy() 294 dx = dy * mInitialAspectRatio; in growBy() [all …]
|
D | ImageViewTouchBase.java | 399 protected void postTranslate(float dx, float dy) { in postTranslate() argument 400 mSuppMatrix.postTranslate(dx, dy); in postTranslate() 403 protected void panBy(float dx, float dy) { in panBy() argument 404 postTranslate(dx, dy); in panBy()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 104 double dy = y2 - y0; in FindTriangleCentroid() local 106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid() 107 double m1 = dy / dx; in FindTriangleCentroid() 119 dy = y1 - m1 * x + b1; in FindTriangleCentroid() 120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
|
D | Blend.cpp | 1133 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() local 1135 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect() 1141 …if ((inter = m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / d… in ClipBlendRect() 1147 …if ((inter = -m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / … in ClipBlendRect() 1150 if (dy > epsilon) in ClipBlendRect() 1153 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) < brect.top) in ClipBlendRect() 1156 else if (dy < -epsilon) in ClipBlendRect() 1159 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) > brect.bot) in ClipBlendRect() 1304 double dy = prevY - firstY; in ComputeBlendParameters() local 1312 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters() [all …]
|
D | Delaunay.cpp | 475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; in incircle() local 477 dy = sa[d].Y(); in incircle() 479 ady = sa[a].Y() - dy; in incircle() 481 bdy = sa[b].Y() - dy; in incircle() 483 cdy = sa[c].Y() - dy; in incircle()
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 104 double dy = y2 - y0; in FindTriangleCentroid() local 106 double len1 = sqrt(dx * dx + dy * dy); in FindTriangleCentroid() 107 double m1 = dy / dx; in FindTriangleCentroid() 119 dy = y1 - m1 * x + b1; in FindTriangleCentroid() 120 mass = len1 * sqrt(dx * dx + dy * dy); in FindTriangleCentroid()
|
D | Blend.cpp | 1153 double dy = (m_AllSites[ce->second].getVCenter().y - m_AllSites[ce->first].getVCenter().y); in ClipBlendRect() local 1155 double ymid = m_AllSites[ce->first].getVCenter().y + dy/2.0; in ClipBlendRect() 1161 …if ((inter = m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / d… in ClipBlendRect() 1167 …if ((inter = -m_wb.roundoffOverlap + xmid - dy * (((dy >= 0.0) ? brect.bot : brect.top) - ymid) / … in ClipBlendRect() 1170 if (dy > epsilon) in ClipBlendRect() 1173 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) < brect.top) in ClipBlendRect() 1176 else if (dy < -epsilon) in ClipBlendRect() 1179 …_wb.roundoffOverlap + ymid - dx * (((dx >= 0.0) ? brect.lft : brect.rgt) - xmid) / dy) > brect.bot) in ClipBlendRect() 1324 double dy = prevY - firstY; in ComputeBlendParameters() local 1332 m_wb.radius = dy + radiusTheta * cos(m_wb.theta); in ComputeBlendParameters() [all …]
|
D | Delaunay.cpp | 475 double adx, ady, bdx, bdy, cdx, cdy, dx, dy, nad, nbd, ncd; in incircle() local 477 dy = sa[d].Y(); in incircle() 479 ady = sa[a].Y() - dy; in incircle() 481 bdy = sa[b].Y() - dy; in incircle() 483 cdy = sa[c].Y() - dy; in incircle()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | nexus.rs | 43 float dy; 97 pulse->dy = scale; 101 pulse->dy = -scale; 105 pulse->dy = 0; 175 float y = p->originY + (p->dy * SPEED * delta); 212 } else if (p->dy < 0) { 229 } else if (p->dy > 0) { 270 p->dy = 0.0f; 273 p->dy = 0.0f; 276 p->dy = scale; [all …]
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | TransformableImageView.java | 53 float dx = 0, dy = 0; in onDraw() local 60 dy = (vheight - dheight * scale) * 0.5f; in onDraw() 64 drawMatrix.postTranslate((int) (dx + 0.5f), (int) (dy + 0.5f)); in onDraw()
|
/packages/apps/Browser/src/com/android/browser/ |
D | UrlBarAutoShowManager.java | 120 float dy = event.getY() - mStartTouchY; in onTouch() local 121 float ady = Math.abs(dy); in onTouch() 126 if (dy > mSlop && angle > V_TRIGGER_ANGLE in onTouch()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 92 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 93 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() 95 double angle = Math.atan2(dy, dx); in dispatchTouchEvent()
|
D | IndicatorControlWheelContainer.java | 75 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 76 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent()
|
D | IndicatorControlWheel.java | 260 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 261 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() 265 double delta = Math.atan2(dy, dx); in dispatchTouchEvent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GestureRecognizer.java | 33 boolean onScroll(float dx, float dy, float totalX, float totalY); in onScroll() argument 88 MotionEvent e1, MotionEvent e2, float dx, float dy) { in onScroll() argument 90 dx, dy, e2.getX() - e1.getX(), e2.getY() - e1.getY()); in onScroll()
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | ZoomControlWheel.java | 107 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 108 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() 110 double angle = Math.atan2(dy, dx); in dispatchTouchEvent()
|
D | IndicatorControlWheelContainer.java | 91 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 92 double radius = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent()
|
D | IndicatorControlWheel.java | 384 double dy = mCenterY - event.getY(); in dispatchTouchEvent() local 385 double centerToTouchPoint = Math.sqrt(dx * dx + dy * dy); in dispatchTouchEvent() 390 double delta = Math.atan2(dy, dx); in dispatchTouchEvent()
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 221 float dx,dy; in db_gxx_gxy_gyy_row_f() local 227 dy=Iy0[c]; in db_gxx_gxy_gyy_row_f() 229 Ixy0=dx*dy; in db_gxx_gxy_gyy_row_f() 230 Iyy0=dy*dy; in db_gxx_gxy_gyy_row_f() 233 dy=Iy1[c]; in db_gxx_gxy_gyy_row_f() 235 Ixy1=dx*dy; in db_gxx_gxy_gyy_row_f() 236 Iyy1=dy*dy; in db_gxx_gxy_gyy_row_f() 239 dy=Iy2[c]; in db_gxx_gxy_gyy_row_f() 241 Ixy2=dx*dy; in db_gxx_gxy_gyy_row_f() 242 Iyy2=dy*dy; in db_gxx_gxy_gyy_row_f() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 221 float dx,dy; in db_gxx_gxy_gyy_row_f() local 227 dy=Iy0[c]; in db_gxx_gxy_gyy_row_f() 229 Ixy0=dx*dy; in db_gxx_gxy_gyy_row_f() 230 Iyy0=dy*dy; in db_gxx_gxy_gyy_row_f() 233 dy=Iy1[c]; in db_gxx_gxy_gyy_row_f() 235 Ixy1=dx*dy; in db_gxx_gxy_gyy_row_f() 236 Iyy1=dy*dy; in db_gxx_gxy_gyy_row_f() 239 dy=Iy2[c]; in db_gxx_gxy_gyy_row_f() 241 Ixy2=dx*dy; in db_gxx_gxy_gyy_row_f() 242 Iyy2=dy*dy; in db_gxx_gxy_gyy_row_f() [all …]
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieStackView.java | 76 int dy = (n == 1) ? 0 : (mHeight - mChildHeight) / (n - 1); in layoutChildrenLinear() local 80 top += dy; in layoutChildrenLinear()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 225 public void postTranslateCenter(float dx, float dy) { in postTranslateCenter() argument 226 mSuppMatrix.postTranslate(dx, dy); in postTranslateCenter() 237 private void panBy(float dx, float dy) { in panBy() argument 238 mSuppMatrix.postTranslate(dx, dy); in panBy()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | PointerTracker.java | 492 final int dy = y - mLastY; in onDownEvent() local 493 final int distanceSquared = (dx * dx + dy * dy); in onDownEvent() 599 final int dy = y - lastY; in onMoveEvent() local 600 final int lastMoveSquared = dx * dx + dy * dy; in onMoveEvent()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | proximity_info.cpp | 151 const int dy = y - edgeY; in squaredDistanceToEdge() local 152 return dx * dx + dy * dy; in squaredDistanceToEdge()
|