Home
last modified time | relevance | path

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

/frameworks/support/customview/src/main/java/androidx/customview/widget/
DFocusStrategy.java295 private static boolean isCandidate(@NonNull Rect srcRect, @NonNull Rect destRect, in isCandidate() argument
299 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
300 && srcRect.left > destRect.left; in isCandidate()
302 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
303 && srcRect.right < destRect.right; in isCandidate()
305 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
306 && srcRect.top > destRect.top; in isCandidate()
308 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
309 && srcRect.bottom < destRect.bottom; in isCandidate()
/frameworks/base/core/java/android/view/
DFocusFinder.java546 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
549 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
550 && srcRect.left > destRect.left; in isCandidate()
552 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
553 && srcRect.right < destRect.right; in isCandidate()
555 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
556 && srcRect.top > destRect.top; in isCandidate()
558 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
559 && srcRect.bottom < destRect.bottom; in isCandidate()
764 private boolean isTouchCandidate(int x, int y, Rect destRect, int direction) { in isTouchCandidate() argument
[all …]
DFocusFinderHelper.java44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()