/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_height_offset_calculator.h | 55 if (currentIndex_ > 0) { in CalculateFrameNode() 58 if (currentIndex_ == startIndex_) { in CalculateFrameNode() 67 currentIndex_++; in CalculateFrameNode() 71 if (currentIndex_ > 0 && currLane_ == 0) { in CalculateFrameNode() 74 if (currentIndex_ == startIndex_) { in CalculateFrameNode() 90 currentIndex_++; in CalculateFrameNode() 179 if ((endIndex_ < currentIndex_) || (startIndex_ >= currentIndex_ + count)) { in CalculateLazyForEachNode() 181 if (currentIndex_ > 0) { in CalculateLazyForEachNode() 184 currentIndex_ += count; in CalculateLazyForEachNode() 201 currentIndex_ += count; in CalculateLazyForEachNode() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_content.cpp | 47 currentIndex_ = tabIndex; in Update() 77 currentIndex_ = 0; in FlushIndex() 93 currentIndex_ = currentIndex_ < contentCount_ ? currentIndex_ : (contentCount_ - 1); in FlushIndex() 218 currentIndex_ = index; in ChangeScroll() 243 int32_t index = currentIndex_; in ScrollContents() 297 currentIndex_ = newIndex; in HandleStartListener() 377 …if ((currentIndex_ == 0 && newIndex == -1) || (currentIndex_ == (contentCount_ - 1) && newIndex ==… in UpdateScrollPosition() 441 return currentIndex_ - 1; in GetPrevIndex() 446 return currentIndex_ + 1; in GetNextIndex() 483 if (index < currentIndex_) { in PerformLayout() [all …]
|
H A D | render_tab_content.h | 143 return currentIndex_; in GetCurrentIndex() 228 int32_t currentIndex_ = 0; // the index of current tab variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | sequenced_recognizer.cpp | 42 std::advance(iter, currentIndex_); in OnAccepted() 57 std::advance(iter, currentIndex_); in OnRejected() 71 if (currentIndex_ != -1) { in OnRejected() 80 std::advance(iter, currentIndex_); in OnPending() 98 std::advance(iter, currentIndex_); in OnBlocked() 172 if (currentIndex_ <= 0) { in NeedStartDeadlineTimerInner() 246 if (currentIndex_ > 0) { in HandleEvent() 311 currentIndex_++; in UpdateCurrentIndex() 370 currentIndex_ = 0; in OnResetStatus() 444 currentIndex_ = 0; in CleanRecognizerState() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | render_swiper.cpp | 595 currentIndex_ = index; in UpdateIndex() 802 int currentIndex = needReverse_ ? (itemCount_ - currentIndex_ - 1) : currentIndex_; in HandleClick() 896 && (currentIndex_ == 0 || currentIndex_ == itemCount_ - 1)) { in HandleDragUpdate() 1192 second(currentIndex_); in FireItemChangedEvent() 1638 currentIndex_ = toIndex; in UpdateScrollPosition() 1790 StartIndicatorAnimation(currentIndex_, nextIndex, currentIndex_ > nextIndex); in Tick() 2219 StartIndicatorAnimation(currentIndex_, toIndex, currentIndex_ == 0); in IndicatorSwipePrev() 2225 StartIndicatorAnimation(currentIndex_, toIndex, currentIndex_ == itemCount_ - 1); in IndicatorSwipeNext() 2797 currentIndex_ = targetIndex_; in FinishAllSwipeAnimation() 3277 } else if (currentIndex_ != 0 && currentIndex_ < cachedSize) { in ResetCachedChildren() [all …]
|
H A D | rosen_render_swiper.cpp | 241 ? std::to_string(currentIndex_ + 1).append("/").append(std::to_string(itemCount_)) in LayoutDigitalIndicator() 242 : std::to_string(currentIndex_ + 1).append("\n/\n").append(std::to_string(itemCount_)); in LayoutDigitalIndicator() 277 double targetIndex = currentIndex_; in CanvasDrawIndicator() 279 targetIndex = itemCount_ - currentIndex_ - 1; in CanvasDrawIndicator() 302 double targetIndex = currentIndex_; in CanvasDrawIndicator() 304 targetIndex = itemCount_ - currentIndex_ - 1; in CanvasDrawIndicator() 741 moveStartIndex_ = currentIndex_; in InitMoveRange() 744 moveStartIndex_ = itemCount_ - currentIndex_ - 1; in InitMoveRange()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/ |
H A D | swiper_indicator_test_ng.cpp | 369 pattern_->currentIndex_ = -5; 397 pattern_->currentIndex_ = -5; 400 pattern_->currentIndex_ = 5; 406 pattern_->currentIndex_ = -5; 409 pattern_->currentIndex_ = 5; 456 pattern_->currentIndex_ = 0; 520 EXPECT_EQ(pattern_->currentIndex_, 3); 525 EXPECT_EQ(pattern_->currentIndex_, 5); 531 EXPECT_EQ(pattern_->currentIndex_, 7); 533 EXPECT_EQ(pattern_->currentIndex_, 5); [all …]
|
H A D | swiper_animation_test_ng.cpp | 539 pattern_->currentIndex_ = 1; 547 pattern_->currentIndex_ = 0; 564 pattern_->currentIndex_ = 1; 574 pattern_->currentIndex_ = 0; 591 pattern_->currentIndex_ = 1; 601 pattern_->currentIndex_ = 0; 618 pattern_->currentIndex_ = 0; 629 pattern_->currentIndex_ = 1; 632 pattern_->currentIndex_ = 0; 975 pattern_->currentIndex_ = 1; [all …]
|
H A D | swiper_indicator_common_test_ng.cpp | 407 pattern_->currentIndex_ = childrenSize - displayCount; 416 pattern_->currentIndex_ = childrenSize - displayCount; 425 pattern_->currentIndex_ = childrenSize - displayCount; 453 pattern_->currentIndex_ = 0; 492 pattern_->currentIndex_ = childrenSize - displayCount; 500 pattern_->currentIndex_ = childrenSize - displayCount; 531 pattern_->currentIndex_ = childrenSize - displayCount; 539 pattern_->currentIndex_ = childrenSize - displayCount;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/ |
H A D | render_stepper.cpp | 51 if (currentIndex_ != index) { in Update() 53 currentIndex_ = index; in Update() 55 currentIndex_ = 0; in Update() 307 textStyles_[currentIndex_].SetTextColor(textColors_[currentIndex_]); in UpdateButton() 314 textStyles_[currentIndex_].SetTextColor(textColors_[currentIndex_]); in UpdateButton() 406 if (currentIndex_ == 0) { in LoadDefaultButtonStatus() 587 second(currentIndex_); in FireChangedEvent() 657 index = currentIndex_ + 1; in GetPrevIndex() 662 index = currentIndex_ - 1; in GetPrevIndex() 707 currentIndex_ = 0; in StepperTo() [all …]
|
H A D | render_stepper.h | 93 return currentIndex_; in GetCurrentIndex() 110 return currentIndex_; in GetToIndex() 138 int32_t currentIndex_ = -1; variable
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | track_animation_state.cpp | 92 currentIndex_ = ITrackAnimation::INVALID_INDEX; in ResetCurrentTrack() 158 if (currentIndex_ == ITrackAnimation::INVALID_INDEX || !keyframeArray_) { in IsInCurrentRange() 164 …progress, currentRangeStartTs_, currentRangeEndTs_, currentIndex_ == keyframeArray_->GetSize() - 1… in IsInCurrentRange() 169 uint32_t index = static_cast<uint32_t>(currentIndex_); in UpdateIndex() 209 if (index == currentIndex_) { in JumpTo() 210 return currentIndex_; in JumpTo() 214 currentIndex_ = index; in JumpTo() 232 currentIndex_ = last ? end : index; in JumpTo() 234 return static_cast<uint32_t>(currentIndex_); in JumpTo() 239 if (currentIndex_ == ITrackAnimation::INVALID_INDEX) { in GetCurrentTrackProgress()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_animation.cpp | 66 if (currentIndex_ == pictures_.size() - 1) { in OnNormalizedTimestampChanged() 67 currentIndex_ = -1; in OnNormalizedTimestampChanged() 71 if (currentIndex_ >= 0) { in OnNormalizedTimestampChanged() 72 index = currentIndex_ + 1; in OnNormalizedTimestampChanged() 86 currentIndex_ = index; in OnNormalizedTimestampChanged()
|
/ohos5.0/foundation/multimedia/av_session/frameworks/common/src/ |
H A D | media_info_holder.cpp | 22 CHECK_AND_RETURN_RET_LOG(parcel.WriteInt32(currentIndex_), false, "write currentIndex failed"); in Marshalling() 43 result->currentIndex_ = currentIndex; in Unmarshalling() 69 currentIndex_ = currentIndex; in SetCurrentIndex() 74 return currentIndex_; in GetCurrentIndex() 94 currentIndex_ = 0; in Reset()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | overlength_dot_indicator_paint_method.cpp | 55 dotIndicatorModifier_->SetCurrentIndex(currentIndex_); in UpdateContentModifier() 73 dotIndicatorModifier_->InitOverlongStatus(currentIndex_); in UpdateContentModifier() 176 …ast<float>(INDICATOR_PADDING_DEFAULT.ConvertToPx()), static_cast<float>(itemSpace), currentIndex_); in CalculateLongPointCenterX() 191 if (currentIndex_ > (maxDisplayCount_ - NUM_3)) { in CalculatePointCenterX() 192 if (currentIndex_ < realItemCount_ - NUM_2) { in CalculatePointCenterX() 195 … (currentIndex_ - (maxDisplayCount_ - NUM_3)) * (INDICATOR_OFFSET_UNIT.ConvertToPx()) + in CalculatePointCenterX() 277 if (currentIndex_ == NUM_0 || currentIndex_ == NUM_1) { in AnalysisIndexRange() 279 } else if (currentIndex_ >= NUM_2 && currentIndex_ < realItemCount_ - NUM_2) { in AnalysisIndexRange() 281 } else if (currentIndex_ >= realItemCount_ - NUM_2) { in AnalysisIndexRange()
|
H A D | dot_indicator_paint_method.cpp | 65 currentIndex_ = itemCount_ - 1 - currentIndex_; in UpdateContentModifier() 71 dotIndicatorModifier_->SetCurrentIndex(currentIndex_); in UpdateContentModifier() 168 static_cast<float>(INDICATOR_ITEM_SPACE.ConvertToPx()), currentIndex_); in PaintHoverIndicator() 196 … if (currentIndex_ == itemCount_ - displayCount_ && !isLoop_ && mouseClickIndex_ > currentIndex_ && in PaintHoverIndicator() 199 static_cast<float>(INDICATOR_ITEM_SPACE.ConvertToPx()), currentIndex_); in PaintHoverIndicator() 244 static_cast<float>(INDICATOR_ITEM_SPACE.ConvertToPx()), currentIndex_); in PaintPressIndicator() 333 static_cast<float>(INDICATOR_ITEM_SPACE.ConvertToPx()), currentIndex_); in CalculateLongPointCenterX() 435 if (hoverIndex_ == currentIndex_) { in isHoverPoint() 481 longPointCenterX_ = CalculatePointCenterX(itemHalfSizes, 0, padding, space, currentIndex_); in UpdateBackground()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.cpp | 332 jumpIndex_ = currentIndex_; in ResetOnForceMeasure() 489 oldIndex_ = currentIndex_; in BeforeCreateLayoutWrapper() 504 currentIndex_ = 0; in BeforeCreateLayoutWrapper() 548 currentIndex_ = GetLoopIndex(currentIndex_); in BeforeCreateLayoutWrapper() 1123 oldIndex_ = currentIndex_; in OnDirtyLayoutWrapperSwap() 2842 currentIndex_ = index; in UpdateCurrentIndex() 2852 return currentIndex_; in ComputeSwipePageNextIndex() 2861 return currentIndex_; in ComputeSwipePageNextIndex() 2895 return currentIndex_; in ComputeNextIndexInSinglePage() 3587 nextIndex_ = currentIndex_; in PlayFadeAnimation() [all …]
|
H A D | swiper_layout_algorithm.h | 188 currentIndex_ = currentIndex; in SetCurrentIndex() 193 return currentIndex_; in GetCurrentIndex() 393 int32_t currentIndex_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/gestures/ |
H A D | sequenced_recognizer_test_ng.cpp | 58 sequencedRecognizer.currentIndex_ = -9; 69 sequencedRecognizer.currentIndex_ = -10; 80 sequencedRecognizer.currentIndex_ = -9; 91 sequencedRecognizer.currentIndex_ = -10; 165 sequencedRecognizer.currentIndex_ = -1; 176 sequencedRecognizer.currentIndex_ = 0; 344 sequencedRecognizer.currentIndex_ = 1; 354 sequencedRecognizer.currentIndex_ = 1; 502 sequencedRecognizer.currentIndex_ = 0; 565 sequencedRecognizer.currentIndex_ = 0; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_column_component.h | 77 return currentIndex_; in GetCurrentIndex() 81 currentIndex_ = value; in SetCurrentIndex() 242 uint32_t currentIndex_ = 0;
|
/ohos5.0/foundation/barrierfree/accessibility/frameworks/common/src/ |
H A D | accessibility_event_info.cpp | 57 HILOG_DEBUG("currentIndex_[%{public}d]", currentIndex_); in GetCurrentIndex() 58 return currentIndex_; in GetCurrentIndex() 63 currentIndex_ = index; in SetCurrentIndex() 64 HILOG_DEBUG("currentIndex_[%{public}d]", currentIndex_); in SetCurrentIndex()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_multi_child_scroll.cpp | 357 if (currentIndex_ < 0 || currentIndex_ >= childrenSize || childrenSize == 0) { in OnPredictLayout() 358 LOGE("invalid current index: %{public}d, size is: %{public}d", currentIndex_, childrenSize); in OnPredictLayout() 414 currentIndex_ = curIndex; in LayoutChild() 435 if (currentIndex_ < 0 || currentIndex_ >= childrenSize) { in LayoutChild() 436 LOGE("invalid current index: %{public}d", currentIndex_); in LayoutChild() 444 if (currentIndex >= currentIndex_) { in LayoutChild()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_column_pattern.h | 168 return currentIndex_; in GetCurrentIndex() 172 if (value != currentIndex_) { in SetCurrentIndex() 174 currentIndex_ = value; in SetCurrentIndex() 470 uint32_t currentIndex_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_column_pattern.h | 125 return currentIndex_; in GetCurrentIndex() 130 currentIndex_ = value; in SetCurrentIndex() 339 uint32_t currentIndex_ = 0; variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_column_pattern.h | 126 return currentIndex_; in GetCurrentIndex() 133 currentIndex_ = value; in SetCurrentIndex() 388 uint32_t currentIndex_ = 0; variable
|