Searched refs:y0 (Results 1 - 16 of 16) sorted by relevance

/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
74 if (y0 == y2)
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3
102 // Calculate line equation from x0,y0 to x2,y2
104 double dy = y2 - y0;
129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0);
186 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower
188 yTopCorners[0] = y0;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
71 centY = (y0 + y1 + y2) / 3.0;
74 if (y0 == y2)
78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3
102 // Calculate line equation from x0,y0 to x2,y2
104 double dy = y2 - y0;
129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
169 FrameToMosaic(mb->trs, 0.0, 0.0, x0, y0);
186 if(y0 < yTopCorners[0] || y3 < yTopCorners[1]) // If either of the top corners is lower
188 yTopCorners[0] = y0;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
H A DWorkspaceAccessibilityHelper.java71 int y0 = y - n;
73 if (x0 < 0 || y0 < 0) continue;
77 for (int j = y0; j < y0 + spanY; j++) {
85 return x0 + mCountX * y0;
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DVUMeter.java97 float y0 = pivotY - l*sin;
98 canvas.drawLine(x0 + SHADOW_OFFSET, y0 + SHADOW_OFFSET, pivotX + SHADOW_OFFSET, pivotY + SHADOW_OFFSET, mShadow);
100 canvas.drawLine(x0, y0, pivotX, pivotY, mPaint);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java100 final float y0 = pts[1];
116 final float y1 = y0 + s * dY / v;
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false);
203 float y0 = pts[2 * idx + 1];
206 mInitialTouchY = y0;
209 y0 - mInitialTouchY);
H A DPhotoTable.java850 float y0 = photo.getY();
857 float dy = y - y0;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInvariantDeviceProfile.java240 @Thunk float dist(float x0, float y0, float x1, float y1) { argument
241 return (float) Math.hypot(x1 - x0, y1 - y0);
296 private float weight(float x0, float y0, float x1, float y1, float pow) { argument
297 float d = dist(x0, y0, x1, y1);
H A DCellLayout.java2090 final int y0 = mTmpPoint[1];
2095 final int dY = y1 - y0;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DDynamicGridKeyboard.java234 public void updateCoordinates(final int x0, final int y0, final int x1, final int y1) { argument
236 mCurrentY = y0;
237 getHitBox().set(x0, y0, x1, y1);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DTiledTexture.java256 // (x0,y0) source +---------------+
266 RectF src, float x0, float y0, float x, float y, float scaleX,
269 y + (src.top - y0) * scaleY,
271 y + (src.bottom - y0) * scaleY);
318 float y0 = source.top;
330 mapRect(dest, src, x0, y0, x, y, scaleX, scaleY);
265 mapRect(RectF output, RectF src, float x0, float y0, float x, float y, float scaleX, float scaleY) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state_utils.cpp491 const int y0 = (*sampledInputYs)[id]; local
500 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[start],
514 tempBeelineDistance = GeometryUtils::getDistanceInt(x0, y0, xCoordinates[end],
/packages/apps/Calendar/src/com/android/calendar/
H A DUtils.java1190 int y0 = 0;
1193 y0 = top + getPixelOffsetFromMinutes(dayStartMinute, workDayHeight, remainderHeight);
1196 Log.d(TAG, "Adding " + Integer.toHexString(segment.color) + " at x,y0,y1: " + x
1197 + " " + y0 + " " + y1 + " for " + dayStartMinute + " " + dayEndMinute);
1200 strand.points[strand.position++] = y0;
/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthWeekEventsView.java608 int y0 = 0;
614 lines[i++] = y0;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DCellLayout.java2295 final int y0 = mTmpPoint[1];
2300 final int dY = y1 - y0;

Completed in 1845 milliseconds