/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineTest.java | 48 final TextPaint paint = new TextPaint(); in stretchesToFullWidth() local 112 private TextLine getTextLine(CharSequence str, TextPaint paint, TabStops tabStops) { in getTextLine() 124 private TextLine getTextLine(CharSequence str, TextPaint paint) { in getTextLine() 142 final TextPaint paint = new TextPaint(); in testMeasure_LTR() local 155 final TextPaint paint = new TextPaint(); in testMeasure_RTL() local 168 final TextPaint paint = new TextPaint(); in testMeasure_BiDi() local 185 final TextPaint paint = new TextPaint(); in testMeasure_BiDi2() local 198 final TextPaint paint = new TextPaint(); in testMeasure_BiDi3() local 213 final TextPaint paint = new TextPaint(); in testMeasure_Tab_LTR() local 228 final TextPaint paint = new TextPaint(); in testMeasure_Tab_RTL() local [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 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() 154 public void drawLines(float[] pts, int offset, int count, Paint paint) { in drawLines() [all …]
|
/frameworks/base/libs/hwui/tests/common/ |
D | CallCountingCanvas.h | 47 void onDrawPaint(const SkPaint& paint) override { in onDrawPaint() 57 void onDrawRect(const SkRect& rect, const SkPaint& paint) override { in onDrawRect() 62 void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) override { in onDrawRRect() 68 const SkPaint& paint) override { in onDrawDRRect() 73 void onDrawOval(const SkRect& rect, const SkPaint& paint) override { in onDrawOval() 79 const SkPaint& paint) override { in onDrawArc() 84 void onDrawPath(const SkPath& path, const SkPaint& paint) override { in onDrawPath() 89 void onDrawRegion(const SkRegion& region, const SkPaint& paint) override { in onDrawRegion() 95 const SkPaint& paint) override { in onDrawTextBlob() 102 const SkPaint& paint) override { in onDrawPatch() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | PrecomputedTextMemoryUsageTest.java | 63 TextPaint paint = new TextPaint(); in testMemoryUsage_Latin_NoHyphenation() local 81 TextPaint paint = new TextPaint(); in testMemoryUsage_Latin_Hyphenation() local 99 TextPaint paint = new TextPaint(); in testMemoryUsage_CJK_NoHyphenation() local 117 TextPaint paint = new TextPaint(); in testMemoryUsage_CJK_Hyphenation() local 135 TextPaint paint = new TextPaint(); in testMemoryUsage_Arabic_NoHyphenation() local 154 TextPaint paint = new TextPaint(); in testMemoryUsage_Arabic_Hyphenation() local 172 TextPaint paint = new TextPaint(); in testMemoryUsage_Emoji() local
|
D | StaticLayoutPerfTest.java | 84 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured() 89 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured() 470 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_Phrase_Short() local 489 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_Phrase_Long() local 508 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_Phrase_LongLong() local 527 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_NoPhrase_Short() local 546 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_NoPhrase_Long() local 565 final TextPaint paint = new TextPaint(PAINT); in testCreate_JPText_NoPhrase_LongLong() local 584 final TextPaint paint = new TextPaint(PAINT); in testCreate_KOText_Phrase_Short() local 603 final TextPaint paint = new TextPaint(PAINT); in testCreate_KOText_Phrase_Long() local [all …]
|
D | VariableFontPerfTest.java | 59 final Paint paint = new Paint(PAINT); in testDraw_SetVariationOnce() local 80 final Paint paint = new Paint(PAINT); in testDraw_SetVariationEachDraw() local 101 final Paint paint = new Paint(PAINT); in testDraw_SetDifferentVariationEachDraw() local 122 final Paint paint = new Paint(PAINT); in testSetFontVariationSettings() local
|
/frameworks/minikin/tests/unittest/ |
D | FontFeatureTest.cpp | 57 auto paint = MinikinPaint(font); in TEST_F() local 69 auto paint = MinikinPaint(font); in TEST_F() local 83 auto paint = MinikinPaint(font); in TEST_F() local 99 auto paint = MinikinPaint(font); in TEST_F() local 109 auto paint = MinikinPaint(font); in TEST_F() local 119 auto paint = MinikinPaint(font); in TEST_F() local 136 auto paint = MinikinPaint(font); in TEST_F() local 162 auto paint = MinikinPaint(font); in TEST_F_WITH_FLAGS() local 170 auto paint = MinikinPaint(font); in TEST_F_WITH_FLAGS() local
|
D | MeasuredTextTest.cpp | 72 MinikinPaint paint(font); in TEST() local 94 MinikinPaint paint(font); in TEST() local 112 MinikinPaint paint(font); in TEST() local 131 MinikinPaint paint(font); in TEST() local 168 MinikinPaint paint(font); in TEST() local 191 MinikinPaint paint(font); in TEST() local 222 MinikinPaint paint(font); in TEST() local 306 MinikinPaint paint(font); in TEST() local 396 MinikinPaint paint(font); in TEST() local 480 MinikinPaint paint(font); in TEST() local [all …]
|
D | LayoutTest.cpp | 39 static void getBounds(const U16StringPiece& text, Bidi bidiFlags, const MinikinPaint& paint, in getBounds() 59 MinikinPaint paint(mCollection); in TEST_F() local 146 MinikinPaint paint(mCollection); in TEST_F() local 239 MinikinPaint paint(mCollection); in TEST_F() local 334 MinikinPaint paint(mCollection); in TEST_F() local 357 MinikinPaint paint(mCollection); in TEST_F() local 386 MinikinPaint paint(mCollection); in TEST_F() local 447 MinikinPaint paint(fc); in TEST_F() local 460 MinikinPaint paint(fc); in TEST_F() local 474 MinikinPaint paint(fc); in TEST_F() local
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | TypefaceSystemFallbackTest.java | 283 final Paint paint = new Paint(); in testBuildSystemFallback_NamedFamily() local 329 final Paint paint = new Paint(); in testBuildSystemFallback_defaultFallback() local 374 final Paint paint = new Paint(); in testBuildSystemFallback_namedFallbackFamily() local 424 final Paint paint = new Paint(); in testBuildSystemFallback_namedFallbackFamily2() local 470 final Paint paint = new Paint(); in testBuildSystemFallback_ImplicitSansSerifFallback() local 509 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback() local 548 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback() local 596 final Paint paint = new Paint(); in testBuildSystemFallback_multiLingualFamilies() local 638 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback_missingFile() local 677 final Paint paint = new Paint(); in testBuildSystemFallback_ElegantFallback_customFallback_missingFile2() local [all …]
|
D | PaintNativeInstanceTest.kt | 63 val paint = Paint().apply { in <lambda>() constant 79 paint, compose, shaderA, shaderB -> in <lambda>() method 90 paint, compose, shaderA, shaderB -> in <lambda>() method 107 paint, _, _, shaderB -> in <lambda>() method 132 paint, _, _, _ -> in <lambda>() method 149 val paint = Paint().apply { in <lambda>() constant
|
/frameworks/base/libs/hwui/apex/ |
D | TypeCast.h | 52 static inline const Paint& toPaintRef(const APaint* paint) { in toPaintRef() 56 static inline const Paint* toPaint(const APaint* paint) { in toPaint() 60 static inline Paint* toPaint(APaint* paint) { in toPaint() 64 static inline APaint* toAPaint(Paint* paint) { in toAPaint()
|
D | android_paint.cpp | 32 void APaint_destroyPaint(APaint* paint) { in APaint_destroyPaint() 59 void APaint_setBlendMode(APaint* paint, ABlendMode blendMode) { in APaint_setBlendMode() 63 void APaint_setImageFilter(APaint* paint, AImageFilter imageFilter) { in APaint_setImageFilter()
|
/frameworks/base/libs/hwui/utils/ |
D | PaintUtils.h | 36 static bool isOpaquePaint(const SkPaint* paint) { in isOpaquePaint() 55 static inline SkBlendMode getBlendModeDirect(const SkPaint* paint) { in getBlendModeDirect() 59 static inline int getAlphaDirect(const SkPaint* paint) { in getAlphaDirect()
|
/frameworks/base/core/java/android/text/ |
D | BoringLayout.java | 62 public static BoringLayout make(CharSequence source, TextPaint paint, int outerWidth, in make() 88 public static BoringLayout make(CharSequence source, TextPaint paint, int outerWidth, in make() 121 @NonNull CharSequence source, @NonNull TextPaint paint, in make() 146 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, int outerwidth, in replaceOrMake() 188 @NonNull TextPaint paint, @IntRange(from = 0) int outerWidth, in replaceOrMake() 199 @NonNull TextPaint paint, @IntRange(from = 0) int outerWidth, in replaceOrMake() 216 paint, outerWidth, align, spacingMultiplier, spacingAmount); in replaceOrMake() local 224 init(getText(), paint, align, metrics, includePad, trust, in replaceOrMake() local 250 public BoringLayout replaceOrMake(CharSequence source, TextPaint paint, int outerWidth, in replaceOrMake() 269 public BoringLayout(CharSequence source, TextPaint paint, int outerwidth, Alignment align, in BoringLayout() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | BaseRecordingCanvas.java | 55 float sweepAngle, boolean useCenter, @NonNull Paint paint) { in drawArc() 62 boolean useCenter, @NonNull Paint paint) { in drawArc() 74 @Nullable Paint paint) { in drawBitmap() 83 @Nullable Paint paint) { in drawBitmap() 90 @Nullable Paint paint) { in drawBitmap() 116 @Nullable Paint paint) { in drawBitmap() 144 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() 174 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() 183 @Nullable Paint paint) { in drawBitmapMesh() 203 public final void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle() [all …]
|
D | BaseCanvas.java | 103 float sweepAngle, boolean useCenter, @NonNull Paint paint) { in drawArc() 110 @NonNull Paint paint) { in drawArc() 120 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { in drawBitmap() 128 public void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) { in drawBitmap() 135 @Nullable Paint paint) { in drawBitmap() 161 @Nullable Paint paint) { in drawBitmap() 188 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() 217 int width, int height, boolean hasAlpha, @Nullable Paint paint) { in drawBitmap() 225 @Nullable Paint paint) { in drawBitmapMesh() 245 public void drawCircle(float cx, float cy, float radius, @NonNull Paint paint) { in drawCircle() [all …]
|
/frameworks/base/libs/hwui/ |
D | RecordingCanvas.cpp | 134 SkPaint paint; member 226 SkPaint paint; member 232 SkPaint paint; member 239 SkPaint paint; member 246 SkPaint paint; member 253 SkPaint paint; member 260 SkPaint paint; member 276 SkPaint paint; member 285 SkPaint paint; member 293 SkPaint paint; member [all …]
|
D | SkiaCanvas.cpp | 224 int SkiaCanvas::saveLayer(float left, float top, float right, float bottom, const SkPaint* paint) { in saveLayer() 245 void SkiaCanvas::restoreUnclippedLayer(int restoreCount, const Paint& paint) { in restoreUnclippedLayer() 268 SkPaint paint = SkPaint(); in punchHole() local 486 void SkiaCanvas::onFilterPaint(Paint& paint) { in onFilterPaint() 492 void SkiaCanvas::drawPaint(const Paint& paint) { in drawPaint() 500 void SkiaCanvas::drawPoints(const float* points, int count, const Paint& paint, in drawPoints() 514 void SkiaCanvas::drawPoint(float x, float y, const Paint& paint) { in drawPoint() 518 void SkiaCanvas::drawPoints(const float* points, int count, const Paint& paint) { in drawPoints() 523 const Paint& paint) { in drawLine() 528 void SkiaCanvas::drawLines(const float* points, int count, const Paint& paint) { in drawLines() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 86 SkPaint paint = SkPaint(); in punchHole() local 116 uirenderer::CanvasPropertyPaint* paint) { in drawRoundRect() 125 uirenderer::CanvasPropertyPaint* paint) { in drawCircle() 212 void SkiaRecordingCanvas::FilterForImage(SkPaint& paint) { in FilterForImage() 239 void SkiaRecordingCanvas::onFilterPaint(android::Paint& paint) { in onFilterPaint() 250 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, float left, float top, const Paint* paint) { in drawBitmap() 263 void SkiaRecordingCanvas::drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, const Paint* paint) { in drawBitmap() 281 float dstBottom, const Paint* paint) { in drawBitmap() 300 const Paint* paint) { in drawNinePatch() 344 void SkiaRecordingCanvas::drawMesh(const Mesh& mesh, sk_sp<SkBlender> blender, const Paint& paint) { in drawMesh()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 34 minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, in prepareMinikinPaint() 63 minikin::Layout MinikinUtils::doLayout(const Paint* paint, minikin::Bidi bidiFlags, in doLayout() 87 void MinikinUtils::getBounds(const Paint* paint, minikin::Bidi bidiFlags, const Typeface* typeface, in getBounds() 99 float MinikinUtils::measureText(const Paint* paint, minikin::Bidi bidiFlags, in measureText() 116 minikin::MinikinExtent MinikinUtils::getFontExtent(const Paint* paint, minikin::Bidi bidiFlags, in getFontExtent() 131 float MinikinUtils::xOffsetForTextAlign(Paint* paint, const minikin::Layout& layout) { in xOffsetForTextAlign() 145 float MinikinUtils::hOffsetForTextAlign(Paint* paint, const minikin::Layout& layout, in hOffsetForTextAlign()
|
D | PaintImpl.cpp | 35 Paint::Paint(const Paint& paint) in Paint() 140 static uint32_t paintToLegacyFlags(const SkPaint& paint) { in paintToLegacyFlags() 157 static void applyLegacyFlagsToPaint(uint32_t flags, SkPaint* paint) { in applyLegacyFlagsToPaint() 176 uint32_t Paint::GetSkPaintJavaFlags(const SkPaint& paint) { in GetSkPaintJavaFlags() 180 void Paint::SetSkPaintJavaFlags(SkPaint* paint, uint32_t flags) { in SetSkPaintJavaFlags()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | TextAnimatorTest.kt | 55 val paint = mock(TextPaint::class.java) in testAnimationStarted() constant 85 val paint = mock(TextPaint::class.java) in testAnimationNotStarted() constant 112 val paint = mock(TextPaint::class.java) in testAnimationEnded() constant 143 val paint = in testCacheTypeface() constant
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 91 static void deletePaint(Paint* paint) { in deletePaint() 104 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in initWithPaint() local 109 static int breakText(JNIEnv* env, const Paint& paint, const Typeface* typeface, in breakText() 145 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextC() local 174 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in breakTextS() local 184 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, const Typeface* typeface, in doTextAdvances() 219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances___CIIIII_FI() local 231 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextAdvances__StringIIIII_FI() local 241 static jint doTextRunCursor(JNIEnv *env, Paint* paint, const Typeface* typeface, in doTextRunCursor() 255 Paint* paint = reinterpret_cast<Paint*>(paintHandle); in getTextRunCursor___C() local [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | UnderlineTest.cpp | 90 minikin::Layout doLayout(const std::vector<uint16_t> text, Paint paint, Typeface* typeface) { in doLayout() 95 DrawTextFunctor processFunctor(const std::vector<uint16_t>& text, Paint* paint) { in processFunctor() 116 Paint paint; in TEST_WITH_FLAGS() local 130 Paint paint; in TEST_WITH_FLAGS() local 144 Paint paint; in TEST_WITH_FLAGS() local
|