Searched refs:paint (Results 51 - 75 of 218) sorted by relevance

123456789

/frameworks/base/libs/hwui/font/
H A DFont.h55 FontDescription(const SkPaint* paint, const SkMatrix& matrix);
84 void render(const SkPaint* paint, const glyph_t* glyphs,
87 void render(const SkPaint* paint, const glyph_t* glyphs,
97 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix);
113 void precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs);
115 void render(const SkPaint* paint, const glyph_t* glyphs,
119 void measure(const SkPaint* paint, const glyph_t* glyphs,
124 CachedGlyphInfo* cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching);
125 void updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph,
143 CachedGlyphInfo* getCachedGlyph(const SkPaint* paint, glyph_
[all...]
H A DFont.cpp44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) argument
46 mFontId = SkTypeface::UniqueID(paint->getTypeface());
47 mFontSize = paint->getTextSize();
49 if (paint->isFakeBoldText()) {
52 mItalicStyle = paint->getTextSkewX();
53 mScaleX = paint->getTextScaleX();
54 mStyle = paint->getStyle();
55 mStrokeWidth = paint->getStrokeWidth();
56 mAntiAliasing = paint->isAntiAlias();
57 mHinting = paint
277 getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) argument
294 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions) argument
300 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset) argument
348 measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect *bounds, const float* positions) argument
358 precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs) argument
377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
426 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument
470 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument
485 create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DNinePatchImpl.cpp65 const SkBitmap& bitmap, const SkPaint& paint,
69 ((SkPaint*)&paint)->setColor(modAlpha(colorHint, paint.getAlpha()));
70 canvas->drawRect(dst, paint);
71 ((SkPaint*)&paint)->setColor(initColor);
78 SkColor prev = paint.getColor();
79 ((SkPaint*)&paint)->setColor(c);
80 canvas->drawRect(dst, paint);
81 ((SkPaint*)&paint)->setColor(prev);
85 canvas->drawBitmapRect(bitmap, SkRect::Make(src), dst, &paint);
64 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument
98 Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { argument
29 sWorkPaint.set(paint);
45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { argument
46 setupFontMetrics(fm, paint);
52 int y, int bottom, Paint paint) {
51 draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp94 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
96 return static_cast<jint>(get_canvas(canvasHandle)->saveLayer(l, t, r, b, paint, flags));
215 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
216 get_canvas(canvasHandle)->drawPaint(*paint);
221 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
222 get_canvas(canvasHandle)->drawPoint(x, y, *paint);
237 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
238 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint);
243 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
244 get_canvas(canvasHandle)->drawLine(startX, startY, stopX, stopY, *paint);
259 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
265 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
272 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
278 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
284 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
290 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
297 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
305 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
334 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
348 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
378 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
411 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
422 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
459 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
470 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
480 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
491 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
503 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
517 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
534 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
549 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java191 final Paint paint = new Paint();
192 paint.setAntiAlias(BITMAP_RENDERING_ANTIALIAS);
193 paint.setDither(BITMAP_RENDERING_DITHER);
194 paint.setColor(color);
195 paint.setStyle(Paint.Style.STROKE);
196 paint.setStrokeJoin(Paint.Join.ROUND);
197 paint.setStrokeCap(Paint.Cap.ROUND);
198 paint.setStrokeWidth(BITMAP_RENDERING_WIDTH);
205 canvas.drawPath(path, paint);
225 final Paint paint
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpStateTests.cpp32 SkPaint paint; local
34 RectOp recordedOp(Rect(30, 40, 100, 200), translate10x20, &clip, &paint);
67 SkPaint paint; local
69 RectOp recordedOp(Rect(1000, 1000), translate10x20, &clip, &paint);
182 SkPaint paint; local
186 RectOp successOp(Rect(30, 40, 100, 200), Matrix4::identity(), &clip, &paint); local
193 RectOp rejectOp(Rect(30, 40, 100, 200), translate100x0, &clip, &paint);
230 SkPaint paint; local
231 paint.setStyle(SkPaint::kStrokeAndFill_Style);
232 paint
234 RectOp rejectOp(Rect(100, 200), Matrix4::identity(), &clip, &paint); local
244 SkPaint paint; local
248 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
259 SkPaint paint; local
263 RectOp rejectOp(Rect(50, 50, 150, 150), Matrix4::identity(), &clip, &paint); local
[all...]
H A DOpDumperTests.cpp26 SkPaint paint; local
27 RectOp op(uirenderer::Rect(100, 100), Matrix4::identity(), nullptr, &paint); local
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.h156 const SkPaint* paint, int flags) {
157 return saveLayer(left, top, right, bottom, paint, flags, nullptr);
163 const SkPaint* paint, int flags, const SkPath* convexMask);
166 const SkPaint* paint, int flags);
170 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
172 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint);
174 const SkPaint* paint);
176 const float* vertices, const int* colors, const SkPaint* paint);
178 TextureVertex* vertices, uint32_t indexCount, const SkPaint* paint);
180 float left, float top, float right, float bottom, const SkPaint* paint);
155 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument
625 drawVertexBuffer(const VertexBuffer& vertexBuffer, const SkPaint* paint, int flags = 0) argument
[all...]
H A DBakedOpDispatcher.cpp82 .setFillTexturePaint(*texture, textureFillFlags, firstState.op->paint, firstState.alpha)
188 .setFillTexturePaint(*texture, textureFillFlags, firstOp.paint, firstState.alpha)
199 if (CC_LIKELY(!PaintUtils::hasTextShadow(op.paint))) return;
202 fontRenderer.setFont(op.paint, SkMatrix::I());
206 if (!PaintUtils::getTextShadow(op.paint, &textShadow)) {
212 op.paint, op.glyphs, op.glyphCount, textShadow.radius, op.positions);
225 .setFillShadowTexturePaint(*texture, textShadow.color, *op.paint, textOpState.alpha)
235 const bool expandForStroke = op.paint->getStyle() != SkPaint::kFill_Style;
237 shadowBounds.outset(op.paint->getStrokeWidth() * 0.5f);
243 (!transform.isPureTranslate() || op.paint
346 renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state, const VertexBuffer& vertexBuffer, float translateX, float translateY, const SkPaint& paint, int vertexBufferRenderFlags) argument
366 renderConvexPath(BakedOpRenderer& renderer, const BakedOpState& state, const SkPath& path, const SkPaint& paint) argument
374 renderPathTexture(BakedOpRenderer& renderer, const BakedOpState& state, float xOffset, float yOffset, PathTexture& texture, const SkPaint& paint) argument
544 SkPaint paint; local
704 SkPaint paint; local
796 SkPaint paint; local
[all...]
H A DPathTessellator.h61 * Two instances of the same shape (size, paint, etc.) will only generate the same vertices if
71 * @param paint The paint the path will be drawn with, indicating AA, painting style
77 static void tessellatePath(const SkPath& path, const SkPaint* paint,
82 * strip (with degenerate tris separating), respecting the shape defined by the paint cap.
86 * @param paint The paint the points will be drawn with indicating AA, stroke width & cap
91 static void tessellatePoints(const float* points, int count, const SkPaint* paint,
100 * @param paint The paint th
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DListViewAnimation.cpp88 SkPaint paint; local
89 paint.setAntiAlias(true);
91 paint.setColor(randomColor);
92 canvas.drawCircle(size / 2, size / 2, size / 2, paint);
96 paint.setColor(bgDark ? Color::White : Color::Grey_700);
97 paint.setTextAlign(SkPaint::kCenter_Align);
98 paint.setTextSize(size / 2);
100 canvas.drawText(&charToShow, 1, size / 2, /*approximate centering*/ size * 0.7, paint);
111 SkPaint paint;
112 paint
[all...]
/frameworks/base/core/java/android/text/style/
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 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 DPathShape.java55 public void draw(Canvas canvas, Paint paint) { argument
58 canvas.drawPath(mPath, paint);
H A DRectShape.java36 public void draw(Canvas canvas, Paint paint) { argument
37 canvas.drawRect(mRect, paint);
/frameworks/minikin/tests/
H A DMinikinFontForTest.h31 float GetHorizontalAdvance(uint32_t glyph_id, const android::MinikinPaint &paint) const;
33 const android::MinikinPaint& paint) const;
/frameworks/base/core/java/android/view/
H A DHardwareLayer.java50 * Update the paint used when drawing this layer.
52 * @param paint The paint used when the layer is drawn into the destination canvas.
55 public void setLayerPaint(@Nullable Paint paint) { argument
56 nSetLayerPaint(mFinalizer.get(), paint != null ? paint.getNativeInstance() : 0);
149 private static native void nSetLayerPaint(long layerUpdater, long paint); argument
/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
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp69 static void defaultSettingsForAndroid(Paint* paint) { argument
71 paint->setTextEncoding(Paint::kGlyphID_TextEncoding);
79 static void deletePaint(Paint* paint) { argument
80 delete paint;
104 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
105 Paint* obj = new Paint(*paint);
140 // Don't pass through filter flag, which is no longer stored in paint's flags.
368 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
369 return paint->getLetterSpacing();
373 Paint* paint local
378 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
388 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
393 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
404 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
477 doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, const jchar *text, jint start, jint count, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument
512 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
525 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
535 doTextRunCursor(JNIEnv *env, Paint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
544 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
554 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
564 GetTextFunctor(const Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument
587 Paint* paint; member in class:android::PaintGlue::GetTextFunctor
593 getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument
615 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
626 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
636 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
647 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
651 breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument
687 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
716 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
726 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, Typeface* typeface, jint bidiFlags) argument
745 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
754 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
804 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
878 doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument
894 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
904 doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument
916 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
[all...]
H A DDrawFilter.cpp44 virtual bool filter(SkPaint* paint, Type type) { argument
45 SkPaintFlagsDrawFilter::filter(paint, type);
46 paint->setFilterQuality(fDesiredQuality);
H A DRasterizer.cpp82 const Paint* paint = reinterpret_cast<Paint *>(paintHandle); local
84 SkASSERT(paint);
85 nr->fBuilder.addLayer(*paint, dx, dy);

Completed in 1427 milliseconds

123456789