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

1234

/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp32 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 DTextLayoutCache.h71 TextLayoutCacheKey(const SkPaint* paint, const UChar* text, size_t start, size_t count,
125 void computeValues(SkPaint* paint, const UChar* chars, size_t start, size_t count,
160 static void computeValuesWithHarfbuzz(SkPaint* paint, const UChar* chars,
165 static void computeRunValuesWithHarfbuzz(HB_ShaperItem& shaperItem, SkPaint* paint,
171 SkPaint* paint, const UChar* chars, size_t contextCount);
204 sp<TextLayoutCacheValue> getValue(SkPaint* paint, const jchar* text, jint start, jint count,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DTrackingPatternView.java50 final Paint paint = mPaint;
64 canvas.drawBitmap(texture, x, y, paint);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp139 Font::CachedGlyphInfo* Font::getCachedGlyph(SkPaint* paint, glyph_t textUnit) { argument
145 cachedGlyph = cacheGlyph(paint, textUnit);
150 const SkGlyph& skiaGlyph = GET_METRICS(paint, textUnit);
151 updateGlyphCache(paint, skiaGlyph, cachedGlyph);
157 void Font::render(SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument
160 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap,
163 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL,
168 void Font::measure(SkPaint* paint, const char* text, uint32_t start, uint32_t len, argument
175 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds);
180 void Font::render(SkPaint* paint, cons argument
235 updateGlyphCache(SkPaint* paint, const SkGlyph& skiaGlyph, CachedGlyphInfo* glyph) argument
273 cacheGlyph(SkPaint* paint, glyph_t glyph) argument
676 precacheLatin(SkPaint* paint) argument
687 setFont(SkPaint* paint, uint32_t fontId, float fontSize) argument
712 renderDropShadow(SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius) argument
756 renderText(SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, Rect* bounds) argument
[all...]
H A DGammaFontRenderer.cpp129 FontRenderer& GammaFontRenderer::getFontRenderer(const SkPaint* paint) { argument
130 if (paint->getShader() == NULL) {
131 uint32_t c = paint->getColor();
H A DTextDropShadowCache.cpp104 ShadowTexture* TextDropShadowCache::get(SkPaint* paint, const char* text, uint32_t len, argument
106 ShadowText entry(paint, radius, len, text);
110 FontRenderer::DropShadow shadow = mRenderer->renderDropShadow(paint, text, 0,
H A DOpenGLRenderer.cpp356 SkPaint paint; local
357 paint.setAlpha(alpha);
358 return saveLayer(left, top, right, bottom, &paint, flags);
1304 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) { argument
1307 getAlphaAndMode(paint, &alpha, &mode);
1323 if (paint) {
1324 setupDrawAlpha8Color(paint->getColor(), alpha);
1346 void OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { argument
1360 drawAlphaBitmap(texture, left, top, paint);
1362 drawTextureRect(left, top, right, bottom, texture, paint);
1366 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument
1388 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
1472 drawBitmap(SkBitmap* bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, SkPaint* paint) argument
1527 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
1677 drawLines(float* points, int count, SkPaint* paint) argument
1906 drawPoints(float* points, int count, SkPaint* paint) argument
1968 drawShape(float left, float top, const PathTexture* texture, SkPaint* paint) argument
1978 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, SkPaint* paint) argument
1988 drawCircle(float x, float y, float radius, SkPaint* paint) argument
1996 drawOval(float left, float top, float right, float bottom, SkPaint* paint) argument
2004 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) argument
2019 drawRectAsShape(float left, float top, float right, float bottom, SkPaint* paint) argument
2057 drawText(const char* text, int bytesCount, int count, float x, float y, SkPaint* paint) argument
2197 drawPath(SkPath* path, SkPaint* paint) argument
2212 drawLayer(Layer* layer, float x, float y, SkPaint* paint) argument
2319 drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint) argument
2353 drawTextDecorations(const char* text, int bytesCount, float length, float x, float y, SkPaint* paint) argument
2437 drawTextureRect(float left, float top, float right, float bottom, Texture* texture, SkPaint* paint) argument
2551 getAlphaAndMode(SkPaint* paint, int* alpha, SkXfermode::Mode* mode) argument
[all...]
/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
606 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
734 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 DMeasuredText.java146 float addStyleRun(TextPaint paint, int len, Paint.FontMetricsInt fm) { argument
148 paint.getFontMetricsInt(fm);
157 return paint.getTextRunAdvances(mChars, p, len, p, len, flags, mWidths, p);
166 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, flags, mWidths, q);
177 float addStyleRun(TextPaint paint, MetricAffectingSpan[] spans, int len, argument
181 workPaint.set(paint);
182 // XXX paint should not have a baseline shift, but...
H A DDynamicLayout.java43 TextPaint paint,
47 this(base, base, paint, width, align, spacingmult, spacingadd,
57 TextPaint paint,
61 this(base, display, paint, width, align, spacingmult, spacingadd,
73 TextPaint paint,
78 this(base, display, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR,
92 TextPaint paint,
102 paint, width, align, textDir, spacingmult, spacingadd);
153 Paint.FontMetricsInt fm = paint.getFontMetricsInt();
42 DynamicLayout(CharSequence base, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument
56 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument
72 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
91 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
H A DLayout.java67 TextPaint paint) {
68 return getDesiredWidth(source, 0, source.length(), paint);
77 TextPaint paint) {
89 float w = measurePara(paint, workPaint, source, i, next);
104 * @param paint the default paint for the layout. Styles can override
105 * various attributes of the paint.
113 protected Layout(CharSequence text, TextPaint paint, argument
116 this(text, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR,
124 * @param paint th
66 getDesiredWidth(CharSequence source, TextPaint paint) argument
75 getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) argument
135 Layout(CharSequence text, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingMult, float spacingAdd) argument
165 replaceWith(CharSequence text, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd) argument
1484 measurePara(TextPaint paint, TextPaint workPaint, CharSequence text, int start, int end) argument
[all...]
/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/tools/layoutlib/bridge/src/android/graphics/
H A DPaint_Delegate.java644 /*package*/ static int native_initWithPaint(int paint) { argument
646 Paint_Delegate delegate = sManager.getDelegate(paint);
751 Paint_Delegate paint = sManager.getDelegate(native_object);
752 if (paint == null) {
766 Stroke stroke = paint.getJavaStroke();
1101 private Paint_Delegate(Paint_Delegate paint) { argument
1102 set(paint);
1105 private void set(Paint_Delegate paint) { argument
1106 mFlags = paint.mFlags;
1107 mColor = paint
[all...]
H A DBitmap_Delegate.java435 // get the paint which can be null if nativePaint is 0.
436 Paint_Delegate paint = Paint_Delegate.getDelegate(nativePaint);
438 if (paint != null && paint.getMaskFilter() != null) {
444 int alpha = paint != null ? paint.getAlpha() : 0xFF;
/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));
224 onDraw(mShapeState.mShape, canvas, paint);
227 canvas.drawRect(r, paint);
231 paint.setAlpha(prevAlpha);
242 * also has a color in its paint, which has an alpha as well. These two
H A DBitmapDrawable.java165 * Returns the paint used to render this drawable.
455 final Paint paint = mBitmapState.mPaint;
456 paint.setAntiAlias(a.getBoolean(com.android.internal.R.styleable.BitmapDrawable_antialias,
457 paint.isAntiAlias()));
458 paint.setFilterBitmap(a.getBoolean(com.android.internal.R.styleable.BitmapDrawable_filter,
459 paint.isFilterBitmap()));
460 paint.setDither(a.getBoolean(com.android.internal.R.styleable.BitmapDrawable_dither,
461 paint.isDither()));
/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.java105 // we use this when we first create a paint
233 * stroke-related settings in the paint.
238 * the stroke-related fields on the paint.
244 * the paint. This mode can give unexpected results if the geometry
331 * Create a new paint with default settings.
338 * Create a new paint with the specified flags. Use setFlags() to change
339 * these after the paint is created.
354 * Create a new paint, initialized with the attributes in the specified
355 * paint parameter.
357 * @param paint Existin
360 Paint(Paint paint) argument
395 setClassVariablesFrom(Paint paint) argument
2115 native_initWithPaint(int paint) argument
[all...]
H A DMovie.java39 public native void draw(Canvas canvas, float x, float y, Paint paint); argument
H A DBitmap.java514 Paint paint;
541 paint = null; // not needed
557 paint = new Paint();
558 paint.setFilterBitmap(filter);
560 paint.setAntiAlias(true);
569 canvas.drawBitmap(source, srcR, dstR, paint);
1085 * taken from the paint that is passed to the draw call.
1101 * paint contains a blur of radius 2, then offsetXY[] would contains
1108 * @param paint Optional paint use
1118 extractAlpha(Paint paint, int[] offsetXY) argument
[all...]
/frameworks/base/core/java/android/view/
H A DTextureView.java229 * considered to act as a hardware layer. The optional paint supplied to this
236 * @param paint The paint used to compose the layer. This argument is optional
241 public void setLayerType(int layerType, Paint paint) { argument
242 if (paint != mLayerPaint) {
243 mLayerPaint = paint;
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java656 final Paint paint = mPaint;
665 paint.setColor(mKeyTextColor);
700 paint.setTextSize(mLabelTextSize);
701 paint.setTypeface(Typeface.DEFAULT_BOLD);
703 paint.setTextSize(mKeyTextSize);
704 paint.setTypeface(Typeface.DEFAULT);
707 paint.setShadowLayer(mShadowRadius, 0, 0, mShadowColor);
713 + (paint.getTextSize() - paint.descent()) / 2 + padding.top,
714 paint);
[all...]
/frameworks/base/services/input/
H A DSpriteController.cpp214 SkPaint paint; local
215 paint.setXfermodeMode(SkXfermode::kSrc_Mode);
216 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint);
219 paint.setColor(0); // transparent fill color
221 surfaceInfo.w, update.state.icon.bitmap.height(), paint);
224 paint.setColor(0); // transparent fill color
226 surfaceInfo.w, surfaceInfo.h, paint);
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java401 private CharSequence ellipsizeText(CharSequence text, TextPaint paint, float maxWidth) { argument
402 paint.setTextSize(mChipFontSize);
406 return TextUtils.ellipsize(text, paint, maxWidth,
410 private Bitmap createSelectedChip(RecipientEntry contact, TextPaint paint, Layout layout) { argument
417 paint.getTextWidths(" ", widths);
418 CharSequence ellipsizedText = ellipsizeText(createChipDisplayText(contact), paint,
423 int width = Math.max(deleteWidth * 2, (int) Math.floor(paint.measureText(ellipsizedText, 0,
433 paint.setColor(sSelectedTextColor);
436 getTextYOffset((String) ellipsizedText, paint, height), paint);
452 createUnselectedChip(RecipientEntry contact, TextPaint paint, Layout layout) argument
531 getTextYOffset(String text, TextPaint paint, int height) argument
[all...]

Completed in 367 milliseconds

1234