Searched refs:paint (Results 51 - 75 of 120) sorted by relevance

12345

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPathDashPathEffect_Delegate.java47 public Stroke getStroke(Paint_Delegate paint) { argument
H A DPathEffect_Delegate.java55 public abstract Stroke getStroke(Paint_Delegate paint); argument
H A DPaint_Delegate.java651 /*package*/ static int native_initWithPaint(int paint) { argument
653 Paint_Delegate delegate = sManager.getDelegate(paint);
758 Paint_Delegate paint = sManager.getDelegate(native_object);
759 if (paint == null) {
773 Stroke stroke = paint.getJavaStroke();
1078 private Paint_Delegate(Paint_Delegate paint) { argument
1079 set(paint);
1082 private void set(Paint_Delegate paint) { argument
1083 mFlags = paint.mFlags;
1084 mColor = paint
[all...]
/frameworks/base/libs/hwui/
H A DFontRenderer.h67 int alpha, SkXfermode::Mode mode, SkPaint* paint): Functor(),
69 alpha(alpha), mode(mode), paint(paint) {
81 SkPaint* paint; member in class:android::uirenderer::TextSetupFunctor
100 void setFont(SkPaint* paint, const mat4& matrix);
102 void precache(SkPaint* paint, const char* text, int numGlyphs, const mat4& matrix);
106 bool renderPosText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
111 bool renderTextOnPath(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex,
133 DropShadow renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex,
66 TextSetupFunctor(OpenGLRenderer* renderer, float x, float y, bool pureTranslate, int alpha, SkXfermode::Mode mode, SkPaint* paint) argument
H A DDisplayListOp.h114 DrawOp(SkPaint* paint) argument
115 : mPaint(paint), mQuickRejected(false) {}
196 // coordinates, and that paint's alpha is used
201 // check state/paint for transparency
218 DrawBoundedOp(float left, float top, float right, float bottom, SkPaint* paint) argument
219 : DrawOp(paint), mLocalBounds(left, top, right, bottom) {}
221 DrawBoundedOp(const Rect& localBounds, SkPaint* paint) argument
222 : DrawOp(paint), mLocalBounds(localBounds) {}
227 DrawBoundedOp(const float* points, int count, SkPaint* paint) argument
228 : DrawOp(paint), mLocalBound
238 DrawBoundedOp(SkPaint* paint) argument
732 DrawBitmapOp(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
840 DrawBitmapMatrixOp(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument
869 DrawBitmapRectOp(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
899 DrawBitmapDataOp(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
921 DrawBitmapMeshOp(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
953 DrawPatchOp(SkBitmap* bitmap, Res_png_9patch* patch, float left, float top, float right, float bottom, SkPaint* paint) argument
1119 DrawStrokableOp(float left, float top, float right, float bottom, SkPaint* paint) argument
1144 DrawRectOp(float left, float top, float right, float bottom, SkPaint* paint) argument
1168 DrawRectsOp(const float* rects, int count, SkPaint* paint) argument
1194 DrawRoundRectOp(float left, float top, float right, float bottom, float rx, float ry, SkPaint* paint) argument
1216 DrawCircleOp(float x, float y, float radius, SkPaint* paint) argument
1238 DrawOvalOp(float left, float top, float right, float bottom, SkPaint* paint) argument
1255 DrawArcOp(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument
1281 DrawPathOp(SkPath* path, SkPaint* paint) argument
1297 SkPaint* paint = getPaint(renderer); local
1315 DrawLinesOp(float* points, int count, SkPaint* paint) argument
1345 DrawPointsOp(float* points, int count, SkPaint* paint) argument
1361 DrawSomeTextOp(const char* text, int bytesCount, int count, SkPaint* paint) argument
1370 SkPaint* paint = getPaint(renderer); local
1387 DrawTextOnPathOp(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument
1409 DrawPosTextOp(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument
1427 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds) argument
1436 SkPaint* paint = getPaint(renderer); local
[all...]
H A DGammaFontRenderer.cpp30 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 DOpenGLRenderer.cpp53 #define FILTER(paint) (!paint || paint->isFilterBitmap() ? GL_LINEAR : GL_NEAREST)
1643 SkPaint* paint) {
1646 bool snapOut = paint->isAntiAlias();
1648 if (paint->getStyle() != SkPaint::kFill_Style) {
1649 float outset = paint->getStrokeWidth() * 0.5f;
1807 void OpenGLRenderer::setupDrawTextGamma(const SkPaint* paint) { argument
1808 mCaches.fontRenderer->describe(mDescription, paint);
2063 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) { argument
1642 quickRejectPreStroke(float left, float top, float right, float bottom, SkPaint* paint) argument
2098 drawBitmaps(SkBitmap* bitmap, AssetAtlas::Entry* entry, int bitmapCount, TextureVertex* vertices, bool pureTranslate, const Rect& bounds, SkPaint* paint) argument
2131 drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
2153 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument
2181 drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint) argument
2202 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
2320 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
2412 drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, float left, float top, float right, float bottom, SkPaint* paint) argument
2425 drawPatch(SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, float left, float top, float right, float bottom, SkPaint* paint) argument
2489 drawPatches(SkBitmap* bitmap, AssetAtlas::Entry* entry, TextureVertex* vertices, uint32_t indexCount, SkPaint* paint) argument
2510 drawVertexBuffer(const VertexBuffer& vertexBuffer, SkPaint* paint, bool useOffset) argument
2568 drawConvexPath(const SkPath& path, SkPaint* paint) argument
2593 drawLines(float* points, int count, SkPaint* paint) argument
2612 drawPoints(float* points, int count, SkPaint* paint) argument
2643 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument
2798 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
2844 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument
2919 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
3006 drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument
3040 drawPath(SkPath* path, SkPaint* paint) argument
3217 filterPaint(SkPaint* paint) argument
3243 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument
3275 drawTextDecorations(const char* text, int bytesCount, float underlineWidth, float x, float y, SkPaint* paint) argument
3320 drawRects(const float* rects, int count, SkPaint* paint) argument
3415 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument
3615 getAlphaAndMode(SkPaint* paint, int* alpha, SkXfermode::Mode* mode) const argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java208 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/core/jni/android/graphics/
H A DNinePatch.cpp33 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
90 Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) {
95 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
112 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL);
119 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint,
125 // paint is optional
130 draw(env, canvas, bounds, bitmap, chunk, paint, destDensity, srcDensity);
134 const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint,
140 // paint is optional
144 draw(env, canvas, bounds, bitmap, chunk, paint, destDensit
89 draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) argument
118 drawF(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRectF, const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) argument
133 drawI(JNIEnv* env, jobject, SkCanvas* canvas, jobject boundsRect, const SkBitmap* bitmap, Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) argument
[all...]
H A DTextLayoutCache.h71 TextLayoutCacheKey(const SkPaint* paint, const UChar* text, size_t start, size_t count,
187 void computeValues(TextLayoutValue* value, const SkPaint* paint, const UChar* chars,
208 SkTypeface* typefaceForScript(const SkPaint* paint, SkTypeface* typeface,
211 size_t shapeFontRun(const SkPaint* paint);
213 void computeValues(const SkPaint* paint, const UChar* chars,
218 void computeRunValues(const SkPaint* paint, const UChar* chars,
249 sp<TextLayoutValue> getValue(const SkPaint* paint, const jchar* text, jint start,
301 sp<TextLayoutValue> getValue(const SkPaint* paint, const jchar* text, jint start,
/frameworks/ex/chips/src/com/android/ex/chips/recipientchip/
H A DInvisibleRecipientChip.java91 final float x, final int top, final int y, final int bottom, final Paint paint) {
96 public int getSize(final Paint paint, final CharSequence text, final int start, final int end, argument
90 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 DGcSnapshot.java83 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/base/core/java/android/text/
H A DStaticLayout.java44 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
585 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
714 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 DGraphicsOperations.java58 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 DMeasuredText.java153 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 DCanvasTextureViewActivity.java86 Paint paint = new Paint();
87 paint.setColor(0xff00ff00);
93 canvas.drawRect(x, y, x + 20.0f, y + 20.0f, paint);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRoundRectShape.java77 public void draw(Canvas canvas, Paint paint) { argument
78 canvas.drawPath(mPath, paint);
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java203 // we use this when we first create a paint
335 * stroke-related settings in the paint.
340 * the stroke-related fields on the paint.
346 * the paint. This mode can give unexpected results if the geometry
433 * Create a new paint with default settings.
440 * Create a new paint with the specified flags. Use setFlags() to change
441 * these after the paint is created.
457 * Create a new paint, initialized with the attributes in the specified
458 * paint parameter.
460 * @param paint Existin
463 Paint(Paint paint) argument
517 setClassVariablesFrom(Paint paint) argument
2211 native_initWithPaint(int paint) argument
[all...]
H A DMovie.java40 public native void draw(Canvas canvas, float x, float y, Paint paint); argument
/frameworks/support/v4/java/android/support/v4/view/
H A DViewCompat.java217 public void setLayerType(View view, int layerType, Paint paint); argument
221 public void setLayerPaint(View view, Paint paint); argument
296 public void setLayerType(View view, int layerType, Paint paint) { argument
394 public void setLayerType(View view, int layerType, Paint paint) { argument
395 ViewCompatHC.setLayerType(view, layerType, paint);
402 public void setLayerPaint(View view, Paint paint) { argument
403 // Make sure the paint is correct; this will be cheap if it's the same
405 setLayerType(view, getLayerType(view), paint);
519 public void setLayerPaint(View view, Paint paint) { argument
520 ViewCompatJellybeanMr1.setLayerPaint(view, paint);
952 setLayerType(View view, int layerType, Paint paint) argument
1028 setLayerPaint(View view, Paint paint) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameImage2D.java175 Paint paint = new Paint();
176 paint.setFilterBitmap(true);
178 canvas.drawBitmap(srcBitmap, srcIRect, dstIRect, paint);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java83 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
85 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
87 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
89 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
/frameworks/base/core/java/android/view/
H A DHardwareCanvas.java130 * @param paint The paint used to draw the layer
134 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument
H A DHardwareLayer.java66 * 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
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
H A DBitmapUtils.java125 Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG | Paint.DITHER_FLAG);
126 canvas.drawBitmap(bitmap, 0, 0, paint);
164 Paint paint = new Paint(Paint.FILTER_BITMAP_FLAG | Paint.DITHER_FLAG);
165 canvas.drawBitmap(bitmap, 0, 0, paint);

Completed in 975 milliseconds

12345