/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BidiRenderer.java | 74 * @param paint The Paint to use to get the fonts. Should not be null. 77 public BidiRenderer(Graphics2D graphics, Paint_Delegate paint, char[] text) { argument 78 assert (paint != null); 80 mPaint = paint; 82 mFonts = new ArrayList<Font>(paint.getFonts().size()); 83 for (FontInfo fontInfo : paint.getFonts()) {
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 130 TextPaint paint) { 131 return getDesiredWidth(source, 0, source.length(), paint); 142 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) { argument 143 return getDesiredWidth(source, start, end, paint, TextDirectionHeuristics.FIRSTSTRONG_LTR); 152 public static float getDesiredWidth(CharSequence source, int start, int end, TextPaint paint, argument 164 float w = measurePara(paint, source, i, next, textDir); 179 * @param paint the default paint for the layout. Styles can override 180 * various attributes of the paint. 188 protected Layout(CharSequence text, TextPaint paint, argument 129 getDesiredWidth(CharSequence source, TextPaint paint) argument 210 Layout(CharSequence text, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingMult, float spacingAdd) argument 244 replaceWith(CharSequence text, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd) argument 1842 measurePara(TextPaint paint, CharSequence text, int start, int end, TextDirectionHeuristic textDir) argument [all...] |
H A D | DynamicLayout.java | 50 TextPaint paint, 54 this(base, base, paint, width, align, spacingmult, spacingadd, 64 TextPaint paint, 68 this(base, display, paint, width, align, spacingmult, spacingadd, 80 TextPaint paint, 85 this(base, display, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR, 101 TextPaint paint, 112 paint, width, align, textDir, spacingmult, spacingadd); 166 Paint.FontMetricsInt fm = paint.getFontMetricsInt(); 403 final Paint paint 49 DynamicLayout(CharSequence base, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 63 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 79 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 100 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, int breakStrategy, int hyphenationFrequency, int justificationMode, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 306 private static int getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) { argument 313 offset = paint.getTextRunCursor(text, offset, len, Paint.DIRECTION_LTR /* not used */, 354 final Paint paint; 356 paint = ((TextView)view).getPaint(); 362 paint = sCachedPaint; 365 end = getOffsetForForwardDeleteKey(content, start, paint);
|
/frameworks/base/libs/hwui/ |
H A D | FontRenderer.cpp | 70 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha) 556 void FontRenderer::setFont(const SkPaint* paint, const SkMatrix& matrix) { argument 557 mCurrentFont = Font::create(this, paint, matrix); 560 FontRenderer::DropShadow FontRenderer::renderDropShadow(const SkPaint* paint, const glyph_t *glyphs, argument 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 607 mCurrentFont->render(paint, glyphs, numGlyphs, penX, penY, 641 void FontRenderer::precache(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 643 Font* font = Font::create(this, paint, matrix); 644 font->precache(paint, glyphs, numGlyphs); 651 bool FontRenderer::renderPosText(const SkPaint* paint, cons argument 669 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument [all...] |
H A D | TextDropShadowCache.cpp | 148 ShadowTexture* TextDropShadowCache::get(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, argument 150 ShadowText entry(paint, radius, numGlyphs, glyphs, positions); 154 SkPaint paintCopy(*paint);
|
H A D | BakedOpRenderer.cpp | 143 SkPaint paint; local 144 paint.setColor(mCaches.getOverdrawColor(i)); 149 .setFillPaint(paint, 1.0f) 188 void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* paint) { argument 214 .setFillPaint(*paint, 1.0f)
|
H A D | PathTessellator.cpp | 101 PaintInfo(const SkPaint* paint, const mat4& transform) : argument 102 style(paint->getStyle()), cap(paint->getStrokeCap()), isAA(paint->isAntiAlias()), 103 halfStrokeWidth(paint->getStrokeWidth() * 0.5f), maxAlpha(1.0f) { 723 void PathTessellator::tessellatePath(const SkPath &path, const SkPaint* paint, argument 727 const PaintInfo paintInfo(paint, transform); 737 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth()); 738 threshInvScaleY *= bounds.height() / (bounds.height() + paint->getStrokeWidth()); 808 void PathTessellator::tessellatePoints(const float* points, int count, const SkPaint* paint, argument 849 tessellateLines(const float* points, int count, const SkPaint* paint, const mat4& transform, VertexBuffer& vertexBuffer) argument [all...] |
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
H A D | DynamicLayoutPerfTest.java | 73 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument 79 int y, int bottom, Paint paint) { 78 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | FrameBuilderBench.cpp | 45 SkPaint paint; 52 canvas.drawRect(0, 0, 10, 10, paint);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | CircleImageView.java | 144 public void draw(Canvas canvas, Paint paint) { argument 148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | SubtitleView.java | 303 final Paint paint = mPaint; 310 paint.setColor(mBackgroundColor); 311 paint.setStyle(Style.FILL); 320 c.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | FindRegion.java | 175 Paint paint = new Paint(); 176 paint.setStyle(Paint.Style.FILL); 177 paint.setColor(Color.BLACK); 187 c.drawPath(path, paint);
|
H A D | Region.java | 129 Paint paint = new Paint();
132 paint.setStyle(Paint.Style.STROKE);
137 canvas.drawPath(path, paint);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 53 Paint paint = new Paint(); 54 paint.setStyle(Paint.Style.FILL); 55 paint.setColor(Color.BLACK); 65 c.drawPath(path, paint);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageItemInfo.java | 195 TextPaint paint = new TextPaint(); 196 paint.setTextSize(42); 198 return TextUtils.ellipsize(labelStr, paint, MAX_LABEL_SIZE_PX,
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewTest.java | 185 Paint paint = textView.getPaint(); 188 float wordWidth = paint.measureText(word, 0, word.length()); 219 float withoutHyphenLength = paint.measureText(sb, start, end);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | MediaProjectionPermissionActivity.java | 96 TextPaint paint = new TextPaint(); 97 paint.setTextSize(42); 124 paint, MAX_APP_NAME_SIZE_PX, TextUtils.TruncateAt.END).toString();
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | CropFilter.java | 137 Paint paint = new Paint(); 138 paint.setFilterBitmap(true); 140 canvas.drawBitmap(sourceBitmap, transform, paint);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | GlifPatternDrawableTest.java | 78 Paint paint = new Paint(); 79 paint.setColor(Color.WHITE); 80 canvas.drawRect(0, 0, 1366, 768, paint); // Erase the entire canvas
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | KeyboardView.java | 669 final Paint paint = mPaint; 678 paint.setColor(mKeyTextColor); 713 paint.setTextSize(mLabelTextSize); 714 paint.setTypeface(Typeface.DEFAULT_BOLD); 716 paint.setTextSize(mKeyTextSize); 717 paint.setTypeface(Typeface.DEFAULT); 720 paint.setShadowLayer(mShadowRadius, 0, 0, mShadowColor); 726 + (paint.getTextSize() - paint.descent()) / 2 + padding.top, 727 paint); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Paint.java | 54 // The approximate size of a native paint object. 224 // These flags are always set on a new/reset paint, even if flags 0 is passed. 370 * stroke-related settings in the paint. 375 * the stroke-related fields on the paint. 381 * the paint. This mode can give unexpected results if the geometry 468 * Create a new paint with default settings. 475 * Create a new paint with the specified flags. Use setFlags() to change 476 * these after the paint is created. 493 * Create a new paint, initialized with the attributes in the specified 494 * paint paramete 499 Paint(Paint paint) argument 552 setClassVariablesFrom(Paint paint) argument 2753 nInitWithPaint(long paint) argument [all...] |
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 217 SkPaint paint; local 218 paint.setBlendMode(SkBlendMode::kSrc); 219 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); 222 paint.setColor(0); // transparent fill color 224 outBuffer.width, update.state.icon.bitmap.height(), paint); 227 paint.setColor(0); // transparent fill color 229 outBuffer.width, outBuffer.height, paint);
|
/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 812 final Paint paint = mPaintSelector[SELECTOR_CIRCLE]; 813 paint.setColor(mSelectorColor); 814 canvas.drawCircle(selCenterX, selCenterY, selRadius, paint); 877 private static void calculatePositions(Paint paint, float radius, float xCenter, float yCenter, argument 880 paint.setTextSize(textSize); 881 yCenter -= (paint.descent() + paint.ascent()) / 2; 893 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, 895 paint.setTextSize(textSize); 896 paint 892 drawTextElements(Canvas canvas, float textSize, Typeface typeface, ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, int alpha, boolean showActivated, int activatedDegrees, boolean activatedOnly) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RenderNode.java | 285 public boolean setLayerPaint(@Nullable Paint paint) { argument 286 return nSetLayerPaint(mNativeRenderNode, paint != null ? paint.getNativeInstance() : 0); 888 private static native boolean nSetLayerPaint(long renderNode, long paint); argument
|