/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | HorizontalFocusSearchTest.java | 38 private FocusSearchAlg mFocusFinder; field in HorizontalFocusSearchTest 55 mFocusFinder = new NewFocusSearchAlg(); in setUp() 74 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_UP)); in testSearchFromLeftButton() 76 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_DOWN)); in testSearchFromLeftButton() 78 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_LEFT)); in testSearchFromLeftButton() 82 mFocusFinder.findNextFocus(mLayout, mLeftTall, View.FOCUS_RIGHT)); in testSearchFromLeftButton() 87 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_UP)); in TODO_testSearchFromMiddleLeftButton() 90 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_DOWN)); in TODO_testSearchFromMiddleLeftButton() 93 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_LEFT)); in TODO_testSearchFromMiddleLeftButton() 96 mFocusFinder.findNextFocus(mLayout, mMidShort1Top, View.FOCUS_RIGHT)); in TODO_testSearchFromMiddleLeftButton() [all …]
|
D | VerticalFocusSearchTest.java | 44 private FocusSearchAlg mFocusFinder; field in VerticalFocusSearchTest 76 mFocusFinder = new NewFocusSearchAlg(); in setUp() 89 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_UP)); in testSearchFromTopButton() 92 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_LEFT)); in testSearchFromTopButton() 95 mFocusFinder.findNextFocus(mLayout, mTopWide, View.FOCUS_RIGHT)); in testSearchFromTopButton() 99 mFocusFinder in testSearchFromTopButton() 105 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_LEFT)); in testSearchFromMidLeft() 109 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_RIGHT)); in testSearchFromMidLeft() 113 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_UP)); in testSearchFromMidLeft() 117 mFocusFinder.findNextFocus(mLayout, mMidSkinny1Left, View.FOCUS_DOWN)); in testSearchFromMidLeft() [all …]
|
/frameworks/base/core/java/android/view/ |
D | FocusFinderHelper.java | 27 private FocusFinder mFocusFinder; field in FocusFinderHelper 33 mFocusFinder = focusFinder; in FocusFinderHelper() 37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2); in isBetterCandidate() 41 return mFocusFinder.beamBeats(direction, source, rect1, rect2); in beamBeats() 45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate() 49 return mFocusFinder.beamsOverlap(direction, rect1, rect2); in beamsOverlap()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 25 private FocusFinderHelper mFocusFinder; field in FocusFinderTest 31 mFocusFinder = new FocusFinderHelper(FocusFinder.getInstance()); in setUp() 36 assertNotNull("focus finder instance", mFocusFinder); in testPreconditions() 479 assertTrue(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsOverlap() 486 assertFalse(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsDontOverlap() 508 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate() 518 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate() 529 assertFalse(assertMsg, mFocusFinder.isCandidate(src, dest, direction)); in assertIsNotCandidate() 539 assertTrue(assertMsg, mFocusFinder.beamBeats(direction, srcRect, rect1, rect2)); in assertBeamBeats() 550 assertTrue(assertMsg, mFocusFinder.isCandidate(src, dest, direction)); in assertDirectionIsCandidate()
|