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

123456

/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.cpp52 Paint paint; variable
53 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
54 paint.setAntiAlias(true);
55 paint.setColor(Color::Black);
57 paint.setTextSize(10 + (frameNr % 20) + i * 20);
59 0, 100 * (i + 2), kBidi_Force_LTR, paint, nullptr);
/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/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java35 public void draw(Canvas canvas, Paint paint) { argument
36 canvas.drawOval(rect(), paint);
H A DArcShape.java47 public void draw(Canvas canvas, Paint paint) { argument
48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
H A DRectShape.java36 public void draw(Canvas canvas, Paint paint) { argument
37 canvas.drawRect(mRect, paint);
H A DPathShape.java55 public void draw(Canvas canvas, Paint paint) { argument
58 canvas.drawPath(mPath, paint);
H A DShape.java53 * @param paint the Paint object that defines this shape's characteristics
55 public abstract void draw(Canvas canvas, Paint paint); argument
/frameworks/base/libs/hwui/hwui/
H A DPaintImpl.cpp26 Paint::Paint(const Paint& paint) : SkPaint(paint), argument
27 mLetterSpacing(paint.mLetterSpacing), mFontFeatureSettings(paint.mFontFeatureSettings),
28 mMinikinLangListId(paint.mMinikinLangListId), mFontVariant(paint.mFontVariant),
29 mHyphenEdit(paint.mHyphenEdit) {
32 Paint::Paint(const SkPaint& paint) : SkPaint(paint), argument
H A DMinikinUtils.h38 const Paint* paint, Typeface* typeface);
40 ANDROID_API static void doLayout(Layout* layout, const Paint* paint, int bidiFlags,
44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
49 ANDROID_API static float xOffsetForTextAlign(Paint* paint, const Layout& layout);
51 ANDROID_API static float hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path);
54 ANDROID_API static void forFontRun(const Layout& layout, Paint* paint, F& f) { argument
55 float saveSkewX = paint->getTextSkewX();
56 bool savefakeBold = paint->isFakeBoldText();
63 MinikinFontSkia::populateSkPaint(paint, curFont, layout.getFakery(start));
65 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(),
H A DPathDashPathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DPathEffect_Delegate.java55 public abstract Stroke getStroke(Paint_Delegate paint); argument
/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
H A DReplacementSpan.java35 * @param paint Paint instance.
42 public abstract int getSize(@NonNull Paint paint, CharSequence text, argument
57 * @param paint Paint instance.
61 int top, int y, int bottom, @NonNull Paint paint);
59 draw(@onNull Canvas canvas, CharSequence text, @IntRange(from = 0) int start, @IntRange(from = 0) int end, float x, int top, int y, int bottom, @NonNull Paint paint) argument
H A DStyleSpan.java87 public void updateMeasureState(TextPaint paint) { argument
88 apply(paint, mStyle);
91 private static void apply(Paint paint, int style) { argument
94 Typeface old = paint.getTypeface();
113 paint.setFakeBoldText(true);
117 paint.setTextSkewX(-0.25f);
120 paint.setTypeface(tf);
H A DTypefaceSpan.java79 public void updateMeasureState(TextPaint paint) { argument
80 apply(paint, mFamily);
83 private static void apply(Paint paint, String family) { argument
86 Typeface old = paint.getTypeface();
97 paint.setFakeBoldText(true);
101 paint.setTextSkewX(-0.25f);
104 paint.setTypeface(tf);
/frameworks/base/graphics/java/android/graphics/
H A DLayerRasterizer.java27 the specified paint, but will not retain a reference to the paint
30 public void addLayer(Paint paint, float dx, float dy) { argument
31 nativeAddLayer(native_instance, paint.getNativeInstance(), dx, dy);
34 public void addLayer(Paint paint) { argument
35 nativeAddLayer(native_instance, paint.getNativeInstance(), 0, 0);
/frameworks/minikin/sample/
H A DMinikinSkia.cpp18 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { argument
21 // TODO: set more paint parameters from Minikin
22 skPaint->setTextSize(paint.size);
26 const MinikinPaint &paint) const {
30 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint);
39 const MinikinPaint& paint) const {
43 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint);

Completed in 279 milliseconds

123456