/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 416 Paint.FontMetricsInt fm, TextPaint paint) { 418 if (paint != null) { 419 size *= paint.density; 414 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureStroke.java | 101 * Draws the stroke with a given canvas and paint. 105 void draw(Canvas canvas, Paint paint) { argument 110 canvas.drawPath(mCachedPath, paint);
|
/frameworks/base/core/java/android/text/ |
H A D | BoringLayout.java | 40 TextPaint paint, int outerwidth, 44 return new BoringLayout(source, paint, outerwidth, align, 50 TextPaint paint, int outerwidth, 55 return new BoringLayout(source, paint, outerwidth, align, 65 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, argument 70 replaceWith(source, paint, outerwidth, align, spacingmult, 77 init(source, paint, outerwidth, align, spacingmult, spacingadd, 87 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, argument 97 replaceWith(source, paint, outerwidth, align, spacingmult, 105 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidt 39 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument 49 make(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 119 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad) argument 134 BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 169 init(CharSequence source, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, BoringLayout.Metrics metrics, boolean includepad, boolean trustWidth) argument 223 isBoring(CharSequence text, TextPaint paint) argument 232 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir) argument 243 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument 253 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument [all...] |
H A D | DynamicLayout.java | 46 TextPaint paint, 50 this(base, base, paint, width, align, spacingmult, spacingadd, 60 TextPaint paint, 64 this(base, display, paint, width, align, spacingmult, spacingadd, 76 TextPaint paint, 81 this(base, display, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR, 95 TextPaint paint, 105 paint, width, align, textDir, spacingmult, spacingadd); 156 Paint.FontMetricsInt fm = paint.getFontMetricsInt(); 45 DynamicLayout(CharSequence base, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 59 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 75 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 94 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
|
H A D | GraphicsOperations.java | 58 boolean isRtl, float[] advances, int advancesIndex, Paint paint); 57 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex, Paint paint) argument
|
H A D | Layout.java | 67 TextPaint paint) { 68 return getDesiredWidth(source, 0, source.length(), paint); 77 TextPaint paint) { 88 float w = measurePara(paint, source, i, next); 103 * @param paint the default paint for the layout. Styles can override 104 * various attributes of the paint. 112 protected Layout(CharSequence text, TextPaint paint, argument 115 this(text, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR, 123 * @param paint th 66 getDesiredWidth(CharSequence source, TextPaint paint) argument 75 getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) argument 134 Layout(CharSequence text, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingMult, float spacingAdd) argument 164 replaceWith(CharSequence text, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd) argument 1562 measurePara(TextPaint paint, CharSequence text, int start, int end) argument [all...] |
H A D | MeasuredText.java | 153 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { argument 155 paint.getFontMetricsInt(fm); 163 return paint.getTextRunAdvances(mChars, p, len, p, len, isRtl, mWidths, p); 172 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, isRtl, mWidths, q); 183 float addStyleRun(TextPaint paint, MetricAffectingSpan[] spans, int len, argument 187 workPaint.set(paint); 188 // XXX paint should not have a baseline shift, but...
|
H A D | StaticLayout.java | 45 public StaticLayout(CharSequence source, TextPaint paint, argument 49 this(source, 0, source.length(), paint, width, align, 56 public StaticLayout(CharSequence source, TextPaint paint, argument 60 this(source, 0, source.length(), paint, width, align, textDir, 65 TextPaint paint, int outerwidth, 69 this(source, bufstart, bufend, paint, outerwidth, align, 77 TextPaint paint, int outerwidth, 81 this(source, bufstart, bufend, paint, outerwidth, align, textDir, 86 TextPaint paint, int outerwidth, 91 this(source, bufstart, bufend, paint, outerwidt 64 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 76 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 85 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 99 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 158 generate(CharSequence source, int bufStart, int bufEnd, TextPaint paint, int outerWidth, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, boolean trackpad, float ellipsizedWidth, TextUtils.TruncateAt ellipsize) argument 508 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, boolean hasTabOrEmoji, 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 641 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 | TextLine.java | 125 * @param paint the base paint for the line 134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument 136 mPaint = paint; 710 * @param wp the working paint 803 * @param wp the work paint 967 * Render a text run with the set-up paint. 970 * @param wp the paint used to render the text
|
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/text/style/ |
H A D | DynamicDrawableSpan.java | 74 public int getSize(Paint paint, CharSequence text, argument 94 int top, int y, int bottom, Paint paint) { 100 transY -= paint.getFontMetricsInt().descent; 92 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
H A D | LineHeightSpan.java | 32 Paint.FontMetricsInt fm, TextPaint paint); 30 chooseHeight(CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm, TextPaint paint) argument
|
H A D | LocaleSpan.java | 77 public void updateMeasureState(TextPaint paint) { argument 78 apply(paint, mLocale); 81 private static void apply(Paint paint, Locale locale) { argument 82 paint.setTextLocale(locale);
|
H A D | ReplacementSpan.java | 25 public abstract int getSize(Paint paint, CharSequence text, argument 30 int top, int y, int bottom, Paint paint); 28 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
H A D | StyleSpan.java | 77 public void updateMeasureState(TextPaint paint) { argument 78 apply(paint, mStyle); 81 private static void apply(Paint paint, int style) { argument 84 Typeface old = paint.getTypeface(); 103 paint.setFakeBoldText(true); 107 paint.setTextSkewX(-0.25f); 110 paint.setTypeface(tf);
|
H A D | TypefaceSpan.java | 69 public void updateMeasureState(TextPaint paint) { argument 70 apply(paint, mFamily); 73 private static void apply(Paint paint, String family) { argument 76 Typeface old = paint.getTypeface(); 87 paint.setFakeBoldText(true); 91 paint.setTextSkewX(-0.25f); 94 paint.setTypeface(tf);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 243 void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint) { argument 244 layer.setLayerPaint(paint); 445 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument 447 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 450 final long nativePaint = paint == null ? 0 : paint.mNativePaint; 454 private static native int nSaveLayer(long renderer, long paint, int saveFlags); argument 457 public int saveLayer(float left, float top, float right, float bottom, Paint paint, argument 460 final long nativePaint = paint == null ? 0 : paint 466 nSaveLayer(long renderer, float left, float top, float right, float bottom, long paint, int saveFlags) argument 541 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 547 nDrawArc(long renderer, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, long paint) argument 557 drawPatch(NinePatch patch, Rect dst, Paint paint) argument 566 drawPatch(NinePatch patch, RectF dst, Paint paint) argument 574 nDrawPatch(long renderer, long bitmap, long chunk, float left, float top, float right, float bottom, long paint) argument 578 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 584 nDrawBitmap(long renderer, long bitmap, float left, float top, long paint) argument 588 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 594 nDrawBitmap(long renderer, long bitmap, long matrix, long paint) argument 598 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 619 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 639 nDrawBitmap(long renderer, long bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, long paint) argument 644 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 675 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 681 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 704 nDrawBitmapMesh(long renderer, long bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long paint) argument 709 drawCircle(float cx, float cy, float radius, Paint paint) argument 713 nDrawCircle(long renderer, float cx, float cy, float radius, long paint) argument 717 drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, CanvasProperty<Float> radius, CanvasProperty<Paint> paint) argument 727 drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, CanvasProperty<Float> ry, CanvasProperty<Paint> paint) argument 752 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument 762 drawLines(float[] pts, int offset, int count, Paint paint) argument 771 nDrawLines(long renderer, float[] points, int offset, int count, long paint) argument 775 drawLines(float[] pts, Paint paint) argument 780 drawOval(float left, float top, float right, float bottom, Paint paint) argument 784 nDrawOval(long renderer, float left, float top, float right, float bottom, long paint) argument 788 drawPaint(Paint paint) argument 795 drawPath(Path path, Paint paint) argument 805 nDrawPath(long renderer, long path, long paint) argument 806 nDrawRects(long renderer, long region, long paint) argument 815 drawPoint(float x, float y, Paint paint) argument 823 drawPoints(float[] pts, Paint paint) argument 828 drawPoints(float[] pts, int offset, int count, Paint paint) argument 834 nDrawPoints(long renderer, float[] points, int offset, int count, long paint) argument 840 drawRect(float left, float top, float right, float bottom, Paint paint) argument 845 nDrawRect(long renderer, float left, float top, float right, float bottom, long paint) argument 849 drawRect(Rect r, Paint paint) argument 854 drawRect(RectF r, Paint paint) argument 864 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint) argument 869 nDrawRoundRect(long renderer, float left, float top, float right, float bottom, float rx, float y, long paint) argument 873 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 882 nDrawText(long renderer, char[] text, int index, int count, float x, float y, int bidiFlags, long paint, long typeface) argument 886 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument 906 drawText(String text, int start, int end, float x, float y, Paint paint) argument 915 nDrawText(long renderer, String text, int start, int end, float x, float y, int bidiFlags, long paint, long typeface) argument 919 drawText(String text, float x, float y, Paint paint) argument 925 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 940 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument 952 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, Paint paint) argument 966 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint paint) argument 994 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 [all...] |
H A D | HardwareCanvas.java | 91 * @param paint The paint used to draw the layer 95 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument 111 CanvasProperty<Float> radius, CanvasProperty<Paint> paint); 116 CanvasProperty<Paint> paint); 110 drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, CanvasProperty<Float> radius, CanvasProperty<Paint> paint) argument 113 drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, CanvasProperty<Float> ry, CanvasProperty<Paint> paint) argument
|
H A D | HardwareLayer.java | 49 * Update the paint used when drawing this layer. 51 * @param paint The paint used when the layer is drawn into the destination canvas. 54 public void setLayerPaint(Paint paint) { argument 55 nSetLayerPaint(mFinalizer.get(), paint.mNativePaint); 148 private static native void nSetLayerPaint(long layerUpdater, long paint); argument
|
H A D | RenderNode.java | 307 public boolean setLayerPaint(Paint paint) { argument 308 return nSetLayerPaint(mNativeRenderNode, paint != null ? paint.mNativePaint : 0); 855 private static native boolean nSetLayerPaint(long renderNode, long paint); argument
|
H A D | TextureView.java | 255 * considered to act as a hardware layer. The optional paint supplied to this 262 * @param paint The paint used to compose the layer. This argument is optional 267 public void setLayerType(int layerType, Paint paint) { argument 268 if (paint != mLayerPaint) { 269 mLayerPaint = paint == null ? new Paint() : paint; 275 public void setLayerPaint(Paint paint) { argument 276 setLayerType(/* ignored */ 0, paint);
|
H A D | View.java | 10539 * {@link #setLayerPaint(android.graphics.Paint) layer paint}, setting an alpha value less than 10540 * 1.0 will supercede the alpha of the layer paint.</p> 13826 * properties of the paint are taken into account when composing the layer:</p> 13834 * {@link #setAlpha(float)}, the alpha value of the layer's paint is superceded 13844 * @param paint The paint used to compose the layer. This argument is optional 13856 public void setLayerType(int layerType, Paint paint) { argument 13865 setLayerPaint(paint); 13876 mLayerPaint = layerDisabled ? null : (paint == null ? new Paint() : paint); 13910 setLayerPaint(Paint paint) argument 20606 public final Paint paint; field in class:View.ScrollabilityCache [all...] |
H A D | ViewGroup.java | 3017 private static void fillRect(Canvas canvas, Paint paint, int x1, int y1, int x2, int y2) { argument 3025 canvas.drawRect(x1, y1, x2, y2, paint); 3033 private static void drawCorner(Canvas c, Paint paint, int x1, int y1, int dx, int dy, int lw) { argument 3034 fillRect(c, paint, x1, y1, x1 + dx, y1 + lw * sign(dy)); 3035 fillRect(c, paint, x1, y1, x1 + lw * sign(dx), y1 + dy); 3043 private static void drawRectCorners(Canvas canvas, int x1, int y1, int x2, int y2, Paint paint, argument 3045 drawCorner(canvas, paint, x1, y1, lineLength, lineLength, lineWidth); 3046 drawCorner(canvas, paint, x1, y2, lineLength, -lineLength, lineWidth); 3047 drawCorner(canvas, paint, x2, y1, -lineLength, lineLength, lineWidth); 3048 drawCorner(canvas, paint, x 3051 fillDifference(Canvas canvas, int x2, int y2, int x3, int y3, int dx1, int dy1, int dx2, int dy2, Paint paint) argument 3069 onDebugDrawMargins(Canvas canvas, Paint paint) argument 6511 onDebugDraw(View view, Canvas canvas, Paint paint) argument 6985 onDebugDraw(View view, Canvas canvas, Paint paint) argument 7307 drawRect(Canvas canvas, Paint paint, int x1, int y1, int x2, int y2) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebView.java | 2477 public void setLayerType(int layerType, Paint paint) { argument 2478 super.setLayerType(layerType, paint); 2479 mProvider.getViewDelegate().setLayerType(layerType, paint);
|
H A D | WebViewProvider.java | 362 public void setLayerType(int layerType, Paint paint); argument
|