/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 63 void TestUtils::layoutTextUnscaled(const SkPaint& paint, const char* text, argument 69 SkAutoGlyphCacheNoGamma autoCache(paint, &surfaceProps, &SkMatrix::I()); 88 paint.getTextWidths(&glyph, sizeof(glyph), &skWidth, NULL); 97 const SkPaint& paint, float x, float y) { 99 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, 0, paint, nullptr); 103 const SkPaint& paint, const SkPath& path) { 105 canvas->drawTextOnPath(utf16.get(), strlen(text), 0, path, 0, 0, paint, nullptr); 96 drawUtf8ToCanvas(Canvas* canvas, const char* text, const SkPaint& paint, float x, float y) argument 102 drawUtf8ToCanvas(Canvas* canvas, const char* text, const SkPaint& paint, const SkPath& path) argument
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | BakedOpDispatcherTests.cpp | 137 SkPaint paint; local 141 RoundRectOp roundRectOp(bounds, Matrix4::identity(), nullptr, &paint, 0, 270); 149 PointsOp pointsOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4); 156 LinesOp linesOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4);
|
/frameworks/base/libs/hwui/utils/ |
H A D | NinePatchImpl.cpp | 65 const SkBitmap& bitmap, const SkPaint& paint, 69 ((SkPaint*)&paint)->setColor(modAlpha(colorHint, paint.getAlpha())); 70 canvas->drawRect(dst, paint); 71 ((SkPaint*)&paint)->setColor(initColor); 78 SkColor prev = paint.getColor(); 79 ((SkPaint*)&paint)->setColor(c); 80 canvas->drawRect(dst, paint); 81 ((SkPaint*)&paint)->setColor(prev); 85 canvas->drawBitmapRect(bitmap, SkRect::Make(src), dst, &paint); 64 drawStretchyPatch(SkCanvas* canvas, SkIRect& src, const SkRect& dst, const SkBitmap& bitmap, const SkPaint& paint, SkColor initColor, uint32_t colorHint, bool hasXfer) argument 98 Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion) argument [all...] |
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 218 SkPaint paint; local 219 paint.setXfermodeMode(SkXfermode::kSrc_Mode); 220 surfaceCanvas.drawBitmap(update.state.icon.bitmap, 0, 0, &paint); 223 paint.setColor(0); // transparent fill color 225 outBuffer.width, update.state.icon.bitmap.height(), paint); 228 paint.setColor(0); // transparent fill color 230 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/packages/SystemUI/src/com/android/systemui/assist/ |
H A D | AssistDisclosure.java | 196 private void drawGeometry(Canvas canvas, Paint paint, float padding) { argument 208 height, paint, padding); 217 height - thickness, paint, padding); 222 height - thickness, paint, padding); 232 thickness, paint, padding); 237 thickness, paint, padding); 242 Paint paint, float padding) { 247 paint); 241 drawBeam(Canvas canvas, float left, float top, float right, float bottom, Paint paint, float padding) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BidiRenderer.java | 72 * @param paint The Paint to use to get the fonts. Should not be null. 75 public BidiRenderer(Graphics2D graphics, Paint_Delegate paint, char[] text) { argument 76 assert (paint != null); 78 mPaint = paint; 80 mFonts = new ArrayList<Font>(paint.getFonts().size()); 81 for (FontInfo fontInfo : paint.getFonts()) {
|
/frameworks/support/v4/honeycomb/android/support/v4/view/ |
H A D | ViewCompatHC.java | 34 public static void setLayerType(View view, int layerType, Paint paint) { argument 35 view.setLayerType(layerType, paint);
|
/frameworks/base/core/java/android/text/ |
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; 680 * @param wp the working paint 772 * @param wp the work paint 941 * Render a text run with the set-up paint. 944 * @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, 97 TextPaint paint, 107 paint, width, align, textDir, spacingmult, spacingadd); 160 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 96 DynamicLayout(CharSequence base, CharSequence display, TextPaint paint, int width, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, int breakStrategy, int hyphenationFrequency, TextUtils.TruncateAt ellipsize, int ellipsizedWidth) argument
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayListCanvas.java | 235 CanvasProperty<Float> radius, CanvasProperty<Paint> paint) { 237 radius.getNativeContainer(), paint.getNativeContainer()); 245 CanvasProperty<Float> ry, CanvasProperty<Paint> paint) { 249 paint.getNativeContainer()); 234 drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, CanvasProperty<Float> radius, CanvasProperty<Paint> paint) argument 243 drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, CanvasProperty<Float> ry, CanvasProperty<Paint> paint) argument
|
H A D | TextureView.java | 252 * considered to act as a hardware layer. The optional paint supplied to this 259 * @param paint The paint used to compose the layer. This argument is optional 264 public void setLayerType(int layerType, @Nullable Paint paint) { argument 265 setLayerPaint(paint); 269 public void setLayerPaint(@Nullable Paint paint) { argument 270 if (paint != mLayerPaint) { 271 mLayerPaint = paint; 320 properties (alpha, layer paint) affect all of the content of a TextureView. */ 330 mLayer.setLayerPaint(mLayerPaint); // ensure layer paint i [all...] |
/frameworks/base/libs/hwui/ |
H A D | GlopBuilder.cpp | 325 const int textureFillFlags, const SkPaint* paint, float alphaScale) { 330 ? GL_LINEAR : PaintUtils::getFilter(paint); 334 if (paint) { 335 int color = paint->getColor(); 336 SkShader* shader = paint->getShader(); 344 PaintUtils::getXfermode(paint->getXfermode()), Blend::ModeOrderSwap::NoSwap, 345 shader, paint->getColorFilter()); 369 GlopBuilder& GlopBuilder::setFillPaint(const SkPaint& paint, float alphaScale, bool shadowInterp) { 382 setFill(paint.getColor(), alphaScale, 383 PaintUtils::getXfermode(paint 324 setFillTexturePaint(Texture& texture, const int textureFillFlags, const SkPaint* paint, float alphaScale) argument 407 setFillShadowTexturePaint(ShadowTexture& texture, int shadowColor, const SkPaint& paint, float alphaScale) argument [all...] |
H A D | LayerBuilder.cpp | 102 static bool paintIsDefault(const SkPaint& paint) { argument 103 return paint.getAlpha() == 255 104 && paint.getColorFilter() == nullptr 105 && paint.getShader() == nullptr; 119 * important to consider all paint attributes used in the draw calls in deciding both a) if an 131 if (!isTextBatch || PaintUtils::hasTextShadow(op->op->paint)) { 169 const SkPaint* newPaint = op->op->paint; 170 const SkPaint* oldPaint = mOps[0]->op->paint; 173 // if paints are equal, then modifiers + paint attribs don't need to be compared 227 // of the same batch/paint coul 276 SkPaint* paint = allocator.create<SkPaint>(); local [all...] |
H A D | PathCache.cpp | 70 PathDescription::PathDescription(ShapeType type, const SkPaint* paint) argument 72 , join(paint->getStrokeJoin()) 73 , cap(paint->getStrokeCap()) 74 , style(paint->getStyle()) 75 , miter(paint->getStrokeMiter()) 76 , strokeWidth(paint->getStrokeWidth()) 77 , pathEffect(paint->getPathEffect()) { 124 bool PathCache::canDrawAsConvexPath(SkPath* path, const SkPaint* paint) { argument 126 return paint->getPathEffect() == nullptr && path->getConvexity() == SkPath::kConvex_Convexity; 129 void PathCache::computePathBounds(const SkPath* path, const SkPaint* paint, argument 135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 154 initPaint(SkPaint& paint) argument 166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 270 addTexture(const PathDescription& entry, const SkPath *path, const SkPaint* paint) argument 382 get(const SkPath* path, const SkPaint* paint) argument 413 remove(const SkPath* path, const SkPaint* paint) argument 419 precache(const SkPath* path, const SkPaint* paint) argument 461 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument 487 getCircle(float radius, const SkPaint* paint) argument 507 getOval(float width, float height, const SkPaint* paint) argument 530 getRect(float width, float height, const SkPaint* paint) argument 553 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |
H A D | PathCache.h | 162 PathDescription(ShapeType shapeType, const SkPaint* paint); 195 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 196 PathTexture* getCircle(float radius, const SkPaint* paint); 197 PathTexture* getOval(float width, float height, const SkPaint* paint); 198 PathTexture* getRect(float width, float height, const SkPaint* paint); 200 bool useCenter, const SkPaint* paint); 201 PathTexture* get(const SkPath* path, const SkPaint* paint); 202 void remove(const SkPath* path, const SkPaint* paint); 228 void precache(const SkPath* path, const SkPaint* paint); 230 static bool canDrawAsConvexPath(SkPath* path, const SkPaint* paint); 273 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture) argument 285 const SkPaint paint; member in class:android::uirenderer::PathCache::PathTask [all...] |
H A D | OpenGLRenderer.h | 156 const SkPaint* paint, int flags) { 157 return saveLayer(left, top, right, bottom, paint, flags, nullptr); 163 const SkPaint* paint, int flags, const SkPath* convexMask); 166 const SkPaint* paint, int flags); 170 void drawBitmap(const SkBitmap* bitmap, const SkPaint* paint); 172 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint); 174 const SkPaint* paint); 176 const float* vertices, const int* colors, const SkPaint* paint); 178 TextureVertex* vertices, uint32_t indexCount, const SkPaint* paint); 180 float left, float top, float right, float bottom, const SkPaint* paint); 155 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument 625 drawVertexBuffer(const VertexBuffer& vertexBuffer, const SkPaint* paint, int flags = 0) argument [all...] |
H A D | RecordedOp.h | 153 #define BASE_PARAMS const Rect& unmappedBounds, const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint 155 #define SUPER(Type) RecordedOp(RecordedOpId::Type, unmappedBounds, localMatrix, localClip, paint) 171 /* optional paint, stored in base object to simplify merging logic */ 172 const SkPaint* paint; member in struct:android::uirenderer::RecordedOp 179 , paint(paint) {} 249 CirclePropsOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, argument 251 : RecordedOp(RecordedOpId::CirclePropsOp, Rect(), localMatrix, localClip, paint) 333 RoundRectPropsOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, argument 335 : RecordedOp(RecordedOpId::RoundRectPropsOp, Rect(), localMatrix, localClip, paint) 402 TextOnPathOp(const Matrix4& localMatrix, const ClipBase* localClip, const SkPaint* paint, const glyph_t* glyphs, int glyphCount, const SkPath* path, float hOffset, float vOffset) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 37 void SkiaCanvasProxy::onDrawPaint(const SkPaint& paint) { argument 38 mCanvas->drawPaint(paint); 42 const SkPaint& paint) { 54 mCanvas->drawPoints(floatArray, floatCount, paint); 58 mCanvas->drawLines(floatArray, floatCount, paint); 62 SkPaint strokedPaint(paint); 79 void SkiaCanvasProxy::onDrawOval(const SkRect& rect, const SkPaint& paint) { argument 80 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 83 void SkiaCanvasProxy::onDrawRect(const SkRect& rect, const SkPaint& paint) { argument 84 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); 41 onDrawPoints(PointMode pointMode, size_t count, const SkPoint pts[], const SkPaint& paint) argument 87 onDrawRRect(const SkRRect& roundRect, const SkPaint& paint) argument 100 onDrawPath(const SkPath& path, const SkPaint& paint) argument 104 onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, const SkPaint* paint) argument 127 onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* srcPtr, const SkRect& dst, const SkPaint* paint, SrcRectConstraint) argument 141 onDrawVertices(VertexMode mode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], int indexCount, const SkPaint& paint) argument 203 onDrawDRRect(const SkRRect& outer, const SkRRect& inner, const SkPaint& paint) argument 232 SkPaint paint; member in class:android::uirenderer::GlyphIDConverter 338 onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], SkScalar constY, const SkPaint& paint) argument 355 onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPaint& paint) argument 360 onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint) argument [all...] |
/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/rs/java/tests/VrDemo/src/com/example/android/rs/vr/ |
H A D | VrView.java | 54 private Paint paint = new Paint(); field in class:VrView 97 paint.setFilterBitmap(true);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | StreamingTextView.java | 245 float x, int top, int y, int bottom, Paint paint) { 247 int width = (int) paint.measureText(text, start, end); 257 int oldAlpha = paint.getAlpha(); 267 paint.setAlpha((mRandom.nextInt(4) + 1) * 63); 270 canvas.drawBitmap(mTwoDot, dotLeft, y - mTwoDot.getHeight(), paint); 272 canvas.drawBitmap(mOneDot, dotLeft, y - mOneDot.getHeight(), paint); 275 paint.setAlpha(oldAlpha); 279 public int getSize(Paint paint, CharSequence text, int start, int end, argument 281 return (int) paint.measureText(text, start, end); 244 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 | 390 void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, Paint paint); argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | PointerLocationView.java | 210 float angle, Paint paint) { 217 canvas.drawOval(mReusableOvalRect, paint); 311 final Paint paint = ps.mTraceCurrent[i] ? mCurrentPointPaint : mPaint; 312 canvas.drawPoint(lastX, lastY, paint); 209 drawOval(Canvas canvas, float x, float y, float major, float minor, float angle, Paint paint) argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ShapeDrawable.java | 220 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { argument 221 shape.draw(canvas, paint); 228 final Paint paint = state.mPaint; 230 final int prevAlpha = paint.getAlpha(); 231 paint.setAlpha(modulateAlpha(prevAlpha, state.mAlpha)); 234 if (paint.getAlpha() != 0 || paint.getXfermode() != null || paint.hasShadowLayer()) { 236 if (mTintFilter != null && paint.getColorFilter() == null) { 237 paint [all...] |