Lines Matching refs:current

76 bool FocusManager::CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint…  in CompareCandidates()  argument
78 if (current == focusedView) { in CompareCandidates()
84 res = CompareCandidatesByUp(focusedView, candidate, current); in CompareCandidates()
88 res = CompareCandidatesByDown(focusedView, candidate, current); in CompareCandidates()
92 res = CompareCandidatesByLeft(focusedView, candidate, current); in CompareCandidates()
96 res = CompareCandidatesByRight(focusedView, candidate, current); in CompareCandidates()
115 bool FocusManager::CompareCandidatesByUp(UIView* focusedView, UIView*& candidate, UIView* current) in CompareCandidatesByUp() argument
118 Rect currentRect = current->GetRect(); in CompareCandidatesByUp()
132 bool FocusManager::CompareCandidatesByDown(UIView* focusedView, UIView*& candidate, UIView* current) in CompareCandidatesByDown() argument
135 Rect currentRect = current->GetRect(); in CompareCandidatesByDown()
149 bool FocusManager::CompareCandidatesByLeft(UIView* focusedView, UIView*& candidate, UIView* current) in CompareCandidatesByLeft() argument
152 Rect currentRect = current->GetRect(); in CompareCandidatesByLeft()
166 …ol FocusManager::CompareCandidatesByRight(UIView* focusedView, UIView*& candidate, UIView* current) in CompareCandidatesByRight() argument
169 Rect currentRect = current->GetRect(); in CompareCandidatesByRight()
183 …Manager::CompareCandidatesDistance(const Rect& focused, const Rect& candidate, const Rect& current) in CompareCandidatesDistance() argument
187 uint64_t xDiff2 = focused.GetX() - current.GetX(); in CompareCandidatesDistance()
188 uint64_t yDiff2 = focused.GetY() - current.GetY(); in CompareCandidatesDistance()
202 UIView* current = focusedView; in GetNextFocus() local
209 if (child == current) { in GetNextFocus()
227 current = parent; in GetNextFocus()
236 UIView* current = view; in GetNextFocus() local
237 if (!current->IsVisible() || !current->IsFocusable()) { in GetNextFocus()
240 if (CompareCandidates(focusedView, candidate, current, direction)) { in GetNextFocus()
241 candidate = current; in GetNextFocus()
249 UIViewGroup* current = viewGroup; in GetNextFocus() local
250 if (!current->IsVisible() || !current->IsFocusable()) { in GetNextFocus()
253 if (current->IsInterceptFocus()) { in GetNextFocus()
254 return GetNextFocus(focusedView, candidate, static_cast<UIView*>(current), direction); in GetNextFocus()
257 UIView* child = current->GetChildrenHead(); in GetNextFocus()