Home
last modified time | relevance | path

Searched refs:focusCandidate (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DRequestFocusTest.java121 View focusCandidate = clearingFocusButton.getRootView().getParent().focusSearch(null, in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable() local
124 clearingFocusButton, focusCandidate); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
126 gainingFocusButton, focusCandidate); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
164 View focusCandidate = clearingFocusButton.getRootView().getParent().focusSearch(null, in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable() local
167 clearingFocusButton, focusCandidate); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
169 gainingFocusButton, focusCandidate); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java914 View focusCandidate = null; in findFocusableViewInBounds() local
940 if (focusCandidate == null) { in findFocusableViewInBounds()
942 focusCandidate = view; in findFocusableViewInBounds()
946 (leftFocus && viewLeft < focusCandidate.getLeft()) || in findFocusableViewInBounds()
947 (!leftFocus && viewRight > focusCandidate.getRight()); in findFocusableViewInBounds()
956 focusCandidate = view; in findFocusableViewInBounds()
961 focusCandidate = view; in findFocusableViewInBounds()
968 focusCandidate = view; in findFocusableViewInBounds()
975 return focusCandidate; in findFocusableViewInBounds()
DScrollView.java926 View focusCandidate = null; in findFocusableViewInBounds() local
952 if (focusCandidate == null) { in findFocusableViewInBounds()
954 focusCandidate = view; in findFocusableViewInBounds()
958 (topFocus && viewTop < focusCandidate.getTop()) || in findFocusableViewInBounds()
959 (!topFocus && viewBottom > focusCandidate in findFocusableViewInBounds()
969 focusCandidate = view; in findFocusableViewInBounds()
974 focusCandidate = view; in findFocusableViewInBounds()
981 focusCandidate = view; in findFocusableViewInBounds()
988 return focusCandidate; in findFocusableViewInBounds()
/frameworks/support/v4/java/android/support/v4/widget/
DNestedScrollView.java1032 View focusCandidate = null; in findFocusableViewInBounds() local
1058 if (focusCandidate == null) { in findFocusableViewInBounds()
1060 focusCandidate = view; in findFocusableViewInBounds()
1064 (topFocus && viewTop < focusCandidate.getTop()) || in findFocusableViewInBounds()
1065 (!topFocus && viewBottom > focusCandidate in findFocusableViewInBounds()
1075 focusCandidate = view; in findFocusableViewInBounds()
1080 focusCandidate = view; in findFocusableViewInBounds()
1087 focusCandidate = view; in findFocusableViewInBounds()
1094 return focusCandidate; in findFocusableViewInBounds()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStackSupervisor.java600 void setFocusStackUnchecked(String reason, ActivityStack focusCandidate) { in setFocusStackUnchecked() argument
601 if (!focusCandidate.isFocusable()) { in setFocusStackUnchecked()
603 focusCandidate = focusCandidate.getNextFocusableStackLocked(); in setFocusStackUnchecked()
606 if (focusCandidate != mFocusedStack) { in setFocusStackUnchecked()
608 mFocusedStack = focusCandidate; in setFocusStackUnchecked()