/frameworks/base/libs/hwui/ |
H A D | RecordingCanvas.cpp | 119 const SkPaint* paint, SaveFlags::Flags flags) { 171 refPaint(paint))) >= 0) { 187 refPaint(paint))) >= 0) { 254 void RecordingCanvas::drawPaint(const SkPaint& paint) { argument 257 drawRect(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom, paint); 270 void RecordingCanvas::drawPoints(const float* points, int floatCount, const SkPaint& paint) { argument 271 if (CC_UNLIKELY(floatCount < 2 || paint.nothingToDraw())) return; 278 refPaint(&paint), refBuffer<float>(points, floatCount), floatCount)); 281 void RecordingCanvas::drawLines(const float* points, int floatCount, const SkPaint& paint) { argument 282 if (CC_UNLIKELY(floatCount < 4 || paint 118 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, SaveFlags::Flags flags) argument 292 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument 302 drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) argument 335 drawRegion(const SkRegion& region, const SkPaint& paint) argument 363 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 378 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 399 drawCircle(float x, float y, float radius, const SkPaint& paint) argument 406 drawCircle( CanvasPropertyPrimitive* x, CanvasPropertyPrimitive* y, CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) argument 421 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 431 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 447 drawPath(const SkPath& path, const SkPaint& paint) argument 468 drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) argument 475 drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) argument 497 drawBitmap(Bitmap& bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 520 drawBitmapMesh(Bitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 532 drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& patch, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 543 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 559 drawLayoutOnPath(const minikin::Layout& layout, float hOffset, float vOffset, const SkPaint& paint, const SkPath& path, size_t start, size_t end) argument 575 drawBitmap(Bitmap& bitmap, const SkPaint* paint) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 44 void SkiaCanvasProxy::onDrawPaint(const SkPaint& paint) { argument 45 mCanvas->drawPaint(paint); 49 const SkPaint& paint) { 61 mCanvas->drawPoints(floatArray, floatCount, paint); 65 mCanvas->drawLines(floatArray, floatCount, paint); 69 SkPaint strokedPaint(paint); 86 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { argument 87 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 90 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { argument 91 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 48 onDrawPoints(PointMode pointMode, size_t count, const SkPoint pts[], const SkPaint& paint) argument 94 onDrawRRect(const SkRRect& roundRect, const SkPaint& paint) argument 107 onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint& paint) argument 113 onDrawPath(const SkPath& path, const SkPaint& paint) argument 117 onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint) argument 136 onDrawBitmapRect(const SkBitmap& skBitmap, const SkRect* srcPtr, const SkRect& dst, const SkPaint* paint, SrcRectConstraint) argument 151 onDrawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPaint* paint) argument 159 onDrawImageRect(const SkImage* image, const SkRect* srcPtr, const SkRect& dst, const SkPaint* paint, SrcRectConstraint constraint) argument 175 onDrawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst, const SkPaint* paint) argument 184 onDrawVerticesObject(const SkVertices* vertices, SkBlendMode bmode, const SkPaint& paint) argument 247 onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) argument 276 SkPaint paint; member in class:android::uirenderer::GlyphIDConverter 382 onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], SkScalar constY, const SkPaint& paint) argument 397 onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform xform[], const SkRect* cullRect, const SkPaint& paint) argument 414 onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) argument 454 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkBlendMode bmode, const SkPaint& paint) argument [all...] |
H A D | PathTessellator.cpp | 101 PaintInfo(const SkPaint* paint, const mat4& transform) : argument 102 style(paint->getStyle()), cap(paint->getStrokeCap()), isAA(paint->isAntiAlias()), 103 halfStrokeWidth(paint->getStrokeWidth() * 0.5f), maxAlpha(1.0f) { 723 void PathTessellator::tessellatePath(const SkPath &path, const SkPaint* paint, argument 727 const PaintInfo paintInfo(paint, transform); 737 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth()); 738 threshInvScaleY *= bounds.height() / (bounds.height() + paint->getStrokeWidth()); 808 void PathTessellator::tessellatePoints(const float* points, int count, const SkPaint* paint, argument 849 tessellateLines(const float* points, int count, const SkPaint* paint, const mat4& transform, VertexBuffer& vertexBuffer) argument [all...] |
H A D | SkiaCanvas.cpp | 187 const SkPaint* paint, SaveFlags::Flags flags) { 189 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); 442 void SkiaCanvas::drawPaint(const SkPaint& paint) { argument 443 mCanvas->drawPaint(paint); 450 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint, argument 452 if (CC_UNLIKELY(count < 2 || paint.nothingToDraw())) return; 460 mCanvas->drawPoints(mode, count, pts.get(), paint); 464 void SkiaCanvas::drawPoint(float x, float y, const SkPaint& paint) { argument 465 mCanvas->drawPoint(x, y, paint); 468 void SkiaCanvas::drawPoints(const float* points, int count, const SkPaint& paint) { argument 186 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, SaveFlags::Flags flags) argument 472 drawLine(float startX, float startY, float stopX, float stopY, const SkPaint& paint) argument 477 drawLines(const float* points, int count, const SkPaint& paint) argument 482 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument 489 drawRegion(const SkRegion& region, const SkPaint& paint) argument 494 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 501 drawCircle(float x, float y, float radius, const SkPaint& paint) argument 506 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 512 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 519 drawPath(const SkPath& path, const SkPaint& paint) argument 524 drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount, const float* verts, const float* texs, const int* colors, const uint16_t* indices, int indexCount, const SkPaint& paint) argument 534 SkBlendMode::kModulate, paint); local 541 drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) argument 547 drawBitmap(Bitmap& hwuiBitmap, const SkMatrix& matrix, const SkPaint* paint) argument 555 drawBitmap(Bitmap& hwuiBitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 565 drawBitmapMesh(Bitmap& hwuiBitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument 653 drawNinePatch(Bitmap& hwuiBitmap, const Res_png_9patch& chunk, float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) argument 688 drawGlyphs(const uint16_t* text, const float* positions, int count, const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop, float boundsRight, float boundsBottom, float totalAdvance) argument 714 drawLayoutOnPath(const minikin::Layout& layout, float hOffset, float vOffset, const SkPaint& paint, const SkPath& path, size_t start, size_t end) argument 746 drawRoundRect(uirenderer::CanvasPropertyPrimitive* left, uirenderer::CanvasPropertyPrimitive* top, uirenderer::CanvasPropertyPrimitive* right, uirenderer::CanvasPropertyPrimitive* bottom, uirenderer::CanvasPropertyPrimitive* rx, uirenderer::CanvasPropertyPrimitive* ry, uirenderer::CanvasPropertyPaint* paint) argument 755 drawCircle(uirenderer::CanvasPropertyPrimitive* x, uirenderer::CanvasPropertyPrimitive* y, uirenderer::CanvasPropertyPrimitive* radius, uirenderer::CanvasPropertyPaint* paint) argument [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FrameBuilderTests.cpp | 545 SkPaint paint; 546 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); 547 paint.setAntiAlias(true); 548 paint.setTextSize(50); 549 TestUtils::drawUtf8ToCanvas(&canvas, "Test string1", paint, 100, 100); 550 TestUtils::drawUtf8ToCanvas(&canvas, "Test string1", paint, 100, 200); 577 SkPaint paint; 578 paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); 579 paint.setAntiAlias(true); 580 paint 1549 SkPaint paint; local 1866 SkPaint paint; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableView.java | 387 public void setLayerType(int layerType, Paint paint) { argument 389 super.setLayerType(layerType, paint);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SignalDrawable.java | 411 void draw(int height, int width, @NonNull Canvas canvas, Paint paint) { argument 424 canvas.drawPath(mPath, paint);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BaseCanvas_Delegate.java | 120 (graphics, paint) -> { 121 if (paint != null && paint.isFilterBitmap()) { 140 draw(nativeCanvas, (graphics, paint) -> { 158 /*package*/ static void nDrawPaint(long nativeCanvas, long paint) { argument 167 // TODO: need to support the attribute (e.g. stroke width) of paint 188 long paint) { 189 draw(nativeCanvas, paint, false /*compositeOnly*/, false /*forceSrcMode*/, 208 final float left, final float top, final float right, final float bottom, long paint) { 210 draw(nativeCanvas, paint, fals 186 nDrawLine(long nativeCanvas, final float startX, final float startY, final float stopX, final float stopY, long paint) argument 207 nDrawRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument 230 nDrawOval(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument 254 nDrawCircle(long nativeCanvas, float cx, float cy, float radius, long paint) argument 262 nDrawArc(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float startAngle, final float sweep, final boolean useCenter, long paint) argument 291 nDrawRoundRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float rx, final float ry, long paint) argument 318 nDrawPath(long nativeCanvas, long path, long paint) argument 480 nDrawText(long nativeCanvas, char[] text, int index, int count, float startX, float startY, int flags, long paint, long typeface) argument 487 nDrawText(long nativeCanvas, String text, int start, int end, float x, float y, final int flags, long paint, long typeface) argument 498 nDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long paint, long typeface) argument 509 nDrawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long paint, long typeface) argument 516 nDrawTextOnPath(long nativeCanvas, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 528 nDrawTextOnPath(long nativeCanvas, String text, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument 576 drawText(long nativeCanvas, final char[] text, final int index, final int count, final float startX, final float startY, final boolean isRtl, long paint, final long typeface) argument 646 getImageToDraw(Bitmap_Delegate bitmap, Paint_Delegate paint, boolean[] forceSrcMode) argument 734 saveLayer(RectF rect, Paint_Delegate paint, int saveFlags) argument [all...] |
H A D | Paint_Delegate.java | 94 // Variant of the font. A paint's variant can only be compact or elegant. 431 /*package*/ static void nSetShadowLayer(long paint, float radius, float dx, float dy, argument 439 /*package*/ static boolean nHasShadowLayer(long paint) { argument 669 /*package*/ static long nInitWithPaint(long paint) { argument 671 Paint_Delegate delegate = sManager.getDelegate(paint); 776 Paint_Delegate paint = sManager.getDelegate(native_object); 777 if (paint == null) { 791 Stroke stroke = paint.getJavaStroke(); 946 // we store the typeface with the paint and use it directly. 967 /*package*/ static int nGetTextRunCursor(Paint paint, lon argument 977 nGetTextRunCursor(Paint paint, long native_object, long typefacePtr, String text, int contextStart, int contextEnd, int flags, int offset, int cursorOpt) argument 1167 Paint_Delegate(Paint_Delegate paint) argument 1171 set(Paint_Delegate paint) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 130 TextPaint paint) { 131 return getDesiredWidth(source, 0, source.length(), paint); 142 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) { argument 143 return getDesiredWidth(source, start, end, paint, TextDirectionHeuristics.FIRSTSTRONG_LTR); 152 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint, argument 164 float w = measurePara(paint, source, i, next, textDir); 179 * @param paint the default paint for the layout. Styles can override 180 * various attributes of the paint. 188 protected Layout(CharSequence text, TextPaint paint, argument 129 getDesiredWidth(CharSequence source, TextPaint paint) argument 210 Layout(CharSequence text, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingMult, float spacingAdd) argument 244 replaceWith(CharSequence text, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd) argument 1842 measurePara(TextPaint paint, CharSequence text, int start, int end, TextDirectionHeuristic textDir) 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; 148 * Set the paint. Internal for reuse cases only. 150 * @param paint The base paint used for layout 155 public Builder setPaint(TextPaint paint) { argument 156 mPaint = paint; 365 addStyleRun(TextPaint paint, int start, int end, boolean isRtl) argument 433 StaticLayout(CharSequence source, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 444 StaticLayout(CharSequence source, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 452 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 464 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 473 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 487 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 888 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 1032 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 | 1119 TextPaint paint, 1123 return ellipsize(text, paint, avail, where, preserveLength, callback, 1142 TextPaint paint, 1152 float width = setPara(mt, paint, text, 0, text.length(), textDir); 1164 float ellipsiswid = paint.measureText(ellipsis); 1246 * @param paint the Paint with which to measure the text 1257 @NonNull TextPaint paint, @FloatRange(from=0.0,fromInclusive=false) float avail, 1300 final float width = paint.measureText(output, 0, output.length()); 1402 private static float setPara(MeasuredText mt, TextPaint paint, argument 1411 width = mt.addStyleRun(paint, le 1118 ellipsize(CharSequence text, TextPaint paint, float avail, TruncateAt where, boolean preserveLength, EllipsizeCallback callback) argument 1141 ellipsize(CharSequence text, TextPaint paint, float avail, TruncateAt where, boolean preserveLength, EllipsizeCallback callback, TextDirectionHeuristic textDir, String ellipsis) argument 1255 listEllipsize(@ullable Context context, @Nullable List<CharSequence> elements, @NonNull String separator, @NonNull TextPaint paint, @FloatRange(from=0.0,fromInclusive=false) float avail, @PluralsRes int moreId) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RenderNode.java | 285 public boolean setLayerPaint(@Nullable Paint paint) { argument 286 return nSetLayerPaint(mNativeRenderNode, paint != null ? paint.getNativeInstance() : 0); 888 private static native boolean nSetLayerPaint(long renderNode, long paint); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 812 final Paint paint = mPaintSelector[SELECTOR_CIRCLE]; 813 paint.setColor(mSelectorColor); 814 canvas.drawCircle(selCenterX, selCenterY, selRadius, paint); 877 private static void calculatePositions(Paint paint, float radius, float xCenter, float yCenter, argument 880 paint.setTextSize(textSize); 881 yCenter -= (paint.descent() + paint.ascent()) / 2; 893 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, 895 paint.setTextSize(textSize); 896 paint 892 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...] |
H A D | GridLayout.java | 892 private void drawLine(Canvas graphics, int x1, int y1, int x2, int y2, Paint paint) { argument 895 graphics.drawLine(width - x1, y1, width - x2, y2, paint); 897 graphics.drawLine(x1, y1, x2, y2, paint); 905 protected void onDebugDrawMargins(Canvas canvas, Paint paint) { argument 915 lp.onDebugDraw(c, canvas, paint); 924 Paint paint = new Paint(); 925 paint.setStyle(Paint.Style.STROKE); 926 paint.setColor(Color.argb(50, 255, 255, 255)); 939 drawLine(canvas, x, top, x, bottom, paint); 947 drawLine(canvas, left, y, right, y, paint); [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 1279 const android::Paint* paint = reinterpret_cast<android::Paint*>(paintHandle); local 1284 src.extractAlpha(&dst, paint, &allocator, &offset);
|
H A D | Paint.cpp | 68 static void defaultSettingsForAndroid(Paint* paint) { argument 70 paint->setTextEncoding(Paint::kGlyphID_TextEncoding); 78 static void deletePaint(Paint* paint) { argument 79 delete paint; 103 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 104 Paint* obj = new Paint(*paint); 108 static int breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], argument 115 MinikinUtils::measureText(&paint, bidiFlags, typeface, text, 0, count, count, 145 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 163 count = breakText(env, *paint, typefac 174 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 184 doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, const jchar *text, jint start, jint count, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument 219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 232 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 242 doTextRunCursor(JNIEnv *env, Paint* paint, Typeface* typeface, const jchar *text, jint start, jint count, jint dir, jint offset, jint opt) argument 257 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 269 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 280 GetTextFunctor(const minikin::Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument 303 Paint* paint; member in class:android::PaintGlue::GetTextFunctor 309 getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument 331 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 342 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 350 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, Typeface* typeface, jint bidiFlags) argument 369 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 378 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 428 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 501 doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument 517 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 527 doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument 539 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 560 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 576 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 702 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 713 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 848 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 923 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 928 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 933 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 938 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 943 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 948 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 966 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 977 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 91 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 93 return static_cast<jint>(get_canvas(canvasHandle)->saveLayer(l, t, r, b, paint, flags)); 219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 220 get_canvas(canvasHandle)->drawPaint(*paint); 225 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 226 get_canvas(canvasHandle)->drawPoint(x, y, *paint); 241 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 242 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint); 247 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 248 get_canvas(canvasHandle)->drawLine(startX, startY, stopX, stopY, *paint); 263 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 269 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 276 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 282 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 288 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 294 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 301 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 309 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 338 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 350 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 379 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 412 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 422 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 458 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 469 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 478 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 489 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 501 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 515 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 532 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local 547 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 793 Paint paint; 824 paint = null; // not needed 841 paint = new Paint(); 842 paint.setFilterBitmap(filter); 844 paint.setAntiAlias(true); 859 canvas.drawBitmap(source, srcR, dstR, paint); 1817 * taken from the paint that is passed to the draw call. 1834 * paint contains a blur of radius 2, then offsetXY[] would contains 1841 * @param paint Optional paint use 1852 extractAlpha(Paint paint, int[] offsetXY) argument [all...] |
H A D | Canvas.java | 40 * Path, text, Bitmap), and a paint (to describe the colors and styles for the 435 * @param paint This is copied, and is applied to the offscreen when 441 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument 445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 470 * @param paint This is copied, and is applied to the offscreen when 474 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { argument 475 return saveLayer(bounds, paint, ALL_SAVE_FLAG); 483 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument 486 paint != null ? paint 494 saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) argument 1321 drawArc(@onNull RectF oval, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument 1350 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument 1385 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument 1408 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument 1432 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument 1459 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument 1473 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument 1485 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument 1509 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument 1525 drawCircle(float cx, float cy, float radius, @NonNull Paint paint) argument 1564 drawLine(float startX, float startY, float stopX, float stopY, @NonNull Paint paint) argument 1582 drawLines(@izemultiple = 4) @onNull float[] pts, int offset, int count, @NonNull Paint paint) argument 1587 drawLines(@izemultiple = 4) @onNull float[] pts, @NonNull Paint paint) argument 1597 drawOval(@onNull RectF oval, @NonNull Paint paint) argument 1605 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1616 drawPaint(@onNull Paint paint) argument 1628 drawPatch(@onNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) argument 1640 drawPatch(@onNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) argument 1651 drawPath(@onNull Path path, @NonNull Paint paint) argument 1658 drawPoint(float x, float y, @NonNull Paint paint) argument 1675 drawPoints(@izemultiple = 2) float[] pts, int offset, int count, @NonNull Paint paint) argument 1683 drawPoints(@izemultiple = 2) @onNull float[] pts, @NonNull Paint paint) argument 1700 drawPosText(@onNull char[] text, int index, int count, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument 1717 drawPosText(@onNull String text, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument 1729 drawRect(@onNull RectF rect, @NonNull Paint paint) argument 1740 drawRect(@onNull Rect r, @NonNull Paint paint) argument 1754 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1779 drawRoundRect(@onNull RectF rect, float rx, float ry, @NonNull Paint paint) argument 1791 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument 1805 drawText(@onNull char[] text, int index, int count, float x, float y, @NonNull Paint paint) argument 1819 drawText(@onNull String text, float x, float y, @NonNull Paint paint) argument 1834 drawText(@onNull String text, int start, int end, float x, float y, @NonNull Paint paint) argument 1850 drawText(@onNull CharSequence text, int start, int end, float x, float y, @NonNull Paint paint) argument 1865 drawTextOnPath(@onNull char[] text, int index, int count, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument 1880 drawTextOnPath(@onNull String text, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument 1907 drawTextRun(@onNull char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, @NonNull Paint paint) argument 1945 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument 1978 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 [all...] |
H A D | ColorSpace.java | 3943 Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); 3956 drawBox(canvas, width, height, paint, path); 3958 drawLocus(canvas, width, height, paint, path, primaries); 3959 drawGamuts(canvas, width, height, paint, path, primaries, whitePoint); 3960 drawPoints(canvas, width, height, paint); 3972 * @param paint A pre-allocated paint used to avoid temporary allocations 3975 @NonNull Paint paint) { 3977 paint.setStyle(Paint.Style.FILL); 3990 paint 3974 drawPoints(@onNull Canvas canvas, int width, int height, @NonNull Paint paint) argument 4015 drawGamuts( @onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path, @NonNull @Size(6) float[] primaries, @NonNull @Size(2) float[] whitePoint) argument 4092 drawLocus( @onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path, @NonNull @Size(6) float[] primaries) argument 4168 drawBox(@onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path) argument [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 479 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument 481 paint); 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); 492 GLPaint paint) { 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); 491 draw(int type, int offset, int count, float x, float y, float width, float height, GLPaint paint) argument
|
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 53 MinikinPaint paint; member in struct:minikin::LayoutContext 70 LayoutCacheKey(const std::shared_ptr<FontCollection>& collection, const MinikinPaint& paint, argument 75 mSize(paint.size), mScaleX(paint.scaleX), mSkewX(paint.skewX), 76 mLetterSpacing(paint.letterSpacing), 77 mPaintFlags(paint.paintFlags), mHyphenEdit(paint.hyphenEdit), mIsRtl(dir), 240 MinikinPaint* paint = reinterpret_cast<MinikinPaint*>(fontData); local 241 float advance = paint 556 doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const std::shared_ptr<FontCollection>& collection) argument 575 measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const std::shared_ptr<FontCollection>& collection, float* advances) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 413 public void setLayerType(int layerType, Paint paint); argument
|
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | ViewCompat.java | 544 public void setLayerPaint(View view, Paint paint) { argument 545 // Make sure the paint is correct; this will be cheap if it's the same 547 view.setLayerType(view.getLayerType(), paint); 1107 public void setLayerPaint(View view, Paint paint) { argument 1108 view.setLayerPaint(paint); 2038 * properties of the paint are taken into account when composing the layer:</p> 2046 * setAlpha(float), the alpha value of the layer's paint is replaced by 2048 * equivalent to setting a hardware layer on this view and providing a paint with 2059 * @param paint The paint use 2066 setLayerType(View view, @LayerType int layerType, Paint paint) argument 2147 setLayerPaint(View view, Paint paint) argument [all...] |