Searched refs:paint (Results 1 - 25 of 171) sorted by relevance

1234567

/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);
H A DCanvas.java38 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
437 * @param paint This is copied, and is applied to the offscreen when
443 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument
447 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags);
451 * Convenience for saveLayer(bounds, paint, {@link #ALL_SAVE_FLAG})
453 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { argument
454 return saveLayer(bounds, paint, ALL_SAVE_FLAG);
460 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument
463 paint != null ? paint
470 saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) argument
1020 drawPaint(@onNull Paint paint) argument
1040 drawPoints(@izemultiple=2) float[] pts, int offset, int count, @NonNull Paint paint) argument
1048 drawPoints(@izemultiple=2) @onNull float[] pts, @NonNull Paint paint) argument
1055 drawPoint(float x, float y, @NonNull Paint paint) argument
1071 drawLine(float startX, float startY, float stopX, float stopY, @NonNull Paint paint) argument
1091 drawLines(@izemin=4,multiple=2) float[] pts, int offset, int count, Paint paint) argument
1095 drawLines(@izemin=4,multiple=2) @onNull float[] pts, @NonNull Paint paint) argument
1106 drawRect(@onNull RectF rect, @NonNull Paint paint) argument
1118 drawRect(@onNull Rect r, @NonNull Paint paint) argument
1133 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument
1143 drawOval(@onNull RectF oval, @NonNull Paint paint) argument
1154 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument
1168 drawCircle(float cx, float cy, float radius, @NonNull Paint paint) argument
1195 drawArc(@onNull RectF oval, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
1222 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
1237 drawRoundRect(@onNull RectF rect, float rx, float ry, @NonNull Paint paint) argument
1249 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument
1261 drawPath(@onNull Path path, @NonNull Paint paint) argument
1288 drawPatch(@onNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) argument
1301 drawPatch(@onNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) argument
1324 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument
1352 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument
1399 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument
1449 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1485 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1499 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument
1539 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument
1605 drawVertices(@onNull VertexMode mode, int vertexCount, @NonNull float[] verts, int vertOffset, @Nullable float[] texs, int texOffset, @Nullable int[] colors, int colorOffset, @Nullable short[] indices, int indexOffset, int indexCount, @NonNull Paint paint) argument
1636 drawText(@onNull char[] text, int index, int count, float x, float y, @NonNull Paint paint) argument
1655 drawText(@onNull String text, float x, float y, @NonNull Paint paint) argument
1671 drawText(@onNull String text, int start, int end, float x, float y, @NonNull Paint paint) argument
1693 drawText(@onNull CharSequence text, int start, int end, float x, float y, @NonNull Paint paint) argument
1737 drawTextRun(@onNull char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1791 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1839 drawPosText(@onNull char[] text, int index, int count, @NonNull @Size(multiple=2) float[] pos, @NonNull Paint paint) argument
1863 drawPosText(@onNull String text, @NonNull @Size(multiple=2) float[] pos, @NonNull Paint paint) argument
1881 drawTextOnPath(@onNull char[] text, int index, int count, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
1904 drawTextOnPath(@onNull String text, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DMinikinUtils.h37 const Paint* paint, TypefaceImpl* typeface);
39 static void doLayout(Layout* layout, const Paint* paint, int bidiFlags,
43 static float xOffsetForTextAlign(Paint* paint, const Layout& layout);
45 static float hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path);
48 static void forFontRun(const Layout& layout, Paint* paint, F& f) { argument
49 float saveSkewX = paint->getTextSkewX();
50 bool savefakeBold = paint->isFakeBoldText();
57 MinikinFontSkia::populateSkPaint(paint, curFont, layout.getFakery(start));
59 paint->setTextSkewX(saveSkewX);
60 paint
[all...]
H A DMinikinSkia.cpp36 SkPaint paint; local
37 paint.setTypeface(mTypeface);
38 paint.setTextEncoding(SkPaint::kUTF32_TextEncoding);
40 paint.textToGlyphs(&codepoint, sizeof(codepoint), &glyph16);
45 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) { argument
47 skPaint->setTextSize(paint.size);
48 skPaint->setTextScaleX(paint.scaleX);
49 skPaint->setTextSkewX(paint.skewX);
50 MinikinFontSkia::unpackPaintFlags(skPaint, paint.paintFlags);
52 MinikinFontSkia::populateSkPaint(skPaint, font, paint
101 packPaintFlags(const SkPaint* paint) argument
113 unpackPaintFlags(SkPaint* paint, uint32_t paintFlags) argument
118 populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) argument
[all...]
H A DMinikinUtils.cpp30 const Paint* paint, TypefaceImpl* typeface) {
36 const std::string& lang = paint->getTextLocale();
38 FontVariant minikinVariant = (paint->getFontVariant() == VARIANT_ELEGANT) ? VARIANT_ELEGANT
46 minikinPaint->size = (int)paint->getTextSize();
47 minikinPaint->scaleX = paint->getTextScaleX();
48 minikinPaint->skewX = paint->getTextSkewX();
49 minikinPaint->letterSpacing = paint->getLetterSpacing();
50 minikinPaint->paintFlags = MinikinFontSkia::packPaintFlags(paint);
51 minikinPaint->fontFeatureSettings = paint->getFontFeatureSettings();
52 minikinPaint->hyphenEdit = HyphenEdit(paint
29 prepareMinikinPaint(MinikinPaint* minikinPaint, FontCollection** pFont, const Paint* paint, TypefaceImpl* typeface) argument
56 doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument
66 xOffsetForTextAlign(Paint* paint, const Layout& layout) argument
80 hOffsetForTextAlign(Paint* paint, const Layout& layout, const SkPath& path) argument
[all...]
H A DMinikinSkia.h34 const MinikinPaint &paint) const;
37 const MinikinPaint &paint) const;
46 static uint32_t packPaintFlags(const SkPaint* paint);
47 static void unpackPaintFlags(SkPaint* paint, uint32_t paintFlags);
50 static void populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery);
H A DPaint.cpp72 static void defaultSettingsForAndroid(Paint* paint) { argument
74 paint->setTextEncoding(Paint::kGlyphID_TextEncoding);
90 static Paint* getNativePaint(JNIEnv* env, jobject paint) { argument
92 SkASSERT(paint);
93 SkASSERT(env->IsInstanceOf(paint, gPaint_class));
94 jlong paintHandle = env->GetLongField(paint, gPaint_nativeInstanceID);
100 static TypefaceImpl* getNativeTypeface(JNIEnv* env, jobject paint) { argument
102 SkASSERT(paint);
103 SkASSERT(env->IsInstanceOf(paint, gPaint_class));
104 jlong typefaceHandle = env->GetLongField(paint, gPaint_nativeTypefaceI
131 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
151 getFlags(JNIEnv* env, jobject paint) argument
162 setFlags(JNIEnv* env, jobject paint, jint flags) argument
177 getHinting(JNIEnv* env, jobject paint) argument
183 setHinting(JNIEnv* env, jobject paint, jint mode) argument
189 setAntiAlias(JNIEnv* env, jobject paint, jboolean aa) argument
194 setLinearText(JNIEnv* env, jobject paint, jboolean linearText) argument
199 setSubpixelText(JNIEnv* env, jobject paint, jboolean subpixelText) argument
204 setUnderlineText(JNIEnv* env, jobject paint, jboolean underlineText) argument
209 setStrikeThruText(JNIEnv* env, jobject paint, jboolean strikeThruText) argument
214 setFakeBoldText(JNIEnv* env, jobject paint, jboolean fakeBoldText) argument
219 setFilterBitmap(JNIEnv* env, jobject paint, jboolean filterBitmap) argument
225 setDither(JNIEnv* env, jobject paint, jboolean dither) argument
241 getColor(JNIEnv* env, jobject paint) argument
248 getAlpha(JNIEnv* env, jobject paint) argument
255 setColor(JNIEnv* env, jobject paint, jint color) argument
260 setAlpha(JNIEnv* env, jobject paint, jint a) argument
265 getStrokeWidth(JNIEnv* env, jobject paint) argument
270 setStrokeWidth(JNIEnv* env, jobject paint, jfloat width) argument
275 getStrokeMiter(JNIEnv* env, jobject paint) argument
280 setStrokeMiter(JNIEnv* env, jobject paint, jfloat miter) argument
419 isElegantTextHeight(JNIEnv* env, jobject paint) argument
425 setElegantTextHeight(JNIEnv* env, jobject paint, jboolean aa) argument
431 getTextSize(JNIEnv* env, jobject paint) argument
436 setTextSize(JNIEnv* env, jobject paint, jfloat textSize) argument
441 getTextScaleX(JNIEnv* env, jobject paint) argument
446 setTextScaleX(JNIEnv* env, jobject paint, jfloat scaleX) argument
451 getTextSkewX(JNIEnv* env, jobject paint) argument
456 setTextSkewX(JNIEnv* env, jobject paint, jfloat skewX) argument
462 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
467 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
472 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
482 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
487 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
497 Paint* paint = getNativePaint(env, jpaint); local
522 ascent(JNIEnv* env, jobject paint) argument
529 descent(JNIEnv* env, jobject paint) argument
536 getFontMetrics(JNIEnv* env, jobject paint, jobject metricsObj) argument
552 getFontMetricsInt(JNIEnv* env, jobject paint, jobject metricsObj) argument
586 Paint* paint = getNativePaint(env, jpaint); local
615 Paint* paint = getNativePaint(env, jpaint); local
639 Paint* paint = getNativePaint(env, jpaint); local
651 dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int count, jfloatArray widths, jint bidiFlags) argument
681 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
692 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
700 doTextRunAdvances(JNIEnv *env, Paint *paint, TypefaceImpl* typeface, const jchar *text, jint start, jint count, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument
741 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
754 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
764 doTextRunCursor(JNIEnv *env, Paint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
773 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
783 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
793 GetTextFunctor(const Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument
816 Paint* paint; member in class:android::PaintGlue::GetTextFunctor
822 getTextPath(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument
844 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
855 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
865 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
876 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
880 breakText(JNIEnv* env, const Paint& paint, TypefaceImpl* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument
918 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
947 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
957 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, TypefaceImpl* typeface, jint bidiFlags) argument
976 const Paint* paint = reinterpret_cast<Paint*>(paintHandle);; local
985 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
1002 hasGlyphVariation(const Paint* paint, TypefaceImpl* typeface, jint bidiFlags, const jchar* chars, size_t size) argument
1011 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
1055 doRunAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument
1066 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
1076 doOffsetForAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument
1086 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
[all...]
H A DPaintImpl.cpp29 Paint::Paint(const Paint& paint) : SkPaint(paint), argument
30 mLetterSpacing(paint.mLetterSpacing), mFontFeatureSettings(paint.mFontFeatureSettings),
31 mTextLocale(paint.mTextLocale), mFontVariant(paint.mFontVariant),
32 mHyphenEdit(paint.mHyphenEdit) {
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DDisplayModifier.java40 abstract public void modifyDrawing(Paint paint, Canvas canvas); argument
85 public void modifyDrawing(Paint paint, Canvas canvas) {
86 paint.setAntiAlias(true);
91 public void modifyDrawing(Paint paint, Canvas canvas) {
92 paint.setAntiAlias(false);
101 public void modifyDrawing(Paint paint, Canvas canvas) {
102 paint.setStyle(Paint.Style.FILL);
107 public void modifyDrawing(Paint paint, Canvas canvas) {
108 paint.setStyle(Paint.Style.STROKE);
115 public void modifyDrawing(Paint paint, Canva
489 apply(Paint paint, Canvas canvas) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DPaintUtils.h40 static inline GLenum getFilter(const SkPaint* paint) { argument
41 if (!paint || paint->getFilterQuality() != kNone_SkFilterQuality) {
48 static inline bool paintWillNotDraw(const SkPaint& paint) { argument
49 return paint.getAlpha() == 0
50 && !paint.getColorFilter()
51 && getXfermode(paint.getXfermode()) == SkXfermode::kSrcOver_Mode;
55 static inline bool paintWillNotDrawText(const SkPaint& paint) { argument
56 return paint.getAlpha() == 0
57 && paint
[all...]
/frameworks/base/libs/hwui/
H A DCanvas.h75 const SkPaint* paint, SkCanvas::SaveFlags flags) = 0;
111 virtual void drawPaint(const SkPaint& paint) = 0;
114 virtual void drawPoint(float x, float y, const SkPaint& paint) = 0;
115 virtual void drawPoints(const float* points, int count, const SkPaint& paint) = 0;
117 const SkPaint& paint) = 0;
118 virtual void drawLines(const float* points, int count, const SkPaint& paint) = 0;
120 const SkPaint& paint) = 0;
122 float rx, float ry, const SkPaint& paint) = 0;
123 virtual void drawCircle(float x, float y, float radius, const SkPaint& paint) = 0;
125 const SkPaint& paint)
[all...]
H A DSkiaCanvasProxy.cpp30 void SkiaCanvasProxy::onDrawPaint(const SkPaint& paint) { argument
31 mCanvas->drawPaint(paint);
35 const SkPaint& paint) {
47 mCanvas->drawPoints(floatArray, floatCount, paint);
51 mCanvas->drawLines(floatArray, floatCount, paint);
55 SkPaint strokedPaint(paint);
72 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { argument
73 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint);
76 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { argument
77 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint);
34 onDrawPoints(PointMode pointMode, size_t count, const SkPoint pts[], const SkPaint& paint) argument
80 onDrawRRect(const SkRRect& roundRect, const SkPaint& paint) argument
93 onDrawPath(const SkPath& path, const SkPaint& paint) argument
97 onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint) argument
102 onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* srcPtr, const SkRect& dst, const SkPaint* paint, DrawBitmapRectFlags) argument
115 onDrawSprite(const SkBitmap& bitmap, int left, int top, const SkPaint* paint) argument
123 onDrawVertices(VertexMode mode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
147 willSaveLayer(const SkRect* rectPtr, const SkPaint* paint, SaveFlags flags) argument
173 onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) argument
201 SkPaint paint; member in class:android::uirenderer::GlyphIDConverter
301 onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], SkScalar constY, const SkPaint& paint) argument
319 onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) argument
324 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) argument
[all...]
H A DDisplayListCanvas.h99 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
102 float left, float top, float right, float bottom, const SkPaint* paint);
105 void drawRects(const float* rects, int count, const SkPaint* paint);
109 CanvasPropertyPaint* paint);
111 CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint);
156 virtual int saveLayer(float left, float top, float right, float bottom, const SkPaint* paint,
160 SkPaint paint; variable
161 paint.setAlpha(alpha);
162 return saveLayer(left, top, right, bottom, &paint, flags);
193 virtual void drawPaint(const SkPaint& paint) overrid
292 refPaint(const SkPaint* paint) argument
322 copyPaint(const SkPaint* paint) argument
[all...]
H A DOpenGLRenderer.h176 const SkPaint* paint, int flags) {
177 return saveLayer(left, top, right, bottom, paint, flags, nullptr);
183 const SkPaint* paint, int flags, const SkPath* convexMask);
186 const SkPaint* paint, int flags);
190 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint);
192 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint);
194 const SkPaint* paint);
196 const float* vertices, const int* colors, const SkPaint* paint);
198 TextureVertex* vertices, uint32_t indexCount, const SkPaint* paint);
200 float left, float top, float right, float bottom, const SkPaint* paint);
175 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument
292 getAlphaAndModeDirect(const SkPaint* paint, int* alpha, SkXfermode::Mode* mode) argument
298 getXfermodeDirect(const SkPaint* paint) argument
303 getAlphaDirect(const SkPaint* paint) argument
315 getTextShadow(const SkPaint* paint, TextShadow* textShadow) argument
329 hasTextShadow(const SkPaint* paint) argument
726 drawVertexBuffer(const VertexBuffer& vertexBuffer, const SkPaint* paint, int flags = 0) argument
[all...]
H A DDisplayListCanvas.cpp136 const SkPaint* paint, SkCanvas::SaveFlags flags) {
140 paint = refPaint(paint);
141 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags));
239 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { argument
241 paint = refPaint(paint);
243 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint));
247 const SkPaint* paint) {
250 drawBitmap(&bitmap, paint);
135 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, SkCanvas::SaveFlags flags) argument
246 drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) argument
254 drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) argument
276 drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument
322 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
333 drawPatch(const SkBitmap& bitmap, const Res_png_9patch* patch, float left, float top, float right, float bottom, const SkPaint* paint) argument
346 drawPaint(const SkPaint& paint) argument
354 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument
359 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument
364 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument
381 drawCircle(float x, float y, float radius, const SkPaint& paint) argument
385 drawCircle(CanvasPropertyPrimitive* x, CanvasPropertyPrimitive* y, CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) argument
396 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument
401 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument
411 drawPath(const SkPath& path, const SkPaint& paint) argument
415 drawLines(const float* points, int count, const SkPaint& paint) argument
421 drawPoints(const float* points, int count, const SkPaint& paint) argument
427 drawTextOnPath(const uint16_t* glyphs, int count, const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) argument
438 drawPosText(const uint16_t* text, const float* positions, int count, int posCount, const SkPaint& paint) argument
450 simplifyPaint(int color, SkPaint* paint) argument
460 drawText(const uint16_t* glyphs, const float* positions, int count, const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop, float boundsRight, float boundsBottom, float totalAdvance) argument
499 drawRects(const float* rects, int count, const SkPaint* paint) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientStopsActivity.java50 Paint paint = new Paint();
51 paint.setShader(gradient);
53 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
60 paint.setShader(gradient);
63 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
70 paint.setShader(gradient);
73 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
79 paint.setShader(gradient);
82 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
87 paint
[all...]
/frameworks/base/core/java/android/text/style/
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/drawable/shapes/
H A DArcShape.java46 public void draw(Canvas canvas, Paint paint) { argument
47 canvas.drawArc(rect(), mStart, mSweep, true, paint);
/frameworks/support/v7/cardview/jellybean-mr1/android/support/v7/widget/
H A DCardViewJellybeanMr1.java30 Paint paint) {
31 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
/frameworks/base/core/java/android/text/
H A DBoringLayout.java39 TextPaint paint, int outerwidth,
43 return new BoringLayout(source, paint, outerwidth, align,
49 TextPaint paint, int outerwidth,
54 return new BoringLayout(source, paint, outerwidth, align,
64 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, argument
69 replaceWith(source, paint, outerwidth, align, spacingmult,
76 init(source, paint, outerwidth, align, spacingmult, spacingadd,
86 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, argument
96 replaceWith(source, paint, outerwidth, align, spacingmult,
104 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidt
38 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument
48 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
118 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument
133 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
168 init(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, boolean trustWidth) argument
222 isBoring(CharSequence text, TextPaint paint) argument
231 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir) argument
242 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument
252 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument
[all...]
/frameworks/minikin/sample/
H A Dexample_skia.cpp80 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) { argument
88 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding);
96 paint->setTypeface(lastFace);
97 canvas->drawPosText(glyphs + start, (i - start) << 1, pos + start, *paint);
102 paint->setTypeface(skFace);
103 canvas->drawPosText(glyphs + start, (nGlyphs - start) << 1, pos + start, *paint);
134 SkPaint paint; local
135 paint.setARGB(255, 0, 0, 128);
136 paint.setStyle(SkPaint::kStroke_Style);
137 paint
[all...]
H A DMinikinSkia.cpp18 SkPaint paint; local
19 paint.setTypeface(mTypeface);
20 paint.setTextEncoding(SkPaint::kUTF32_TextEncoding);
22 paint.textToGlyphs(&codepoint, sizeof(codepoint), &glyph16);
28 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { argument
31 // TODO: set more paint parameters from Minikin
32 skPaint->setTextSize(paint.size);
36 const MinikinPaint &paint) const {
40 MinikinFontSkia_SetSkiaPaint(mTypeface, &skPaint, paint);
49 const MinikinPaint& paint) cons
[all...]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestViewDrawText.java59 final TextPaint paint = new TextPaint();
60 paint.setTextSize(mSize);
61 paint.setColor(mColor);
62 paint.setTextAlign(Align.CENTER);
64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);

Completed in 2545 milliseconds

1234567