Searched refs:paint (Results 1 - 25 of 114) sorted by relevance

12345

/frameworks/base/graphics/java/android/graphics/
H A DLayerRasterizer.java26 the specified paint, but will not retain a reference to the paint
29 public void addLayer(Paint paint, float dx, float dy) { argument
30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy);
33 public void addLayer(Paint paint) { argument
34 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0);
H A DCanvas.java30 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
343 * @param paint This is copied, and is applied to the offscreen when
348 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
350 paint != null ? paint.mNativePaint : 0,
357 public int saveLayer(float left, float top, float right, float bottom, Paint paint, argument
360 paint != null ? paint.mNativePaint : 0,
827 * the specified paint. This is equivalent (but faster) to drawing an
828 * infinitely large rectangle with the specified paint
832 drawPaint(Paint paint) argument
852 drawPoints(float[] pts, int offset, int count, Paint paint) argument
857 drawPoints(float[] pts, Paint paint) argument
864 drawPoint(float x, float y, Paint paint) argument
875 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument
894 drawLines(float[] pts, int offset, int count, Paint paint) argument
896 drawLines(float[] pts, Paint paint) argument
907 drawRect(RectF rect, Paint paint) argument
918 drawRect(Rect r, Paint paint) argument
933 drawRect(float left, float top, float right, float bottom, Paint paint) argument
943 drawOval(RectF oval, Paint paint) argument
960 drawCircle(float cx, float cy, float radius, Paint paint) argument
987 drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument
1005 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument
1020 drawPath(Path path, Paint paint) argument
1042 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument
1064 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument
1092 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
1123 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument
1151 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument
1180 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
1194 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
1234 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
1299 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
1326 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument
1344 drawText(String text, float x, float y, Paint paint) argument
1360 drawText(String text, int start, int end, float x, float y, Paint paint) argument
1381 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument
1419 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
1456 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
1504 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument
1524 drawPosText(String text, float[] pos, Paint paint) argument
1544 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument
1567 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument
1629 native_saveLayer(int nativeCanvas, RectF bounds, int paint, int layerFlags) argument
1631 native_saveLayer(int nativeCanvas, float l, float t, float r, float b, int paint, int layerFlags) argument
1675 native_drawPaint(int nativeCanvas, int paint) argument
1676 native_drawLine(int nativeCanvas, float startX, float startY, float stopX, float stopY, int paint) argument
1679 native_drawRect(int nativeCanvas, RectF rect, int paint) argument
1681 native_drawRect(int nativeCanvas, float left, float top, float right, float bottom, int paint) argument
1684 native_drawOval(int nativeCanvas, RectF oval, int paint) argument
1686 native_drawCircle(int nativeCanvas, float cx, float cy, float radius, int paint) argument
1689 native_drawArc(int nativeCanvas, RectF oval, float startAngle, float sweep, boolean useCenter, int paint) argument
1692 native_drawRoundRect(int nativeCanvas, RectF rect, float rx, float ry, int paint) argument
1695 native_drawPath(int nativeCanvas, int path, int paint) argument
1729 native_drawText(int nativeCanvas, char[] text, int index, int count, float x, float y, int flags, int paint) argument
1732 native_drawText(int nativeCanvas, String text, int start, int end, float x, float y, int flags, int paint) argument
1736 native_drawTextRun(int nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, int flags, int paint) argument
1740 native_drawTextRun(int nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, int flags, int paint) argument
1744 native_drawPosText(int nativeCanvas, char[] text, int index, int count, float[] pos, int paint) argument
1748 native_drawPosText(int nativeCanvas, String text, float[] pos, int paint) argument
1751 native_drawTextOnPath(int nativeCanvas, char[] text, int index, int count, int path, float hOffset, float vOffset, int bidiFlags, int paint) argument
1757 native_drawTextOnPath(int nativeCanvas, String text, int path, float hOffset, float vOffset, int flags, int paint) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20RecordingCanvas.java86 private void recordShaderBitmap(Paint paint) { argument
87 if (paint != null) {
88 final Shader shader = paint.getShader();
96 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
97 super.drawPatch(bitmap, chunks, dst, paint);
103 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument
104 super.drawBitmap(bitmap, left, top, paint);
110 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
111 super.drawBitmap(bitmap, matrix, paint);
117 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument
124 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
131 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument
138 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
145 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
154 drawCircle(float cx, float cy, float radius, Paint paint) argument
167 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument
173 drawLines(float[] pts, int offset, int count, Paint paint) argument
179 drawLines(float[] pts, Paint paint) argument
185 drawOval(RectF oval, Paint paint) argument
191 drawPaint(Paint paint) argument
197 drawPath(Path path, Paint paint) argument
203 drawPoint(float x, float y, Paint paint) argument
209 drawPoints(float[] pts, int offset, int count, Paint paint) argument
215 drawPoints(float[] pts, Paint paint) argument
221 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument
227 drawPosText(String text, float[] pos, Paint paint) argument
233 drawRect(float left, float top, float right, float bottom, Paint paint) argument
239 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument
245 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument
251 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument
257 drawText(String text, int start, int end, float x, float y, Paint paint) argument
263 drawText(String text, float x, float y, Paint paint) argument
269 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument
276 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument
282 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
289 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
296 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 DGLES20Canvas.java411 void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint) { argument
413 final int nativePaint = paint == null ? 0 : paint.mNativePaint;
417 private static native void nDrawLayer(int renderer, int layer, float x, float y, int paint); argument
607 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
609 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags);
613 int modifier = paint != null ? setupColorFilter(paint) : MODIFIER_NONE;
615 final int nativePaint = paint == null ? 0 : paint
623 nSaveLayer(int renderer, int paint, int saveFlags) argument
626 saveLayer(float left, float top, float right, float bottom, Paint paint, int saveFlags) argument
642 nSaveLayer(int renderer, float left, float top, float right, float bottom, int paint, int saveFlags) argument
717 drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument
728 nDrawArc(int renderer, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, int paint) argument
738 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument
751 nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks, float left, float top, float right, float bottom, int paint) argument
755 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument
767 nDrawBitmap( int renderer, int bitmap, byte[] buffer, float left, float top, int paint) argument
771 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument
784 nDrawBitmap(int renderer, int bitmap, byte[] buff, int matrix, int paint) argument
788 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument
815 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument
841 nDrawBitmap(int renderer, int bitmap, byte[] buffer, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, int paint) argument
846 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument
883 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
890 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
918 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument
923 drawCircle(float cx, float cy, float radius, Paint paint) argument
932 nDrawCircle(int renderer, float cx, float cy, float radius, int paint) argument
948 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument
957 drawLines(float[] pts, int offset, int count, Paint paint) argument
969 nDrawLines(int renderer, float[] points, int offset, int count, int paint) argument
973 drawLines(float[] pts, Paint paint) argument
978 drawOval(RectF oval, Paint paint) argument
987 nDrawOval(int renderer, float left, float top, float right, float bottom, int paint) argument
991 drawPaint(Paint paint) argument
998 drawPath(Path path, Paint paint) argument
1013 nDrawPath(int renderer, int path, int paint) argument
1014 nDrawRects(int renderer, int region, int paint) argument
1057 drawPoint(float x, float y, Paint paint) argument
1064 drawPoints(float[] pts, Paint paint) argument
1069 drawPoints(float[] pts, int offset, int count, Paint paint) argument
1078 nDrawPoints(int renderer, float[] points, int offset, int count, int paint) argument
1083 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument
1096 nDrawPosText(int renderer, char[] text, int index, int count, float[] pos, int paint) argument
1101 drawPosText(String text, float[] pos, Paint paint) argument
1114 nDrawPosText(int renderer, String text, int start, int end, float[] pos, int paint) argument
1118 drawRect(float left, float top, float right, float bottom, Paint paint) argument
1128 nDrawRect(int renderer, float left, float top, float right, float bottom, int paint) argument
1132 drawRect(Rect r, Paint paint) argument
1137 drawRect(RectF r, Paint paint) argument
1147 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument
1157 nDrawRoundRect(int renderer, float left, float top, float right, float bottom, float rx, float y, int paint) argument
1161 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument
1174 nDrawText(int renderer, char[] text, int index, int count, float x, float y, int bidiFlags, int paint) argument
1178 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument
1201 drawText(String text, int start, int end, float x, float y, Paint paint) argument
1214 nDrawText(int renderer, String text, int start, int end, float x, float y, int bidiFlags, int paint) argument
1218 drawText(String text, float x, float y, Paint paint) argument
1229 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument
1248 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument
1264 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
1286 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument
1320 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
1326 setupModifiers(Bitmap b, Paint paint) argument
1340 setupModifiers(Paint paint) argument
1364 setupModifiers(Paint paint, int flags) argument
1388 setupColorFilter(Paint paint) argument
[all...]
H A DGLES20Layer.java47 void setLayerPaint(Paint paint) { argument
48 if (paint != null) {
49 GLES20Canvas.nSetLayerPaint(mLayer, paint.mNativePaint);
50 GLES20Canvas.nSetLayerColorFilter(mLayer, paint.getColorFilter() != null ?
51 paint.getColorFilter().nativeColorFilter : 0);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DOvalShape.java36 public void draw(Canvas canvas, Paint paint) { argument
37 canvas.drawOval(rect(), paint);
H A DArcShape.java47 public void draw(Canvas canvas, Paint paint) { argument
48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
H A DRectShape.java38 public void draw(Canvas canvas, Paint paint) { argument
39 canvas.drawRect(mRect, paint);
/frameworks/support/v4/honeycomb/android/support/v4/view/
H A DViewCompatHC.java28 public static void setLayerType(View view, int layerType, Paint paint) { argument
29 view.setLayerType(layerType, paint);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DDashPathEffect_Delegate.java52 public Stroke getStroke(Paint_Delegate paint) { argument
54 paint.getStrokeWidth(),
55 paint.getJavaCap(),
56 paint.getJavaJoin(),
57 paint.getJavaStrokeMiter(),
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp58 static void defaultSettingsForAndroid(SkPaint* paint) { argument
60 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding);
79 static SkPaint* intiWithPaint(JNIEnv* env, jobject clazz, SkPaint* paint) { argument
80 SkPaint* obj = new SkPaint(*paint);
93 static jint getFlags(JNIEnv* env, jobject paint) { argument
94 NPE_CHECK_RETURN_ZERO(env, paint);
95 return GraphicsJNI::getNativePaint(env, paint)->getFlags();
98 static void setFlags(JNIEnv* env, jobject paint, jint flags) { argument
99 NPE_CHECK_RETURN_VOID(env, paint);
100 GraphicsJNI::getNativePaint(env, paint)
103 getHinting(JNIEnv* env, jobject paint) argument
109 setHinting(JNIEnv* env, jobject paint, jint mode) argument
115 setAntiAlias(JNIEnv* env, jobject paint, jboolean aa) argument
120 setLinearText(JNIEnv* env, jobject paint, jboolean linearText) argument
125 setSubpixelText(JNIEnv* env, jobject paint, jboolean subpixelText) argument
130 setUnderlineText(JNIEnv* env, jobject paint, jboolean underlineText) argument
135 setStrikeThruText(JNIEnv* env, jobject paint, jboolean strikeThruText) argument
140 setFakeBoldText(JNIEnv* env, jobject paint, jboolean fakeBoldText) argument
145 setFilterBitmap(JNIEnv* env, jobject paint, jboolean filterBitmap) argument
150 setDither(JNIEnv* env, jobject paint, jboolean dither) argument
163 getColor(JNIEnv* env, jobject paint) argument
168 getAlpha(JNIEnv* env, jobject paint) argument
173 setColor(JNIEnv* env, jobject paint, jint color) argument
178 setAlpha(JNIEnv* env, jobject paint, jint a) argument
183 getStrokeWidth(JNIEnv* env, jobject paint) argument
188 setStrokeWidth(JNIEnv* env, jobject paint, jfloat width) argument
193 getStrokeMiter(JNIEnv* env, jobject paint) argument
198 setStrokeMiter(JNIEnv* env, jobject paint, jfloat miter) argument
306 getTextSize(JNIEnv* env, jobject paint) argument
311 setTextSize(JNIEnv* env, jobject paint, jfloat textSize) argument
316 getTextScaleX(JNIEnv* env, jobject paint) argument
321 setTextScaleX(JNIEnv* env, jobject paint, jfloat scaleX) argument
326 getTextSkewX(JNIEnv* env, jobject paint) argument
331 setTextSkewX(JNIEnv* env, jobject paint, jfloat skewX) argument
336 ascent(JNIEnv* env, jobject paint) argument
343 descent(JNIEnv* env, jobject paint) argument
350 getFontMetrics(JNIEnv* env, jobject paint, jobject metricsObj) argument
366 getFontMetricsInt(JNIEnv* env, jobject paint, jobject metricsObj) argument
399 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
425 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
445 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
455 dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths) argument
481 getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) argument
489 getTextWidths__StringII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jfloatArray widths) argument
497 doTextGlyphs(JNIEnv* env, SkPaint* paint, const jchar* text, jint start, jint count, jint contextCount, jint flags, jcharArray glyphs) argument
527 getTextGlyphs__StringIIIII_C(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jcharArray glyphs) argument
537 doTextRunAdvances(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
569 doTextRunAdvancesICU(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
602 getTextRunAdvances___CIIIII_FII(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex, jint reserved) argument
615 getTextRunAdvances__StringIIIII_FII(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jfloatArray advances, jint advancesIndex, jint reserved) argument
628 doTextRunCursor(JNIEnv *env, SkPaint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
672 getTextRunCursor___C(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint contextStart, jint contextCount, jint flags, jint offset, jint cursorOpt) argument
681 getTextRunCursor__String(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint contextStart, jint contextEnd, jint flags, jint offset, jint cursorOpt) argument
690 getTextPath(JNIEnv* env, SkPaint* paint, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath *path) argument
695 getTextPath___C(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jcharArray text, int index, int count, jfloat x, jfloat y, SkPath* path) argument
702 getTextPath__String(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jstring text, int start, int end, jfloat x, jfloat y, SkPath* path) argument
713 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
725 breakText(JNIEnv* env, SkPaint& paint, const jchar text[], int count, float maxWidth, jfloatArray jmeasured, SkPaint::TextBufferDirection tbd) argument
765 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
783 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local
792 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const SkPaint& paint) argument
808 getStringBounds(JNIEnv* env, jobject, const SkPaint* paint, jstring text, int start, int end, jobject bounds) argument
816 getCharArrayBounds(JNIEnv* env, jobject, const SkPaint* paint, jcharArray text, int index, int count, jobject bounds) argument
[all...]
H A DLayerRasterizer.cpp10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
12 SkASSERT(paint);
13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
H A DTextLayout.h65 static void getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start,
69 static void getTextRunAdvancesICU(SkPaint* paint, const jchar* chars, jint start,
73 static void getTextPath(SkPaint* paint, const jchar* text, jsize len,
76 static void drawTextOnPath(SkPaint* paint, const jchar* text, jsize len,
83 static void handleText(SkPaint* paint, const jchar* text, jsize len,
86 static void computeAdvancesWithICU(SkPaint* paint, const UChar* chars,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGradientStopsActivity.java50 Paint paint = new Paint();
51 paint.setShader(gradient);
53 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
60 paint.setShader(gradient);
63 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
70 paint.setShader(gradient);
73 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
79 paint.setShader(gradient);
82 canvas.drawRect(0.0f, 0.0f, 256.0f, 50.0f, paint);
87 paint
[all...]
/frameworks/base/core/java/android/text/style/
H A DStyleSpan.java77 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 DTypefaceSpan.java69 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);
H A DReplacementSpan.java25 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
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestView.java148 TextPaint paint = new TextPaint();
149 paint.setAntiAlias(true);
151 // Set paint properties
152 boolean oldFakeBold = paint.isFakeBoldText();
153 paint.setFakeBoldText(isBold);
155 float oldTextSkewX = paint.getTextSkewX();
157 paint.setTextSkewX(DEFAULT_ITALIC_SKEW_X);
160 paint.setTextSize(textSize);
161 paint.setColor(Color.WHITE);
162 canvas.drawText(text, x, y, paint);
181 setPaintDir(Paint paint, int dir) argument
186 drawInsideRect(Canvas canvas, Paint paint, int color) argument
[all...]
H A DBiDiTestViewDrawText.java59 final TextPaint paint = new TextPaint();
60 paint.setTextSize(mSize);
61 paint.setColor(mColor);
62 paint.setTextAlign(Align.CENTER);
64 canvas.drawText(mText, width / 2, height * 2 / 3, paint);
/frameworks/base/libs/hwui/
H A DShapeCache.cpp33 float rx, float ry, SkPaint* paint) {
34 RoundRectShapeCacheEntry entry(width, height, rx, ry, paint);
43 texture = addTexture(entry, &path, paint);
57 PathTexture* CircleShapeCache::getCircle(float radius, SkPaint* paint) { argument
58 CircleShapeCacheEntry entry(radius, paint);
65 texture = addTexture(entry, &path, paint);
79 PathTexture* OvalShapeCache::getOval(float width, float height, SkPaint* paint) { argument
80 OvalShapeCacheEntry entry(width, height, paint);
89 texture = addTexture(entry, &path, paint);
103 PathTexture* RectShapeCache::getRect(float width, float height, SkPaint* paint) { argument
32 getRoundRect(float width, float height, float rx, float ry, SkPaint* paint) argument
144 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument
[all...]
H A DPathCache.h35 PathCacheEntry(SkPath* path, SkPaint* paint): argument
36 ShapeCacheEntry(ShapeCacheEntry::kShapePath, paint) {
69 PathTexture* get(SkPath* path, SkPaint* paint);
H A DGammaFontRenderer.h35 virtual FontRenderer& getFontRenderer(const SkPaint* paint) = 0;
40 virtual void describe(ProgramDescription& description, const SkPaint* paint) const = 0;
71 FontRenderer& getFontRenderer(const SkPaint* paint) { argument
86 void describe(ProgramDescription& description, const SkPaint* paint) const;
115 FontRenderer& getFontRenderer(const SkPaint* paint) { argument
131 void describe(ProgramDescription& description, const SkPaint* paint) const {
153 FontRenderer& getFontRenderer(const SkPaint* paint);
168 void describe(ProgramDescription& description, const SkPaint* paint) const {
H A DPathCache.cpp29 void computePathBounds(const SkPath* path, const SkPaint* paint, argument
32 computeBounds(bounds, paint, left, top, offset, width, height);
35 void computeBounds(const SkRect& bounds, const SkPaint* paint, argument
43 offset = (int) floorf(fmax(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f);
90 PathTexture* PathCache::get(SkPath* path, SkPaint* paint) { argument
96 PathCacheEntry entry(path, paint);
103 texture = addTexture(entry, path, paint);
106 texture = addTexture(entry, path, paint);
/frameworks/base/libs/hwui/font/
H A DFontUtil.h40 #define GET_METRICS(paint, glyph) paint->getGlyphMetrics(glyph)
53 #define GET_METRICS(paint, glyph) paint->getUnicharMetrics(glyph)
/frameworks/base/core/java/android/text/
H A DBoringLayout.java40 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
227 isBoring(CharSequence text, TextPaint paint) argument
236 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir) argument
247 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument
257 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument
[all...]

Completed in 389 milliseconds

12345