/frameworks/base/core/java/android/view/ |
H A D | GLES20RecordingCanvas.java | 73 private void recordShaderBitmap(Paint paint) { argument 74 if (paint != null) { 75 final Shader shader = paint.getShader(); 83 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument 84 super.drawPatch(bitmap, chunks, dst, paint); 90 public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint) { argument 91 super.drawBitmap(bitmap, left, top, paint); 97 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument 98 super.drawBitmap(bitmap, matrix, paint); 104 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument 111 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 118 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 125 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 132 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 141 drawCircle(float cx, float cy, float radius, Paint paint) argument 154 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument 160 drawLines(float[] pts, int offset, int count, Paint paint) argument 166 drawLines(float[] pts, Paint paint) argument 172 drawOval(RectF oval, Paint paint) argument 178 drawPaint(Paint paint) argument 184 drawPath(Path path, Paint paint) argument 190 drawPoint(float x, float y, Paint paint) argument 196 drawPoints(float[] pts, int offset, int count, Paint paint) argument 202 drawPoints(float[] pts, Paint paint) argument 208 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument 214 drawPosText(String text, float[] pos, Paint paint) argument 220 drawRect(float left, float top, float right, float bottom, Paint paint) argument 226 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument 232 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 238 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument 244 drawText(String text, int start, int end, float x, float y, Paint paint) argument 250 drawText(String text, float x, float y, Paint paint) argument 256 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 263 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument 269 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument 276 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument 283 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 | GLES20Canvas.java | 401 void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint) { argument 402 layer.setLayerPaint(paint); 590 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument 592 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 596 int modifier = paint != null ? setupColorFilter(paint) : MODIFIER_NONE; 598 final int nativePaint = paint == null ? 0 : paint.mNativePaint; 606 private static native int nSaveLayer(int renderer, int paint, int saveFlags); argument 609 public int saveLayer(float left, float top, float right, float bottom, Paint paint, argument 625 nSaveLayer(int renderer, float left, float top, float right, float bottom, int paint, int saveFlags) argument 700 drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 711 nDrawArc(int renderer, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, int paint) argument 721 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument 734 nDrawPatch(int renderer, int bitmap, byte[] buffer, byte[] chunks, float left, float top, float right, float bottom, int paint) argument 738 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 750 nDrawBitmap( int renderer, int bitmap, byte[] buffer, float left, float top, int paint) argument 754 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 767 nDrawBitmap(int renderer, int bitmap, byte[] buff, int matrix, int paint) argument 771 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 798 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 824 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 829 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 866 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 873 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 901 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument 906 drawCircle(float cx, float cy, float radius, Paint paint) argument 915 nDrawCircle(int renderer, float cx, float cy, float radius, int paint) argument 931 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument 940 drawLines(float[] pts, int offset, int count, Paint paint) argument 954 nDrawLines(int renderer, float[] points, int offset, int count, int paint) argument 958 drawLines(float[] pts, Paint paint) argument 963 drawOval(RectF oval, Paint paint) argument 972 nDrawOval(int renderer, float left, float top, float right, float bottom, int paint) argument 976 drawPaint(Paint paint) argument 983 drawPath(Path path, Paint paint) argument 998 nDrawPath(int renderer, int path, int paint) argument 999 nDrawRects(int renderer, int region, int paint) argument 1001 drawRects(float[] rects, int count, Paint paint) argument 1010 nDrawRects(int renderer, float[] rects, int count, int paint) argument 1053 drawPoint(float x, float y, Paint paint) argument 1060 drawPoints(float[] pts, Paint paint) argument 1065 drawPoints(float[] pts, int offset, int count, Paint paint) argument 1076 nDrawPoints(int renderer, float[] points, int offset, int count, int paint) argument 1081 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument 1094 nDrawPosText(int renderer, char[] text, int index, int count, float[] pos, int paint) argument 1099 drawPosText(String text, float[] pos, Paint paint) argument 1112 nDrawPosText(int renderer, String text, int start, int end, float[] pos, int paint) argument 1116 drawRect(float left, float top, float right, float bottom, Paint paint) argument 1126 nDrawRect(int renderer, float left, float top, float right, float bottom, int paint) argument 1130 drawRect(Rect r, Paint paint) argument 1135 drawRect(RectF r, Paint paint) argument 1145 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument 1155 nDrawRoundRect(int renderer, float left, float top, float right, float bottom, float rx, float y, int paint) argument 1159 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 1172 nDrawText(int renderer, char[] text, int index, int count, float x, float y, int bidiFlags, int paint) argument 1176 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument 1199 drawText(String text, int start, int end, float x, float y, Paint paint) argument 1212 nDrawText(int renderer, String text, int start, int end, float x, float y, int bidiFlags, int paint) argument 1216 drawText(String text, float x, float y, Paint paint) argument 1227 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 1246 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument 1262 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument 1284 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument 1318 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 1324 setupModifiers(Bitmap b, Paint paint) argument 1338 setupModifiers(Paint paint) argument 1362 setupModifiers(Paint paint, int flags) argument 1386 setupColorFilter(Paint paint) argument [all...] |
H A D | GLES20Layer.java | 47 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/ |
H A D | LayerRasterizer.java | 26 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 D | Canvas.java | 30 * Path, text, Bitmap), and a paint (to describe the colors and styles for the 360 * @param paint This is copied, and is applied to the offscreen when 365 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument 367 paint != null ? paint.mNativePaint : 0, 374 public int saveLayer(float left, float top, float right, float bottom, Paint paint, argument 377 paint != null ? paint.mNativePaint : 0, 856 * the specified paint. This is equivalent (but faster) to drawing an 857 * infinitely large rectangle with the specified paint 861 drawPaint(Paint paint) argument 881 drawPoints(float[] pts, int offset, int count, Paint paint) argument 886 drawPoints(float[] pts, Paint paint) argument 893 drawPoint(float x, float y, Paint paint) argument 907 drawLine(float startX, float startY, float stopX, float stopY, Paint paint) argument 926 drawLines(float[] pts, int offset, int count, Paint paint) argument 928 drawLines(float[] pts, Paint paint) argument 939 drawRect(RectF rect, Paint paint) argument 950 drawRect(Rect r, Paint paint) argument 965 drawRect(float left, float top, float right, float bottom, Paint paint) argument 975 drawOval(RectF oval, Paint paint) argument 992 drawCircle(float cx, float cy, float radius, Paint paint) argument 1019 drawArc(RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 1037 drawRoundRect(RectF rect, float rx, float ry, Paint paint) argument 1052 drawPath(Path path, Paint paint) argument 1074 drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) argument 1096 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 1124 drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) argument 1155 drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) argument 1183 drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, Paint paint) argument 1212 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 1226 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 1266 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 1331 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 1358 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 1376 drawText(String text, float x, float y, Paint paint) argument 1392 drawText(String text, int start, int end, float x, float y, Paint paint) argument 1413 drawText(CharSequence text, int start, int end, float x, float y, Paint paint) argument 1451 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument 1488 drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, int dir, Paint paint) argument 1536 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument 1556 drawPosText(String text, float[] pos, Paint paint) argument 1576 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 1599 drawTextOnPath(String text, Path path, float hOffset, float vOffset, Paint paint) argument 1665 native_saveLayer(int nativeCanvas, RectF bounds, int paint, int layerFlags) argument 1667 native_saveLayer(int nativeCanvas, float l, float t, float r, float b, int paint, int layerFlags) argument 1708 native_drawPaint(int nativeCanvas, int paint) argument 1709 native_drawLine(int nativeCanvas, float startX, float startY, float stopX, float stopY, int paint) argument 1712 native_drawRect(int nativeCanvas, RectF rect, int paint) argument 1714 native_drawRect(int nativeCanvas, float left, float top, float right, float bottom, int paint) argument 1717 native_drawOval(int nativeCanvas, RectF oval, int paint) argument 1719 native_drawCircle(int nativeCanvas, float cx, float cy, float radius, int paint) argument 1722 native_drawArc(int nativeCanvas, RectF oval, float startAngle, float sweep, boolean useCenter, int paint) argument 1725 native_drawRoundRect(int nativeCanvas, RectF rect, float rx, float ry, int paint) argument 1728 native_drawPath(int nativeCanvas, int path, int paint) argument 1762 native_drawText(int nativeCanvas, char[] text, int index, int count, float x, float y, int flags, int paint) argument 1765 native_drawText(int nativeCanvas, String text, int start, int end, float x, float y, int flags, int paint) argument 1769 native_drawTextRun(int nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, int flags, int paint) argument 1773 native_drawTextRun(int nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, int flags, int paint) argument 1777 native_drawPosText(int nativeCanvas, char[] text, int index, int count, float[] pos, int paint) argument 1781 native_drawPosText(int nativeCanvas, String text, float[] pos, int paint) argument 1784 native_drawTextOnPath(int nativeCanvas, char[] text, int index, int count, int path, float hOffset, float vOffset, int bidiFlags, int paint) argument 1790 native_drawTextOnPath(int nativeCanvas, String text, int path, float hOffset, float vOffset, int flags, int paint) argument [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | DisplayModifier.java | 40 abstract public void modifyDrawing(Paint paint, Canvas canvas); argument 85 public void modifyDrawing(Paint paint, Canvas canvas) { 86 paint.setAntiAlias(true); 91 public void modifyDrawing(Paint paint, Canvas canvas) { 92 paint.setAntiAlias(false); 101 public void modifyDrawing(Paint paint, Canvas canvas) { 102 paint.setStyle(Paint.Style.FILL); 107 public void modifyDrawing(Paint paint, Canvas canvas) { 108 paint.setStyle(Paint.Style.STROKE); 115 public void modifyDrawing(Paint paint, Canva 459 apply(Paint paint, Canvas canvas) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 36 public void draw(Canvas canvas, Paint paint) { argument 37 canvas.drawOval(rect(), paint);
|
H A D | ArcShape.java | 47 public void draw(Canvas canvas, Paint paint) { argument 48 canvas.drawArc(rect(), mStart, mSweep, true, paint);
|
H A D | RectShape.java | 38 public void draw(Canvas canvas, Paint paint) { argument 39 canvas.drawRect(mRect, paint);
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
H A D | ViewCompatHC.java | 28 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 D | DashPathEffect_Delegate.java | 52 public Stroke getStroke(Paint_Delegate paint) { argument 54 paint.getStrokeWidth(), 55 paint.getJavaCap(), 56 paint.getJavaJoin(), 57 paint.getJavaStrokeMiter(),
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GradientStopsActivity.java | 50 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/jni/android/graphics/ |
H A D | Paint.cpp | 58 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 400 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 427 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 447 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 457 dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray widths, jint bidiFlags) argument 484 getTextWidths___CIII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jint bidiFlags, jfloatArray widths) argument 493 getTextWidths__StringIII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, int start, int end, jint bidiFlags, jfloatArray widths) argument 501 doTextGlyphs(JNIEnv* env, SkPaint* paint, const jchar* text, jint start, jint count, jint contextCount, jint flags, jcharArray glyphs) argument 531 getTextGlyphs__StringIIIII_C(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jcharArray glyphs) argument 541 doTextRunAdvances(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument 573 getTextRunAdvances___CIIIII_FI(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument 583 getTextRunAdvances__StringIIIII_FI(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint start, jint end, jint contextStart, jint contextEnd, jint flags, jfloatArray advances, jint advancesIndex) argument 594 doTextRunCursor(JNIEnv *env, SkPaint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument 638 getTextRunCursor___C(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint contextStart, jint contextCount, jint flags, jint offset, jint cursorOpt) argument 647 getTextRunCursor__String(JNIEnv* env, jobject clazz, SkPaint* paint, jstring text, jint contextStart, jint contextEnd, jint flags, jint offset, jint cursorOpt) argument 656 getTextPath(JNIEnv* env, SkPaint* paint, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath *path) argument 661 getTextPath___C(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jcharArray text, int index, int count, jfloat x, jfloat y, SkPath* path) argument 668 getTextPath__String(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jstring text, int start, int end, jfloat x, jfloat y, SkPath* path) argument 679 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 691 breakText(JNIEnv* env, SkPaint& paint, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, SkPaint::TextBufferDirection tbd) argument 731 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 749 SkPaint* paint = GraphicsJNI::getNativePaint(env, jpaint); local 757 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const SkPaint& paint, jint bidiFlags) argument 774 getStringBounds(JNIEnv* env, jobject, const SkPaint* paint, jstring text, int start, int end, jint bidiFlags, jobject bounds) argument 781 getCharArrayBounds(JNIEnv* env, jobject, const SkPaint* paint, jcharArray text, int index, int count, jint bidiFlags, jobject bounds) argument [all...] |
H A D | LayerRasterizer.cpp | 10 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 D | TextLayout.cpp | 54 void TextLayout::handleText(SkPaint *paint, const jchar* text, jsize len, argument 56 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, 64 paint->getTextPath(value->getGlyphs(), value->getGlyphsCount() * 2, x_, y_, path); 67 void TextLayout::getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, argument 70 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, 83 void TextLayout::getTextPath(SkPaint *paint, const jchar *text, jsize len, argument 85 handleText(paint, text, len, bidiFlags, x, y, path); 89 void TextLayout::drawTextOnPath(SkPaint* paint, const jchar* text, int count, argument 96 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, 103 canvas->drawTextOnPathHV(value->getGlyphs(), value->getGlyphsCount() * 2, *path, h_, v_, *paint); [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.cpp | 256 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument 258 paint = refPaint(paint); 260 addDrawOp(new (alloc()) DrawBitmapOp(bitmap, left, top, paint)); 264 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { argument 267 paint = refPaint(paint); 269 addDrawOp(new (alloc()) DrawBitmapMatrixOp(bitmap, matrix, paint)); 275 float dstRight, float dstBottom, SkPaint* paint) { 277 paint 273 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 294 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 303 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 316 drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, int8_t numColors, float left, float top, float right, float bottom, SkPaint* paint) argument 338 drawRect(float left, float top, float right, float bottom, SkPaint* paint) argument 345 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, SkPaint* paint) argument 352 drawCircle(float x, float y, float radius, SkPaint* paint) argument 358 drawOval(float left, float top, float right, float bottom, SkPaint* paint) argument 365 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument 373 drawPath(SkPath* path, SkPaint* paint) argument 381 drawLines(float* points, int count, SkPaint* paint) argument 389 drawPoints(float* points, int count, SkPaint* paint) argument 397 drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument 411 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 424 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length, DrawOpMode drawOpMode) argument 441 drawRects(const float* rects, int count, SkPaint* paint) argument [all...] |
H A D | PathCache.cpp | 54 PathDescription::PathDescription(ShapeType type, SkPaint* paint): argument 56 join(paint->getStrokeJoin()), 57 cap(paint->getStrokeCap()), 58 style(paint->getStyle()), 59 miter(paint->getStrokeMiter()), 60 strokeWidth(paint->getStrokeWidth()), 61 pathEffect(paint->getPathEffect()) { 85 bool PathCache::canDrawAsConvexPath(SkPath* path, SkPaint* paint) { argument 87 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity; 90 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, argument 96 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 116 initPaint(SkPaint& paint) argument 128 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 248 addTexture(const PathDescription& entry, const SkPath *path, const SkPaint* paint) argument 401 get(SkPath* path, SkPaint* paint) argument 439 precache(SkPath* path, SkPaint* paint) argument 486 getRoundRect(float width, float height, float rx, float ry, SkPaint* paint) argument 512 getCircle(float radius, SkPaint* paint) argument 532 getOval(float width, float height, SkPaint* paint) argument 555 getRect(float width, float height, SkPaint* paint) argument 578 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument [all...] |
H A D | GammaFontRenderer.h | 35 virtual FontRenderer& getFontRenderer(const SkPaint* paint) = 0; 40 virtual void describe(ProgramDescription& description, const SkPaint* paint) const = 0; 73 FontRenderer& getFontRenderer(const SkPaint* paint) { argument 88 void describe(ProgramDescription& description, const SkPaint* paint) const; 119 FontRenderer& getFontRenderer(const SkPaint* paint) { argument 135 void describe(ProgramDescription& description, const SkPaint* paint) const { 159 FontRenderer& getFontRenderer(const SkPaint* paint); 174 void describe(ProgramDescription& description, const SkPaint* paint) const {
|
/frameworks/base/core/java/android/text/style/ |
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);
|
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
|
/frameworks/base/libs/hwui/font/ |
H A D | FontUtil.h | 40 #define GET_METRICS(paint, glyph, matrix) paint->getGlyphMetrics(glyph, matrix) 53 #define GET_METRICS(paint, glyph, matrix) paint->getUnicharMetrics(glyph, matrix)
|
/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 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...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestViewDrawText.java | 59 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/support/v4/jellybean-mr1/android/support/v4/view/ |
H A D | ViewCompatJellybeanMr1.java | 35 public static void setLayerPaint(View view, Paint paint) { argument 36 view.setLayerPaint(paint);
|