Searched refs:curTabFocusIndex (Results 1 – 2 of 2) sorted by relevance
162 int32_t curTabFocusIndex = mainNode->GetFocusingTabNodeIdx(tabIndexNodes); in HandleFocusByTabIndex() local163 if ((curTabFocusIndex < 0 || curTabFocusIndex >= static_cast<int32_t>(tabIndexNodes.size())) && in HandleFocusByTabIndex()164 curTabFocusIndex != DEFAULT_TAB_FOCUSED_INDEX) { in HandleFocusByTabIndex()165 … LOGI("Current focused tabIndex node: %{public}d. Use default focus system.", curTabFocusIndex); in HandleFocusByTabIndex()168 if (curTabFocusIndex == DEFAULT_TAB_FOCUSED_INDEX) { in HandleFocusByTabIndex()169 curTabFocusIndex = 0; in HandleFocusByTabIndex()173 --curTabFocusIndex; in HandleFocusByTabIndex()176 ++curTabFocusIndex; in HandleFocusByTabIndex()179 if (curTabFocusIndex < 0 || curTabFocusIndex >= static_cast<int32_t>(tabIndexNodes.size())) { in HandleFocusByTabIndex()183 return GoToFocusByTabNodeIdx(tabIndexNodes, curTabFocusIndex); in HandleFocusByTabIndex()
2228 int32_t curTabFocusIndex = GetFocusingTabNodeIdx(tabIndexNodes); in HandleFocusByTabIndex() local2229 if ((curTabFocusIndex < 0 || curTabFocusIndex >= static_cast<int32_t>(tabIndexNodes.size())) && in HandleFocusByTabIndex()2230 curTabFocusIndex != DEFAULT_TAB_FOCUSED_INDEX) { in HandleFocusByTabIndex()2232 curTabFocusIndex); in HandleFocusByTabIndex()2235 if (curTabFocusIndex == DEFAULT_TAB_FOCUSED_INDEX) { in HandleFocusByTabIndex()2236 curTabFocusIndex = 0; in HandleFocusByTabIndex()2239 --curTabFocusIndex; in HandleFocusByTabIndex()2241 ++curTabFocusIndex; in HandleFocusByTabIndex()2243 … if (curTabFocusIndex < 0 || curTabFocusIndex >= static_cast<int32_t>(tabIndexNodes.size())) { in HandleFocusByTabIndex()2244 curTabFocusIndex = (curTabFocusIndex + static_cast<int32_t>(tabIndexNodes.size())) % in HandleFocusByTabIndex()[all …]