/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 223 isBoring(CharSequence text, TextPaint paint) argument 232 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir) argument 243 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument 253 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument [all...] |
H A D | TextLine.java | 125 * @param paint the base paint for the line 134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument 136 mPaint = paint; 710 * @param wp the working paint 803 * @param wp the work paint 967 * Render a text run with the set-up paint. 970 * @param wp the paint used to render the text
|
H A D | DynamicLayout.java | 46 TextPaint paint, 50 this(base, base, paint, width, align, spacingmult, spacingadd, 60 TextPaint paint, 64 this(base, display, paint, width, align, spacingmult, spacingadd, 76 TextPaint paint, 81 this(base, display, paint, width, align, TextDirectionHeuristics.FIRSTSTRONG_LTR, 95 TextPaint paint, 105 paint, width, align, textDir, spacingmult, spacingadd); 156 Paint.FontMetricsInt fm = paint.getFontMetricsInt(); 45 DynamicLayout(CharSequence base, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 59 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 75 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument 94 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 D | StaticLayout.java | 45 public StaticLayout(CharSequence source, TextPaint paint, argument 49 this(source, 0, source.length(), paint, width, align, 56 public StaticLayout(CharSequence source, TextPaint paint, argument 60 this(source, 0, source.length(), paint, width, align, textDir, 65 TextPaint paint, int outerwidth, 69 this(source, bufstart, bufend, paint, outerwidth, align, 77 TextPaint paint, int outerwidth, 81 this(source, bufstart, bufend, paint, outerwidth, align, textDir, 86 TextPaint paint, int outerwidth, 91 this(source, bufstart, bufend, paint, outerwidt 64 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, float spacingmult, float spacingadd, boolean includepad) argument 76 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad) argument 85 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 99 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 508 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 641 calculateEllipsis(int lineStart, int lineEnd, float[] widths, int widthStart, float avail, TextUtils.TruncateAt where, int line, float textWidth, TextPaint paint, boolean forceEllipsis) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | HardwareLayer.java | 49 * Update the paint used when drawing this layer. 51 * @param paint The paint used when the layer is drawn into the destination canvas. 54 public void setLayerPaint(Paint paint) { argument 55 nSetLayerPaint(mFinalizer.get(), paint.mNativePaint); 148 private static native void nSetLayerPaint(long layerUpdater, long paint); argument
|
H A D | TextureView.java | 255 * considered to act as a hardware layer. The optional paint supplied to this 262 * @param paint The paint used to compose the layer. This argument is optional 267 public void setLayerType(int layerType, Paint paint) { argument 268 if (paint != mLayerPaint) { 269 mLayerPaint = paint == null ? new Paint() : paint; 275 public void setLayerPaint(Paint paint) { argument 276 setLayerType(/* ignored */ 0, paint);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 51 HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } argument 55 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument 58 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding); 64 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds); 86 SkPaint* paint = hbFontData->m_paint; local 88 paint->setTextEncoding(SkPaint::kUTF16_TextEncoding); 92 paint->textToGlyphs(unichar, size * sizeof(*unichar), &glyph16); 163 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { argument 172 HarfBuzzFontData* data = new HarfBuzzFontData(paint); [all...] |
H A D | NinePatchImpl.cpp | 71 const SkBitmap& bitmap, const SkPaint& paint, 75 ((SkPaint*)&paint)->setColor(modAlpha(colorHint, paint.getAlpha())); 76 canvas->drawRect(dst, paint); 77 ((SkPaint*)&paint)->setColor(initColor); 84 SkColor prev = paint.getColor(); 85 ((SkPaint*)&paint)->setColor(c); 86 canvas->drawRect(dst, paint); 87 ((SkPaint*)&paint)->setColor(prev); 91 canvas->drawBitmapRect(bitmap, &src, dst, &paint); 70 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument 105 NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 44 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 46 // check default paint 47 Log.i("TG1:paint", fmi.toString()); 71 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 87 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 105 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 125 b.paint.setTextSize(36); 126 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 154 FontMetricsInt fmi = b.paint.getFontMetricsInt(); 175 FontMetricsInt fmi = b.paint 237 TextPaint paint = new TextPaint(); // default field in class:StaticLayoutTest.LayoutBuilder 249 setPaint(TextPaint paint) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 139 * Returns the paint used to draw this NinePatch. The paint can be null. 150 * Sets the paint to use when drawing the NinePatch. 152 * @param p The paint that will be used to draw this NinePatch. 170 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}. 180 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}. 190 * Draws the NinePatch. This method will ignore the paint returned 191 * by {@link #getPaint()} and use the specified paint instead. 195 * @param paint The Paint to draw through. 197 public void draw(Canvas canvas, Rect location, Paint paint) { argument 201 drawSoftware(Canvas canvas, RectF location, Paint paint) argument 206 drawSoftware(Canvas canvas, Rect location, Paint paint) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.h | 82 const SkPaint* paint, int flags); 112 virtual status_t drawBitmap(const SkBitmap* bitmap, const SkPaint* paint); 115 float dstRight, float dstBottom, const SkPaint* paint); 116 virtual status_t drawBitmapData(const SkBitmap* bitmap, const SkPaint* paint); 118 const float* vertices, const int* colors, const SkPaint* paint); 120 float left, float top, float right, float bottom, const SkPaint* paint); 124 const SkPaint* paint); 125 virtual status_t drawRects(const float* rects, int count, const SkPaint* paint); 127 float rx, float ry, const SkPaint* paint); 131 CanvasPropertyPaint* paint); 220 refPaint(const SkPaint* paint) argument 240 copyPaint(const SkPaint* paint) argument [all...] |
H A D | DrawProfiler.cpp | 131 SkPaint paint; local 132 paint.setColor(0x7fff0000); 134 mDirtyRegion.fRight, mDirtyRegion.fBottom, &paint); 190 SkPaint paint; local 192 paint.setColor(ELEMENT_COLORS[i]); 193 canvas->drawRects(mRects[i], mDataSize * 4, &paint); 201 SkPaint paint; local 202 paint.setColor(CURRENT_FRAME_COLOR); 205 mRects[0][i+3], &paint); 209 SkPaint paint; local [all...] |
H A D | FontRenderer.h | 65 int alpha, SkXfermode::Mode mode, const SkPaint* paint): Functor(), 67 alpha(alpha), mode(mode), paint(paint) { 79 const SkPaint* paint; member in class:android::uirenderer::TextSetupFunctor 98 void setFont(const SkPaint* paint, const SkMatrix& matrix); 100 void precache(const SkPaint* paint, const char* text, int numGlyphs, const SkMatrix& matrix); 104 bool renderPosText(const SkPaint* paint, const Rect* clip, const char *text, 109 bool renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, 131 DropShadow renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex, 64 TextSetupFunctor(OpenGLRenderer* renderer, float x, float y, bool pureTranslate, int alpha, SkXfermode::Mode mode, const SkPaint* paint) argument
|
H A D | Layer.cpp | 190 void Layer::setPaint(const SkPaint* paint) { argument 191 OpenGLRenderer::getAlphaAndModeDirect(paint, &alpha, &mode); 192 setColorFilter((paint) ? paint->getColorFilter() : NULL);
|
H A D | TessellationCache.h | 72 Description(Type type, const Matrix4& transform, const SkPaint& paint); 74 void setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const; 124 void precacheRoundRect(const Matrix4& transform, const SkPaint& paint, argument 126 getRoundRectBuffer(transform, paint, width, height, rx, ry); 128 const VertexBuffer* getRoundRect(const Matrix4& transform, const SkPaint& paint, 149 Buffer* getRectBuffer(const Matrix4& transform, const SkPaint& paint, 151 Buffer* getRoundRectBuffer(const Matrix4& transform, const SkPaint& paint,
|
H A D | TextDropShadowCache.h | 41 ShadowText(const SkPaint* paint, float radius, uint32_t len, const char* srcText, argument 47 textSize = paint->getTextSize(); 48 typeface = paint->getTypeface(); 51 if (paint->isFakeBoldText()) { 55 italicStyle = paint->getTextSkewX(); 56 scaleX = paint->getTextScaleX(); 138 ShadowTexture* get(const SkPaint* paint, const char* text, uint32_t len,
|
H A D | PathCache.cpp | 55 PathDescription::PathDescription(ShapeType type, const SkPaint* paint): argument 57 join(paint->getStrokeJoin()), 58 cap(paint->getStrokeCap()), 59 style(paint->getStyle()), 60 miter(paint->getStrokeMiter()), 61 strokeWidth(paint->getStrokeWidth()), 62 pathEffect(paint->getPathEffect()) { 82 bool PathCache::canDrawAsConvexPath(SkPath* path, const SkPaint* paint) { argument 84 return paint->getPathEffect() == NULL && path->getConvexity() == SkPath::kConvex_Convexity; 87 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, argument 93 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 112 initPaint(SkPaint& paint) argument 124 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 256 addTexture(const PathDescription& entry, const SkPath *path, const SkPaint* paint) argument 419 get(const SkPath* path, const SkPaint* paint) argument 457 precache(const SkPath* path, const SkPaint* paint) argument 504 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument 530 getCircle(float radius, const SkPaint* paint) argument 550 getOval(float width, float height, const SkPaint* paint) argument 573 getRect(float width, float height, const SkPaint* paint) argument 596 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |
H A D | PathCache.h | 150 PathDescription(ShapeType shapeType, const SkPaint* paint); 189 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 190 PathTexture* getCircle(float radius, const SkPaint* paint); 191 PathTexture* getOval(float width, float height, const SkPaint* paint); 192 PathTexture* getRect(float width, float height, const SkPaint* paint); 194 bool useCenter, const SkPaint* paint); 195 PathTexture* get(const SkPath* path, const SkPaint* paint); 221 void precache(const SkPath* path, const SkPaint* paint); 223 static bool canDrawAsConvexPath(SkPath* path, const SkPaint* paint); 224 static void computePathBounds(const SkPath* path, const SkPaint* paint, 274 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture) argument 287 const SkPaint paint; member in class:android::uirenderer::PathCache::PathTask [all...] |
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 214 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 outBuffer.width, update.state.icon.bitmap.height(), paint); 224 paint.setColor(0); // transparent fill color 226 outBuffer.width, outBuffer.height, paint);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | LoadAverageService.java | 43 CpuTracker(Paint paint) { argument 45 mPaint = paint;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BidiRenderer.java | 73 * @param paint The Paint to use to get the fonts. Should not be null. 76 public BidiRenderer(Graphics2D graphics, Paint_Delegate paint, char[] text) { argument 77 assert (paint != null); 79 mPaint = paint; 81 mFonts = new ArrayList<Font>(paint.getFonts().size()); 82 for (FontInfo fontInfo : paint.getFonts()) {
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
H A D | ViewCompatHC.java | 32 public static void setLayerType(View view, int layerType, Paint paint) { argument 33 view.setLayerType(layerType, paint);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 81 // Draws a line using the specified paint from (x1, y1) to (x2, y2). 83 public abstract void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument 85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2). 87 public abstract void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StreamingTextView.java | 239 float x, int top, int y, int bottom, Paint paint) { 241 int width = (int) paint.measureText(text, start, end); 251 int oldAlpha = paint.getAlpha(); 261 paint.setAlpha((mRandom.nextInt(4) + 1) * 63); 264 canvas.drawBitmap(mTwoDot, dotLeft, y - mTwoDot.getHeight(), paint); 266 canvas.drawBitmap(mOneDot, dotLeft, y - mOneDot.getHeight(), paint); 269 paint.setAlpha(oldAlpha); 273 public int getSize(Paint paint, CharSequence text, int start, int end, argument 275 return (int) paint.measureText(text, start, end); 238 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | RoundRectDrawableWithShadow.java | 352 void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, Paint paint); argument
|