Lines Matching refs:current

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