Home
last modified time | relevance | path

Searched refs:drawText (Results 1 – 25 of 86) sorted by relevance

1234

/external/skia/modules/canvaskit/tests/
Dfont.spec.js118 canvas.drawText(str + ' normal', 10, 100, fontPaint, font);
120 canvas.drawText('null terminator ->\u0000<- on purpose', 10, 150, fontPaint, font);
242 …canvas.drawText(`The following should be ${inputs.length + 1} lines of text:`, 5, 30, fontPaint, d…
252 canvas.drawText(fontType.type + ' loaded', 5, fontType.y, fontPaint, font);
254 … canvas.drawText(fontType.type + ' *not* loaded', 5, fontType.y, fontPaint, defaultFont);
267 canvas.drawText('.ttc loaded', 5, 180, fontPaint, defaultFont);
270 canvas.drawText('.ttc *not* loaded', 5, 180, fontPaint, defaultFont);
314 canvas.drawText('Default', 5, 5, textPaint, annotationFont);
315 canvas.drawText('Alias', 5, 25, textPaint, annotationFont);
316 canvas.drawText('AntiAlias', 5, 45, textPaint, annotationFont);
[all …]
/external/skia/gm/
Dlcdtext.cpp32 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderTrue"), in onDraw()
34 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderFalse"), in onDraw()
36 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderTrue"), in onDraw()
38 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderFalse"), in onDraw()
42 void drawText(SkCanvas* canvas, const SkString& string, in drawText() function in LcdTextGM
115 drawText(canvas, SkString("SaveLayer PreserveLCDText"), 50, in onDraw()
117 drawText(canvas, SkString("SaveLayer Default (LCDText not preserved)"), 150, 0); in onDraw()
120 void drawText(SkCanvas* canvas, in drawText() function in SaveLayerPreserveLCDTextGM
Dfontcache.cpp71 this->drawText(canvas); in onDraw()
83 void drawText(SkCanvas* canvas) { in drawText() function in FontCacheGM
/external/skia/docs/examples/
DText_Encoding.cpp13 canvas->drawText(hello8, sizeof(hello8) - 1, 10, 30, paint);
15 canvas->drawText(hello16, sizeof(hello16), 10, 60, paint);
17 canvas->drawText(hello32, sizeof(hello32), 10, 90, paint);
21 canvas->drawText(glyphs, sizeof(glyphs), 10, 120, paint);
DFont_breakText.cpp13 canvas->drawText(str, count, 25, 50, paint);
19 canvas->drawText(str, partialBytes, 25, 100, paint);
DPaint_measureText.cpp13 canvas->drawText(str, count, 25, 50, paint);
DPaint_textToGlyphs.cpp16 canvas->drawText(&glyphs.front(), glyphs.size() * sizeof(SkGlyphID), 10, 40, paint);
/external/skqp/gm/
Dlcdtext.cpp41 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderTrue"), in onDraw()
43 drawText(canvas, SkString("TEXT: SubpixelTrue LCDRenderFalse"), in onDraw()
45 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderTrue"), in onDraw()
47 drawText(canvas, SkString("TEXT: SubpixelFalse LCDRenderFalse"), in onDraw()
51 void drawText(SkCanvas* canvas, const SkString& string, in drawText() function in LcdTextGM
Datlastext.cpp51 target->drawText(glyphs.get(), positions.get(), cnt, color, *atlas_font); in draw_string()
95 auto bmp = this->drawText(); in onDraw()
102 SkBitmap drawText() { in drawText() function in AtlasTextGM
Dfontcache.cpp71 this->drawText(canvas); in onDraw()
83 void drawText(SkCanvas* canvas) { in drawText() function in FontCacheGM
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DHistogramView.java191 canvas.drawText(yLabels[0], 0, yStartPoint, mTextPaint); in fillCanvas()
196 canvas.drawText(yLabels[i], 0, yStartPoint - (i * height) + mYLabelSize, in fillCanvas()
235 canvas.drawText(xLabels[0], yMargin + extraYMargin + mLineWidth, bottom, in fillCanvas()
245 canvas.drawText(xLabels[i], xLabelLineStartX, bottom, mXLabelPaint); in fillCanvas()
260 canvas.drawText(lastXLabel, right - getTextWidth(lastXLabel, mXLabelPaint) - 1, in fillCanvas()
273 canvas.drawText(xLabels[0], yMargin + extraYMargin + mLineWidth, bottom, in fillCanvas()
280 canvas.drawText(xLabels[i], xStartPoint + (xLabelInterval * i * in fillCanvas()
296 canvas.drawText(lastXLabel, right - getTextWidth(lastXLabel, mXLabelPaint) - 1, in fillCanvas()
DGlitchAndCallbackHeatMapView.java157 canvas.drawText(title, titleArea.left + titleArea.width() / 2, titleArea.bottom, in fillCanvas()
166 canvas.drawText(callbackLabel, graphArea.left + graphArea.width() / 2, in fillCanvas()
173 canvas.drawText("Recorder", labelX, labelY, textPaint); in fillCanvas()
178 canvas.drawText("Player", labelX, labelY, textPaint); in fillCanvas()
216 canvas.drawText(glitchLabel, graphArea.left + graphArea.width() / 2, in fillCanvas()
256 canvas.drawText(" = No Data Available, Recording Capacity Exceeded", in fillCanvas()
326 canvas.drawText(Integer.toString(i), legendArea.right + INNER_MARGIN,
331 canvas.drawText(Integer.toString(maxValue), legendArea.right + INNER_MARGIN,
356 canvas.drawText(String.format("%dh:%02dm", seconds / SECONDS_PER_HOUR,
360 canvas.drawText(String.format("%dm:%02ds", seconds / SECONDS_PER_MINUTE,
[all …]
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DBorderedText.java78 public void drawText(final Canvas canvas, final float posX, final float posY, final String text) { in drawText() method in BorderedText
79 canvas.drawText(text, posX, posY, exteriorPaint); in drawText()
80 canvas.drawText(text, posX, posY, interiorPaint); in drawText()
86 drawText(canvas, posX, posY - getTextSize() * (lines.size() - lineNum - 1), line); in drawLines()
/external/skia/experimental/sktext/samples/
DText.cpp30 Processor::drawText("Hello word", canvas, 0, 0); in onDrawContent()
57 …Processor::drawText(direction == TextDirection::kRtl ? mirror(text).c_str() : normal(text).c_str(), in drawLine()
126 Processor::drawText("A very_very_very_very_very_very_very_very_very_very " in onDrawContent()
157 … Processor::drawText("LONG MIRRORED TEXT SHOULD SHOW RIGHT TO LEFT (AS NORMAL)", canvas, 0, 0); in onDrawContent()
/external/skia/experimental/sktext/src/
DProcessor.cpp72 bool Processor::drawText(const char* text, SkCanvas* canvas, SkScalar x, SkScalar y) { in drawText() function in skia::text::Processor
74 …return drawText(text, canvas, TextFormatStyle(TextAlign::kLeft, TextDirection::kLtr), SK_ColorBLAC… in drawText()
77 bool Processor::drawText(const char* text, SkCanvas* canvas, SkScalar width) { in drawText() function in skia::text::Processor
78 return drawText(text, canvas, in drawText()
83 bool Processor::drawText(const char* text, SkCanvas* canvas, TextFormatStyle textFormat, SkColor fo… in drawText() function in skia::text::Processor
84 …return drawText(text, canvas, textFormat, foreground, background, fontFamily, fontSize, fontStyle,… in drawText()
87 bool Processor::drawText(const char* text, SkCanvas* canvas, in drawText() function in skia::text::Processor
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
DUberColorPickerDialog.java386 …canvas.drawText("Revert", mOldSwatchRect.left + SWATCH_WIDTH / 2 - mText.measureText("Revert") / 2… in drawSwatches()
393 …canvas.drawText("Accept", mNewSwatchRect.left + SWATCH_WIDTH / 2 - mText.measureText("Accept") / 2… in drawSwatches()
405 …canvas.drawText("H: " + Integer.toString((int)(mHSV[0] / 360.0f * 255)), TEXT_HSV_POS[0], TEXT_HSV… in writeColorParams()
406 …canvas.drawText("S: " + Integer.toString((int)(mHSV[1] * 255)), TEXT_HSV_POS[0], TEXT_HSV_POS[1] +… in writeColorParams()
407 …canvas.drawText("V: " + Integer.toString((int)(mHSV[2] * 255)), TEXT_HSV_POS[0], TEXT_HSV_POS[1] +… in writeColorParams()
411 canvas.drawText("R: " + mRGB[0], TEXT_RGB_POS[0], TEXT_RGB_POS[1] + TEXT_SIZE, mText); in writeColorParams()
412 canvas.drawText("G: " + mRGB[1], TEXT_RGB_POS[0], TEXT_RGB_POS[1] + TEXT_SIZE * 2, mText); in writeColorParams()
413 canvas.drawText("B: " + mRGB[2], TEXT_RGB_POS[0], TEXT_RGB_POS[1] + TEXT_SIZE * 3, mText); in writeColorParams()
417 …canvas.drawText("Y: " + Integer.toString((int)(mYUV[0] * 255)), TEXT_YUV_POS[0], TEXT_YUV_POS[1] +… in writeColorParams()
418 …canvas.drawText("U: " + Integer.toString((int)((mYUV[1] + .5f) * 255)), TEXT_YUV_POS[0], TEXT_YUV_… in writeColorParams()
[all …]
/external/skia/experimental/sktext/include/
DProcessor.h160 static bool drawText(const char* text, SkCanvas* canvas, SkScalar x, SkScalar y);
161 static bool drawText(const char* text, SkCanvas* canvas, SkScalar width);
162 …static bool drawText(const char* text, SkCanvas* canvas, TextFormatStyle textFormat, SkColor foreg…
163 static bool drawText(const char* text, SkCanvas* canvas,
/external/skqp/resources/lua/
Dtest.lua42 canvas:drawText('Hamburgefons', 320, 200 + 30*k, paint);
52 canvas:drawText('Hello Lua', 300, 300, paint);
/external/skqp/platform_tools/android/apps/skqp/src/main/assets/resources/lua/
Dtest.lua42 canvas:drawText('Hamburgefons', 320, 200 + 30*k, paint);
52 canvas:drawText('Hello Lua', 300, 300, paint);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCanvasTest.java165 canvas.drawText("hi", 1, 2, new Paint()); in resetCanvasHistory_shouldClearTheHistoryAndDescription()
192 canvas.drawText("hello", 1, 2, paint); in shouldRecordText()
193 canvas.drawText("hello 2", 4, 6, paint2); in shouldRecordText()
215 canvas.drawText(new char[]{'h', 'e', 'l', 'l', 'o'}, 2, 3, 1f, 2f, paint); in shouldRecordText_charArrayOverload()
233 canvas.drawText("hello", 1, 4, 1f, 2f, paint); in shouldRecordText_stringWithRangeOverload()
252 canvas.drawText(new StringBuilder("hello"), 1, 4, 1f, 2f, paint); in shouldRecordText_charSequenceOverload()
/external/skqp/src/compute/sk/
DSkDevice_Compute.h73 void drawText(const void*, size_t, SkScalar, SkScalar, const SkPaint&) override;
196 void drawText(const void* t, size_t l, SkScalar x, SkScalar y, const SkPaint& p) override { in drawText() function
198 fRoot->drawText(t, l, x, y, p); in drawText()
/external/adhd/scripts/volume_tuning/
Dvolume.js109 drawText(ctx, Math.round(i * NN * 10 / FIXES) / 10, x, -20, 'center');
148 drawText(ctx, v.toFixed(2), -5 , y - 4, 'right');
265 function drawText(ctx, s, x, y, align) { function
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/tracking/
DMultiBoxTracker.java133 canvas.drawText("" + detection.first, rect.left, rect.top, textPaint); in drawDebug()
134 borderedText.drawText(canvas, rect.centerX(), rect.centerY(), "" + detection.first); in drawDebug()
149 borderedText.drawText(canvas, trackedPos.right, trackedPos.bottom, labelString); in drawDebug()
192 borderedText.drawText(canvas, trackedPos.left + cornerSize, trackedPos.bottom, labelString); in draw()
/external/skqp/tools/lua/
Dchars-vs-glyphs.lua17 drawText = true,
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCanvas.java77 protected void drawText(String text, float x, float y, Paint paint) { in drawText() method in ShadowCanvas
82 protected void drawText(CharSequence text, int start, int end, float x, float y, Paint paint) { in drawText() method in ShadowCanvas
88 protected void drawText(char[] text, int index, int count, float x, float y, Paint paint) { in drawText() method in ShadowCanvas
93 protected void drawText(String text, int start, int end, float x, float y, Paint paint) { in drawText() method in ShadowCanvas

1234