Searched defs:rect2 (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/view/
H A DFocusFinderHelper.java36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { argument
37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2);
40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { argument
41 return mFocusFinder.beamBeats(direction, source, rect1, rect2);
48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { argument
49 return mFocusFinder.beamsOverlap(direction, rect1, rect2);
H A DFocusFinder.java448 * Is rect1 a better candidate than rect2 for a focus search in a particular
454 * @param rect2 The current best candidate.
457 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { argument
465 // we know that rect1 is a candidate.. if rect2 is not a candidate,
467 if (!isCandidate(source, rect2, direction)) {
472 if (beamBeats(direction, source, rect1, rect2)) {
476 // if rect2 is better, then rect1 cant' be :)
477 if (beamBeats(direction, source, rect2, rect1)) {
486 majorAxisDistance(direction, source, rect2),
487 minorAxisDistance(direction, source, rect2)));
496 beamBeats(int direction, Rect source, Rect rect1, Rect rect2) argument
573 beamsOverlap(int direction, Rect rect1, Rect rect2) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java111 final Rect rect2 = new Rect(rect1);
114 rect2.offset(0, rect1.height() - 1);
115 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2);
116 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2);
119 rect2.offset(0, 1);
120 assertBeamsOverlap(View.FOCUS_LEFT, rect1, rect2);
121 assertBeamsOverlap(View.FOCUS_RIGHT, rect1, rect2);
124 rect2.offset(0, 1);
125 assertBeamsDontOverlap(View.FOCUS_LEFT, rect1, rect2);
126 assertBeamsDontOverlap(View.FOCUS_RIGHT, rect1, rect2);
475 assertBeamsOverlap(int direction, Rect rect1, Rect rect2) argument
482 assertBeamsDontOverlap(int direction, Rect rect1, Rect rect2) argument
532 assertBeamBeats(int direction, Rect srcRect, Rect rect1, Rect rect2) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotController.java231 private Rect minRect(Rect rect1, Rect rect2) { argument
232 return new Rect(Math.min(rect1.left, rect2.left),
233 Math.min(rect1.top, rect2.top),
234 Math.min(rect1.right, rect2.right),
235 Math.min(rect1.bottom, rect2.bottom));
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindow.java52 public void resized(Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6, argument
H A DBridgeWindowSession.java91 int i3, int i4, int i5, Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5,
90 relayout(IWindow iWindow, int i, LayoutParams layoutParams, int i2, int i3, int i4, int i5, Rect rect, Rect rect2, Rect rect3, Rect rect4, Rect rect5, Rect rect6, Rect rect7, MergedConfiguration mergedConfig, Surface surface) argument
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DFocusStrategy.java238 * @return whether rect1 is a better candidate than rect2 by virtue of
242 @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) {
244 final boolean rect2InSrcBeam = beamsOverlap(direction, source, rect2);
251 // We know rect1 is in the beam, and rect2 is not.
253 // If rect1 is to the direction of, and rect2 is not, rect1 wins.
255 // source and rect2 is below, then we always prefer the in beam
256 // rect1, since rect2 could be reached by going down.
257 if (!isToDirectionOf(direction, source, rect2)) {
268 // long as rect2 isn't completely closer, rect1 wins, e.g. for
269 // direction down, completely closer means for rect2'
241 beamBeats(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) argument
324 beamsOverlap(@ocusRealDirection int direction, @NonNull Rect rect1, @NonNull Rect rect2) argument
[all...]
/frameworks/native/libs/hwc2on1adapter/
H A DHWC2On1Adapter.cpp2014 static bool compareRects(const hwc_rect_t& rect1, const hwc_rect_t& rect2) { argument
2015 return rect1.left == rect2.left &&
2016 rect1.right == rect2.right &&
2017 rect1.top == rect2.top &&
2018 rect1.bottom == rect2.bottom;

Completed in 200 milliseconds