/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | DisplayModifier.java | 40 abstract public void modifyDrawing(Paint paint, Canvas canvas); in modifyDrawing() 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, Canvas canvas) { [all …]
|
/frameworks/base/core/java/android/view/ |
D | GLES20Canvas.java | 431 void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint) { in drawHardwareLayer() argument 432 layer.setLayerPaint(paint); in drawHardwareLayer() 646 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer() argument 648 … return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer() 652 int modifier = paint != null ? setupColorFilter(paint) : MODIFIER_NONE; in saveLayer() 654 final int nativePaint = paint == null ? 0 : paint.mNativePaint; in saveLayer() 662 private static native int nSaveLayer(int renderer, int paint, int saveFlags); in nSaveLayer() argument 665 public int saveLayer(float left, float top, float right, float bottom, Paint paint, in saveLayer() argument 669 int modifier = paint != null ? setupColorFilter(paint) : MODIFIER_NONE; in saveLayer() 671 final int nativePaint = paint == null ? 0 : paint.mNativePaint; in saveLayer() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Paint.cpp | 58 static void defaultSettingsForAndroid(SkPaint* paint) { in defaultSettingsForAndroid() argument 60 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in defaultSettingsForAndroid() 62 SkPaintOptionsAndroid paintOpts = paint->getPaintOptionsAndroid(); in defaultSettingsForAndroid() 64 paint->setPaintOptionsAndroid(paintOpts); in defaultSettingsForAndroid() 83 static SkPaint* intiWithPaint(JNIEnv* env, jobject clazz, SkPaint* paint) { in intiWithPaint() argument 84 SkPaint* obj = new SkPaint(*paint); in intiWithPaint() 97 static jint getFlags(JNIEnv* env, jobject paint) { in getFlags() argument 98 NPE_CHECK_RETURN_ZERO(env, paint); in getFlags() 99 return GraphicsJNI::getNativePaint(env, paint)->getFlags(); in getFlags() 102 static void setFlags(JNIEnv* env, jobject paint, jint flags) { in setFlags() argument [all …]
|
D | Canvas.cpp | 139 SkPaint* paint, int flags) { in saveLayer() argument 146 return canvas->saveLayer(bounds_, paint, (SkCanvas::SaveFlags)flags); in saveLayer() 151 SkPaint* paint, int flags) { in saveLayer4F() argument 155 return canvas->saveLayer(&bounds, paint, (SkCanvas::SaveFlags)flags); in saveLayer4F() 347 SkPaint* paint) { in drawPaint() argument 348 canvas->drawPaint(*paint); in drawPaint() 358 const SkPaint& paint = *GraphicsJNI::getNativePaint(env, jpaint); in doPoints() local 378 canvas->drawPoints(mode, count, pts, paint); in doPoints() 398 const SkPaint& paint = *GraphicsJNI::getNativePaint(env, jpaint); in drawPoint() local 400 canvas->drawPoint(SkFloatToScalar(x), SkFloatToScalar(y), paint); in drawPoint() [all …]
|
D | TextLayout.cpp | 54 void TextLayout::handleText(SkPaint *paint, const jchar* text, jsize len, in handleText() argument 56 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, in handleText() 64 paint->getTextPath(value->getGlyphs(), value->getGlyphsCount() * 2, x_, y_, path); in handleText() 67 void TextLayout::getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, in getTextRunAdvances() argument 70 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, in getTextRunAdvances() 83 void TextLayout::getTextPath(SkPaint *paint, const jchar *text, jsize len, in getTextPath() argument 85 handleText(paint, text, len, bidiFlags, x, y, path); in getTextPath() 89 void TextLayout::drawTextOnPath(SkPaint* paint, const jchar* text, int count, in drawTextOnPath() argument 96 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, in drawTextOnPath() 103 … canvas->drawTextOnPathHV(value->getGlyphs(), value->getGlyphsCount() * 2, *path, h_, v_, *paint); in drawTextOnPath()
|
D | NinePatchImpl.cpp | 71 const SkBitmap& bitmap, const SkPaint& paint, in drawStretchyPatch() argument 75 ((SkPaint*)&paint)->setColor(modAlpha(colorHint, paint.getAlpha())); in drawStretchyPatch() 76 canvas->drawRect(dst, paint); in drawStretchyPatch() 77 ((SkPaint*)&paint)->setColor(initColor); in drawStretchyPatch() 84 SkColor prev = paint.getColor(); in drawStretchyPatch() 85 ((SkPaint*)&paint)->setColor(c); in drawStretchyPatch() 86 canvas->drawRect(dst, paint); in drawStretchyPatch() 87 ((SkPaint*)&paint)->setColor(prev); in drawStretchyPatch() 91 canvas->drawBitmapRect(bitmap, &src, dst, &paint); in drawStretchyPatch() 107 const SkPaint* paint, SkRegion** outRegion) { in NinePatch_Draw() argument [all …]
|
D | HarfBuzzNGFaceSkia.cpp | 51 HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } in HarfBuzzFontData() 55 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* wi… in SkiaGetGlyphWidthAndExtents() argument 58 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); in SkiaGetGlyphWidthAndExtents() 64 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); in SkiaGetGlyphWidthAndExtents() 86 SkPaint* paint = hbFontData->m_paint; in harfbuzzGetGlyph() local 88 paint->setTextEncoding(SkPaint::kUTF16_TextEncoding); in harfbuzzGetGlyph() 92 paint->textToGlyphs(unichar, size * sizeof(*unichar), &glyph16); in harfbuzzGetGlyph() 163 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { in createFont() argument 172 HarfBuzzFontData* data = new HarfBuzzFontData(paint); in createFont()
|
/frameworks/base/libs/hwui/ |
D | DisplayListRenderer.cpp | 261 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { in drawBitmap() argument 263 paint = refPaint(paint); in drawBitmap() 265 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, left, top, paint)); in drawBitmap() 269 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { in drawBitmap() argument 272 paint = refPaint(paint); in drawBitmap() 274 addDrawOp(new (alloc()) DrawBitmapMatrixOp(bitmap, matrix, paint)); in drawBitmap() 280 float dstRight, float dstBottom, SkPaint* paint) { in drawBitmap() argument 282 paint = refPaint(paint); in drawBitmap() 289 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, dstLeft, dstTop, paint)); in drawBitmap() 295 dstLeft, dstTop, dstRight, dstBottom, paint)); in drawBitmap() [all …]
|
D | PathCache.cpp | 54 PathDescription::PathDescription(ShapeType type, SkPaint* paint): in PathDescription() argument 56 join(paint->getStrokeJoin()), in PathDescription() 57 cap(paint->getStrokeCap()), in PathDescription() 58 style(paint->getStyle()), in PathDescription() 59 miter(paint->getStrokeMiter()), in PathDescription() 60 strokeWidth(paint->getStrokeWidth()), in PathDescription() 61 pathEffect(paint->getPathEffect()) { in PathDescription() 85 bool PathCache::canDrawAsConvexPath(SkPath* path, SkPaint* paint) { in canDrawAsConvexPath() argument 87 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity; in canDrawAsConvexPath() 90 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds() argument [all …]
|
D | OpenGLRenderer.h | 226 SkPaint* paint, int flags) { in saveLayer() argument 228 if (paint) mode = getXfermode(paint->getXfermode()); in saveLayer() 229 return saveLayer(left, top, right, bottom, paint ? paint->getAlpha() : 255, mode, flags); in saveLayer() 257 bool quickRejectPreStroke(float left, float top, float right, float bottom, SkPaint* paint); 286 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 288 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, SkPaint* paint); 289 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 292 float dstRight, float dstBottom, SkPaint* paint); 293 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 295 float* vertices, int* colors, SkPaint* paint); [all …]
|
D | PathCache.h | 148 PathDescription(ShapeType shapeType, SkPaint* paint); 210 PathTexture* getRoundRect(float width, float height, float rx, float ry, SkPaint* paint); 211 PathTexture* getCircle(float radius, SkPaint* paint); 212 PathTexture* getOval(float width, float height, SkPaint* paint); 213 PathTexture* getRect(float width, float height, SkPaint* paint); 215 bool useCenter, SkPaint* paint); 216 PathTexture* get(SkPath* path, SkPaint* paint); 242 void precache(SkPath* path, SkPaint* paint); 244 static bool canDrawAsConvexPath(SkPath* path, SkPaint* paint); 245 static void computePathBounds(const SkPath* path, const SkPaint* paint, [all …]
|
D | DisplayListRenderer.h | 98 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint); 99 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint); 102 float dstRight, float dstBottom, SkPaint* paint); 103 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint); 105 float* vertices, int* colors, SkPaint* paint); 107 float left, float top, float right, float bottom, SkPaint* paint); 109 virtual status_t drawRect(float left, float top, float right, float bottom, SkPaint* paint); 111 float rx, float ry, SkPaint* paint); 112 virtual status_t drawCircle(float x, float y, float radius, SkPaint* paint); 113 virtual status_t drawOval(float left, float top, float right, float bottom, SkPaint* paint); [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Canvas.java | 387 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer() argument 389 paint != null ? paint.mNativePaint : 0, in saveLayer() 396 public int saveLayer(float left, float top, float right, float bottom, Paint paint, in saveLayer() argument 399 paint != null ? paint.mNativePaint : 0, in saveLayer() 884 public void drawPaint(Paint paint) { in drawPaint() argument 885 native_drawPaint(mNativeCanvas, paint.mNativePaint); in drawPaint() 904 public native void drawPoints(float[] pts, int offset, int count, Paint paint); in drawPoints() argument 909 public void drawPoints(float[] pts, Paint paint) { in drawPoints() argument 910 drawPoints(pts, 0, pts.length, paint); in drawPoints() 916 public native void drawPoint(float x, float y, Paint paint); in drawPoint() argument [all …]
|
D | NinePatch.java | 162 public void draw(Canvas canvas, Rect location, Paint paint) { in draw() argument 163 canvas.drawPatch(this, location, paint); in draw() 166 void drawSoftware(Canvas canvas, RectF location, Paint paint) { in drawSoftware() argument 168 paint != null ? paint.mNativePaint : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware() 171 void drawSoftware(Canvas canvas, Rect location, Paint paint) { in drawSoftware() argument 173 paint != null ? paint.mNativePaint : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware()
|
D | LayerRasterizer.java | 29 public void addLayer(Paint paint, float dx, float dy) { in addLayer() argument 30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy); in addLayer() 33 public void addLayer(Paint paint) { in addLayer() argument 34 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0); in addLayer()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GradientStopsActivity.java | 50 Paint paint = new Paint(); in onDraw() local 51 paint.setShader(gradient); in onDraw() 53 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint); in onDraw() 60 paint.setShader(gradient); in onDraw() 63 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint); in onDraw() 70 paint.setShader(gradient); in onDraw() 73 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint); in onDraw() 79 paint.setShader(gradient); in onDraw() 82 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint); in onDraw() 87 paint.setShader(gradient); in onDraw() [all …]
|
/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 40 TextPaint paint, int outerwidth, in make() argument 44 return new BoringLayout(source, paint, outerwidth, align, in make() 50 TextPaint paint, int outerwidth, in make() argument 55 return new BoringLayout(source, paint, outerwidth, align, in make() 65 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, in replaceOrMake() argument 70 replaceWith(source, paint, outerwidth, align, spacingmult, in replaceOrMake() 77 init(source, paint, outerwidth, align, spacingmult, spacingadd, in replaceOrMake() 87 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, in replaceOrMake() argument 97 replaceWith(source, paint, outerwidth, align, spacingmult, in replaceOrMake() 105 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidth, in replaceOrMake() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 191 final Paint paint = new Paint(); in toBitmap() local 192 paint.setAntiAlias(BITMAP_RENDERING_ANTIALIAS); in toBitmap() 193 paint.setDither(BITMAP_RENDERING_DITHER); in toBitmap() 194 paint.setColor(color); in toBitmap() 195 paint.setStyle(Paint.Style.STROKE); in toBitmap() 196 paint.setStrokeJoin(Paint.Join.ROUND); in toBitmap() 197 paint.setStrokeCap(Paint.Cap.ROUND); in toBitmap() 198 paint.setStrokeWidth(BITMAP_RENDERING_WIDTH); in toBitmap() 205 canvas.drawPath(path, paint); in toBitmap() 225 final Paint paint = new Paint(); in toBitmap() local [all …]
|
/frameworks/base/core/jni/ |
D | android_view_GLES20Canvas.cpp | 271 SkPaint* paint, jint saveFlags) { in android_view_GLES20Canvas_saveLayer() argument 272 return renderer->saveLayer(left, top, right, bottom, paint, saveFlags); in android_view_GLES20Canvas_saveLayer() 276 OpenGLRenderer* renderer, SkPaint* paint, jint saveFlags) { in android_view_GLES20Canvas_saveLayerClip() argument 279 paint, saveFlags); in android_view_GLES20Canvas_saveLayerClip() 381 jfloat left, jfloat top, SkPaint* paint) { in android_view_GLES20Canvas_drawBitmap() argument 385 renderer->drawBitmap(bitmap, left, top, paint); in android_view_GLES20Canvas_drawBitmap() 391 float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) { in android_view_GLES20Canvas_drawBitmapRect() argument 396 dstLeft, dstTop, dstRight, dstBottom, paint); in android_view_GLES20Canvas_drawBitmapRect() 401 SkMatrix* matrix, SkPaint* paint) { in android_view_GLES20Canvas_drawBitmapMatrix() argument 405 renderer->drawBitmap(bitmap, matrix, paint); in android_view_GLES20Canvas_drawBitmapMatrix() [all …]
|
/frameworks/base/core/java/android/text/style/ |
D | TypefaceSpan.java | 69 public void updateMeasureState(TextPaint paint) { in updateMeasureState() argument 70 apply(paint, mFamily); in updateMeasureState() 73 private static void apply(Paint paint, String family) { in apply() argument 76 Typeface old = paint.getTypeface(); in apply() 87 paint.setFakeBoldText(true); in apply() 91 paint.setTextSkewX(-0.25f); in apply() 94 paint.setTypeface(tf); in apply()
|
D | StyleSpan.java | 77 public void updateMeasureState(TextPaint paint) { in updateMeasureState() argument 78 apply(paint, mStyle); in updateMeasureState() 81 private static void apply(Paint paint, int style) { in apply() argument 84 Typeface old = paint.getTypeface(); in apply() 103 paint.setFakeBoldText(true); in apply() 107 paint.setTextSkewX(-0.25f); in apply() 110 paint.setTypeface(tf); in apply()
|
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 47 Font::FontDescription::FontDescription(const SkPaint* paint, const mat4& matrix) { in FontDescription() argument 48 mFontId = SkTypeface::UniqueID(paint->getTypeface()); in FontDescription() 49 mFontSize = paint->getTextSize(); in FontDescription() 51 if (paint->isFakeBoldText()) { in FontDescription() 54 mItalicStyle = paint->getTextSkewX(); in FontDescription() 55 mScaleX = paint->getTextScaleX(); in FontDescription() 56 mStyle = paint->getStyle(); in FontDescription() 57 mStrokeWidth = paint->getStrokeWidth(); in FontDescription() 58 mAntiAliasing = paint->isAntiAlias(); in FontDescription() 59 mHinting = paint->getHinting(); in FontDescription() [all …]
|
D | Font.h | 51 FontDescription(const SkPaint* paint, const mat4& matrix); 80 void render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, 83 void render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, 93 static Font* create(FontRenderer* state, const SkPaint* paint, const mat4& matrix); 109 void precache(SkPaint* paint, const char* text, int numGlyphs); 111 void render(SkPaint* paint, const char *text, uint32_t start, uint32_t len, 115 void measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, 120 CachedGlyphInfo* cacheGlyph(SkPaint* paint, glyph_t glyph, bool precaching); 121 void updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, 139 CachedGlyphInfo* getCachedGlyph(SkPaint* paint, glyph_t textUnit, bool precaching = false);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Canvas_Delegate.java | 273 Paint paint) { in drawPoints() argument 280 /*package*/ static void drawPoint(Canvas thisCanvas, float x, float y, Paint paint) { in drawPoint() argument 289 Paint paint) { in drawLines() argument 290 draw(thisCanvas.mNativeCanvas, paint.mNativePaint, false /*compositeOnly*/, in drawLines() 348 int paint, int layerFlags) { in native_saveLayer() argument 355 Paint_Delegate paintDelegate = Paint_Delegate.getDelegate(paint); in native_saveLayer() 366 int paint, int layerFlags) { in native_saveLayer() argument 373 Paint_Delegate paintDelegate = Paint_Delegate.getDelegate(paint); in native_saveLayer() 623 public void draw(Graphics2D graphics, Paint_Delegate paint) { in native_drawColor() 642 /*package*/ static void native_drawPaint(int nativeCanvas, int paint) { in native_drawPaint() argument [all …]
|
D | DashPathEffect_Delegate.java | 52 public Stroke getStroke(Paint_Delegate paint) { in getStroke() argument 54 paint.getStrokeWidth(), in getStroke() 55 paint.getJavaCap(), in getStroke() 56 paint.getJavaJoin(), in getStroke() 57 paint.getJavaStrokeMiter(), in getStroke()
|