Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java242 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 …]
DImageViewTouchBase.java399 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/Calendar/src/com/android/calendar/
DEventGeometry.java144 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DEclipseControl.java79 float dy = handley[i] - y; in getCloseHandle() local
80 float dist = dx * dx + dy * dy; in getCloseHandle()
92 float dy = handley[i] - y; in getCloseHandle() local
93 float dist = (float) Math.sqrt(dx * dx + dy * dy); in getCloseHandle()
171 float dy = y - oval.getCenterY(); in actionMove() local
172 float nr = Math.abs(Math.abs(dx) + Math.abs(dy) - downRad); in actionMove()
241 float dy = ry + 10; in paintOvallines() local
243 rect.top = cy - dy; in paintOvallines()
245 rect.bottom = cy + dy; in paintOvallines()
248 dy = ry - 10; in paintOvallines()
[all …]
DImageCrop.java226 float dy = rotatedRect[1] - rotatedRect[3]; in getUnrotated() local
228 float angle = (float) (Math.atan(dy / dx) * 180 / Math.PI); in getUnrotated()
344 private RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument
349 + dy); in fixedCornerResize()
352 + dy); in fixedCornerResize()
354 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy, in fixedCornerResize()
357 newCrop = new RectF(r.left, r.bottom - r.height() + dy, r.left in fixedCornerResize()
386 float dy = 0; in moveEdges() local
392 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveEdges()
399 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveEdges()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropObject.java203 float dy = 0; in moveCurrentSelection() local
209 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection()
216 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection()
235 dx, dy in moveCurrentSelection()
240 dy = sp * bUnit[1]; in moveCurrentSelection()
241 RectF newCrop = fixedCornerResize(crop, movingEdges, dx, dy); in moveCurrentSelection()
249 crop.top += dy; in moveCurrentSelection()
255 crop.bottom += dy; in moveCurrentSelection()
296 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument
301 + dy); in fixedCornerResize()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
Dnexus.rs43 float dy;
99 pulse->dy = scale;
103 pulse->dy = -scale;
107 pulse->dy = 0;
177 float y = p->originY + (p->dy * SPEED * delta);
214 } else if (p->dy < 0) {
231 } else if (p->dy > 0) {
272 p->dy = 0.0f;
275 p->dy = 0.0f;
278 p->dy = scale;
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp221 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/Gallery2/jni_mosaic/feature_stab/db_vlvm/
Ddb_feature_detection.cpp221 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/Camera/jni/feature_stab/db_vlvm/
Ddb_feature_detection.cpp221 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/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java317 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
342 mFinalY = startY + dy; in startScroll()
344 mDeltaY = dy; in startScroll()
374 float dy = mFinalY - mStartY; in fling() local
375 float hyp = FloatMath.sqrt(dx * dx + dy * dy); in fling()
378 float ndy = dy / hyp; in fling()
DOverScroller.java359 public void startScroll(int startX, int startY, int dx, int dy) { in startScroll() argument
360 startScroll(startX, startY, dx, dy, DEFAULT_DURATION); in startScroll()
376 public void startScroll(int startX, int startY, int dx, int dy, int duration) { in startScroll() argument
379 mScrollerY.startScroll(startY, dy, duration); in startScroll()
537 final int dy = mScrollerY.mFinal - mScrollerY.mStart; in isScrollingInDirection() local
539 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
625 float y, dy;
629 dy = coef * ((1.0f - y) * START_TENSION + y) + y * y * y;
630 if (Math.abs(dy - alpha) < 1E-5) break;
631 if (dy > alpha) y_max = y;
/packages/apps/Gallery2/jni_mosaic/feature_mos/src/mosaic/
DGeometry.h104 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()
DBlend.cpp1153 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 …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h104 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()
DBlend.cpp1133 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 …]
DDelaunay.cpp475 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/
DGeometry.h104 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()
DBlend.cpp1153 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 …]
DDelaunay.cpp475 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/Gallery2/src/com/android/camera/
DPreviewGestures.java298 float dy = 0; in getSwipeDirection() local
302 dy = m.getY() - mDown.getY(); in getSwipeDirection()
306 dy = m.getX() - mDown.getX(); in getSwipeDirection()
310 dy = m.getY() - mDown.getY(); in getSwipeDirection()
314 dy = m.getX() - mDown.getX(); in getSwipeDirection()
317 if (dx < 0 && (Math.abs(dy) / -dx < 2)) return DIR_LEFT; in getSwipeDirection()
318 if (dx > 0 && (Math.abs(dy) / dx < 2)) return DIR_RIGHT; in getSwipeDirection()
319 if (dy > 0) return DIR_DOWN; in getSwipeDirection()
/packages/apps/Camera/src/com/android/camera/
DPreviewGestures.java246 float dy = 0; in isSwipe() local
250 dy = Math.abs(m.getY() - mDown.getY()); in isSwipe()
254 dy = Math.abs(m.getX() - mDown.getX()); in isSwipe()
258 dy = Math.abs(m.getY() - mDown.getY()); in isSwipe()
262 dy = Math.abs(m.getX() - mDown.getX()); in isSwipe()
266 return (dx < 0 && dy / -dx < 0.6f); in isSwipe()
268 return (dx > 0 && dy / dx < 0.6f); in isSwipe()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java720 public void move(final View photo, float dx, float dy, boolean drop) { in move() argument
723 final float y = photo.getY() + dy; in move()
726 Log.d(TAG, "[" + photo.getX() + ", " + photo.getY() + "] + (" + dx + "," + dy + ")"); in move()
755 public void fling(final View photo, float dx, float dy, int duration, boolean spin) { in fling() argument
765 .yBy(dy) in fling()
773 if (photoOffTable(photo, (int) dx, (int) dy)) { in fling()
787 public boolean photoOffTable(final View photo, final int dx, final int dy) { in photoOffTable() argument
790 hit.offset(dx, dy); in photoOffTable()
819 float dy = y - y0; in dropOnTable() local
821 float dist = (float) Math.hypot(dx, dy); in dropOnTable()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlWheel.java92 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()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DImageViewTouchBase.java225 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()

123