/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 94 public static float dist(float x1, float y1, float x2, float y2) { argument 95 final float x = (x2 - x1); 100 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { argument 101 final float x = (x2 - x1);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 199 private static final int FLAG_CLIP_TO_PADDING = 0x2; 346 public static final int PERSISTENT_SCROLLING_CACHE = 0x2; 2685 private static void drawRect(Canvas canvas, int x1, int y1, int x2, int y2, int color) { argument 2689 canvas.drawLines(getDebugLines(x1, y1, x2, y2), paint); 6357 private static float[] getDebugLines(int x1, int y1, int x2, int y2) { argument 6362 x2--; 6367 sDebugLines[2] = x2; 6370 sDebugLines[4] = x2; 6372 sDebugLines[6] = x2; 6375 sDebugLines[8] = x2 [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 826 private void drawLine(Canvas graphics, int x1, int y1, int x2, int y2, Paint paint) { argument 831 graphics.drawLine(width - dx - x1, dy + y1, width - dx - x2, dy + y2, paint); 833 graphics.drawLine(dx + x1, dy + y1, dx + x2, dy + y2, paint); 1087 int x2 = hLocations[colSpan.max]; 1090 int cellWidth = x2 - x1;
|
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | PointCloud.java | 111 public Point(float x2, float y2, float r) { argument 112 x = (float) x2;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 119 static void quadTo__FFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2) { argument 122 SkScalar x2_ = SkFloatToScalar(x2); 135 static void cubicTo__FFFFFF(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) { argument 138 SkScalar x2_ = SkFloatToScalar(x2); 145 static void rCubicTo(JNIEnv* env, jobject clazz, SkPath* obj, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) { argument 148 SkScalar x2_ = SkFloatToScalar(x2);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 263 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for 268 * @param x2 The x-coordinate of the end point on a quadratic curve 271 public void quadTo(float x1, float y1, float x2, float y2) { argument 273 native_quadTo(mNativePath, x1, y1, x2, y2); 297 * (x1,y1) and (x2,y2), and ending at (x3,y3). If no moveTo() call has been 302 * @param x2 The x-coordinate of the 2nd control point on a cubic curve 307 public void cubicTo(float x1, float y1, float x2, float y2, argument 310 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); 318 public void rCubicTo(float x1, float y1, float x2, float y2, argument 321 native_rCubicTo(mNativePath, x1, y1, x2, y 624 native_quadTo(int nPath, float x1, float y1, float x2, float y2) argument 628 native_cubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument 630 native_rCubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 387 float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, 408 (*currentPos++) = x2; 427 float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, 431 (x1 > mClip->right || y1 < mClip->top || x2 < mClip->left || y4 > mClip->bottom)) { 435 appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture); 451 float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, 454 appendMeshQuadNoClip(x1, y1, u1, v1, x2, y2, u2, v2, x3, y3, u3, v3, x4, y4, u4, v4, texture); 457 mBounds->left = fmin(mBounds->left, fmin(x1, fmin(x2, fmin(x3, x4)))); 459 mBounds->right = fmax(mBounds->right, fmax(x1, fmax(x2, fmax(x3, x4)))); 386 appendMeshQuadNoClip(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument 426 appendMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument 450 appendRotatedMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
|
H A D | Patch.cpp | 225 float x2 = 0.0f; local 234 x2 = x1 + floorf(segment * stretchX + 0.5f); 236 x2 = x1 + segment * rescaleX; 239 float uOffset = x1 == x2 ? 0.0f : 0.5 - (0.5 * segment / (x2 - x1)); 246 x2 += i * EXPLODE_GAP; 248 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); 250 x2 -= i * EXPLODE_GAP; 254 x1 = x2; 261 x2 270 generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, float u1, float v1, float u2, float v2, uint32_t& quadCount) argument [all...] |
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | ShaderProgram.java | 266 float x2, float y2, float x3, float y3); 269 float x2, float y2, float x3, float y3); 265 setSourceRegion(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) argument 268 setTargetRegion(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3) argument
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_shader_program.cpp | 149 jfloat x2, 155 program->SetSourceRegion(Quad(Point(x0, y0), Point(x1, y1), Point(x2, y2), Point(x3, y3))); 167 jfloat x2, 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/SystemUI/src/com/android/systemui/ |
H A D | BeanBag.java | 90 static float dot(float x1, float y1, float x2, float y2) { argument 91 return x1*x2+y1+y2;
|
/frameworks/base/services/input/ |
H A D | InputReader.cpp | 91 inline static float distance(float x1, float y1, float x2, float y2) { argument 92 return hypotf(x1 - x2, y1 - y2);
|
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 3817 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local 3820 processPosition(mapper, x2, y2); 3862 toDisplayX(x2), toDisplayY(y2), 1, 0, 0, 0, 0, 0, 0, 0)); 3868 x1 += 10; y1 += 15; x2 += 5; y2 -= 10; 3871 processPosition(mapper, x2, y2); 3893 toDisplayX(x2), toDisplayY(y2), 1, 0, 0, 0, 0, 0, 0, 0)); 3899 x2 += 15; y2 -= 20; 3900 processPosition(mapper, x2, y2); 3923 toDisplayX(x2), toDisplayY(y2), 1, 0, 0, 0, 0, 0, 0, 0)); 3942 toDisplayX(x2), toDisplay 4094 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local 4270 int32_t x1 = 100, y1 = 125, x2 = 300, y2 = 500; local 4539 float x2 = toDisplayX(rawX2); local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 251 /*package*/ static void native_quadTo(int nPath, float x1, float y1, float x2, float y2) { argument 257 pathDelegate.quadTo(x1, y1, x2, y2); 272 float x2, float y2, float x3, float y3) { 278 pathDelegate.cubicTo(x1, y1, x2, y2, x3, y3); 283 float x2, float y2, float x3, float y3) { 289 pathDelegate.rCubicTo(x1, y1, x2, y2, x3, y3); 624 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for 629 * @param x2 The x-coordinate of the end point on a quadratic curve 632 private void quadTo(float x1, float y1, float x2, float y2) { argument 633 mPath.quadTo(x1, y1, mLastX = x2, mLast 271 native_cubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument 282 native_rCubicTo(int nPath, float x1, float y1, float x2, float y2, float x3, float y3) argument 673 cubicTo(float x1, float y1, float x2, float y2, float x3, float y3) argument [all...] |
/frameworks/compile/libbcc/runtime/lib/ |
H A D | popcountdi2.c | 22 du_int x2 = (du_int)a; local 23 x2 = x2 - ((x2 >> 1) & 0x5555555555555555uLL); 25 x2 = ((x2 >> 2) & 0x3333333333333333uLL) + (x2 & 0x3333333333333333uLL); 27 x2 = (x2 + (x2 >> [all...] |
H A D | popcountti2.c | 34 du_int x2 = (du_int)(x3 + (x3 >> 64)); local 36 su_int x = (su_int)(x2 + (x2 >> 32));
|
/frameworks/rs/driver/ |
H A D | rsdIntrinsicBlend.cpp | 104 uint32_t x2 = xend; local 111 for (;x1 < x2; x1++, out++) { 116 for (;x1 < x2; x1++, out++, in++) { 125 if((x1 + 8) < x2) { 126 uint32_t len = (x2 - x1) >> 3; 133 for (;x1 < x2; x1++, out++, in++) { 142 if((x1 + 8) < x2) { 143 uint32_t len = (x2 - x1) >> 3; 150 for (;x1 < x2; x1++, out++, in++) { 159 if((x1 + 8) < x2) { [all...] |
H A D | rsdIntrinsicBlur.cpp | 110 extern "C" void rsdIntrinsicBlurVF_K(void *dst, const void *pin, int stride, const void *gptr, int rct, int x1, int x2); 111 extern "C" void rsdIntrinsicBlurHF_K(void *dst, const void *pin, const void *gptr, int rct, int x1, int x2); 115 int x1, int x2) { 119 int t = (x2 - x1); 128 while(x2 > x1) { 175 uint32_t x2 = xend; local 181 OneVF(fout, pi, din->lod[0].stride, cp->fp, cp->iradius * 2 + 1, x1, x2); 183 while(x2 > x1) { 191 while ((x1 < (uint32_t)cp->iradius) && (x1 < x2)) { 197 if ((x1 + cp->iradius) < x2) { 113 OneVF(float4 *out, const uchar *ptrIn, int iStride, const float* gPtr, int ct, int x1, int x2) argument [all...] |
H A D | rsdIntrinsicColorMatrix.cpp | 98 uint32_t x2 = xend; local 103 if(x2 > x1) { 105 int32_t len = (x2 - x1) >> 2; 122 while(x1 != x2) {
|
H A D | rsdIntrinsicConvolve3x3.cpp | 59 uint32_t x2 = rsMin((int32_t)x+1, (int32_t)p->dimX); local 63 convert_float4(py0[x2]) * coeff[2] + 66 convert_float4(py1[x2]) * coeff[5] + 69 convert_float4(py2[x2]) * coeff[8]; 96 uint32_t x2 = xend; local 103 if(x2 > x1) { 105 int32_t len = (x2 - x1 - 1) >> 1; 113 while(x1 != x2) {
|
H A D | rsdIntrinsicConvolve5x5.cpp | 58 uint32_t x2 = x; local 64 convert_float4(py0[x2]) * coeff[2] + 70 convert_float4(py1[x2]) * coeff[7] + 76 convert_float4(py2[x2]) * coeff[12] + 82 convert_float4(py3[x2]) * coeff[17] + 88 convert_float4(py4[x2]) * coeff[22] + 126 uint32_t x2 = xend; local 128 while((x1 < x2) && (x1 < 2)) { 135 if((x1 + 3) < x2) { 136 uint32_t len = (x2 [all...] |
H A D | rsdIntrinsicLUT.cpp | 45 uint32_t x2 = xend; local 56 while (x1 < x2) {
|
H A D | rsdIntrinsicYuvToRGB.cpp | 102 uint32_t x2 = xend; local 104 if(x2 > x1) { 106 int32_t len = (x2 - x1 - 1) >> 3; 114 // ALOGE("y %i %i %i", p->y, x1, x2); 115 while(x1 < x2) {
|
H A D | rsdPath.cpp | 46 float x1, xc, x2; member in struct:DrvPathStatic::__anon1539 125 s->x2 = fin[4]; 167 vtx[4] = s->x2; 174 vtx[10] = s->x2;
|
H A D | rsdRuntimeStubs.cpp | 232 float x2, float y2, float z2, float u2, float v2, 248 //ALOGE("%4.2f, %4.2f, %4.2f", x2, y2, z2); 252 float vtx[] = {x1,y1,z1, x2,y2,z2, x3,y3,z3, x4,y4,z4}; 266 float x2, float y2, float z2, 271 x2, y2, z2, 1, 1, 294 static void SC_DrawRect(float x1, float y1, float x2, float y2, float z) { argument 297 SC_DrawQuad(x1, y2, z, x2, y2, z, x2, y1, z, x1, y1, z); 231 SC_DrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float x4, float y4, float z4, float u4, float v4) argument 265 SC_DrawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4) argument
|