Home
last modified time | relevance | path

Searched refs:y0 (Results 1 – 14 of 14) sorted by relevance

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, in FindTriangleCentroid() argument
71 centY = (y0 + y1 + y2) / 3.0; in FindTriangleCentroid()
74 if (y0 == y2) 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()
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()
104 double dy = y2 - y0; in FindTriangleCentroid()
108 double b1 = y0 - m1 * x0; in FindTriangleCentroid()
[all …]
DBlend.cpp144 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()
186 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower in runBlend()
188 yTopCorners[0] = y0; 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/
DPhotoTouchListener.java100 final float y0 = pts[1]; in onFling() local
116 final float y1 = y0 + s * dY / v; in onFling()
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false); in onFling()
203 float y0 = pts[2 * idx + 1]; in onTouch() local
206 mInitialTouchY = y0; in onTouch()
209 y0 - mInitialTouchY); in onTouch()
DPhotoTable.java850 float y0 = photo.getY(); in dropOnTable() local
857 float dy = y - y0; in dropOnTable()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DWorkspaceAccessibilityHelper.java72 int y0 = y - n; in intersectsValidDropTarget() local
74 if (x0 < 0 || y0 < 0) continue; in intersectsValidDropTarget()
78 for (int j = y0; j < y0 + spanY; j++) { in intersectsValidDropTarget()
86 return x0 + mCountX * y0; in intersectsValidDropTarget()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DVUMeter.java97 float y0 = pivotY - l*sin; 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/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java266 RectF src, float x0, float y0, float x, float y, float scaleX, in mapRect() argument
269 y + (src.top - y0) * scaleY, in mapRect()
271 y + (src.bottom - y0) * scaleY); in mapRect()
318 float y0 = source.top; in draw() local
330 mapRect(dest, src, x0, y0, x, y, scaleX, scaleY); in draw()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java239 @Thunk float dist(float x0, float y0, float x1, float y1) { in dist() argument
240 return (float) Math.hypot(x1 - x0, y1 - y0); in dist()
295 private float weight(float x0, float y0, float x1, float y1, float pow) { in weight() argument
296 float d = dist(x0, y0, x1, y1); in weight()
DCellLayout.java2142 final int y0 = mTmpPoint[1]; in ReorderPreviewAnimation() local
2147 final int dY = y1 - y0; in ReorderPreviewAnimation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { in updateCoordinates() argument
236 mCurrentY = y0; in updateCoordinates()
237 getHitBox().set(x0, y0, x1, y1); in updateCoordinates()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp491 const int y0 = (*sampledInputYs)[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/Calendar/src/com/android/calendar/
DUtils.java1190 int y0 = 0; in weaveDNAStrands() local
1193 y0 = top + getPixelOffsetFromMinutes(dayStartMinute, workDayHeight, remainderHeight); in weaveDNAStrands()
1197 + " " + y0 + " " + y1 + " for " + dayStartMinute + " " + dayEndMinute); in weaveDNAStrands()
1200 strand.points[strand.position++] = y0; in weaveDNAStrands()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java608 int y0 = 0; in drawDaySeparators() local
614 lines[i++] = y0; in drawDaySeparators()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java2295 final int y0 = mTmpPoint[1]; in ReorderHintAnimation() local
2300 final int dY = y1 - y0; in ReorderHintAnimation()