/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument 70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid() 76 if (x0 == x1) in FindTriangleCentroid() 78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a in FindTriangleCentroid() 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b in FindTriangleCentroid() 85 else if (x0 == x2) in FindTriangleCentroid() 87 if (x0 == x1) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() [all …]
|
D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local 169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0); in runBlend() 174 … if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower in runBlend() 176 xLeftCorners[0] = x0; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument 70 centX = (x0 + x1 + x2) / 3.0; in FindTriangleCentroid() 76 if (x0 == x1) in FindTriangleCentroid() 78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a in FindTriangleCentroid() 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b in FindTriangleCentroid() 85 else if (x0 == x2) in FindTriangleCentroid() 87 if (x0 == x1) in FindTriangleCentroid() 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a in FindTriangleCentroid() 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 in FindTriangleCentroid() [all …]
|
D | Blend.cpp | 144 double z, x0, y0, x1, y1, x2, y2, x3, y3; in runBlend() local 169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0); in runBlend() 174 … if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower in runBlend() 176 xLeftCorners[0] = x0; in runBlend() 200 … FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y); in runBlend()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTouchListener.java | 99 final float x0 = pts[0]; in onFling() local 115 final float x1 = x0 + s * dX / v; in onFling() 118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); in onFling() 202 float x0 = pts[2 * idx]; in onTouch() local 205 mInitialTouchX = x0; in onTouch() 208 double distance = Math.hypot(x0 - mInitialTouchX, in onTouch() 214 if ((x0 - mInitialTouchX) > 0f) { in onTouch()
|
D | PhotoTable.java | 849 float x0 = photo.getX(); in dropOnTable() local 856 float dx = x - x0; in dropOnTable()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | WorkspaceAccessibilityHelper.java | 70 int x0 = x - m; in intersectsValidDropTarget() local 73 if (x0 < 0 || y0 < 0) continue; in intersectsValidDropTarget() 75 for (int i = x0; i < x0 + spanX; i++) { in intersectsValidDropTarget() 85 return x0 + mCountX * y0; in intersectsValidDropTarget()
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local 124 x0=H[0]*x[0]+H[1]*x[1]+H[2]*x[2]; in db_SquaredReprojectionErrorHomography() 128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredReprojectionErrorHomography() 135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local 138 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in db_SquaredInhomogenousHomographyError() 142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredInhomogenousHomographyError()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_metrics.h | 121 double x0,x1,x2,mult; in db_SquaredReprojectionErrorHomography() local 124 x0=H[0]*x[0]+H[1]*x[1]+H[2]*x[2]; in db_SquaredReprojectionErrorHomography() 128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredReprojectionErrorHomography() 135 double x0,x1,x2,mult; in db_SquaredInhomogenousHomographyError() local 138 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in db_SquaredInhomogenousHomographyError() 142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult)); in db_SquaredInhomogenousHomographyError()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 266 RectF src, float x0, float y0, float x, float y, float scaleX, in mapRect() argument 268 output.set(x + (src.left - x0) * scaleX, in mapRect() 270 x + (src.right - x0) * scaleX, in mapRect() 317 float x0 = source.left; in draw() local 330 mapRect(dest, src, x0, y0, x, y, scaleX, scaleY); in draw()
|
/packages/apps/Camera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local 557 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in SquaredInhomogenousHomographyError() 561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult); in SquaredInhomogenousHomographyError()
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 554 double x0,x1,x2,mult; in SquaredInhomogenousHomographyError() local 557 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in SquaredInhomogenousHomographyError() 561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult); in SquaredInhomogenousHomographyError()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 240 @Thunk float dist(float x0, float y0, float x1, float y1) { in dist() argument 241 return (float) Math.hypot(x1 - x0, y1 - y0); in dist() 296 private float weight(float x0, float y0, float x1, float y1, float pow) { in weight() argument 297 float d = dist(x0, y0, x1, y1); in weight()
|
D | CellLayout.java | 2089 final int x0 = mTmpPoint[0]; in ReorderPreviewAnimation() local 2094 final int dX = x1 - x0; in ReorderPreviewAnimation()
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | VUMeter.java | 96 float x0 = pivotX - l*cos; in onDraw() local 98 …canvas.drawLine(x0 + SHADOW_OFFSET, y0 + SHADOW_OFFSET, pivotX + SHADOW_OFFSET, pivotY + SHADOW_OF… in onDraw() 100 canvas.drawLine(x0, y0, pivotX, pivotY, mPaint); in onDraw()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | DynamicGridKeyboard.java | 234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { in updateCoordinates() argument 235 mCurrentX = x0; in updateCoordinates() 237 getHitBox().set(x0, y0, x1, y1); in updateCoordinates()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.java | 523 private float getFraction(float x0, float x1, float x) { in getFraction() argument 524 return Math.max(Math.min((x - x0) / (x1 - x0), 1.0f), 0.0f); in getFraction()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 490 const int x0 = (*sampledInputXs)[id]; in calculateBeelineSpeedRate() local 500 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[start], in calculateBeelineSpeedRate() 514 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[end], in calculateBeelineSpeedRate()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 2294 final int x0 = mTmpPoint[0]; in ReorderHintAnimation() local 2299 final int dX = x1 - x0; in ReorderHintAnimation()
|