Searched defs:paint (Results 1 - 25 of 157) sorted by relevance

1234567

/frameworks/base/libs/hwui/tests/unit/
H A DOpDumperTests.cpp26 SkPaint paint; local
27 RectOp op(uirenderer::Rect(100, 100), Matrix4::identity(), nullptr, &paint); local
H A DTextDropShadowCacheTests.cpp30 SkPaint paint; local
31 paint.setTextSize(20);
35 fontRenderer.setFont(&paint, SkMatrix::I());
43 TestUtils::layoutTextUnscaled(paint, "This is a test",
47 ShadowTexture* texture = cache.get(&paint, glyphs.data(), glyphs.size(), 10, positions.data());
H A DFontRendererTests.cpp32 SkPaint paint; local
33 paint.setTextSize(10);
34 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
37 fontRenderer.setFont(&paint, SkMatrix::I());
43 TestUtils::layoutTextUnscaled(paint, "This is a test",
47 auto result = fontRenderer.renderDropShadow(&paint, glyphs.data(), glyphs.size(),
/frameworks/base/libs/hwui/tests/common/scenes/
H A DGlyphStressAnimation.cpp53 Paint paint; variable
54 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
55 paint.setAntiAlias(true);
56 paint.setColor(Color::Black);
58 paint.setTextSize(10 + (frameNr % 20) + i * 20);
60 0, 100 * (i + 2), minikin::kBidi_Force_LTR, paint, nullptr);
H A DReadbackFromHardwareBitmap.cpp35 SkPaint paint; local
36 paint.setColor(Color::Blue_500);
37 canvas.drawRect(SkRect::MakeXYWH(30, 30, 30, 150), paint);
38 canvas.drawRect(SkRect::MakeXYWH(30, 30, 100, 30), paint);
39 canvas.drawRect(SkRect::MakeXYWH(30, 100, 70, 30), paint);
H A DBitmapShaders.cpp49 SkPaint paint; variable
56 paint.setShader(std::move(repeatShader));
57 canvas.drawRoundRect(0, 0, 500, 500, 50.0f, 50.0f, paint);
63 paint.setShader(std::move(mirrorShader));
64 canvas.drawRoundRect(0, 600, 500, 1100, 50.0f, 50.0f, paint);
H A DListViewAnimation.cpp39 SkPaint paint; local
40 paint.setAntiAlias(true);
42 paint.setColor(randomColor);
43 canvas.drawCircle(size / 2, size / 2, size / 2, paint);
47 paint.setColor(bgDark ? Color::White : Color::Grey_700);
48 paint.setTextAlign(SkPaint::kCenter_Align);
49 paint.setTextSize(size / 2);
54 canvas.drawPosText(&charToShow, 1, pos, paint);
66 SkPaint paint;
67 paint
[all...]
H A DHwBitmapInCompositeShader.cpp70 SkPaint paint; variable
71 paint.setShader(std::move(compositeShader));
72 canvas.drawRoundRect(0, 0, 400, 200, 10.0f, 10.0f, paint);
H A DSimpleGradientAnimation.cpp54 SkPaint paint; local
59 paint.setShader(SkGradientShader::MakeLinear(pts, colors + (i % 2), pos, 2,
61 canvas.drawRect(i, i, width, height, paint);
/frameworks/base/graphics/java/android/graphics/
H A DLayerRasterizer.java28 the specified paint, but will not retain a reference to the paint
31 public void addLayer(Paint paint, float dx, float dy) { } argument
33 public void addLayer(Paint paint) { } argument
/frameworks/base/core/jni/android/graphics/
H A DCanvasProperty.cpp34 const Paint* paint = reinterpret_cast<const Paint*>(paintPtr); local
35 return reinterpret_cast<jlong>(new CanvasPropertyPaint(*paint));
/frameworks/base/libs/hwui/hwui/
H A DPaintImpl.cpp26 Paint::Paint(const Paint& paint) : SkPaint(paint), argument
27 mLetterSpacing(paint.mLetterSpacing), mWordSpacing(paint.mWordSpacing),
28 mFontFeatureSettings(paint.mFontFeatureSettings),
29 mMinikinLangListId(paint.mMinikinLangListId), mFontVariant(paint.mFontVariant),
30 mHyphenEdit(paint.mHyphenEdit) {
33 Paint::Paint(const SkPaint& paint) : SkPaint(paint), argument
[all...]
H A DMinikinUtils.h38 const Paint* paint, Typeface* typeface);
40 ANDROID_API static minikin::Layout doLayout(const Paint* paint, int bidiFlags,
44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
50 ANDROID_API static float xOffsetForTextAlign(Paint* paint, const minikin::Layout& layout);
52 ANDROID_API static float hOffsetForTextAlign(Paint* paint, const minikin::Layout& layout,
56 ANDROID_API static void forFontRun(const minikin::Layout& layout, Paint* paint, F& f) { argument
57 float saveSkewX = paint->getTextSkewX();
58 bool savefakeBold = paint->isFakeBoldText();
65 MinikinFontSkia::populateSkPaint(paint, curFont, layout.getFakery(start));
67 paint
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DComposePathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DCornerPathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DDiscretePathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DSumPathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DDashPathEffect_Delegate.java52 public Stroke getStroke(Paint_Delegate paint) { argument
54 paint.getStrokeWidth(),
55 paint.getJavaCap(),
56 paint.getJavaJoin(),
57 paint.getJavaStrokeMiter(),
/frameworks/support/compat/java/android/support/v4/graphics/
H A DPaintCompat.java29 * Determine whether the typeface set on the paint has a glyph supporting the
32 * @param paint the paint instance to check
34 * @return true if the typeface set on the given paint has a glyph for the string
36 public static boolean hasGlyph(@NonNull Paint paint, @NonNull String string) { argument
38 return paint.hasGlyph(string);
40 return PaintCompatApi14.hasGlyph(paint, string);
/frameworks/base/core/java/android/text/style/
H A DLineHeightSpan.java32 Paint.FontMetricsInt fm, TextPaint paint);
30 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java36 public void draw(Canvas canvas, Paint paint) { argument
37 canvas.drawOval(rect(), paint);
H A DRectShape.java37 public void draw(Canvas canvas, Paint paint) { argument
38 canvas.drawRect(mRect, paint);
/frameworks/base/libs/hwui/
H A DProfileRenderer.cpp23 const SkPaint& paint) {
24 mRenderer.drawRect(left, top, right, bottom, &paint);
27 void ProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { argument
28 mRenderer.drawRects(rects, count, &paint);
22 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument
/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.cpp64 SkPaint paint; local
65 paint.setAlpha(layer->getAlpha());
66 paint.setBlendMode(layer->getMode());
67 paint.setColorFilter(sk_ref_sp(layer->getColorFilter()));
68 canvas->drawImage(layerImage, 0, 0, &paint);
H A DSkiaProfileRenderer.cpp23 const SkPaint& paint) {
25 mCanvas->drawRect(rect, paint);
28 void SkiaProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { argument
32 mCanvas->drawRect(rect, paint);
22 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument

Completed in 277 milliseconds

1234567