/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | toss_animation_controller.cpp | 78 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play() 95 auto speed = column->GetMainVelocity() / VELOCTY_TRANS; in StartSpringMotion()
|
H A D | timepicker_column_pattern.h | 271 double GetMainVelocity() const in GetMainVelocity() function
|
H A D | timepicker_column_pattern.cpp | 810 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent() 819 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent() 845 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart() 869 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | toss_animation_controller.cpp | 73 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play() 90 auto speed = column->GetMainVelocity() / VELOCTY_TRANS; in StartSpringMotion()
|
H A D | datepicker_column_pattern.h | 240 double GetMainVelocity() const in GetMainVelocity() function
|
H A D | datepicker_column_pattern.cpp | 764 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent() 773 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent() 799 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart() 823 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable.cpp | 345 currentVelocity_ = info.GetMainVelocity(); in HandleDragStart() 391 currentVelocity_ = info.GetMainVelocity(); in HandleDragUpdate() 395 if (!NearZero(info.GetMainVelocity()) && dragCount_ >= FIRST_THRESHOLD) { in HandleDragUpdate() 396 if (Negative(lastVelocity_ / info.GetMainVelocity())) { in HandleDragUpdate() 448 info.GetMainVelocity(), nodeId_, nodeTag_.c_str()); in HandleDragEnd() 450 dragFRCSceneCallback_(info.GetMainVelocity(), NG::SceneStatus::END); in HandleDragEnd() 455 lastVelocity_ = GetPanDirection() == Axis::NONE ? 0.0 : info.GetMainVelocity(); in HandleDragEnd() 456 double gestureVelocity = GetPanDirection() == Axis::NONE ? 0.0 : info.GetMainVelocity(); in HandleDragEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scrollable.cpp | 350 currentVelocity_ = info.GetMainVelocity(); in HandleDragStart() 549 currentVelocity_ = info.GetMainVelocity(); in HandleDragUpdate() 553 if (!NearZero(info.GetMainVelocity()) && dragCount_ >= FIRST_THRESHOLD) { in HandleDragUpdate() 554 if (Negative(lastVelocity_ / info.GetMainVelocity())) { in HandleDragUpdate() 592 dragFRCSceneCallback_(info.GetMainVelocity(), NG::SceneStatus::END); in HandleDragEnd() 601 lastVelocity_ = info.GetMainVelocity(); in HandleDragEnd() 603 …std::clamp(info.GetMainVelocity(), -maxFlingVelocity_ + slipFactor_, maxFlingVelocity_ - slipFacto… in HandleDragEnd()
|
H A D | scroll_bar_controller.cpp | 197 info.GetGlobalLocation().GetX(), info.GetGlobalLocation().GetY(), info.GetMainVelocity()); in HandleDragEnd() 202 double correctVelocity = std::clamp(info.GetMainVelocity(), MIN_VELOCITY, MAX_VELOCITY); in HandleDragEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list_item.cpp | 414 bool reachRightSpeed = info.GetMainVelocity() > speedThreshold; in HandleDragEnd() 415 bool reachLeftSpeed = -info.GetMainVelocity() > speedThreshold; in HandleDragEnd() 439 StartSpringMotion(curOffset_, end, info.GetMainVelocity() * friction); in HandleDragEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_pan_function.cpp | 62 paramObj->SetProperty<double>("mainVelocity", info.GetMainVelocity()); in Execute()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/ |
H A D | base_gesture_event.h | 114 double GetMainVelocity() const in GetMainVelocity() function
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/panel/ |
H A D | panel_test_ng.cpp | 525 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity())); 526 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY); 572 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity())); 573 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY); 608 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity())); 609 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY); 963 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity())); 970 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY); 2371 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY); 2404 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 668 dragFRCSceneCallback_(NearZero(info.GetMainDelta()) ? info.GetMainVelocity() in HandleDragUpdate() 669 … : info.GetMainVelocity() / info.GetMainDelta() * offset, in HandleDragUpdate() 680 auto velocity = IsReverse() ? -info.GetMainVelocity() : info.GetMainVelocity(); in HandleDragEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | toss_animation_controller.cpp | 75 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play()
|
H A D | textpicker_column_pattern.cpp | 1012 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent() 1021 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent() 1062 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart() 1100 SetScrollDirection(GreatNotEqual(GetMainVelocity(), 0.0)); in HandleDragMove() 1104 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
|
H A D | textpicker_column_pattern.h | 320 double GetMainVelocity() const in GetMainVelocity() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | drag_recognizer.h | 87 double GetMainVelocity() const in GetMainVelocity() function
|
H A D | gesture_event.h | 185 double GetMainVelocity() const in GetMainVelocity() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/ |
H A D | refresh_pattern.cpp | 162 auto speed = static_cast<float>(info.GetMainVelocity()); in InitPanEvent() 169 …dleDragUpdate(static_cast<float>(info.GetMainDelta()), static_cast<float>(info.GetMainVelocity())); in InitPanEvent() 174 auto speed = static_cast<float>(info.GetMainVelocity()); in InitPanEvent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/split_container/ |
H A D | render_split_container.cpp | 252 splitContainer->HandleDragEnd(info.GetLocalLocation(), info.GetMainVelocity()); in InitializeRecognizer()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/ |
H A D | render_watch_slider.cpp | 161 slider->HandleDragEnd(info.GetMainVelocity()); in Initialize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_tabs_feature.cpp | 73 auto velocity = info.GetMainVelocity(); in HandleOnPanActionEndEvent()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_pattern.cpp | 703 auto velocity = IsReverse() ? -info.GetMainVelocity() : info.GetMainVelocity(); in HandleDragEnd()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/panel/ |
H A D | render_sliding_panel.cpp | 315 panel->HandleDragEnd(info.GetLocalLocation(), info.GetMainVelocity()); in InitializeRecognizer()
|