Home
last modified time | relevance | path

Searched refs:dY (Results 1 – 9 of 9) sorted by relevance

/packages/apps/DevCamera/src/com/android/devcamera/
DNormalizedFace.java34 public NormalizedFace(Face face, int dX, int dY, int offX, int offY) { in NormalizedFace() argument
38 leftEye.y = (float) (face.getLeftEyePosition().y - offY) / dY; in NormalizedFace()
43 rightEye.y = (float) (face.getRightEyePosition().y - offY) / dY; in NormalizedFace()
48 mouth.y = (float) (face.getMouthPosition().y - offY) / dY; in NormalizedFace()
53 bounds.top = (float) (face.getBounds().top - offY) / dY; in NormalizedFace()
55 bounds.bottom = (float) (face.getBounds().bottom - offY) / dY; in NormalizedFace()
DPreviewOverlay.java212 float dY = r1.width() * previewH; in onDraw() local
214 float dP = (dX + dY) * 0.045f; in onDraw()
215 … RectF newR1 = new RectF(newX - dX * 0.5f, newY - dY * 0.5f, newX + dX * 0.5f, newY + dY * 0.5f); in onDraw()
DApi2Camera.java778 int dY = mCameraInfoCache.activeAreaHeight() - 2 * offY; in publishFrameData() local
788 newFaces[i] = new NormalizedFace(faces[i], dX, dY, offX, offY); in publishFrameData()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java88 public void onFling(View target, float dX, float dY) { in onFling() argument
92 log("fling " + dX + ", " + dY); in onFling()
96 dY /= 60f; in onFling()
103 final float v = (float) Math.hypot(dX, dY); in onFling()
116 final float y1 = y0 + s * dY / v; in onFling()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropObject.java188 public boolean moveCurrentSelection(float dX, float dY) { in moveCurrentSelection() argument
198 mBoundedRect.moveInner(dX, dY); in moveCurrentSelection()
208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection()
215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection()
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleDragAndDropAdapter.java114 RecyclerView.ViewHolder viewHolder, float dX, float dY, in LocaleDragAndDropAdapter()
117 super.onChildDraw(c, recyclerView, viewHolder, dX, dY, in LocaleDragAndDropAdapter()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1986 final int dY = y1 - y0; in ReorderPreviewAnimation() local
1995 if (dX == dY && dX == 0) { in ReorderPreviewAnimation()
1997 if (dY == 0) { in ReorderPreviewAnimation()
2000 finalDeltaY += - dir * Math.signum(dY) * mReorderPreviewAnimationMagnitude; in ReorderPreviewAnimation()
2002 double angle = Math.atan( (float) (dY) / dX); in ReorderPreviewAnimation()
2005 finalDeltaY += (int) (- dir * Math.signum(dY) * in ReorderPreviewAnimation()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java2300 final int dY = y1 - y0; in ReorderHintAnimation() local
2303 if (dX == dY && dX == 0) { in ReorderHintAnimation()
2305 if (dY == 0) { in ReorderHintAnimation()
2308 finalDeltaY = - Math.signum(dY) * mReorderHintAnimationMagnitude; in ReorderHintAnimation()
2310 double angle = Math.atan( (float) (dY) / dX); in ReorderHintAnimation()
2313 finalDeltaY = (int) (- Math.signum(dY) * in ReorderHintAnimation()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1091 private boolean flingImages(float velocityX, float velocityY, float dY) { in flingImages() argument
1114 && dY >= escapeDistance; in flingImages()