/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.h | 55 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY);
|
H A D | NinePatch.cpp | 32 const SkPaint* paint, SkRegion** outRegion); 69 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 88 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 105 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 113 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 120 // paint is optional 125 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensity, srcDensity); 129 const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, 136 // paint is optional 140 draw(env, canvas, bounds, bitmap, chunkObj, paint, destDensit 68 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument 112 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument 128 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, jbyteArray chunkObj, const SkPaint* paint, jint destDensity, jint srcDensity) argument [all...] |
H A D | TextLayoutCache.h | 72 TextLayoutCacheKey(const SkPaint* paint, const UChar* text, size_t start, size_t count, 183 void computeValues(TextLayoutValue* value, const SkPaint* paint, const UChar* chars, 204 SkTypeface* typefaceForScript(const SkPaint* paint, SkTypeface* typeface, 207 size_t shapeFontRun(const SkPaint* paint); 209 void computeValues(const SkPaint* paint, const UChar* chars, 214 void computeRunValues(const SkPaint* paint, const UChar* chars, 245 sp<TextLayoutValue> getValue(const SkPaint* paint, const jchar* text, jint start, 297 sp<TextLayoutValue> getValue(const SkPaint* paint, const jchar* text, jint start,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 116 * @param paint The Paint to draw through. 118 public void draw(Canvas canvas, Rect location, Paint paint) { argument 121 mBitmap.ni(), mChunk, paint != null ? paint.mNativePaint : 0, 125 canvas.drawPatch(mBitmap, mChunk, mRect, paint);
|
H A D | Paint.java | 109 // we use this when we first create a paint 237 * stroke-related settings in the paint. 242 * the stroke-related fields on the paint. 248 * the paint. This mode can give unexpected results if the geometry 335 * Create a new paint with default settings. 342 * Create a new paint with the specified flags. Use setFlags() to change 343 * these after the paint is created. 359 * Create a new paint, initialized with the attributes in the specified 360 * paint parameter. 362 * @param paint Existin 365 Paint(Paint paint) argument 419 setClassVariablesFrom(Paint paint) argument 2109 native_initWithPaint(int paint) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | Shape.java | 52 * @param paint the Paint object that defines this shape's characteristics 54 public abstract void draw(Canvas canvas, Paint paint); argument
|
H A D | RoundRectShape.java | 77 public void draw(Canvas canvas, Paint paint) { argument 78 canvas.drawPath(mPath, paint);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | PathDashPathEffect_Delegate.java | 47 public Stroke getStroke(Paint_Delegate paint) { argument
|
H A D | PathEffect_Delegate.java | 55 public abstract Stroke getStroke(Paint_Delegate paint); argument
|
H A D | Paint_Delegate.java | 650 /*package*/ static int native_initWithPaint(int paint) { argument 652 Paint_Delegate delegate = sManager.getDelegate(paint); 757 Paint_Delegate paint = sManager.getDelegate(native_object); 758 if (paint == null) { 772 Stroke stroke = paint.getJavaStroke(); 1109 private Paint_Delegate(Paint_Delegate paint) { argument 1110 set(paint); 1113 private void set(Paint_Delegate paint) { argument 1114 mFlags = paint.mFlags; 1115 mColor = paint [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ShapeDrawable.java | 208 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { argument 209 shape.draw(canvas, paint); 215 Paint paint = mShapeState.mPaint; 217 int prevAlpha = paint.getAlpha(); 218 paint.setAlpha(modulateAlpha(prevAlpha, mShapeState.mAlpha)); 221 if (paint.getAlpha() != 0 || paint.getXfermode() != null || paint.hasShadow) { 226 onDraw(mShapeState.mShape, canvas, paint); 229 canvas.drawRect(r, paint); [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 130 DrawOp(SkPaint* paint) argument 131 : mPaint(paint), mQuickRejected(false) {} 218 DrawBoundedOp(float left, float top, float right, float bottom, SkPaint* paint) argument 219 : DrawOp(paint), mLocalBounds(left, top, right, bottom) {} 224 DrawBoundedOp(const float* points, int count, SkPaint* paint) argument 225 : DrawOp(paint), mLocalBounds(points[0], points[1], points[0], points[1]) { 235 DrawBoundedOp(SkPaint* paint) argument 236 : DrawOp(paint) {} 254 Rect mLocalBounds; // displayed area in LOCAL coord. doesn't incorporate stroke, so check paint 731 DrawBitmapOp(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 794 DrawBitmapMatrixOp(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument 823 DrawBitmapRectOp(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 853 DrawBitmapDataOp(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 875 DrawBitmapMeshOp(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 970 DrawStrokableOp(float left, float top, float right, float bottom, SkPaint* paint) argument 995 DrawRectOp(float left, float top, float right, float bottom, SkPaint* paint) argument 1012 DrawRectsOp(const float* rects, int count, SkPaint* paint) argument 1038 DrawRoundRectOp(float left, float top, float right, float bottom, float rx, float ry, SkPaint* paint) argument 1060 DrawCircleOp(float x, float y, float radius, SkPaint* paint) argument 1082 DrawOvalOp(float left, float top, float right, float bottom, SkPaint* paint) argument 1099 DrawArcOp(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument 1125 DrawPathOp(SkPath* path, SkPaint* paint) argument 1140 SkPaint* paint = getPaint(renderer); local 1159 DrawLinesOp(float* points, int count, SkPaint* paint) argument 1189 DrawPointsOp(float* points, int count, SkPaint* paint) argument 1205 DrawSomeTextOp(const char* text, int bytesCount, int count, SkPaint* paint) argument 1213 SkPaint* paint = getPaint(renderer); local 1232 DrawTextOnPathOp(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument 1254 DrawPosTextOp(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 1272 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length) argument 1294 SkPaint* paint = getPaint(renderer); local [all...] |
H A D | GammaFontRenderer.cpp | 30 static int luminance(const SkPaint* paint) { argument 31 uint32_t c = paint->getColor(); 106 const SkPaint* paint) const { 107 if (paint->getShader() == NULL) { 109 const int l = luminance(paint); 246 FontRenderer& Lookup3GammaFontRenderer::getFontRenderer(const SkPaint* paint) { argument 247 if (paint->getShader() == NULL) { 248 const int l = luminance(paint);
|
H A D | OpenGLRenderer.cpp | 53 #define FILTER(paint) (!paint || paint->isFilterBitmap() ? GL_LINEAR : GL_NEAREST) 1543 SkPaint* paint) { 1544 if (paint->getStyle() != SkPaint::kFill_Style) { 1545 float outset = paint->getStrokeWidth() * 0.5f; 1710 void OpenGLRenderer::setupDrawTextGamma(const SkPaint* paint) { argument 1711 mCaches.fontRenderer->describe(mDescription, paint); 1963 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) { argument 1966 getAlphaAndMode(paint, 1542 quickRejectPreStroke(float left, float top, float right, float bottom, SkPaint* paint) argument 1991 drawBitmaps(SkBitmap* bitmap, int bitmapCount, TextureVertex* vertices, const Rect& bounds, SkPaint* paint) argument 2027 drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 2049 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument 2077 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument 2098 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 2208 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument 2298 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 2367 drawVertexBuffer(const VertexBuffer& vertexBuffer, SkPaint* paint, bool useOffset) argument 2425 drawConvexPath(const SkPath& path, SkPaint* paint) argument 2450 drawLines(float* points, int count, SkPaint* paint) argument 2469 drawPoints(float* points, int count, SkPaint* paint) argument 2543 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument 2698 drawTextShadow(SkPaint* paint, const char* text, int bytesCount, int count, const float* positions, FontRenderer& fontRenderer, int alpha, SkXfermode::Mode mode, float x, float y) argument 2746 TextSetupFunctor(OpenGLRenderer& renderer, float x, float y, bool pureTranslate, int alpha, SkXfermode::Mode mode, SkPaint* paint) argument 2783 SkPaint* paint; member in class:android::uirenderer::TextSetupFunctor 2786 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 2859 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length, DrawOpMode drawOpMode) argument 2965 drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument 3015 drawPath(SkPath* path, SkPaint* paint) argument 3184 filterPaint(SkPaint* paint) argument 3202 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument 3236 drawTextDecorations(const char* text, int bytesCount, float length, float x, float y, SkPaint* paint) argument 3286 drawRects(const float* rects, int count, SkPaint* paint) argument 3387 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument 3537 getAlphaAndMode(SkPaint* paint, int* alpha, SkXfermode::Mode* mode) const argument [all...] |
H A D | FontRenderer.h | 61 void setFont(SkPaint* paint, const mat4& matrix); 63 void precache(SkPaint* paint, const char* text, int numGlyphs, const mat4& matrix); 67 bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, 72 bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, 93 DropShadow renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | TrackingPatternView.java | 50 final Paint paint = mPaint; 64 canvas.drawBitmap(texture, x, y, paint);
|
/frameworks/ex/chips/src/com/android/ex/chips/recipientchip/ |
H A D | InvisibleRecipientChip.java | 86 final float x, final int top, final int y, final int bottom, final Paint paint) { 91 public int getSize(final Paint paint, final CharSequence text, final int start, final int end, argument 85 draw(final Canvas canvas, final CharSequence text, final int start, final int end, final float x, final int top, final int y, final int bottom, final Paint paint) argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 83 void draw(Graphics2D graphics, Paint_Delegate paint); argument 229 return new GcSnapshot(this, null /*layerbounds*/, null /*paint*/, flags); 238 * @param paint the Paint information used to blit the layer back into the layers underneath 245 public GcSnapshot saveLayer(RectF layerBounds, Paint_Delegate paint, int flags) { argument 246 return new GcSnapshot(this, layerBounds, paint, flags); 267 * @param paint the Paint information used to blit the layer back into the layers underneath 271 private GcSnapshot(GcSnapshot previous, RectF layerBounds, Paint_Delegate paint, int flags) { argument 347 mLocalLayerPaint = paint; 557 * Executes the Drawable's draw method, with a null paint delegate. 571 * @param paint 576 draw(Drawable drawable, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument 603 drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument 703 createCustomGraphics(Graphics2D original, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | ViewCompat.java | 156 public void setLayerType(View view, int layerType, Paint paint); argument 160 public void setLayerPaint(View view, Paint paint); argument 225 public void setLayerType(View view, int layerType, Paint paint) { argument 272 @Override public void setLayerType(View view, int layerType, Paint paint) { argument 273 ViewCompatHC.setLayerType(view, layerType, paint); 279 public void setLayerPaint(View view, Paint paint) { argument 280 // Make sure the paint is correct; this will be cheap if it's the same 282 setLayerType(view, getLayerType(view), paint); 380 public void setLayerPaint(View view, Paint paint) { argument 381 ViewCompatJellybeanMr1.setLayerPaint(view, paint); 786 setLayerType(View view, int layerType, Paint paint) argument 862 setLayerPaint(View view, Paint paint) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | StaticLayout.java | 44 public StaticLayout(CharSequence source, TextPaint paint, argument 48 this(source, 0, source.length(), paint, width, align, 55 public StaticLayout(CharSequence source, TextPaint paint, argument 59 this(source, 0, source.length(), paint, width, align, textDir, 64 TextPaint paint, int outerwidth, 68 this(source, bufstart, bufend, paint, outerwidth, align, 76 TextPaint paint, int outerwidth, 80 this(source, bufstart, bufend, paint, outerwidth, align, textDir, 85 TextPaint paint, int outerwidth, 90 this(source, bufstart, bufend, paint, outerwidt 63 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 75 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 84 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 98 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 583 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 712 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 | GraphicsOperations.java | 58 int flags, float[] advances, int advancesIndex, Paint paint); 57 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, int flags, float[] advances, int advancesIndex, Paint paint) argument
|
H A D | MeasuredText.java | 153 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { argument 155 paint.getFontMetricsInt(fm); 164 return paint.getTextRunAdvances(mChars, p, len, p, len, flags, mWidths, p); 173 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, flags, mWidths, q); 184 float addStyleRun(TextPaint paint, MetricAffectingSpan[] spans, int len, argument 188 workPaint.set(paint); 189 // XXX paint should not have a baseline shift, but...
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | CanvasTextureViewActivity.java | 86 Paint paint = new Paint(); 87 paint.setColor(0xff00ff00); 93 canvas.drawRect(x, y, x + 20.0f, y + 20.0f, paint);
|
/frameworks/base/core/java/android/view/ |
H A D | HardwareCanvas.java | 130 * @param paint The paint used to draw the layer 134 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument
|
H A D | HardwareLayer.java | 66 * Update the paint used when drawing this layer. 68 * @param paint The paint used when the layer is drawn into the destination canvas. 71 void setLayerPaint(Paint paint) { } argument
|