/frameworks/base/core/java/android/transition/ |
CircularPropagation.java | 100 private static double distance(float x1, float y1, float x2, float y2) { 102 double y = y2 - y1;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
BogusMoveEventDetector.java | 107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { 108 return (int)Math.hypot(x1 - x2, y1 - y2);
|
/prebuilts/go/darwin-x86/src/image/ |
ycbcr_test.go | 87 for y1 := delta.Y + 8; y1 < delta.Y+13; y1++ { 90 subRect := Rect(x0, y0, x1, y1)
|
/prebuilts/go/linux-x86/src/image/ |
ycbcr_test.go | 87 for y1 := delta.Y + 8; y1 < delta.Y+13; y1++ { 90 subRect := Rect(x0, y0, x1, y1)
|
/system/bt/stack/smp/ |
p_256_ecc_pp.c | 51 DWORD *y1; local 62 x1=p->x; y1=p->y; z1=p->z; 72 multiprecision_mersenns_mult_mod(z3, y1, z1, keyLength); // z3=y1*z1 75 multiprecision_mersenns_squa_mod(y3, y1, keyLength); // y3=y1^2 77 multiprecision_mersenns_mult_mod(t3, y3, x1, keyLength); // t3=y3*x1=x1*y1^2 79 multiprecision_mersenns_squa_mod(y3, y3, keyLength); // y3=y3^2=y1^4 98 DWORD *y1; local 105 x1=p->x; y1=p->y; z1=p->z [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/ |
ShapeRenderer.java | 280 public void curve (float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) {
295 float tmp1y = y1 - cy1 * 2 + cy2;
298 float tmp2y = (cy1 - cy2) * 3 - y1 + y2;
301 float fy = y1;
304 float dfy = (cy1 - y1) * pre1 + tmp1y * pre2 + tmp2y * subdiv_step3;
331 public void triangle (float x1, float y1, float x2, float y2, float x3, float y3) {
336 renderer.vertex(x1, y1, 0);
348 renderer.vertex(x1, y1, 0);
351 renderer.vertex(x1, y1, 0);
360 public void triangle (float x1, float y1, float x2, float y2, float x3, float y3, Color col1, Color col2, Color col3) { 509 float y1 = sin * fx + cos * fy + worldOriginY; local 952 float y1 = 0; local 1068 float y1 = vertices[i + 1]; local 1102 float y1 = vertices[i + 1]; local [all...] |
/external/ImageMagick/coders/ |
pes.c | 535 bounds.y1=65535.0; 608 if ((double) y < bounds.y1) 609 bounds.y1=(double) y; 642 bounds.y2-bounds.y1); 649 stitches[offset].y-bounds.y1); 652 stitches[offset+j].y-bounds.y1);
|
/external/skia/samplecode/ |
SampleSkLayer.cpp | 41 SkScalar x1, SkScalar y1, SkScalar z1) { 48 x1, y1, z1, 49 dst.fData[0] == x1 && dst.fData[1] == y1 && dst.fData[2] == z1); 54 SkScalar y0, SkScalar y1, SkScalar y2) { 57 dst[3] != y0 || dst[4] != y1 || dst[5] != y2) { 61 x0, x1, x2, y0, y1, y2, str.c_str());
|
/prebuilts/misc/windows/sdl2/test/ |
testautomation_rect.c | 21 int x1, int y1, int x2, int y2, 34 SDLTest_AssertCheck(x1 == x1Ref && y1 == y1Ref && x2 == x2Ref && y2 == y2Ref, 36 x1, y1, x2, y2, 53 int x1, y1; local 63 y1 = 15; 67 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2); 68 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 0, 15, 31, 15); 71 y1 = yTop; 75 intersected = SDL_IntersectRectAndLine(&rect, &x1, &y1, &x2, &y2); 76 _validateIntersectRectAndLineResults(intersected, SDL_TRUE, &rect, &refRect, x1, y1, x2, y2, 15, 0, 15, 31) 124 int x1, y1; local 191 int x1, y1; local 246 int x1, y1, x1Ref, y1Ref; local 281 int y1 = rect.h \/ 2; local [all...] |
/external/mesa3d/src/mesa/program/ |
prog_noise.c | 259 float x1, y1, x2, y2; local 280 y1 = y0 - j1 + G2; 297 t1 = 0.5f - x1 * x1 - y1 * y1; 302 n1 = t1 * t1 * grad2(perm[ii + i1 + perm[jj + j1]], x1, y1); 346 float x1, y1, z1, x2, y2, z2, x3, y3, z3; local 416 y1 = y0 - j1 + G3; 439 t1 = 0.6f - x1 * x1 - y1 * y1 - z1 * z1; 446 y1, z1) 529 float x1, y1, z1, w1, x2, y2, z2, w2, x3, y3, z3, w3, x4, y4, z4, w4; local [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.c | 89 /* Given: Points (x0, y0) and (x1, y1) 94 find_unit_circles(double x0, double y0, double x1, double y1, 100 double dy = y0 - y1; 102 double ym = (y0 + y1)/2; 129 * endpoints (x0, y0) and (x1, y1) 135 double x0, double y0, double x1, double y1, 143 /* Transform (x0, y0) and (x1, y1) into unit space */ 147 x1p = (x1*COS + y1*SIN)/rh; 148 y1p = (-x1*SIN + y1*COS)/rv; 176 /* Transform (x0, y0) and (x1, y1) into unit space * 322 double x1, y1, x2, y2; local [all...] |
/external/skia/src/core/ |
SkScan_Antihair.cpp | 305 static void do_anti_hairline(SkFDot6 x0, SkFDot6 y0, SkFDot6 x1, SkFDot6 y1, 310 if (any_bad_ints(x0, y0, x1, y1)) { 319 SkASSERT(canConvertFDot6ToFixed(y1)); 321 if (SkAbs32(x1 - x0) > SkIntToFDot6(511) || SkAbs32(y1 - y0) > SkIntToFDot6(511)) { 329 int hy = (y0 >> 1) + (y1 >> 1); 331 do_anti_hairline(hx, hy, x1, y1, clip, blitter); 345 if (SkAbs32(x1 - x0) > SkAbs32(y1 - y0)) { // mostly horizontal 348 SkTSwap<SkFDot6>(y0, y1); 354 if (y0 == y1) { // completely horizontal, take fast case 358 slope = fastfixdiv(y1 - y0, x1 - x0) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
RoundRectangle.java | 151 double y1 = y0 + getHeight(); local 153 if (x < x0 || y < y0 || x >= x1 || y >= y1) { 172 double insideRightY1 = y1 - lrHeight / 2d; 180 double insideLeftY1 = y1 - llHeight / 2d; 218 double y1 = y0 + getHeight(); local 220 if (x + w <= x0 || x >= x1 || y + h <= y0 || y >= y1) { 230 Zone y0class = classify(y, y0, maxUpperCornerHeight, y1, maxLowerCornerHeight); 231 Zone y1class = classify(y + h, y0, maxUpperCornerHeight, y1, maxLowerCornerHeight); 258 y = y - y1 + llHeight / 2d; 269 y = y - y1 + lrHeight / 2d [all...] |
/external/libvorbis/lib/ |
floor1.c | 272 static int render_point(int x0,int x1,int y0,int y1,int x){ 274 y1&=0x7fff; 277 int dy=y1-y0; 362 static void render_line(int n, int x0,int x1,int y0,int y1,float *d){ 363 int dy=y1-y0; 391 static void render_line0(int n, int x0,int x1,int y0,int y1,int *d){ 392 int dy=y1-y0; 471 static int fit_line(lsfit_acc *a,int fits,int *y0,int *y1, 498 if(*y1>=0){ 500 yb+= *y1; 628 int y1=-200; local 729 int y1=output[hn]; local 811 int y1=post[hn]; local [all...] |
/external/libvncserver/libvncserver/ |
cursor.c | 29 void rfbScaledScreenUpdate(rfbScreenInfoPtr screen, int x1, int y1, int x2, int y2); 476 int j,x1,x2,y1,y2,bpp=s->serverFormat.bitsPerPixel/8, local 493 y1=cl->cursorY-c->yhot; 494 y2=y1+c->height; 495 if(y1<0) y1=0; 497 y2-=y1; if(y2<=0) { 504 memcpy(s->frameBuffer+(y1+j)*rowstride+x1*bpp, 509 rfbScaledScreenUpdate(s, x1, y1, x1+x2, y1+y2) 518 int i,j,x1,x2,y1,y2,i1,j1,bpp=s->serverFormat.bitsPerPixel\/8, local [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_aaline.c | 45 GLfloat x1, y1; /* end */ member in struct:LineInfo 79 * Input: (x0, y0) and (x1,y1) are the endpoints of the line. 89 compute_plane(GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, 95 const GLfloat py = y1 - y0; 111 const GLfloat py = y1 - y0; 346 const GLfloat y1 = line->y0 + t1 * line->dy; local 354 line->qy2 = y1 - line->xAdj; 356 line->qy3 = y1 + line->xAdj; 388 yBot = y1 - 3.0F * line->halfWidth; 389 yTop = y1 + line->halfWidth [all...] |
s_zoom.c | 45 * \param y0, y1 returned Y bounds of zoomed region [y0, y1) 51 GLint *x0, GLint *x1, GLint *y0, GLint *y1) 96 *y1 = r1; 136 GLint x0, x1, y0, y1; local 140 &x0, &x1, &y0, &y1)) { 314 if (y1 - y0 > 1) { 317 for (zoomed.y = y0; zoomed.y < y1; zoomed.y++) { 320 if (y1 - y0 > 1) { 366 GLint x0, x1, y0, y1, y local 411 GLint x0, x1, y0, y1, y; local [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
PolygonRegionTest.java | 213 float y1;
local 224 y1 = sin * p1x + cos * p1y;
233 y4 = y3 - (y2 - y1);
236 y1 = p1y;
249 y1 += worldOriginY;
261 renderer.line(x1, y1, x2, y2);
264 renderer.line(x4, y4, x1, y1);
|
/external/opencv3/samples/python2/ |
common.py | 123 for x, y1, y2 in ch_data: 125 yp += [y1, y2] 171 x1, y1 = np.maximum([xo, yo], [x, y]) 173 if x1-x0 > 0 and y1-y0 > 0: 174 self.drag_rect = (x0, y0, x1, y1) 184 x0, y0, x1, y1 = self.drag_rect 185 cv2.rectangle(vis, (x0, y0), (x1, y1), (0, 255, 0), 2)
|
mosse.py | 52 x1, y1, x2, y2 = rect 53 w, h = map(cv2.getOptimalDFTSize, [x2-x1, y2-y1]) 54 x1, y1 = (x1+x2-w)//2, (y1+y2-h)//2 55 self.pos = x, y = x1+0.5*(w-1), y1+0.5*(h-1) 110 x1, y1, x2, y2 = int(x-0.5*w), int(y-0.5*h), int(x+0.5*w), int(y+0.5*h) 111 cv2.rectangle(vis, (x1, y1), (x2, y2), (0, 0, 255)) 115 cv2.line(vis, (x1, y1), (x2, y2), (0, 0, 255)) 116 cv2.line(vis, (x2, y1), (x1, y2), (0, 0, 255))
|
/external/valgrind/VEX/priv/ |
host_generic_maddf.c | 230 Double y1 = y * C; 233 y1 = (y - y1) + y1; 235 Double y2 = y - y1; 236 Double m2 = (((x1 * y1 - m1) + x1 * y2) + x2 * y1) + x2 * y2;
|
/external/freetype/src/cff/ |
cf2intrp.c | 720 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 722 CF2_Fixed y2 = cf2_stack_getReal( opStack, index + 3 ) + y1; 727 cf2_glyphpath_curveTo( &glyphPath, x1, y1, x2, y2, x3, y3 ); 1281 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 1315 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1360 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1409 CF2_Fixed x1, x2, x3, y1, y2, y3; local [all...] |
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cff/ |
cf2intrp.c | 720 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 722 CF2_Fixed y2 = cf2_stack_getReal( opStack, index + 3 ) + y1; 727 cf2_glyphpath_curveTo( &glyphPath, x1, y1, x2, y2, x3, y3 ); 1281 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 1315 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1360 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1409 CF2_Fixed x1, x2, x3, y1, y2, y3; local [all...] |
/external/pdfium/third_party/freetype/src/cff/ |
cf2intrp.c | 720 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 722 CF2_Fixed y2 = cf2_stack_getReal( opStack, index + 3 ) + y1; 727 cf2_glyphpath_curveTo( &glyphPath, x1, y1, x2, y2, x3, y3 ); 1281 CF2_Fixed y1 = cf2_stack_getReal( opStack, index + 1 ) + curY; local 1315 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1360 CF2_Fixed x1, y1, x2, y2, x3, y3; local 1409 CF2_Fixed x1, x2, x3, y1, y2, y3; local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Path.java | 377 * (x1,y1), and ending at (x2,y2). If no moveTo() call has been made for 381 * @param y1 The y-coordinate of the control point on a quadratic curve 385 public void quadTo(float x1, float y1, float x2, float y2) { 387 native_quadTo(mNativePath, x1, y1, x2, y2); 411 * (x1,y1) and (x2,y2), and ending at (x3,y3). If no moveTo() call has been 415 * @param y1 The y-coordinate of the 1st control point on a cubic curve 421 public void cubicTo(float x1, float y1, float x2, float y2, 424 native_cubicTo(mNativePath, x1, y1, x2, y2, x3, y3); 432 public void rCubicTo(float x1, float y1, float x2, float y2, 435 native_rCubicTo(mNativePath, x1, y1, x2, y2, x3, y3) [all...] |