Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DFocusFinder.java549 boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
552 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) in isCandidate()
553 && srcRect.left > destRect.left; in isCandidate()
555 return (srcRect.left < destRect.left || srcRect.right <= destRect.left) in isCandidate()
556 && srcRect.right < destRect.right; in isCandidate()
558 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
559 && srcRect.top > destRect.top; in isCandidate()
561 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
562 && srcRect.bottom < destRect.bottom; in isCandidate()
767 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()
/frameworks/native/services/surfaceflinger/
DBufferStateLayer.cpp327 Rect destRect = mDrawingState.destinationFrame; in updateGeometry() local
328 int32_t destW = destRect.width(); in updateGeometry()
329 int32_t destH = destRect.height(); in updateGeometry()
330 if (destRect.left < 0) { in updateGeometry()
331 destRect.left = 0; in updateGeometry()
332 destRect.right = destW; in updateGeometry()
334 if (destRect.top < 0) { in updateGeometry()
335 destRect.top = 0; in updateGeometry()
336 destRect.bottom = destH; in updateGeometry()
341 t.set(destRect.left, destRect.top); in updateGeometry()
[all …]
/frameworks/base/native/android/
Dsurface_control.cpp392 Rect destRect = static_cast<const Rect&>(destination); in ASurfaceTransaction_setGeometry() local
401 transaction->setDestinationFrame(surfaceControl, destRect); in ASurfaceTransaction_setGeometry()