Searched refs:destRect (Results 1 – 3 of 3) sorted by relevance
/frameworks/support/customview/src/main/java/androidx/customview/widget/ |
D | FocusStrategy.java | 295 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/ |
D | FocusFinder.java | 546 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 …]
|
D | FocusFinderHelper.java | 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument 45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()
|