Home
last modified time | relevance | path

Searched refs:selectionPath (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java670 Path selectionPath = new Path(); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight() local
672 selectionPath.addRect(selectionRect, Path.Direction.CW); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
673 highlightPaths.add(selectionPath); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
683 layout.draw(c, highlightPaths, highlightPaints, selectionPath, selectionPaint, in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
699 expect.that(drawCommand.path).isEqualTo(selectionPath); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
723 Path selectionPath = new Path(); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight() local
725 selectionPath.addRect(selectionRect, Path.Direction.CW); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
726 highlightPaths.add(selectionPath); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
752 expect.that(drawCommand.path).isEqualTo(selectionPath); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
776 Path selectionPath = new Path(); in highContrastTextDisabledByDefault_testDrawHighlight_drawsNormalHighlightBehind() local
[all …]
/frameworks/base/core/java/android/text/
DLayout.java493 @Nullable Path selectionPath, in draw() argument
512 drawWithoutText(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in draw()
522 drawHighlights(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in draw()
592 @Nullable Path selectionPath, in drawWithoutText() argument
598 drawHighlights(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in drawWithoutText()
609 @Nullable Path selectionPath, in drawHighlights() argument
644 if (selectionPath != null) { in drawHighlights()
649 canvas.drawPath(selectionPath, selectionPaint); in drawHighlights()