Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSelectionActionModeHelper.java382 final RectF existingRectangle = extractor.apply(list.get(index)); in mergeRectangleIntoList() local
383 if (existingRectangle.contains(candidate)) { in mergeRectangleIntoList()
386 if (candidate.contains(existingRectangle)) { in mergeRectangleIntoList()
387 existingRectangle.setEmpty(); in mergeRectangleIntoList()
391 final boolean rectanglesContinueEachOther = candidate.left == existingRectangle.right in mergeRectangleIntoList()
392 || candidate.right == existingRectangle.left; in mergeRectangleIntoList()
393 final boolean canMerge = candidate.top == existingRectangle.top in mergeRectangleIntoList()
394 && candidate.bottom == existingRectangle.bottom in mergeRectangleIntoList()
395 && (RectF.intersects(candidate, existingRectangle) in mergeRectangleIntoList()
399 candidate.union(existingRectangle); in mergeRectangleIntoList()
[all …]