/cts/tests/res/anim/ |
lineartest.xml | 18 <paint id="paint" antiAlias="true"> 20 </paint> 22 <add id="addPaint" use="paint"/> 27 <set target="paint" field="linearText" to="true"/> 29 <animate target="paint" id="grow" field="textSize" from="12" to="15" dur=".25"/> 34 <set target="paint" field="linearText" to="false"/> 40 <animate target="paint" id="shrink" field="textSize" from="15" to="12" dur=".25"/> 45 <set target="paint" field="linearText" to="false"/>
|
/external/skia/src/animator/ |
SkDrawSaveLayer.cpp | 28 SK_MEMBER(paint, Paint) 35 SkSaveLayer::SkSaveLayer() : paint(NULL), bounds(NULL) { 47 //paint is an SkDrawPaint 48 if (paint) 51 paint->setupPaint(&realPaint); 70 if (paint) 71 SkDebugf("paint=\"%s\" ", paint->id);
|
SkDrawPaint.cpp | 122 SkPaint* paint = maker.fPaint; local 123 setupPaint(paint); 168 SkPaint paint; local 169 setupPaint(&paint); 172 scriptValue->fOperand.fScalar = paint.measureText(parameters[0].fOperand.fString->c_str(), 188 SkPaint paint; local 189 setupPaint(&paint); 190 paint.getFontMetrics(&metrics); 223 void SkDrawPaint::setupPaint(SkPaint* paint) const { 225 paint->setAntiAlias(SkToBool(antiAlias)) [all...] |
/external/webkit/WebCore/platform/graphics/android/ |
FontAndroid.cpp | 48 static void updateForFont(SkPaint* paint, const SimpleFontData* font) { 49 font->platformData().setupPaint(paint); 50 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); 53 static SkPaint* setupFill(SkPaint* paint, GraphicsContext* gc, 55 gc->setupFillPaint(paint); 56 updateForFont(paint, font); 57 return paint; 60 static SkPaint* setupStroke(SkPaint* paint, GraphicsContext* gc, 62 gc->setupStrokePaint(paint); 63 updateForFont(paint, font) 122 SkPaint paint; local 181 SkPaint paint; local 200 SkPaint paint; local 216 SkPaint paint; local 229 SkPaint paint; local [all...] |
GraphicsContextAndroid.cpp | 70 Is Color premultiplied or not? If it is, then I can't blindly pass it to paint.setColor() 136 bool setupShadowPaint(SkPaint* paint, SkPoint* offset) { 138 paint->setAntiAlias(true); 139 paint->setDither(true); 140 paint->setXfermodeMode(mMode); 141 paint->setColor(mShadow.mColor); 142 paint->setMaskFilter(SkBlurMaskFilter::Create(mShadow.mBlur, 225 void setup_paint_common(SkPaint* paint) const { 226 paint->setAntiAlias(mState->mUseAA); 227 paint->setDither(true) 532 SkPaint paint; local 547 SkPaint paint; local 591 SkPaint paint; local 672 SkPaint paint; local 689 SkPaint paint; local 1132 SkPaint paint; local [all...] |
/frameworks/base/core/java/android/text/style/ |
TypefaceSpan.java | 19 import android.graphics.Paint; 69 public void updateMeasureState(TextPaint paint) { 70 apply(paint, mFamily); 73 private static void apply(Paint paint, String family) { 76 Typeface old = paint.getTypeface(); 87 paint.setFakeBoldText(true); 91 paint.setTextSkewX(-0.25f); 94 paint.setTypeface(tf);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Xfermodes.java | 26 import android.graphics.Paint; 41 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); 52 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); 121 Paint labelP = new Paint(Paint.ANTI_ALIAS_FLAG) 124 Paint paint = new Paint(); local [all...] |
DrawPoints.java | 34 private Paint mPaint = new Paint(); 64 Paint paint = mPaint; local 70 paint.setColor(Color.RED); 71 paint.setStrokeWidth(0); 72 canvas.drawLines(mPts, paint); 74 paint.setColor(Color.BLUE); 75 paint.setStrokeWidth(3); 76 canvas.drawPoints(mPts, paint); [all...] |
Arcs.java | 38 private Paint[] mPaints; 39 private Paint mFramePaint; 53 mPaints = new Paint[4]; 57 mPaints[0] = new Paint(); 59 mPaints[0].setStyle(Paint.Style.FILL); 63 mPaints[1] = new Paint(mPaints[0]); 67 mPaints[2] = new Paint(mPaints[0]); 68 mPaints[2].setStyle(Paint.Style.STROKE); 73 mPaints[3] = new Paint(mPaints[2]); 84 mFramePaint = new Paint(); [all...] |
ColorMatrixSample.java | 37 private Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 90 Paint paint = mPaint; local 96 paint.setColorFilter(null); 97 canvas.drawBitmap(mBitmap, x, y, paint); 110 paint.setColorFilter(new ColorMatrixColorFilter(cm)); 111 canvas.drawBitmap(mBitmap, x + mBitmap.getWidth() + 10, y, paint); 114 paint.setColorFilter(new ColorMatrixColorFilter(cm)) [all...] |
/frameworks/base/core/jni/android/graphics/ |
LayerRasterizer.cpp | 10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { 12 SkASSERT(paint); 13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ComposePathEffectTest.java | 27 import android.graphics.Paint; 64 Paint paint = makePaint(); local 65 paint.setPathEffect(composedEffect); 66 canvas.drawPath(path, paint); 70 paint = makePaint(); 71 paint.setPathEffect(expectedEffect); 72 canvas.drawPath(path, paint); 81 private Paint makePaint() { 82 Paint paint = new Paint() local [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 25 import android.graphics.Paint; 27 import android.graphics.Paint.Style; 58 args = {android.graphics.Canvas.class, android.graphics.Paint.class} 65 Paint paint = new Paint(); local 66 paint.setStyle(Style.FILL); 67 paint.setColor(TEST_COLOR_1); 70 arcShape.draw(canvas, paint); 75 paint.setColor(TEST_COLOR_2) [all...] |
OvalShapeTest.java | 25 import android.graphics.Paint; 27 import android.graphics.Paint.Style; 54 args = {android.graphics.Canvas.class, android.graphics.Paint.class} 60 Paint paint = new Paint(); local 61 paint.setStyle(Style.FILL); 62 paint.setColor(TEST_COLOR_1); 65 ovalShape.draw(canvas, paint); 70 paint.setColor(TEST_COLOR_2) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Canvas.java | 28 import android.graphics.Paint.Align; 29 import android.graphics.Paint.FontInfo; 30 import android.graphics.Paint.Style; 104 * Creates a new {@link Graphics2D} based on the {@link Paint} parameters. 107 private Graphics2D getCustomGraphics(Paint paint) { 113 g.setColor(new Color(paint.getColor())); 114 int alpha = paint.getAlpha(); 117 Style style = paint.getStyle(); 119 PathEffect e = paint.getPathEffect() 762 drawText(text.toString().toCharArray(), start, end - start, x, y, paint); local 770 drawText(text.toCharArray(), 0, text.length(), x, y, paint); local 778 drawText(text.toCharArray(), start, end - start, x, y, paint); local [all...] |
/external/skia/include/core/ |
SkDrawFilter.h | 28 current canvas and paint. If it returns true, then drawing proceeds 29 with the (possibly modified) canvas/paint, and then restore() is called 30 to restore the canvas/paint to their state before filter() was called. 31 If filter returns false, canvas/paint should not have been changed, and 47 canvas/paint). If true is returned, then restore() will be called. 51 canvas/paint to their previous states
|
SkPaint.h | 54 SkPaint(const SkPaint& paint); 68 /** Restores the paint to its initial settings. 99 /** Specifies the bit values that are stored in the paint's flags. 119 /** Return the paint's flags. Use the Flag enum to test flag values. 120 @return the paint's flags (see enums ending in _Flag for bit masks) 124 /** Set the paint's flags. Use the Flag enum to specific flag values. 125 @param flags The new flag bits for the paint (see Flags enum) 130 @return true if the antialias bit is set in the paint's flags. 143 @return true if the dithering bit is set in the paint's flags. 156 @return true if the lineartext bit is set in the paint's flag [all...] |
/frameworks/base/core/java/android/text/ |
GraphicsOperations.java | 20 import android.graphics.Paint; 34 float x, float y, Paint p); 37 * Just like {@link Paint#measureText}. 39 float measureText(int start, int end, Paint p); 43 * Just like {@link Paint#getTextWidths}. 45 public int getTextWidths(int start, int end, float[] widths, Paint p);
|
/external/webkit/WebCore/rendering/style/ |
SVGRenderStyleDefs.cpp | 38 paint = SVGRenderStyle::initialFillPaint(); 45 paint = other.paint; 54 if (!paint || !other.paint) 55 return paint == other.paint; 57 if (paint->paintType() != other.paint->paintType()) 60 if (paint->paintType() == SVGPaint::SVG_PAINTTYPE_URI [all...] |
/cts/tests/src/android/media/cts/ |
FaceView.java | 24 import android.graphics.Paint; 38 private Paint mTmpPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 39 private Paint mPOuterBullsEye = new Paint(Paint.ANTI_ALIAS_FLAG); 40 private Paint mPInnerBullsEye = new Paint(Paint.ANTI_ALIAS_FLAG) [all...] |
/external/skia/include/utils/ |
SkDumpCanvas.h | 58 virtual int saveLayer(const SkRect* bounds, const SkPaint* paint, 76 virtual void drawPaint(const SkPaint& paint); 78 const SkPaint& paint); 79 virtual void drawRect(const SkRect& rect, const SkPaint& paint); 80 virtual void drawPath(const SkPath& path, const SkPaint& paint); 82 const SkPaint* paint = NULL); 84 const SkRect& dst, const SkPaint* paint = NULL); 86 const SkPaint* paint = NULL); 88 const SkPaint* paint = NULL); 90 SkScalar y, const SkPaint& paint); [all...] |
SkProxyCanvas.h | 30 virtual int saveLayer(const SkRect* bounds, const SkPaint* paint, 48 virtual void drawPaint(const SkPaint& paint); 50 const SkPaint& paint); 51 virtual void drawRect(const SkRect& rect, const SkPaint& paint); 52 virtual void drawPath(const SkPath& path, const SkPaint& paint); 54 const SkPaint* paint = NULL); 56 const SkRect& dst, const SkPaint* paint = NULL); 58 const SkPaint* paint = NULL); 60 const SkPaint* paint = NULL); 62 SkScalar y, const SkPaint& paint); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Canvas.java | 31 * Path, text, Bitmap), and a paint (to describe the colors and styles for the 280 * @param paint This is copied, and is applied to the offscreen when 285 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { 287 paint != null ? paint.mNativePaint : 0, 295 Paint paint, int saveFlags) { 297 paint != null ? paint.mNativePaint : 0 [all...] |
/external/webkit/WebCore/platform/chromium/ |
ScrollbarThemeChromiumLinux.cpp | 54 static void drawVertLine(SkCanvas* canvas, int x, int y1, int y2, const SkPaint& paint) 58 canvas->drawIRect(skrect, paint); 61 static void drawHorizLine(SkCanvas* canvas, int x1, int x2, int y, const SkPaint& paint) 65 canvas->drawIRect(skrect, paint); 68 static void drawBox(SkCanvas* canvas, const IntRect& rect, const SkPaint& paint) 72 drawHorizLine(canvas, rect.x(), right, rect.y(), paint); 73 drawVertLine(canvas, right, rect.y(), bottom, paint); 74 drawHorizLine(canvas, rect.x(), right, bottom, paint); 75 drawVertLine(canvas, rect.x(), rect.y(), bottom, paint); 144 SkPaint paint; local 180 SkPaint paint; local [all...] |
/external/skia/src/gl/ |
SkGLDevice.h | 39 virtual void drawPaint(const SkDraw&, const SkPaint& paint); 41 const SkPoint[], const SkPaint& paint); 43 const SkPaint& paint); 45 const SkPaint& paint); 47 const SkMatrix& matrix, const SkPaint& paint); 49 int x, int y, const SkPaint& paint); 51 SkScalar x, SkScalar y, const SkPaint& paint); 54 int scalarsPerPos, const SkPaint& paint); 57 const SkPaint& paint); 62 const SkPaint& paint); [all...] |