/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 24 import android.graphics.Paint; 63 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { in saveLayer() 68 public int saveLayer(RectF bounds, Paint paint) { in saveLayer() 73 public int saveLayer(float left, float top, float right, float bottom, Paint paint, in saveLayer() 79 public int saveLayer(float left, float top, float right, float bottom, Paint paint) { in saveLayer() 134 public void drawPaint(Paint paint) { in drawPaint() 138 public void drawPoints(float[] pts, int offset, int count, Paint paint) { in drawPoints() 142 public void drawPoints(float[] pts, Paint paint) { in drawPoints() 146 public void drawPoint(float x, float y, Paint paint) { in drawPoint() 150 public void drawLine(float startX, float startY, float stopX, float stopY, Paint paint) { in drawLine() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 91 static void deletePaint(Paint* paint) { in deletePaint() 100 return reinterpret_cast<jlong>(new Paint); in init() 104 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint() 105 Paint* obj = new Paint(*paint); in initWithPaint() 109 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText() 145 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextC() 174 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextS() 184 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances() 219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances___CIIIII_FI() 231 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances__StringIIIII_FI() [all …]
|
D | android_graphics_Canvas.cpp | 114 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in saveLayer() 128 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in restoreUnclippedLayer() 294 Paint p; in drawColorLong() 303 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPaint() 309 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoint() 325 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawPoints() 331 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLine() 347 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawLines() 353 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawRect() 361 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); in drawDoubleRoundRectXY() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | TextActivity.java | 22 import android.graphics.Paint; 37 private final Paint mMediumPaint; 38 private final Paint mLargePaint; 39 private final Paint mStrikePaint; 40 private final Paint mScaledPaint; 41 private final Paint mSkewPaint; 42 private final Paint mHugePaint; 48 mMediumPaint = new Paint(); in CustomTextView() 52 mLargePaint = new Paint(); in CustomTextView() 56 mStrikePaint = new Paint(); in CustomTextView() [all …]
|
D | PathDestructionActivity.java | 22 import android.graphics.Paint; 49 Paint strokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 50 Paint fillPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 51 Paint fillAndStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 55 strokePaint.setStyle(Paint.Style.STROKE); in MyView() 56 fillPaint.setStyle(Paint.Style.FILL); in MyView() 57 fillAndStrokePaint.setStyle(Paint.Style.FILL_AND_STROKE); in MyView()
|
D | PathsActivity.java | 25 import android.graphics.Paint; 42 private final Paint mSmallPaint; 43 private final Paint mMediumPaint; 44 private final Paint mLargePaint; 48 private final Paint mBoundsPaint; 51 private final Paint mLinePaint; 58 mSmallPaint = new Paint(); in PathsView() 62 mSmallPaint.setStyle(Paint.Style.STROKE); in PathsView() 64 mLinePaint = new Paint(); in PathsView() 68 mLinePaint.setStyle(Paint.Style.STROKE); in PathsView() [all …]
|
D | ScaledTextActivity.java | 23 import android.graphics.Paint; 49 private final Paint mPaint; 50 private final Paint mShadowPaint; 61 mPaint = new Paint(); in ScaledTextView() 65 mShadowPaint = new Paint(); in ScaledTextView() 98 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 100 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw() 106 mPaint.setTextAlign(Paint.Align.LEFT); in onDraw() 110 mPaint.setTextAlign(Paint.Align.CENTER); in onDraw() 112 mPaint.setTextAlign(Paint.Align.RIGHT); in onDraw() [all …]
|
D | LinesActivity.java | 26 import android.graphics.Paint; 59 private final Paint mSmallPaint; 60 private final Paint mMediumPaint; 61 private final Paint mLargePaint; 64 private final Paint mAlphaPaint; 65 private final Paint mHairLinePaint; 74 mSmallPaint = new Paint(); in LinesView() 79 mMediumPaint = new Paint(); in LinesView() 84 mLargePaint = new Paint(); in LinesView() 89 mAlphaPaint = new Paint(); in LinesView() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | Canvas.h | 64 class Paint; variable 167 virtual void restoreUnclippedLayer(int saveCount, const Paint& paint) = 0; 210 virtual void drawPaint(const Paint& paint) = 0; 213 virtual void drawPoint(float x, float y, const Paint& paint) = 0; 214 virtual void drawPoints(const float* points, int floatCount, const Paint& paint) = 0; 216 const Paint& paint) = 0; 217 virtual void drawLines(const float* points, int floatCount, const Paint& paint) = 0; 219 const Paint& paint) = 0; 220 virtual void drawRegion(const SkRegion& region, const Paint& paint) = 0; 222 const Paint& paint) = 0; [all …]
|
D | PaintImpl.cpp | 22 Paint::Paint() in Paint() function in android::Paint 35 Paint::Paint(const Paint& paint) in Paint() function in android::Paint 53 Paint::~Paint() {} in ~Paint() 55 Paint& Paint::operator=(const Paint& other) { in operator =() 75 bool operator==(const Paint& a, const Paint& b) { in operator ==() 86 void Paint::reset() { in reset() 100 void Paint::setLooper(sk_sp<BlurDrawLooper> looper) { in setLooper() 104 void Paint::setAntiAlias(bool aa) { in setAntiAlias() 176 uint32_t Paint::GetSkPaintJavaFlags(const SkPaint& paint) { in GetSkPaintJavaFlags() 180 void Paint::SetSkPaintJavaFlags(SkPaint* paint, uint32_t flags) { in SetSkPaintJavaFlags() [all …]
|
D | Canvas.cpp | 38 void Canvas::drawTextDecorations(float x, float y, float length, const Paint& paint) { in drawTextDecorations() 51 position = textSize * Paint::kStdUnderline_Top; in drawTextDecorations() 55 thickness = textSize * Paint::kStdUnderline_Thickness; in drawTextDecorations() 61 const float position = textSize * Paint::kStdStrikeThru_Top; in drawTextDecorations() 62 const SkScalar thickness = textSize * Paint::kStdStrikeThru_Thickness; in drawTextDecorations() 70 int glyphCount, const Paint& paint) { in drawGlyphs() 72 Paint copied(paint); in drawGlyphs() 91 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt) { in drawText() 93 Paint paint(origPaint); in drawText() 108 paint.setTextAlign(Paint::kLeft_Align); in drawText() [all …]
|
D | Paint.h | 38 class Paint : public SkPaint { 53 Paint(); 54 Paint(const Paint& paint); 55 ~Paint(); 57 Paint& operator=(const Paint& other); 59 friend bool operator==(const Paint& a, const Paint& b); 60 friend bool operator!=(const Paint& a, const Paint& b) { return !(a == b); }
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvas.h | 80 virtual void restoreUnclippedLayer(int saveCount, const Paint& paint) override; 111 virtual void drawPaint(const Paint& paint) override; 113 virtual void drawPoint(float x, float y, const Paint& paint) override; 114 virtual void drawPoints(const float* points, int count, const Paint& paint) override; 116 const Paint& paint) override; 117 virtual void drawLines(const float* points, int count, const Paint& paint) override; 119 const Paint& paint) override; 120 virtual void drawRegion(const SkRegion& region, const Paint& paint) override; 122 const Paint& paint) override; 125 const Paint& paint) override; [all …]
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/ |
D | PerfTimeline.java | 41 private Paint mPaintBaseLow; 42 private Paint mPaintBaseHigh; 43 private Paint mPaintValue; 82 mTextPaint.setFlags(Paint.ANTI_ALIAS_FLAG); in init() 83 mTextPaint.setTextAlign(Paint.Align.LEFT); in init() 88 mPaintBaseLow = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 89 mPaintBaseLow.setStyle(Paint.Style.FILL); in init() 92 mPaintBaseHigh = new Paint(Paint.ANTI_ALIAS_FLAG); in init() 93 mPaintBaseHigh.setStyle(Paint.Style.FILL); in init() 96 mPaintValue = new Paint(Paint.ANTI_ALIAS_FLAG); in init() [all …]
|
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/ |
D | TouchLatencyView.java | 21 import android.graphics.Paint; 46 mBluePaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 48 mBluePaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 49 mGreenPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 51 mGreenPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 52 mYellowPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 54 mYellowPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 55 mRedPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() 57 mRedPaint.setStyle(Paint.Style.FILL); in TouchLatencyView() 58 mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG); in TouchLatencyView() [all …]
|
/frameworks/base/libs/hwui/apex/ |
D | TypeCast.h | 28 class Paint; variable 52 static inline const Paint& toPaintRef(const APaint* paint) { in toPaintRef() 53 return reinterpret_cast<const Paint&>(*paint); in toPaintRef() 56 static inline const Paint* toPaint(const APaint* paint) { in toPaint() 57 return reinterpret_cast<const Paint*>(paint); in toPaint() 60 static inline Paint* toPaint(APaint* paint) { in toPaint() 61 return reinterpret_cast<Paint*>(paint); in toPaint() 64 static inline APaint* toAPaint(Paint* paint) { in toAPaint()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 82 Paint paint = new Paint(); in testHintingWidth() 92 paint.setHinting(Paint.HINTING_OFF); in testHintingWidth() 97 paint.setHinting(Paint.HINTING_ON); in testHintingWidth() 125 Paint p = new Paint(); in testHasGlyph_variationSelectors() 187 Paint p = new Paint(); in assertGetTextRunAdvances() 223 Paint p = new Paint(); in testGetTextRunAdvances_invalid() 276 Paint p = new Paint(); in testMeasureTextBidi() 279 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi() 281 p.setBidiFlags(Paint.BIDI_RTL); in testMeasureTextBidi() 283 p.setBidiFlags(Paint.BIDI_LTR); in testMeasureTextBidi() [all …]
|
/frameworks/base/core/java/android/text/ |
D | GraphicsOperations.java | 21 import android.graphics.Paint; 34 float x, float y, Paint p); in drawText() 40 float x, float y, boolean isRtl, Paint p); in drawTextRun() 45 float measureText(int start, int end, Paint p); in measureText() 50 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() 56 boolean isRtl, float[] advances, int advancesIndex, Paint paint); in getTextRunAdvances() 62 int cursorOpt, Paint p); in getTextRunCursor()
|
D | Highlights.java | 19 import android.graphics.Paint; 34 private final List<Pair<Paint, int[]>> mHighlights; 36 private Highlights(List<Pair<Paint, int[]>> highlights) { in Highlights() argument 61 public @NonNull Paint getPaint(@IntRange(from = 0) int index) { in getPaint() 88 private final List<Pair<Paint, int[]>> mHighlights = new ArrayList<>(); 112 public @NonNull Builder addRange(@NonNull Paint paint, @IntRange(from = 0) int start, in addRange() 144 public @NonNull Builder addRanges(@NonNull Paint paint, @NonNull int... ranges) { in addRanges()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayoutPreviewDrawable.java | 24 import android.graphics.Paint; 200 private final Paint mKeyPaint; 201 private final Paint mBaseTextPaint; 202 private final Paint mModifierTextPaint; 206 float keyRadius, float textPadding, Paint keyPaint, Paint baseTextPaint, in TypingKey() 207 Paint modifierTextPaint) { in TypingKey() 296 RectF keyRect, float keyRadius, float textPadding, Paint keyPaint, in UnsureTypingKey() 297 Paint baseTextPaint, Paint modifierTextPaint) { in UnsureTypingKey() 305 private final Paint mKeyPaint; 308 private IsoEnterKey(Paint keyPaint, @NonNull Path path) { in IsoEnterKey() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | DisableSubpixelTextTransitionListenerTest.kt | 19 import android.graphics.Paint 57 assertThat(childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isGreaterThan(0) in onTransitionStarted_addsSubpixelFlagToChildTextView() 66 assertThat(childOfChildTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isGreaterThan(0) in onTransitionStarted_addsSupbixelFlagToChildOfChildTextView() 76 assertThat(childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isEqualTo(0) in onTransitionFinished_removeSupbixelFlagFromChildTextView() 86 assertThat(childOfChildTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isEqualTo(0) in onTransitionFinished_removeSupbixelFlagFromChildOfChildTextView() 99 childTextView.paintFlags = childTextView.paintFlags or Paint.SUBPIXEL_TEXT_FLAG in whenFlagAlreadyPresent_flagNotRemovedOnTransitionFinished() 105 assertThat(childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isGreaterThan(0) in whenFlagAlreadyPresent_flagNotRemovedOnTransitionFinished() 110 childTextView.paintFlags = childTextView.paintFlags or Paint.SUBPIXEL_TEXT_FLAG in whenFlagNotPresent_flagRemovedOnTransitionFinished() 116 assertThat(childOfChildTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isEqualTo(0) in whenFlagNotPresent_flagRemovedOnTransitionFinished() 128 assertThat(childTextView.paintFlags and Paint.SUBPIXEL_TEXT_FLAG).isEqualTo(0) in whenRootViewHasNoChildTextView_flagNotAddedToRelatedTextviews()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ShadowGenerator.java | 26 import android.graphics.Paint; 50 private final Paint mBlurPaint; 51 private final Paint mDrawPaint; 56 mBlurPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); in ShadowGenerator() 57 mDrawPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); in ShadowGenerator() 168 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); in drawShadow()
|
D | ThemedIconDrawable.java | 25 import android.graphics.Paint; 41 private final Paint mMonoPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); 44 private final Paint mBgPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | ReplacementDrawableSpan.java | 4 import android.graphics.Paint; 14 protected static final Paint sWorkPaint = new Paint(); 28 private void setupFontMetrics(Paint.FontMetricsInt fm, Paint paint) { in setupFontMetrics() 45 public int getSize(Paint paint, CharSequence text, int i, int i2, Paint.FontMetricsInt fm) { in getSize() 52 int y, int bottom, Paint paint) { in draw()
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | TestWallpaper.java | 22 import android.graphics.Paint; 59 private final Paint.FontMetrics mTextMetrics = new Paint.FontMetrics(); 77 private final Paint mFillPaint = new Paint(Paint.ANTI_ALIAS_FLAG); 78 private final Paint mStrokePaint = new Paint(Paint.ANTI_ALIAS_FLAG); 79 private final TextPaint mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); 98 Paint paint = mFillPaint; in onCreate() 99 paint.setStyle(Paint.Style.FILL); in onCreate() 103 paint.setStrokeCap(Paint.Cap.ROUND); in onCreate() 104 paint.setStyle(Paint.Style.STROKE); in onCreate() 210 final Paint paint = mFillPaint; in drawFrame()
|