Searched defs:y1 (Results 26 - 50 of 51) sorted by path

123

/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp260 float y1 = y0; local
279 else if (y > y1) {
280 y1 = y;
298 float dy = y1 - y0;
315 static inline float dot3(float x0, float y0, float z0, float x1, float y1, float z1) { argument
316 return x0 * x1 + y0 * y1 + z0 * z1;
/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java45 @param y1 The y-coordinate for the end of the gradient line
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument
64 mY1 = y1;
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt));
75 @param y1 The y-coordinate for the end of the gradient line
80 public LinearGradient(float x0, float y0, float x1, float y1, int color0, int color1, argument
86 mY1 = y1;
90 init(nativeCreate2(x0, y0, x1, y1, color0, color1, tile.nativeInt));
115 private native long nativeCreate1(float x0, float y0, float x1, float y1, argument
117 private native long nativeCreate2(float x0, float y0, float x1, float y1, argument
[all...]
H A DPath.java362 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for
366 * @param y1 The y-coordinate of the control point on a quadratic curve
370 public void quadTo(float x1, float y1, float x2, float y2) { argument
372 native_quadTo(mNativePath, x1, y1, x2, y2);
396 * (x1,y1) and (x2,y2), and ending at (x3,y3). If no moveTo() call has been
400 * @param y1 The y-coordinate of the 1st control point on a cubic curve
406 public void cubicTo(float x1, float y1, float x2, float y2, argument
409 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3);
417 public void rCubicTo(float x1, float y1, float x2, float y2, argument
420 native_rCubicTo(mNativePath, x1, y1, x
796 native_quadTo(long nPath, float x1, float y1, float x2, float y2) argument
800 native_cubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument
802 native_rCubicTo(long nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument
[all...]
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp537 void FontRenderer::appendMeshQuadNoClip(float x1, float y1, float u1, float v1, argument
545 mCurrentCacheTexture->addQuad(x1, y1, u1, v1, x2, y2, u2, v2,
549 void FontRenderer::appendMeshQuad(float x1, float y1, float u1, float v1, argument
554 (x1 > mClip->right || y1 < mClip->top || x2 < mClip->left || y4 > mClip->bottom)) {
558 appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture);
564 mBounds->bottom = fmax(mBounds->bottom, y1);
572 void FontRenderer::appendRotatedMeshQuad(float x1, float y1, float u1, float v1, argument
576 appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture);
580 mBounds->top = fmin(mBounds->top, fmin(y1, fmin(y2, fmin(y3, y4))));
582 mBounds->bottom = fmax(mBounds->bottom, fmax(y1, fma
[all...]
H A DPatch.cpp123 float y1 = 0.0f; local
134 y2 = y1 + floorf(segment * stretchY + 0.5f);
136 y2 = y1 + segment * rescaleY;
139 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1));
144 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX,
148 y1 = y2;
156 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX,
172 float y1, float y2, float v1, float v2, float stretchX, float rescaleX,
196 generateQuad(vertex, x1, y1, x
171 generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
211 generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, float u1, float v1, float u2, float v2, uint32_t& quadCount) argument
[all...]
H A DShadowTessellator.cpp158 double y1 = poly[p1].y; local
161 double a = (x1 * y2 - x2 * y1);
163 sumy += (y1 + y2) * a;
/frameworks/base/libs/hwui/font/
H A DCacheTexture.h157 inline void addQuad(float x1, float y1, float u1, float v1, argument
164 TextureVertex::set(mesh++, x1, y1, u1, v1);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DShaderProgram.java265 public native boolean setSourceRegion(float x0, float y0, float x1, float y1, argument
268 private native boolean setTargetRegion(float x0, float y0, float x1, float y1, argument
/frameworks/base/media/mca/filterfw/jni/
H A Djni_shader_program.cpp148 jfloat y1,
155 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3)));
166 jfloat y1,
173 program->SetTargetRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3)));
143 Java_android_filterfw_core_ShaderProgram_setSourceRegion(JNIEnv* env, jobject thiz, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
161 Java_android_filterfw_core_ShaderProgram_setTargetRegion(JNIEnv* env, jobject thiz, jfloat x0, jfloat y0, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java81 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
H A DGLES20Canvas.java479 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
480 draw(GLES20.GL_LINE_STRIP, OFFSET_DRAW_LINE, COUNT_LINE_VERTEX, x1, y1, x2 - x1, y2 - y1,
/frameworks/base/services/core/java/com/android/server/power/
H A DWirelessChargerDetector.java312 private static boolean hasMoved(float x1, float y1, float z1, argument
314 final double dotProduct = (x1 * x2) + (y1 * y2) + (z1 * z2);
315 final double mag1 = Math.sqrt((x1 * x1) + (y1 * y1) + (z1 * z1));
327 + ", x1=" + x1 + ", y1=" + y1 + ", z1=" + z1
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dcolorspace.cpp73 int u, v, y1, y2, y3, y4; local
75 y1 = pInY[0];
83 pOutColor[0] = convertYuvToRgba(y1, u, v);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java326 private Quad(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) { argument
328 mTopRight = new PointF(x1, y1);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DLinearGradient_Delegate.java58 float x0, float y0, float x1, float y1,
60 LinearGradient_Delegate newDelegate = new LinearGradient_Delegate(x0, y0, x1, y1,
67 float x0, float y0, float x1, float y1,
70 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/,
82 * @param y1 The y-coordinate for the end of the gradient line
89 private LinearGradient_Delegate(float x0, float y0, float x1, float y1, argument
92 mJavaPaint = new LinearGradientPaint(x0, y0, x1, y1, mColors, mPositions, tile);
109 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], argument
115 mDy = y1 - y0;
57 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
66 nativeCreate2(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) argument
H A DPath_Delegate.java258 /*package*/ static void native_quadTo(long nPath, float x1, float y1, float x2, float y2) { argument
264 pathDelegate.quadTo(x1, y1, x2, y2);
278 /*package*/ static void native_cubicTo(long nPath, float x1, float y1, argument
285 pathDelegate.cubicTo(x1, y1, x2, y2, x3, y3);
289 /*package*/ static void native_rCubicTo(long nPath, float x1, float y1, argument
296 pathDelegate.rCubicTo(x1, y1, x2, y2, x3, y3);
638 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for
642 * @param y1 The y-coordinate of the control point on a quadratic curve
646 private void quadTo(float x1, float y1, float x2, float y2) { argument
647 mPath.quadTo(x1, y1, mLast
687 cubicTo(float x1, float y1, float x2, float y2, float x3, float y3) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp245 int y1 = std::min(height, y + bmh); local
248 for (int yy = y0; yy < y1; yy++) {
/frameworks/native/services/inputflinger/
H A DInputReader.cpp91 inline static float distance(float x1, float y1, float x2, float y2) { argument
92 return hypotf(x1 - x2, y1 - y2);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp3881 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local
3882 processPosition(mapper, x1, y1);
3902 toDisplayX(x1), toDisplayY(y1), 1, 0, 0, 0, 0, 0, 0, 0));
3924 toDisplayX(x1), toDisplayY(y1), 1, 0, 0, 0, 0, 0, 0, 0));
3932 x1 += 10; y1 += 15; x2 += 5; y2 -= 10;
3933 processPosition(mapper, x1, y1);
3955 toDisplayX(x1), toDisplayY(y1), 1, 0, 0, 0, 0, 0, 0, 0));
3985 toDisplayX(x1), toDisplayY(y1), 1, 0, 0, 0, 0, 0, 0, 0));
4158 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local
4159 processPosition(mapper, x1, y1);
4334 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve3x3.cpp87 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, const void *y1,
198 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); local
202 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1);
245 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); local
249 const uchar2 *py2 = (const uchar2 *)(pin + stride * y1);
290 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); local
294 const uchar *py2 = (const uchar *)(pin + stride * y1);
335 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); local
339 const float4 *py2 = (const float4 *)(pin + stride * y1);
380 uint32_t y1 local
424 uint32_t y1 = rsMin((int32_t)p->y + 1, (int32_t)(p->dimY-1)); local
[all...]
H A DrsCpuIntrinsicConvolve5x5.cpp345 extern "C" void rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, const void *y1,
361 uint32_t y1 = rsMax((int32_t)p->y-1, 0); local
367 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1);
421 uint32_t y1 = rsMax((int32_t)p->y-1, 0); local
427 const uchar2 *py1 = (const uchar2 *)(pin + stride * y1);
470 uint32_t y1 = rsMax((int32_t)p->y-1, 0); local
476 const uchar *py1 = (const uchar *)(pin + stride * y1);
519 uint32_t y1 = rsMax((int32_t)p->y-1, 0); local
525 const float4 *py1 = (const float4 *)(pin + stride * y1);
568 uint32_t y1 local
617 uint32_t y1 = rsMax((int32_t)p->y-1, 0); local
[all...]
H A DrsCpuIntrinsics_x86.c80 const void *y0, const void *y1, const void *y2,
104 p4 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y1)), _mm_setzero_si128());
105 p5 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y1+1)), _mm_setzero_si128());
106 p6 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y1+2)), _mm_setzero_si128());
107 p7 = _mm_unpacklo_epi8(_mm_cvtsi32_si128(*((int32_t *)y1+3)), _mm_setzero_si128());
136 y1 = (const char *)y1 + 8;
455 __m128i y1, y2, y3, y4; local
457 y1 = packus_epi32(R, G);
459 y3 = _mm_packus_epi16(y1, y
79 rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, const void *y1, const void *y2, const short *coef, uint32_t count) argument
517 __m128i y1, y2, y3, y4; local
578 __m128i y1, y2, y3, y4; local
596 rsdIntrinsicConvolve5x5_K(void *dst, const void *y0, const void *y1, const void *y2, const void *y3, const void *y4, const short *coef, uint32_t count) argument
[all...]
/frameworks/rs/driver/
H A DrsdPath.cpp47 float y1, yc, y2; member in struct:DrvPathStatic::__anon1493
120 s->y1 = fin[1];
163 vtx[1] = s->y1;
173 vtx[9] = s->y1;
H A DrsdRuntimeStubs.cpp305 static void SC_DrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, argument
321 //ALOGE("%4.2f, %4.2f, %4.2f", x1, y1, z1);
326 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4};
339 static void SC_DrawQuad(float x1, float y1, float z1, argument
343 SC_DrawQuadTexCoords(x1, y1, z1, 0, 1,
367 static void SC_DrawRect(float x1, float y1, float x2, float y2, float z) { argument
368 SC_DrawQuad(x1, y2, z, x2, y2, z, x2, y1, z, x1, y1, z);
/frameworks/rs/
H A DrsFont.cpp668 void FontState::appendMeshQuad(float x1, float y1, float z1, argument
680 if (x1 > mSurfaceWidth || y1 < 0.0f || x2 < 0 || y4 > mSurfaceHeight) {
684 /*LOGE("V0 x: %f y: %f z: %f", x1, y1, z1);
690 (*currentPos++) = y1;

Completed in 525 milliseconds

123