Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DTextActivity.java87 canvas.drawText("Hello OpenGL renderer!", 300, 20, mEventPaint); in onDraw()
91 canvas.drawText("Hello OpenGL renderer!", 100, 20, mMediumPaint); in onDraw()
95 canvas.drawText("Hello OpenGL renderer!", 100, 40, mMediumPaint); in onDraw()
100 canvas.drawText("Hello OpenGL renderer!", 100, 60, mMediumPaint); in onDraw()
104 canvas.drawText("Hello OpenGL renderer!", 100, 100, mMediumPaint); in onDraw()
107 canvas.drawText("Hello OpenGL renderer!", 100, 150, mMediumPaint); in onDraw()
109 canvas.drawText("Hello OpenGL renderer!", 100, 200, mLargePaint); in onDraw()
112 canvas.drawText("Hello OpenGL renderer!", 100, 400, mLargePaint); in onDraw()
115 canvas.drawText("Hello OpenGL renderer!", 100, 500, mLargePaint); in onDraw()
119 canvas.drawText("Hello OpenGL renderer!", 100, 600, mLargePaint); in onDraw()
[all …]
DScaledTextActivity.java97 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
99 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); in onDraw()
101 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); in onDraw()
108 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
111 canvas.drawText(TEXT, 30.0f, 50.0f, mPaint); in onDraw()
113 canvas.drawText(TEXT, 30.0f, 70.0f, mPaint); in onDraw()
121 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
127 canvas.drawText(TEXT, 30.0f, 30.0f, mShadowPaint); in onDraw()
137 canvas.drawText(TEXT, 30.0f, 30.0f, mPaint); in onDraw()
DMoreShadersActivity.java134 canvas.drawText("OpenGL rendering", 0.0f, 20.0f, mLargePaint); in onDraw()
137 canvas.drawText("OpenGL rendering", 0.0f, 60.0f, mLargePaint); in onDraw()
141 canvas.drawText("OpenGL rendering", 0.0f, 100.0f, mLargePaint); in onDraw()
146 canvas.drawText("OpenGL rendering", 0.0f, 20.0f, mLargePaint); in onDraw()
DPaintDrawFilterActivity.java59 canvas.drawText("Hello OpenGL renderer!", 100, 120, mMediumPaint); in onDraw()
61 canvas.drawText("Hello OpenGL renderer!", 100, 220, mMediumPaint); in onDraw()
DNoAATextActivity.java54 canvas.drawText(TEXT, 30.0f, 150.0f, mPaint); in onDraw()
DDrawIntoHwBitmapActivity.java48 canvas.drawText("Hello, World!", 0, 90, p); in createBitmap()
DNewLayersActivity.java71 canvas.drawText("This is a very long string to overlap between layers and framebuffer", in drawStuff()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DBatteryMeterDrawableTest.java62 verify(canvas, never()).drawText(anyString(), anyFloat(), anyFloat(), any()); in testDrawImageButNoTextIfPluggedIn()
71 verify(canvas, times(1)).drawText(anyString(), anyFloat(), anyFloat(), any()); in testDrawTextIfNotPluggedIn()
81 verify(canvas, never()).drawText(anyString(), anyFloat(), anyFloat(), any()); in testDrawNoTextIfPowerSaveEnabled()
93 verify(canvas, times(1)).drawText(eq(warningString), anyFloat(), anyFloat(), any()); in testDrawTextWarningAtCriticalLevel()
105 verify(canvas, never()).drawText(eq(warningString), anyFloat(), anyFloat(), any()); in testDrawTextNoWarningAboveCriticalLevel()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java230 c.drawText("Surface Size: " + width + " x " + height, in drawFrame()
233 c.drawText("Desired Size: " + mDesiredWidth + " x " + mDesiredHeight, in drawFrame()
236 c.drawText("Cur Offset Raw: " + mOffsetX + ", " + mOffsetY, in drawFrame()
239 c.drawText("Cur Offset Step: " + mOffsetXStep + ", " + mOffsetYStep, in drawFrame()
242 c.drawText("Cur Offset Pixels: " + mOffsetXPixels + ", " + mOffsetYPixels, in drawFrame()
245 c.drawText("Stable Insets: (" + mStableInsets.left + ", " + mStableInsets.top in drawFrame()
249 c.drawText("System Insets: (" + mMainInsets.left + ", " + mMainInsets.top in drawFrame()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/common/
DHDRIndicator.kt44 canvas.drawText("H", rect.left, rect.bottom, paint) in onDraw()
46 canvas.drawText("D", rect.left + height.toFloat(), rect.bottom, paint) in onDraw()
48 canvas.drawText("R", rect.left + height.toFloat() * 2, rect.bottom, paint) in onDraw()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DRadialGlow.kt85 canvas.drawText("Tap to toggle animation", rect.centerX(), innerRect.top - 4.dp(), paint) in onDraw()
86 canvas.drawText("Outside text", rect.centerX(), rect.bottom - 4.dp(), paint) in onDraw()
87 canvas.drawText("Inside text", innerRect.centerX(), innerRect.bottom - 4.dp(), paint) in onDraw()
DGlowingCard.kt81 canvas.drawText("glow = scRGB{${Color.red(glowColor)}, ${Color.green(glowColor)}, " + in onDraw()
83 canvas.drawText("(press to activate)", rect.left, rect.bottom, paint) in onDraw()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DVariableFontPerfTest.java67 c.drawText(text, 0, text.length(), 0, 100, paint); in testDraw_SetVariationOnce()
88 c.drawText(text, 0, text.length(), 0, 100, paint); in testDraw_SetVariationEachDraw()
111 c.drawText(text, 0, text.length(), 0, 100, paint); in testDraw_SetDifferentVariationEachDraw()
DCanvasDrawTextTest.java64 canvas.drawText(text, start, start + 100, 0, 0, PAINT); in drawText_LongText_SmallWindow()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java67 verify(mCanvas).drawText(eq("!"), eq(25f), eq(43.399998f), any(Paint.class)); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition()
81 verify(mCanvas).drawText(eq("20"), eq(25f), eq(42.6f), any(Paint.class)); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSaveLayerInterleaveActivity.java74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, in onCreate()
81 canvas.drawText("onscreen line "+ i, bounds.left, in onCreate()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java258 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) { in drawText() method in NopCanvas
262 public void drawText(String text, float x, float y, Paint paint) { in drawText() method in NopCanvas
266 public void drawText(String text, int start, int end, float x, float y, Paint paint) { in drawText() method in NopCanvas
270 public void drawText(CharSequence text, int start, int end, float x, float y, Paint paint) { in drawText() method in NopCanvas
/frameworks/base/services/core/java/com/android/server/input/debug/
DRotaryInputGraphView.java164 canvas.drawText(
170 canvas.drawText(
175 canvas.drawText(
/frameworks/base/core/java/android/text/
DGraphicsOperations.java33 void drawText(BaseCanvas c, int start, int end, in drawText() method
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java422 canvas.drawText(mText.clear() in drawLabels()
431 canvas.drawText(mText.clear() in drawLabels()
436 canvas.drawText(mText.clear() in drawLabels()
445 canvas.drawText(mText.clear() in drawLabels()
451 canvas.drawText(mText.clear() in drawLabels()
458 canvas.drawText(mText.clear() in drawLabels()
464 canvas.drawText(mText.clear() in drawLabels()
472 canvas.drawText(mText.clear() in drawLabels()
479 canvas.drawText(mText.clear() in drawLabels()
DSubtitleView.java336 layout.drawText(c, i, i); in onDraw()
352 layout.drawText(c, i, i); in onDraw()
362 layout.drawText(c, i, i); in onDraw()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/
DClickAreaView.java61 canvas.drawText("id: " + mId + " : " + mMetadata, 4, 22, mPaint); in onDraw()
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
DFakeView.java76 canvas.drawText("abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", in onDraw()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java2176 public void drawText(@NonNull char[] text, int index, int count, float x, float y,
2178 super.drawText(text, index, count, x, y, paint);
2190 public void drawText(@NonNull String text, float x, float y, @NonNull Paint paint) {
2191 super.drawText(text, x, y, paint);
2205 public void drawText(@NonNull String text, int start, int end, float x, float y,
2207 super.drawText(text, start, end, x, y, paint);
2221 public void drawText(@NonNull CharSequence text, int start, int end, float x, float y,
2223 super.drawText(text, start, end, x, y, paint);
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
DSurfaceInputTestActivity.java138 c.drawText("Local SC", 0, 0, paint); in addLocalChildSurfaceControl()
158 c.drawText("Local", 250, 250, paint);

1234