/frameworks/base/media/java/android/media/session/ |
H A D | MediaSessionLegacyHelper.java | 352 Paint paint = new Paint(); 353 paint.setAntiAlias(true); 354 paint.setFilterBitmap(true); 356 new RectF(0, 0, outBitmap.getWidth(), outBitmap.getHeight()), paint);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
H A D | MediaRecorderTest.java | 262 Paint paint = new Paint(); 263 paint.setTextSize(16); 264 paint.setColor(Color.RED); 275 canvas.drawText(text, 100, 100, paint); 289 canvas.drawText(text, 100, 100, paint);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | LayerRasterizer.java | 27 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 D | Movie.java | 42 public void draw(Canvas canvas, float x, float y, Paint paint) { argument 44 paint != null ? paint.getNativeInstance() : 0);
|
H A D | NinePatch.java | 153 * Returns the paint used to draw this NinePatch. The paint can be null. 164 * Sets the paint to use when drawing the NinePatch. 166 * @param p The paint that will be used to draw this NinePatch. 184 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}. 194 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}. 204 * Draws the NinePatch. This method will ignore the paint returned 205 * by {@link #getPaint()} and use the specified paint instead. 209 * @param paint The Paint to draw through. 211 public void draw(Canvas canvas, Rect location, Paint paint) { argument [all...] |
H A D | Paint.java | 44 // The approximate size of a native paint object. 214 // These flags are always set on a new/reset paint, even if flags 0 is passed. 346 * stroke-related settings in the paint. 351 * the stroke-related fields on the paint. 357 * the paint. This mode can give unexpected results if the geometry 444 * Create a new paint with default settings. 451 * Create a new paint with the specified flags. Use setFlags() to change 452 * these after the paint is created. 469 * Create a new paint, initialized with the attributes in the specified 470 * paint paramete 475 Paint(Paint paint) argument 528 setClassVariablesFrom(Paint paint) argument 2646 nInitWithPaint(long paint) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 200 * Returns the paint used to render this drawable. 502 final Paint paint = state.mPaint; 507 paint.setShader(null); 509 paint.setShader(new BitmapShader(bitmap, 527 if (mTintFilter != null && paint.getColorFilter() == null) { 528 paint.setColorFilter(mTintFilter); 535 final Shader shader = paint.getShader(); 545 canvas.drawBitmap(bitmap, null, mDstRect, paint); 555 paint.setShader(shader); 560 paint [all...] |
H A D | ShapeDrawable.java | 220 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { argument 221 shape.draw(canvas, paint); 228 final Paint paint = state.mPaint; 230 final int prevAlpha = paint.getAlpha(); 231 paint.setAlpha(modulateAlpha(prevAlpha, state.mAlpha)); 234 if (paint.getAlpha() != 0 || paint.getXfermode() != null || paint.hasShadowLayer()) { 236 if (mTintFilter != null && paint.getColorFilter() == null) { 237 paint [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | ArcShape.java | 47 public void draw(Canvas canvas, Paint paint) { argument 48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
|
H A D | OvalShape.java | 35 public void draw(Canvas canvas, Paint paint) { argument 36 canvas.drawOval(rect(), paint);
|
H A D | PathShape.java | 55 public void draw(Canvas canvas, Paint paint) { argument 58 canvas.drawPath(mPath, paint);
|
H A D | RectShape.java | 36 public void draw(Canvas canvas, Paint paint) { argument 37 canvas.drawRect(mRect, paint);
|
H A D | RoundRectShape.java | 78 public void draw(Canvas canvas, Paint paint) { argument 79 canvas.drawPath(mPath, paint);
|
H A D | Shape.java | 53 * @param paint the Paint object that defines this shape's characteristics 55 public abstract void draw(Canvas canvas, Paint paint); argument
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 82 .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 D | BakedOpRenderer.cpp | 143 SkPaint paint; local 144 paint.setColor(mCaches.getOverdrawColor(i)); 149 .setFillPaint(paint, 1.0f) 192 void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* paint) { argument 218 .setFillPaint(*paint, 1.0f)
|
H A D | BakedOpRenderer.h | 98 void drawRect(float left, float top, float right, float bottom, const SkPaint* paint) { argument 100 drawRects(ltrb, 4, paint); 102 void drawRects(const float* rects, int count, const SkPaint* paint);
|
H A D | BakedOpState.cpp | 42 clippedBounds.outset(recordedOp.paint->getStrokeWidth() * 0.5f); 46 && (!transform.isPureTranslate() || recordedOp.paint->getStrokeWidth() < 1.0f))) { 133 ? (recordedOp.paint && recordedOp.paint->getStyle() != SkPaint::kFill_Style) 160 void BakedOpState::setupOpacity(const SkPaint* paint) { argument 165 && PaintUtils::isOpaquePaint(paint);
|
H A D | BakedOpState.h | 113 // stroking is forced, regardless of style on paint (such as for lines) 115 // stroking is defined by style on paint 129 void setupOpacity(const SkPaint* paint);
|
H A D | DeferredLayerUpdater.cpp | 49 void DeferredLayerUpdater::setPaint(const SkPaint* paint) { argument 50 mAlpha = PaintUtils::getAlphaDirect(paint); 51 mMode = PaintUtils::getXfermodeDirect(paint); 52 SkColorFilter* colorFilter = (paint) ? paint->getColorFilter() : nullptr;
|
H A D | DeferredLayerUpdater.h | 85 ANDROID_API void setPaint(const SkPaint* paint);
|
H A D | DisplayListCanvas.cpp | 131 const SkPaint* paint, SaveFlags::Flags flags) { 135 paint = refPaint(paint); 136 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags)); 229 void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) { argument 231 paint = refPaint(paint); 233 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint)); 237 const SkPaint* paint) { 240 drawBitmap(&bitmap, paint); 130 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, SaveFlags::Flags flags) argument 236 drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) argument 244 drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) argument 266 drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 312 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 323 drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 337 drawPaint(const SkPaint& paint) argument 345 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument 350 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 355 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 372 drawCircle(float x, float y, float radius, const SkPaint& paint) argument 376 drawCircle(CanvasPropertyPrimitive* x, CanvasPropertyPrimitive* y, CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) argument 387 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 392 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 402 drawPath(const SkPath& path, const SkPaint& paint) argument 406 drawLines(const float* points, int count, const SkPaint& paint) argument 412 drawPoints(const float* points, int count, const SkPaint& paint) argument 424 drawGlyphsOnPath(const uint16_t* glyphs, int count, const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) argument 435 drawGlyphs(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 452 drawRegion(const SkRegion& region, const SkPaint& paint) argument 478 drawRects(const float* rects, int count, const SkPaint* paint) argument [all...] |
H A D | DisplayListCanvas.h | 87 CanvasPropertyPaint* paint) override; 89 CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) override; 133 virtual int saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, 137 SkPaint paint; variable 138 paint.setAlpha(alpha); 139 return saveLayer(left, top, right, bottom, &paint, flags); 169 virtual void drawPaint(const SkPaint& paint) override; 172 virtual void drawPoint(float x, float y, const SkPaint& paint) override { 174 drawPoints(points, 2, paint); 176 virtual void drawPoints(const float* points, int count, const SkPaint& paint) overrid 270 refPaint(const SkPaint* paint) argument [all...] |
H A D | DisplayListOp.h | 114 DrawOp(const SkPaint* paint) argument 115 : mPaint(paint), mQuickRejected(false) {} 193 // coordinates, and that paint's alpha is used 200 // check state/paint for transparency 227 DrawBoundedOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 228 : DrawOp(paint), mLocalBounds(left, top, right, bottom) {} 230 DrawBoundedOp(const Rect& localBounds, const SkPaint* paint) argument 231 : DrawOp(paint), mLocalBounds(localBounds) {} 236 DrawBoundedOp(const float* points, int count, const SkPaint* paint) argument 237 : DrawOp(paint), mLocalBound 247 DrawBoundedOp(const SkPaint* paint) argument 332 SaveLayerOp(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument 605 DrawBitmapOp(const SkBitmap* bitmap, const SkPaint* paint) argument 712 DrawBitmapRectOp(const SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 741 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 773 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, float left, float top, float right, float bottom, const SkPaint* paint) argument 934 DrawStrokableOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 936 DrawStrokableOp(const Rect& localBounds, const SkPaint* paint) argument 961 DrawRectOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 985 DrawRectsOp(const float* rects, int count, const SkPaint* paint) argument 1011 DrawRoundRectOp(float left, float top, float right, float bottom, float rx, float ry, const SkPaint* paint) argument 1042 DrawRoundRectPropsOp(float* left, float* top, float* right, float* bottom, float *rx, float *ry, const SkPaint* paint) argument 1070 DrawCircleOp(float x, float y, float radius, const SkPaint* paint) argument 1092 DrawCirclePropsOp(float* x, float* y, float* radius, const SkPaint* paint) argument 1118 SkPaint* paint = mTree->getPaint(); variable 1137 DrawOvalOp(float left, float top, float right, float bottom, const SkPaint* paint) argument 1154 DrawArcOp(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument 1180 DrawPathOp(const SkPath* path, const SkPaint* paint) argument 1213 DrawLinesOp(const float* points, int count, const SkPaint* paint) argument 1243 DrawPointsOp(const float* points, int count, const SkPaint* paint) argument 1259 DrawSomeTextOp(const glyph_t* text, int bytesCount, int count, const SkPaint* paint) argument 1288 DrawTextOnPathOp(const glyph_t* text, int bytesCount, int count, const SkPath* path, float hOffset, float vOffset, const SkPaint* paint) argument 1310 DrawTextOp(const glyph_t* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument [all...] |
H A D | FontRenderer.cpp | 74 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha) 84 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, renderer->currentSnapshot()->alpha) 556 void FontRenderer::setFont(const SkPaint* paint, const SkMatrix& matrix) { argument 557 mCurrentFont = Font::create(this, paint, matrix); 560 FontRenderer::DropShadow FontRenderer::renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, argument 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 612 mCurrentFont->render(paint, glyphs, numGlyphs, penX, penY, 646 void FontRenderer::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 648 Font* font = Font::create(this, paint, matrix); 649 font->precache(paint, glyph 656 renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument 674 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument [all...] |