Home
last modified time | relevance | path

Searched refs:CalculateFriction (Results 1 - 23 of 23) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_helper.h36 static float CalculateFriction(float gamma);
H A Dswiper_helper.cpp430 float SwiperHelper::CalculateFriction(float gamma) in CalculateFriction() function in OHOS::Ace::NG::SwiperHelper
H A Dswiper_pattern.cpp2473 auto currentRealOffset = springOffset_ * SwiperHelper::CalculateFriction(std::abs(springOffset_ / visibleSize)); in SpringOverScroll()
2488 auto realOffset = springOffset_ * SwiperHelper::CalculateFriction(std::abs(springOffset_ / visibleSize)); in SpringOverScroll()
3661 auto estimate = springOffset * SwiperHelper::CalculateFriction(springOffset / visibleSize);
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item.cpp315 double RenderListItem::CalculateFriction(double gamma) in CalculateFriction() function in OHOS::Ace::V2::RenderListItem
330 return CalculateFriction((curOffset_ - width) / (itemWidth - width)); in GetFriction()
336 return CalculateFriction((-curOffset_ - width) / (itemWidth - width)); in GetFriction()
H A Drender_list_item.h194 double CalculateFriction(double gamma);
H A Drender_list.cpp1870 double friction = easing ? RenderScroll::CalculateFriction((overscrollPast - std::abs(offset)) / viewPortSize) in AdjustOffset()
1871 : RenderScroll::CalculateFriction(overscrollPast / viewPortSize); in AdjustOffset()
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_popup_list.cpp356 double friction = easing ? RenderScroll::CalculateFriction((overscrollPast - std::abs(offset)) / viewPortHeight_) in AdjustOffset()
357 : RenderScroll::CalculateFriction(overscrollPast / viewPortHeight_); in AdjustOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_pattern.h142 static float CalculateFriction(float gamma);
H A Dlist_item_pattern.cpp446 float ListItemPattern::CalculateFriction(float gamma) in CalculateFriction() function in OHOS::Ace::NG::ListItemPattern
469 return CalculateFriction((curOffset_ - width) / (itemWidth - width)); in GetFriction()
475 return CalculateFriction((-curOffset_ - width) / (itemWidth - width)); in GetFriction()
H A Dlist_pattern.cpp856 auto friction = CalculateFriction(std::abs(overScroll) / contentMainSize_); in UpdateCurrentOffset()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_scroll.h50 static double CalculateFriction(double gamma);
H A Drender_scroll.cpp399 double friction = easing ? CalculateFriction((overscrollPast - std::abs(offset)) / viewPortSize) in AdjustOffset()
400 : CalculateFriction(overscrollPast / viewPortSize); in AdjustOffset()
406 double RenderScroll::CalculateFriction(double gamma) in CalculateFriction() function in OHOS::Ace::RenderScroll
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dutils.h277 inline float CalculateFriction(float gamma) in CalculateFriction() function
/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.h527 double CalculateFriction(double gamma);
H A Drender_swiper.cpp869 double RenderSwiper::CalculateFriction(double gamma) in CalculateFriction() function in OHOS::Ace::RenderSwiper
898 double friction = CalculateFriction(std::abs(dragOffset_) in HandleDragUpdate()
927 double friction = CalculateFriction(std::abs(dragOffset_) / in SpringItems()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_pattern.h424 static float CalculateFriction(float gamma, float ratio) in CalculateFriction() function in OHOS::Ace::NG::SheetPresentationPattern
H A Dsheet_presentation_pattern.cpp513 auto friction = CalculateFriction((height - currentOffset_) / sheetMaxHeight_, GetRadio()); in HandleDragUpdate()
2371 auto friction = CalculateFriction((currentHeightPos - currentOffset_) / sheetMaxHeight_, GetRadio()); in GetSheetTypeWithAuto()
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_animation_test_ng.cpp99 realOffset = 200.0f * SwiperHelper::CalculateFriction(200.0f / visibleSize); in HWTEST_F()
155 realOffset = 100.0f * SwiperHelper::CalculateFriction(100.0f / visibleSize); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
H A Dwater_flow_pattern.cpp57 auto friction = CalculateFriction(std::abs(overScroll) / GetMainContentSize()); in UpdateCurrentOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_pattern.h429 float CalculateFriction(float gamma) in CalculateFriction() function in OHOS::Ace::NG::ScrollablePattern
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_pattern.cpp406 auto friction = CalculateFriction(std::abs(overScroll) / GetMainContentSize()); in UpdateCurrentOffset()
422 auto friction = CalculateFriction(std::abs(gridLayoutInfo_.currentOffset_) / GetMainContentSize()); in UpdateCurrentOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_pattern.cpp316 float friction = CalculateFriction((overScrollPast - std::abs(delta)) / viewPortLength_); in AdjustOffset()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_pattern.cpp515 auto friction = CalculateFriction(std::abs(overScrollInfo.first) / overScrollInfo.second); in InitScrollable()

Completed in 61 milliseconds