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.java675 Path selectionPath = new Path(); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight() local
677 selectionPath.addRect(selectionRect, Path.Direction.CW); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
678 highlightPaths.add(selectionPath); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
688 layout.draw(c, highlightPaths, highlightPaints, selectionPath, selectionPaint, in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
704 expect.that(drawCommand.path).isEqualTo(selectionPath); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight()
728 Path selectionPath = new Path(); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight() local
730 selectionPath.addRect(selectionRect, Path.Direction.CW); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
731 highlightPaths.add(selectionPath); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
757 expect.that(drawCommand.path).isEqualTo(selectionPath); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight()
781 Path selectionPath = new Path(); in highContrastTextDisabledByDefault_testDrawHighlight_drawsNormalHighlightBehind() local
[all …]
/frameworks/base/core/java/android/text/
DLayout.java499 @Nullable Path selectionPath, in draw() argument
518 drawWithoutText(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in draw()
528 drawHighlights(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in draw()
598 @Nullable Path selectionPath, in drawWithoutText() argument
604 drawHighlights(canvas, highlightPaths, highlightPaints, selectionPath, selectionPaint, in drawWithoutText()
615 @Nullable Path selectionPath, in drawHighlights() argument
650 if (selectionPath != null) { in drawHighlights()
655 canvas.drawPath(selectionPath, selectionPaint); in drawHighlights()