Home
last modified time | relevance | path

Searched defs:paint (Results 1 – 25 of 147) sorted by relevance

123456

/frameworks/base/core/jni/android/graphics/
DPaint.cpp72 static void defaultSettingsForAndroid(Paint* paint) { in defaultSettingsForAndroid()
90 static Paint* getNativePaint(JNIEnv* env, jobject paint) { in getNativePaint()
100 static TypefaceImpl* getNativeTypeface(JNIEnv* env, jobject paint) { in getNativeTypeface()
131 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint() local
151 static jint getFlags(JNIEnv* env, jobject paint) { in getFlags()
162 static void setFlags(JNIEnv* env, jobject paint, jint flags) { in setFlags()
177 static jint getHinting(JNIEnv* env, jobject paint) { in getHinting()
183 static void setHinting(JNIEnv* env, jobject paint, jint mode) { in setHinting()
189 static void setAntiAlias(JNIEnv* env, jobject paint, jboolean aa) { in setAntiAlias()
194 static void setLinearText(JNIEnv* env, jobject paint, jboolean linearText) { in setLinearText()
[all …]
DMinikinSkia.cpp36 SkPaint paint; in GetGlyph() local
45 …inikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) { in MinikinFontSkia_SetSkiaPaint()
101 uint32_t MinikinFontSkia::packPaintFlags(const SkPaint* paint) { in packPaintFlags()
113 void MinikinFontSkia::unpackPaintFlags(SkPaint* paint, uint32_t paintFlags) { in unpackPaintFlags()
118 void MinikinFontSkia::populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) { in populateSkPaint()
DMinikinUtils.cpp30 const Paint* paint, TypefaceImpl* typeface) { in prepareMinikinPaint()
56 void MinikinUtils::doLayout(Layout* layout, const Paint* paint, int bidiFlags, in doLayout()
66 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const Layout& layout) { in xOffsetForTextAlign()
80 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) { in hOffsetForTextAlign()
/frameworks/base/libs/hwui/
DDisplayListCanvas.cpp136 const SkPaint* paint, SkCanvas::SaveFlags flags) { in saveLayer()
239 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { in drawBitmap()
247 const SkPaint* paint) { in drawBitmap()
255 const SkPaint* paint) { in drawBitmap()
278 float dstRight, float dstBottom, const SkPaint* paint) { in drawBitmap()
323 const float* vertices, const int* colors, const SkPaint* paint) { in drawBitmapMesh()
334 float left, float top, float right, float bottom, const SkPaint* paint) { in drawPatch()
346 void DisplayListCanvas::drawPaint(const SkPaint& paint) { in drawPaint()
355 const SkPaint& paint) { in drawRect()
360 float rx, float ry, const SkPaint& paint) { in drawRoundRect()
[all …]
DSkiaCanvasProxy.cpp30 void SkiaCanvasProxy::onDrawPaint(const SkPaint& paint) { in onDrawPaint()
35 const SkPaint& paint) { in onDrawPoints()
72 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { in onDrawOval()
76 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { in onDrawRect()
80 void SkiaCanvasProxy::onDrawRRect(const SkRRect& roundRect, const SkPaint& paint) { in onDrawRRect()
93 void SkiaCanvasProxy::onDrawPath(const SkPath& path, const SkPaint& paint) { in onDrawPath()
98 const SkPaint* paint) { in onDrawBitmap()
103 const SkRect& dst, const SkPaint* paint, DrawBitmapRectFlags) { in onDrawBitmapRect()
116 const SkPaint* paint) { in onDrawSprite()
125 int indexCount, const SkPaint& paint) { in onDrawVertices()
[all …]
DPathCache.cpp54 PathDescription::PathDescription(ShapeType type, const SkPaint* paint) in PathDescription()
81 bool PathCache::canDrawAsConvexPath(SkPath* path, const SkPaint* paint) { in canDrawAsConvexPath()
86 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds()
92 void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint, in computeBounds()
111 static void initPaint(SkPaint& paint) { in initPaint()
123 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, in drawPath()
237 const SkPaint* paint) { in addTexture()
372 PathTexture* PathCache::get(const SkPath* path, const SkPaint* paint) { in get()
403 void PathCache::precache(const SkPath* path, const SkPaint* paint) { in precache()
446 float rx, float ry, const SkPaint* paint) { in getRoundRect()
[all …]
DSkiaCanvas.cpp279 const SkPaint* paint, SkCanvas::SaveFlags flags) { in saveLayer()
465 void SkiaCanvas::drawPaint(const SkPaint& paint) { in drawPaint()
473 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, in drawPoints()
487 void SkiaCanvas::drawPoint(float x, float y, const SkPaint& paint) { in drawPoint()
491 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { in drawPoints()
496 const SkPaint& paint) { in drawLine()
500 void SkiaCanvas::drawLines(const float* points, int count, const SkPaint& paint) { in drawLines()
505 const SkPaint& paint) { in drawRect()
511 float rx, float ry, const SkPaint& paint) { in drawRoundRect()
516 void SkiaCanvas::drawCircle(float x, float y, float radius, const SkPaint& paint) { in drawCircle()
[all …]
DGammaFontRenderer.h73 FontRenderer& getFontRenderer(const SkPaint* paint) override { in getFontRenderer()
119 FontRenderer& getFontRenderer(const SkPaint* paint) override { in getFontRenderer()
135 void describe(ProgramDescription& description, const SkPaint* paint) const override { in describe()
171 void describe(ProgramDescription& description, const SkPaint* paint) const override { in describe()
DDisplayListCanvas.h160 SkPaint paint; in saveLayerAlpha() local
196 virtual void drawPoint(float x, float y, const SkPaint& paint) override { in drawPoint()
202 const SkPaint& paint) override { in drawLine()
217 const uint16_t* indices, int indexCount, const SkPaint& paint) override in drawVertices()
292 inline const SkPaint* refPaint(const SkPaint* paint) { in refPaint()
322 inline SkPaint* copyPaint(const SkPaint* paint) { in copyPaint()
DOpenGLRenderer.h176 const SkPaint* paint, int flags) { in saveLayer()
292 static inline void getAlphaAndModeDirect(const SkPaint* paint, int* alpha, in getAlphaAndModeDirect()
298 static inline SkXfermode::Mode getXfermodeDirect(const SkPaint* paint) { in getXfermodeDirect()
303 static inline int getAlphaDirect(const SkPaint* paint) { in getAlphaDirect()
315 static inline bool getTextShadow(const SkPaint* paint, TextShadow* textShadow) { in getTextShadow()
329 static inline bool hasTextShadow(const SkPaint* paint) { in hasTextShadow()
/frameworks/base/core/java/android/text/
DBoringLayout.java39 TextPaint paint, int outerwidth, in make()
49 TextPaint paint, int outerwidth, in make()
64 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, in replaceOrMake()
86 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, in replaceOrMake()
106 paint, outerwidth, align, spacingmult, in replaceOrMake() local
113 init(getText(), paint, outerwidth, align, spacingmult, spacingadd, in replaceOrMake() local
119 TextPaint paint, int outerwidth, in BoringLayout()
134 TextPaint paint, int outerwidth, in BoringLayout()
156 paint, outerwidth, align, spacingmult, in BoringLayout() local
164 init(getText(), paint, outerwidth, align, spacingmult, spacingadd, in BoringLayout() local
[all …]
/frameworks/base/libs/hwui/utils/
DPaintUtils.h40 static inline GLenum getFilter(const SkPaint* paint) { in getFilter()
48 static inline bool paintWillNotDraw(const SkPaint& paint) { in paintWillNotDraw()
55 static inline bool paintWillNotDrawText(const SkPaint& paint) { in paintWillNotDrawText()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java443 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { in saveLayer()
453 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { in saveLayer()
460 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer()
470 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer()
1020 public void drawPaint(@NonNull Paint paint) { in drawPaint()
1041 @NonNull Paint paint) { in drawPoints()
1048 public void drawPoints(@Size(multiple=2) @NonNull float[] pts, @NonNull Paint paint) { in drawPoints()
1055 public void drawPoint(float x, float y, @NonNull Paint paint) { in drawPoint()
1072 @NonNull Paint paint) { in drawLine()
1091 public void drawLines(@Size(min=4,multiple=2) float[] pts, int offset, int count, Paint paint) { in drawLines()
[all …]
DLayerRasterizer.java30 public void addLayer(Paint paint, float dx, float dy) { in addLayer()
34 public void addLayer(Paint paint) { in addLayer()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DOvalShape.java35 public void draw(Canvas canvas, Paint paint) { in draw()
36 canvas.drawOval(rect(), paint); in draw() local
DArcShape.java46 public void draw(Canvas canvas, Paint paint) { in draw()
47 canvas.drawArc(rect(), mStart, mSweep, true, paint); in draw() local
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DReplacementDrawableSpan.java28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { in setupFontMetrics()
45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { in getSize()
52 int y, int bottom, Paint paint) { in draw()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp83 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer() local
204 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint() local
210 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint() local
226 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints() local
232 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine() local
248 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines() local
254 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect() local
260 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRoundRect() local
266 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawCircle() local
272 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawOval() local
[all …]
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java258 void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint) { in drawHardwareLayer()
271 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch()
281 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch()
290 float left, float top, float right, float bottom, long paint); in nDrawPatch()
293 CanvasProperty<Float> radius, CanvasProperty<Paint> paint) { in drawCircle()
303 CanvasProperty<Float> ry, CanvasProperty<Paint> paint) { in drawRoundRect()
315 public void drawPath(Path path, Paint paint) { in drawPath()
325 private static native void nDrawRects(long renderer, long region, long paint); in nDrawRects()
/frameworks/base/libs/hwui/font/
DFont.cpp47 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) in FontDescription()
282 CachedGlyphInfo* Font::getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) { in getCachedGlyph()
299 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render()
305 void Font::render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, in render()
355 void Font::measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, in measure()
365 void Font::precache(const SkPaint* paint, const char* text, int numGlyphs) { in precache()
386 void Font::render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, in render()
430 void Font::updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, in updateGlyphCache()
474 CachedGlyphInfo* Font::cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) { in cacheGlyph()
489 Font* Font::create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) { in create()
/frameworks/minikin/sample/
DMinikinSkia.cpp18 SkPaint paint; in GetGlyph() local
28 …d MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { in MinikinFontSkia_SetSkiaPaint()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java85 void draw(Graphics2D graphics, Paint_Delegate paint); in draw()
247 public GcSnapshot saveLayer(RectF layerBounds, Paint_Delegate paint, int flags) { in saveLayer()
273 private GcSnapshot(GcSnapshot previous, RectF layerBounds, Paint_Delegate paint, int flags) { in GcSnapshot()
575 public void draw(Drawable drawable, Paint_Delegate paint, boolean compositeOnly, in draw()
603 private void drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, in drawInLayer()
677 private void drawOnGraphics(Graphics2D g, Drawable drawable, Paint_Delegate paint, in drawOnGraphics()
769 private Graphics2D createCustomGraphics(Graphics2D original, Paint_Delegate paint, in createCustomGraphics()
796 private boolean setShader(Graphics2D g, Paint_Delegate paint) { in setShader()
819 private void setComposite(Graphics2D g, Paint_Delegate paint, boolean usePaintAlpha, in setComposite()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java197 long paint, int layerFlags) { in native_saveLayer()
524 /*package*/ static void native_drawPaint(long nativeCanvas, long paint) { in native_drawPaint()
549 long paint) { in native_drawLine()
577 final float left, final float top, final float right, final float bottom, long paint) { in native_drawRect()
603 final float top, final float right, final float bottom, long paint) { in native_drawOval()
630 float cx, float cy, float radius, long paint) { in native_drawCircle()
640 final boolean useCenter, long paint) { in native_drawArc()
671 final float rx, final float ry, long paint) { in native_drawRoundRect()
699 /*package*/ static void native_drawPath(long nativeCanvas, long path, long paint) { in native_drawPath()
852 float startX, float startY, int flags, long paint, long typeface) { in native_drawText()
[all …]
/frameworks/base/core/java/android/text/style/
DReplacementSpan.java25 public abstract int getSize(Paint paint, CharSequence text, in getSize()
30 int top, int y, int bottom, Paint paint); in draw()
DLocaleSpan.java87 public void updateMeasureState(TextPaint paint) { in updateMeasureState()
91 private static void apply(Paint paint, Locale locale) { in apply()

123456