/frameworks/base/libs/hwui/ |
H A D | TessellationCache.cpp | 49 TessellationCache::Description::Description(Type type, const Matrix4& transform, const SkPaint& paint) argument 51 , aa(paint.isAntiAlias()) 52 , cap(paint.getStrokeCap()) 53 , style(paint.getStyle()) 54 , strokeWidth(paint.getStrokeWidth()) { 90 void TessellationCache::Description::setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const { 92 paint->setAntiAlias(aa); 93 paint->setStrokeCap(cap); 94 paint->setStyle(style); 95 paint 427 SkPaint paint; local 454 getRoundRectBuffer( const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument 464 getRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument [all...] |
H A D | VectorDrawable.cpp | 201 SkPaint paint; local 203 paint.setColor(applyAlpha(SK_ColorBLACK, properties.getFillAlpha())); 205 paint.setShader(newShader); 208 paint.setColor(applyAlpha(properties.getFillColor(), properties.getFillAlpha())); 213 paint.setStyle(SkPaint::Style::kFill_Style); 214 paint.setAntiAlias(true); 217 outCanvas->drawPath(renderPath, paint); 223 paint.setColor(applyAlpha(SK_ColorBLACK, properties.getStrokeAlpha())); 225 paint.setShader(newShader); 228 paint 516 SkPaint* paint = updatePaint(&tmpPaint, &mStagingProperties); local [all...] |
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 | 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 | 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...] |
H A D | FrameBuilder.cpp | 559 * for paint's style on the bounds being computed. 568 if (op.opId == RecordedOpId::RectOp && op.paint->getStyle() != SkPaint::kStroke_Style) { 569 bakedState->setupOpacity(op.paint); 577 * Returns batch id for tessellatable shapes, based on paint. Checks to see if path effect/AA will 583 const SkPaint& paint = *(op.paint); local 584 return paint.getPathEffect() 586 : (paint.isAntiAlias() ? OpBatchType::AlphaVertices : OpBatchType::Vertices); 603 bakedState->setupOpacity(op.paint); 607 // Don't merge A8 bitmaps - the paint' 636 SkPaint* paint = op.vectorDrawable->getPaint(); local 742 textBatchId(const SkPaint& paint) argument [all...] |
H A D | RecordingCanvas.cpp | 119 const SkPaint* paint, SaveFlags::Flags flags) { 184 refPaint(paint))); 192 refPaint(paint))); 253 void RecordingCanvas::drawPaint(const SkPaint& paint) { argument 256 drawRect(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom, paint); 269 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) { argument 277 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount)); 280 void RecordingCanvas::drawLines(const float* points, int floatCount, const SkPaint& paint) { argument 288 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount)); 291 void RecordingCanvas::drawRect(float left, float top, float right, float bottom, const SkPaint& paint) { argument 118 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, SaveFlags::Flags flags) argument 299 drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) argument 332 drawRegion(const SkRegion& region, const SkPaint& paint) argument 357 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 370 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 391 drawCircle(float x, float y, float radius, const SkPaint& paint) argument 397 drawCircle( CanvasPropertyPrimitive* x, CanvasPropertyPrimitive* y, CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) argument 412 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 420 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 434 drawPath(const SkPath& path, const SkPaint& paint) argument 453 drawBitmap(const SkBitmap& bitmap, float left, float top, const SkPaint* paint) argument 460 drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) argument 482 drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 505 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 517 drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 528 drawGlyphs(const uint16_t* glyphs, const float* positions, int glyphCount, const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop, float boundsRight, float boundsBottom, float totalAdvance) argument 544 drawGlyphsOnPath(const uint16_t* glyphs, int glyphCount, const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) argument 554 drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 44 Font::FontDescription::FontDescription(const SkPaint* paint, const SkMatrix& rasterMatrix) argument 46 mFontId = SkTypeface::UniqueID(paint->getTypeface()); 47 mFontSize = paint->getTextSize(); 49 if (paint->isFakeBoldText()) { 52 mItalicStyle = paint->getTextSkewX(); 53 mScaleX = paint->getTextScaleX(); 54 mStyle = paint->getStyle(); 55 mStrokeWidth = paint->getStrokeWidth(); 56 mAntiAliasing = paint->isAntiAlias(); 57 mHinting = paint 277 getCachedGlyph(const SkPaint* paint, glyph_t textUnit, bool precaching) argument 294 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions) argument 300 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset) argument 348 measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect *bounds, const float* positions) argument 358 precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs) argument 377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument 420 updateGlyphCache(const SkPaint* paint, const SkGlyph& skiaGlyph, SkGlyphCache* skiaGlyphCache, CachedGlyphInfo* glyph, bool precaching) argument 464 cacheGlyph(const SkPaint* paint, glyph_t glyph, bool precaching) argument 479 create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 55 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument 60 public int saveLayer(RectF bounds, Paint paint) { argument 65 public int saveLayer(float left, float top, float right, float bottom, Paint paint, argument 71 public int saveLayer(float left, float top, float right, float bottom, Paint paint) { argument 126 public void drawPaint(Paint paint) { argument 130 public void drawPoints(float[] pts, int offset, int count, Paint paint) { argument 134 public void drawPoints(float[] pts, Paint paint) { argument 138 public void drawPoint(float x, float y, Paint paint) { argument 142 public void drawLine(float startX, float startY, float stopX, float stopY, Paint paint) { argument 146 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 150 drawLines(float[] pts, Paint paint) argument 154 drawRect(RectF rect, Paint paint) argument 158 drawRect(Rect r, Paint paint) argument 162 drawRect(float left, float top, float right, float bottom, Paint paint) argument 166 drawOval(RectF oval, Paint paint) argument 170 drawOval(float left, float top, float right, float bottom, Paint paint) argument 174 drawCircle(float cx, float cy, float radius, Paint paint) argument 178 drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 183 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 188 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument 192 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint) argument 197 drawPath(Path path, Paint paint) argument 205 drawPatch(NinePatch patch, Rect dst, Paint paint) argument 209 drawPatch(NinePatch patch, RectF dst, Paint paint) argument 213 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 217 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 221 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 225 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 230 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 235 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 239 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 244 drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, Paint paint) argument 250 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 254 drawText(String text, float x, float y, Paint paint) argument 258 drawText(String text, int start, int end, float x, float y, Paint paint) argument 262 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument 266 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, Paint paint) argument 271 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint paint) argument 276 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument 280 drawPosText(String text, float[] pos, Paint paint) argument 284 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 289 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 85 void draw(Graphics2D graphics, Paint_Delegate paint); argument 231 return new GcSnapshot(this, null /*layerbounds*/, null /*paint*/, flags); 240 * @param paint the Paint information used to blit the layer back into the layers underneath 247 public GcSnapshot saveLayer(RectF layerBounds, Paint_Delegate paint, int flags) { argument 248 return new GcSnapshot(this, layerBounds, paint, flags); 269 * @param paint the Paint information used to blit the layer back into the layers underneath 273 private GcSnapshot(GcSnapshot previous, RectF layerBounds, Paint_Delegate paint, int flags) { argument 349 mLocalLayerPaint = paint; 559 * Executes the Drawable's draw method, with a null paint delegate. 571 * @param compositeOnly whether the paint i 575 draw(Drawable drawable, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument 603 drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, boolean compositeOnly, int forceMode) argument 677 drawOnGraphics(Graphics2D g, Drawable drawable, Paint_Delegate paint, Layer layer) argument 769 createCustomGraphics(Graphics2D original, Paint_Delegate paint, boolean compositeOnly, int forceMode) argument 796 setShader(Graphics2D g, Paint_Delegate paint) argument 819 setComposite(Graphics2D g, Paint_Delegate paint, boolean usePaintAlpha, int forceMode) argument [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | LineBreaker.cpp | 118 // Ordinarily, this method measures the text in the range given. However, when paint 123 float LineBreaker::addStyleRun(MinikinPaint* paint, const FontCollection* typeface, argument 129 if (paint != nullptr) { 131 style, *paint, typeface, mCharWidths.data() + start); 134 hyphenPenalty = 0.5 * paint->size * paint->scaleX * mLineWidths.getLineWidth(0); 170 if (paint != nullptr && mHyphenator != nullptr && 190 paint->hyphenEdit = hyph; 194 *paint, typeface, nullptr); 196 paint [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 492 SkPaint paint; local 496 paint.setXfermodeMode(SkXfermode::kSrc_Mode); 497 paint.setFilterQuality(kLow_SkFilterQuality); 501 canvas.drawBitmap(decodingBitmap, 0.0f, 0.0f, &paint);
|
H A D | Bitmap.cpp | 1164 const android::Paint* paint = reinterpret_cast<android::Paint*>(paintHandle); local 1169 src.extractAlpha(&dst, paint, &allocator, &offset);
|
H A D | Paint.cpp | 69 static void defaultSettingsForAndroid(Paint* paint) { argument 71 paint->setTextEncoding(Paint::kGlyphID_TextEncoding); 79 static void deletePaint(Paint* paint) { argument 80 delete paint; 104 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 105 Paint* obj = new Paint(*paint); 140 // Don't pass through filter flag, which is no longer stored in paint's flags. 368 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 369 return paint->getLetterSpacing(); 373 Paint* paint local 378 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 388 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 393 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 404 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 477 doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, const jchar *text, jint start, jint count, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument 512 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 525 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 535 doTextRunCursor(JNIEnv *env, Paint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument 544 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 554 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 564 GetTextFunctor(const Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument 587 Paint* paint; member in class:android::PaintGlue::GetTextFunctor 593 getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument 615 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 626 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 636 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 647 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 651 breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument 687 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 716 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 726 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, Typeface* typeface, jint bidiFlags) argument 745 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 754 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 789 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 863 doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument 879 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 889 doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument 901 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_RenderNode.cpp | 161 Paint* paint = reinterpret_cast<Paint*>(paintPtr); local 162 return SET_AND_DIRTY(mutateLayerProperties().setFromPaint, paint, RenderNode::GENERIC);
|
H A D | android_graphics_Canvas.cpp | 94 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 96 return static_cast<jint>(get_canvas(canvasHandle)->saveLayer(l, t, r, b, paint, flags)); 215 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 216 get_canvas(canvasHandle)->drawPaint(*paint); 221 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 222 get_canvas(canvasHandle)->drawPoint(x, y, *paint); 237 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 238 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint); 243 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 244 get_canvas(canvasHandle)->drawLine(startX, startY, stopX, stopY, *paint); 259 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 265 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 272 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 278 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 284 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 290 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 297 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 305 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 334 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 348 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 378 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 411 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 422 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 459 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 470 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 480 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 491 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 503 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 517 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 534 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 549 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FrameBuilderTests.cpp | 494 SkPaint paint; 495 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); 496 paint.setAntiAlias(true); 497 paint.setTextSize(50); 498 TestUtils::drawUtf8ToCanvas(&canvas, "Test string1", paint, 100, 0); // will be top clipped 499 TestUtils::drawUtf8ToCanvas(&canvas, "Test string1", paint, 100, 100); // not clipped 559 ASSERT_EQ(style, state->op->paint->getStyle()) 581 SkPaint paint; 582 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); 583 paint 1461 SkPaint paint; local 1752 SkPaint paint; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableView.java | 359 public void setLayerType(int layerType, Paint paint) { argument 361 super.setLayerType(layerType, paint);
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 110 TextPaint paint) { 111 return getDesiredWidth(source, 0, source.length(), paint); 120 TextPaint paint) { 131 float w = measurePara(paint, source, i, next); 146 * @param paint the default paint for the layout. Styles can override 147 * various attributes of the paint. 155 protected Layout(CharSequence text, TextPaint paint, argument 158 this(text, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR, 166 * @param paint th 109 getDesiredWidth(CharSequence source, TextPaint paint) argument 118 getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) argument 177 Layout(CharSequence text, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingMult, float spacingAdd) argument 206 replaceWith(CharSequence text, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd) argument 1682 measurePara(TextPaint paint, CharSequence text, int start, int end) argument [all...] |
H A D | StaticLayout.java | 54 * call {@link #obtain} with the required arguments (text, paint, and width), 70 * @param paint The base paint used for layout 74 public static Builder obtain(CharSequence source, int start, int end, TextPaint paint, argument 85 b.mPaint = paint; 147 * Set the paint. Internal for reuse cases only. 149 * @param paint The base paint used for layout 154 public Builder setPaint(TextPaint paint) { argument 155 mPaint = paint; 351 addStyleRun(TextPaint paint, int start, int end, boolean isRtl) argument 418 StaticLayout(CharSequence source, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 429 StaticLayout(CharSequence source, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 437 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 449 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 458 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 472 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) argument 870 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, int flags, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument 1005 calculateEllipsis(int lineStart, int lineEnd, float[] widths, int widthStart, float avail, TextUtils.TruncateAt where, int line, float textWidth, TextPaint paint, boolean forceEllipsis) argument [all...] |
H A D | TextUtils.java | 1085 TextPaint paint, 1089 return ellipsize(text, paint, avail, where, preserveLength, callback, 1108 TextPaint paint, 1118 float width = setPara(mt, paint, text, 0, text.length(), textDir); 1130 float ellipsiswid = paint.measureText(ellipsis); 1280 private static float setPara(MeasuredText mt, TextPaint paint, argument 1289 width = mt.addStyleRun(paint, len, null); 1299 width += mt.addStyleRun(paint, spans, spanEnd - spanStart, null); 1084 ellipsize(CharSequence text, TextPaint paint, float avail, TruncateAt where, boolean preserveLength, EllipsizeCallback callback) argument 1107 ellipsize(CharSequence text, TextPaint paint, float avail, TruncateAt where, boolean preserveLength, EllipsizeCallback callback, TextDirectionHeuristic textDir, String ellipsis) argument
|
/frameworks/base/core/java/android/view/ |
H A D | RenderNode.java | 262 public boolean setLayerPaint(@Nullable Paint paint) { argument 263 return nSetLayerPaint(mNativeRenderNode, paint != null ? paint.getNativeInstance() : 0); 838 private static native boolean nSetLayerPaint(long renderNode, long paint); argument
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 381 public void setLayerType(int layerType, Paint paint); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 787 final Paint paint = mPaintSelector[SELECTOR_CIRCLE]; 788 paint.setColor(mSelectorColor); 789 canvas.drawCircle(selCenterX, selCenterY, selRadius, paint); 852 private static void calculatePositions(Paint paint, float radius, float xCenter, float yCenter, argument 855 paint.setTextSize(textSize); 856 yCenter -= (paint.descent() + paint.ascent()) / 2; 868 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, 870 paint.setTextSize(textSize); 871 paint 867 drawTextElements(Canvas canvas, float textSize, Typeface typeface, ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, int alpha, boolean showActivated, int activatedDegrees, boolean activatedOnly) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 750 Paint paint; 777 paint = null; // not needed 793 paint = new Paint(); 794 paint.setFilterBitmap(filter); 796 paint.setAntiAlias(true); 807 canvas.drawBitmap(source, srcR, dstR, paint); 1597 * taken from the paint that is passed to the draw call. 1614 * paint contains a blur of radius 2, then offsetXY[] would contains 1621 * @param paint Optional paint use 1632 extractAlpha(Paint paint, int[] offsetXY) argument [all...] |