Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 – 25 of 65) sorted by relevance

123

/external/skia/gm/
Dsmallpaths.cpp83 static SkScalar xOffset = 34.f; in make_three_line() local
86 b.moveTo(-32.5f + xOffset, 0.0f + yOffset); in make_three_line()
87 b.lineTo(32.5f + xOffset, 0.0f + yOffset); in make_three_line()
89 b.moveTo(-32.5f + xOffset, 19 + yOffset); in make_three_line()
90 b.lineTo(32.5f + xOffset, 19 + yOffset); in make_three_line()
92 b.moveTo(-32.5f + xOffset, -19 + yOffset); in make_three_line()
93 b.lineTo(32.5f + xOffset, -19 + yOffset); in make_three_line()
94 b.lineTo(-32.5f + xOffset, -19 + yOffset); in make_three_line()
102 static SkScalar xOffset = 34.f; in make_arrow() local
105 b.moveTo(-26.f + xOffset, 0.0f + yOffset); in make_arrow()
[all …]
Dtextblobtransforms.cpp45 SkScalar xOffset = bounds.width() + 5; in onOnceBeforeDraw() local
48 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, 0); in onOnceBeforeDraw()
56 ToolUtils::add_to_text_blob(&builder, text, font, xOffset, -yOffset - 10); in onOnceBeforeDraw()
84 SkScalar xOffset = SkScalarCeilToScalar(bounds.width()); in onDraw() local
87 canvas->translate(xOffset, 2 * yOffset); in onDraw()
89 canvas->translate(-xOffset, 0); in onDraw()
91 canvas->translate(2 * xOffset, 0); in onDraw()
93 canvas->translate(-xOffset, -yOffset); in onDraw()
99 canvas->translate(4 * xOffset, -yOffset); in onDraw()
109 canvas->translate(-xOffset, yOffset); in onDraw()
[all …]
Darcofzorro.cpp48 int xOffset = 0, yOffset = 0; in onDraw() local
57 canvas->translate(SkIntToScalar(xOffset), SkIntToScalar(yOffset)); in onDraw()
63 xOffset += 10; in onDraw()
64 if (xOffset >= 700) { in onDraw()
69 xOffset -= 10; in onDraw()
71 if (xOffset < 50) { in onDraw()
76 xOffset += 10; in onDraw()
Dandroidblendmodes.cpp66 void drawTile(SkCanvas* canvas, int xOffset, int yOffset, SkBlendMode mode) { in drawTile() argument
67 canvas->translate(xOffset, yOffset); in drawTile()
84 int xOffset = 0, yOffset = 0; in onDraw() local
101 this->drawTile(canvas, xOffset, yOffset, mode); in onDraw()
105 xOffset + kBitmapSize/2.0f, in onDraw()
109 xOffset += 256; in onDraw()
110 if (xOffset >= 1024) { in onDraw()
111 xOffset = 0; in onDraw()
Dimagefiltersclipped.cpp125 for (int xOffset = 0; xOffset < 80; xOffset += 16) { in onDraw() local
127 bounds.fLeft = SkIntToScalar(xOffset); in onDraw()
140 for (int xOffset = 0; xOffset < 80; xOffset += 16) { in onDraw() local
141 bounds.fLeft = SkIntToScalar(xOffset); in onDraw()
Dmixedtextblobs.cpp74 SkScalar xOffset = boundsHalfWidth; in onOnceBeforeDraw() local
86 xOffset - bounds.width() * 0.25f, in onOnceBeforeDraw()
95 ToolUtils::add_to_text_blob(&builder, fEmojiText, font, xOffset, yOffset); in onOnceBeforeDraw()
Dtablecolorfilter.cpp163 SkScalar xOffset = SkScalar(bm.width() * 9 / 8); in onDraw() local
176 x += xOffset; in onDraw()
198 x += xOffset; in onDraw()
/external/angle/src/tests/egl_tests/
DEGLPreRotationTest.cpp239 GLint xOffset = 126; in testDrawingAndReadPixels() local
244 glReadPixels(xOffset, yOffset, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); in testDrawingAndReadPixels()
252 GLColor expectedPixel(xOffset + x, yOffset + y, 0, 255); in testDrawingAndReadPixels()
261 GLint xOffset = 13; in testDrawingAndReadPixels() local
266 glReadPixels(xOffset, yOffset, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixels2[0]); in testDrawingAndReadPixels()
274 GLColor expectedPixel(xOffset + x, yOffset + y, 0, 255); in testDrawingAndReadPixels()
817 void test256x256PredictablePattern(GLint xOffset, GLint yOffset) in test256x256PredictablePattern() argument
819 EXPECT_PIXEL_COLOR_EQ(xOffset + 0, yOffset + 0, GLColor::black); in test256x256PredictablePattern()
820 EXPECT_PIXEL_COLOR_EQ(xOffset + 0, yOffset + mSize - 1, GLColor::green); in test256x256PredictablePattern()
821 EXPECT_PIXEL_COLOR_EQ(xOffset + mSize - 1, yOffset + 0, GLColor::red); in test256x256PredictablePattern()
[all …]
/external/angle/samples/tri_fan_microbench/
DTriFanMicroBench.cpp64 GLfloat xOffset = xMin; in createVertexBuffers() local
71 tempVerts[j * 3] = fanVertices[j * 3] + xOffset; in createVertexBuffers()
79 xOffset += 2 * halfDim; in createVertexBuffers()
80 if (xOffset > xMax) in createVertexBuffers()
82 xOffset = xMin; in createVertexBuffers()
110 xOffset = xMin; in createVertexBuffers()
119 tempVerts[j * 3] = triPointer[0] + xOffset; in createVertexBuffers()
127 xOffset += 2 * halfDim; in createVertexBuffers()
128 if (xOffset > xMax) in createVertexBuffers()
131 xOffset = xMin; in createVertexBuffers()
/external/proguard/src/proguard/gui/splash/
DShadowedSprite.java32 private final VariableInt xOffset; field in ShadowedSprite
51 public ShadowedSprite(VariableInt xOffset, in ShadowedSprite() argument
57 this.xOffset = xOffset; in ShadowedSprite()
87 int xo = xOffset.getInt(time) - b/2; in paint()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowToast.java20 private int xOffset; field in ShadowToast
71 protected void setGravity(int gravity, int xOffset, int yOffset) { in setGravity() argument
73 this.xOffset = xOffset; in setGravity()
84 return xOffset; in getXOffset()
DShadowMotionEvent.java111 PointerCoords pointerCoordsObj, float xOffset, float yOffset) { in pointerCoordsToNative() argument
114 outRawPointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, pointerCoordsObj.x - xOffset); in pointerCoordsToNative()
158 float xOffset, in pointerCoordsFromNative() argument
161 outPointerCoordsObj.x = rawPointerCoords.getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset; in pointerCoordsFromNative()
206 float xOffset, in nativeInitialize() argument
225 xOffset, in nativeInitialize()
247 float xOffset, in nativeInitialize() argument
273 rawPointerCoords[i] = pointerCoordsToNative(pointerCoordsObj, xOffset, yOffset); in nativeInitialize()
285 xOffset, in nativeInitialize()
311 float xOffset, in nativeInitialize() argument
[all …]
DNativeInput.java142 public void applyOffset(float xOffset, float yOffset) { in applyOffset() argument
143 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset); in applyOffset()
562 float xOffset, in initialize() argument
578 mXOffset = xOffset; in initialize()
637 public void offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
638 mXOffset += xOffset; in offsetLocation()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowToast.java22 private int xOffset; field in ShadowToast
78 protected void setGravity(int gravity, int xOffset, int yOffset) { in setGravity() argument
80 this.xOffset = xOffset; in setGravity()
91 return xOffset; in getXOffset()
DShadowMotionEvent.java112 PointerCoords pointerCoordsObj, float xOffset, float yOffset) { in pointerCoordsToNative() argument
115 outRawPointerCoords.setAxisValue(AMOTION_EVENT_AXIS_X, pointerCoordsObj.x - xOffset); in pointerCoordsToNative()
159 float xOffset, in pointerCoordsFromNative() argument
162 outPointerCoordsObj.x = rawPointerCoords.getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset; in pointerCoordsFromNative()
207 float xOffset, in nativeInitialize() argument
226 xOffset, in nativeInitialize()
248 float xOffset, in nativeInitialize() argument
274 rawPointerCoords[i] = pointerCoordsToNative(pointerCoordsObj, xOffset, yOffset); in nativeInitialize()
286 xOffset, in nativeInitialize()
312 float xOffset, in nativeInitialize() argument
[all …]
DNativeInput.java140 public void applyOffset(float xOffset, float yOffset) { in applyOffset() argument
141 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset); in applyOffset()
560 float xOffset, in initialize() argument
576 mXOffset = xOffset; in initialize()
629 public void offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
630 mXOffset += xOffset; in offsetLocation()
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/renderer/
DYAxisRendererHorizontalBarChart.java145 float xOffset = mYAxis.getLabelXOffset(); in drawYLabels() local
153 fixedPosition - offset + xOffset, in drawYLabels()
286 float xOffset = l.getLineWidth() + l.getXOffset(); in renderLimitLines() local
295 …c.drawText(label, pts[0] + xOffset, mViewPortHandler.contentTop() + yOffset + labelLineHeight, mLi… in renderLimitLines()
299 … c.drawText(label, pts[0] + xOffset, mViewPortHandler.contentBottom() - yOffset, mLimitLinePaint); in renderLimitLines()
304 …c.drawText(label, pts[0] - xOffset, mViewPortHandler.contentTop() + yOffset + labelLineHeight, mLi… in renderLimitLines()
308 … c.drawText(label, pts[0] - xOffset, mViewPortHandler.contentBottom() - yOffset, mLimitLinePaint); in renderLimitLines()
DYAxisRenderer.java122 float xOffset = mYAxis.getLabelXOffset(); in drawYLabels() local
130 fixedPosition + xOffset, in drawYLabels()
314 float xOffset = Utils.convertDpToPixel(4f) + l.getXOffset(); in renderLimitLines() local
323 mViewPortHandler.contentRight() - xOffset, in renderLimitLines()
330 mViewPortHandler.contentRight() - xOffset, in renderLimitLines()
337 mViewPortHandler.contentLeft() + xOffset, in renderLimitLines()
344 mViewPortHandler.offsetLeft() + xOffset, in renderLimitLines()
DXAxisRendererHorizontalBarChart.java272 float xOffset = Utils.convertDpToPixel(4f) + l.getXOffset(); in renderLimitLines() local
281 mViewPortHandler.contentRight() - xOffset, in renderLimitLines()
288 mViewPortHandler.contentRight() - xOffset, in renderLimitLines()
295 mViewPortHandler.contentLeft() + xOffset, in renderLimitLines()
302 mViewPortHandler.offsetLeft() + xOffset, in renderLimitLines()
DXAxisRenderer.java374 float xOffset = limitLine.getLineWidth() + limitLine.getXOffset(); in renderLimitLineLabel() local
382 …c.drawText(label, position[0] + xOffset, mViewPortHandler.contentTop() + yOffset + labelLineHeight, in renderLimitLineLabel()
387 …c.drawText(label, position[0] + xOffset, mViewPortHandler.contentBottom() - yOffset, mLimitLinePai… in renderLimitLineLabel()
392 …c.drawText(label, position[0] - xOffset, mViewPortHandler.contentTop() + yOffset + labelLineHeight, in renderLimitLineLabel()
397 …c.drawText(label, position[0] - xOffset, mViewPortHandler.contentBottom() - yOffset, mLimitLinePai… in renderLimitLineLabel()
/external/replicaisland/tools/
DExtractPoints.js122 tile.xOffset = column * tileSizeX;
125 tile.centerX -= tile.xOffset;
146 edge.startX -= tile.xOffset;
148 edge.endX -= tile.xOffset;
150 edge.centerX -= tile.xOffset;
/external/skia/modules/canvaskit/tests/
Dcanvas2d_test.js657 xOffset: 0, property
664 xOffset: 30, property
671 xOffset: 0, property
678 xOffset: 30, property
699 const xOffset = test.xOffset; constant
704 ctx.rect(5+xOffset, 5+yOffset, 20, 20);
705 ctx.arc(15+xOffset, 15+yOffset, 8, 0, Math.PI*2, false);
714 x += xOffset;
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/components/
DComponentBase.java66 public void setXOffset(float xOffset) { in setXOffset() argument
67 mXOffset = Utils.convertDpToPixel(xOffset); in setXOffset()
/external/freetype/src/psaux/
Dpshints.c1150 glyphpath->xOffset = font->darkenX; in cf2_glyphpath_init()
1153 cf2_fixedAbs( glyphpath->xOffset ), in cf2_glyphpath_init()
1589 *x = glyphpath->xOffset; in cf2_glyphpath_computeOffset()
1596 glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
1614 *x = NEG_INT32( glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
1621 glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
1642 *x = glyphpath->xOffset; in cf2_glyphpath_computeOffset()
1649 glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
1667 *x = NEG_INT32( glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
1674 glyphpath->xOffset ); in cf2_glyphpath_computeOffset()
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-color-sbix-table.hh54 new_glyph->xOffset = xOffset; in copy()
61 HBINT16 xOffset; /* The horizontal (x-axis) offset from the left member
135 if (x_offset) *x_offset = glyph->xOffset; in get_glyph_blob()

123