Home
last modified time | relevance | path

Searched refs:scaleValue (Results 1 - 22 of 22) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_image.cpp157 auto scaleValue = std::min(viewBox.Width() / realSize.Width(), viewBox.Height() / realSize.Height()); in CalcDstRect() local
158 auto spaceX = viewBox.Width() - realSize.Width() * scaleValue; in CalcDstRect()
159 auto spaceY = viewBox.Height() - realSize.Height() * scaleValue; in CalcDstRect()
162 return RSRect(offsetX, offsetY, realSize.Width() * scaleValue + offsetX, realSize.Height() * scaleValue + offsetY); in CalcDstRect()
/foundation/ai/neural_network_runtime/test/unittest/ops/
H A Dexp_test.cpp67 float* scaleValue = new (std::nothrow) float [1]{1.0f}; in SaveScale() local
68 EXPECT_NE(nullptr, scaleValue); in SaveScale()
69 scaleTensor->SetBuffer(scaleValue, sizeof(float)); in SaveScale()
219 int64_t* scaleValue = new (std::nothrow) int64_t [1]{1}; in HWTEST_F() local
220 EXPECT_NE(nullptr, scaleValue); in HWTEST_F()
221 scaleTensor->SetBuffer(scaleValue, sizeof(int64_t)); in HWTEST_F()
381 float scaleValue = 1.0f; in HWTEST_F() local
391 EXPECT_EQ(returnScaleValue, scaleValue); in HWTEST_F()
H A Dpow_builder_test.cpp66 float* scaleValue = new (std::nothrow) float[1] {1.0f}; in SaveScale() local
67 EXPECT_NE(nullptr, scaleValue); in SaveScale()
68 scaleTensor->SetBuffer(scaleValue, sizeof(float)); in SaveScale()
202 int64_t* scaleValue = new (std::nothrow) int64_t[1] {1}; in HWTEST_F() local
203 scaleTensor->SetBuffer(scaleValue, sizeof(scaleValue)); in HWTEST_F()
306 float scaleValue = 1.0f; in HWTEST_F() local
315 EXPECT_EQ(scaleValue, returnScaleValue); in HWTEST_F()
H A Ddetection_post_process_test.cpp86 float* scaleValue = new (std::nothrow) float[4] {10.0, 10.0, 5.0, 5.0}; in SetScale() local
88 EXPECT_NE(nullptr, scaleValue); in SetScale()
89 scaleTensor->SetBuffer(scaleValue, sizeof(float) * scaleSize); in SetScale()
360 int64_t* scaleValue = new (std::nothrow) int64_t[4] {10.0f, 10.0f, 5.0f, 5.0f}; in HWTEST_F() local
362 scaleTensor->SetBuffer(scaleValue, sizeof(int64_t) * scaleSize); in HWTEST_F()
1152 std::vector<float> scaleValue = {10.0f, 10.0f, 5.0f, 5.0f}; in HWTEST_F() local
1172 EXPECT_EQ(returnScale[i], scaleValue[i]); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_layout_algorithm.cpp99 // this scaleValue ensure that the size ratio of the block and trackThickness is consistent in MeasureContent()
100 float scaleValue = trackThickness_ / static_cast<float>(themeTrackThickness.ConvertToPx()); in MeasureContent() local
101 auto blockDiameter = scaleValue * static_cast<float>(themeBlockSize.ConvertToPx()); in MeasureContent()
105 scaleValue = 1.0; in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp1864 Rosen::Vector2f scaleValue { 0.0f, 0.0f }; in OnTransformMatrixUpdate()
1868 rsNode_, transformMatrixModifier_->scaleXY, transformMatrixModifier_->scaleXYValue, scaleValue); in OnTransformMatrixUpdate()
1875 Rosen::Vector2f scaleValue { transform.scale[0], transform.scale[1] }; in OnTransformMatrixUpdate()
1883 rsNode_, transformMatrixModifier_->scaleXY, transformMatrixModifier_->scaleXYValue, scaleValue); in OnTransformMatrixUpdate()
5923 auto scaleValue = value.scaleNumber; local
5924 auto springCurve = UpdatePlayAnimationValue(level, scaleValue);
5938 VectorF valueScale(scaleValue, scaleValue);
5953 RefPtr<Curve> RosenRenderContext::UpdatePlayAnimationValue(const ClickEffectLevel& level, float& scaleValue) argument
5964 if (GreatOrEqual(scaleValue, 0.
[all...]
H A Drosen_render_context.h586 RefPtr<Curve> UpdatePlayAnimationValue(const ClickEffectLevel& level, float& scaleValue);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsXNode.js1816 this.scaleValue = { x: 1.0, y: 1.0 };
1896 this.scaleValue = { x: 1.0, y: 1.0 };
1899 this.scaleValue.x = this.checkUndefinedOrNullWithDefaultValue(scale.x, 1.0);
1900 this.scaleValue.y = this.checkUndefinedOrNullWithDefaultValue(scale.y, 1.0);
1902 getUINativeModule().renderNode.setScale(this.nodePtr, this.scaleValue.x, this.scaleValue.y);
2015 return this.scaleValue;
/foundation/arkui/ace_engine/test/unittest/core/rosen/
H A Drosen_render_context_test_new.cpp405 float scaleValue = 1.0; // 4.0 is the value of scaleValue in HWTEST_F() local
406 rosenRenderContext->UpdatePlayAnimationValue(ClickEffectLevel::LIGHT, scaleValue); in HWTEST_F()
407 EXPECT_EQ(scaleValue, 1.0); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract.h430 static void SetClickEffectLevel(const ClickEffectLevel& level, float scaleValue);
611 static void SetClickEffectLevel(FrameNode* frameNode, const ClickEffectLevel& level, float scaleValue);
H A Dview_abstract_model.h253 virtual void SetClickEffectLevel(const ClickEffectLevel& level, float scaleValue) = 0;
H A Dview_abstract_model_ng.h911 void SetClickEffectLevel(const ClickEffectLevel& level, float scaleValue) override
913 ViewAbstract::SetClickEffectLevel(level, scaleValue);
H A Dview_abstract.cpp78 void ViewAbstract::SetClickEffectLevel(const ClickEffectLevel& level, float scaleValue) in SetClickEffectLevel() argument
85 clickEffectInfo.scaleNumber = scaleValue; in SetClickEffectLevel()
3718 void ViewAbstract::SetClickEffectLevel(FrameNode* frameNode, const ClickEffectLevel& level, float scaleValue) in SetClickEffectLevel() argument
3722 clickEffectInfo.scaleNumber = scaleValue; in SetClickEffectLevel()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dview_abstract_model_impl.h182 void SetClickEffectLevel(const ClickEffectLevel& level, float scaleValue) override {}
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_node.cpp893 auto scaleValue = StringToDouble(typeValue); in SetTransform()
894 node.transformComponent_->Scale(scaleValue, scaleValue); in SetTransform()
/foundation/window/window_manager/window_scene/test/unittest/
H A Dscene_session_manager_test.cpp686 float scaleValue = 0.5f; in HWTEST_F() local
687 auto pixelMap = ssm_->GetSessionSnapshotPixelMap(persistentId, scaleValue); in HWTEST_F()
691 pixelMap = ssm_->GetSessionSnapshotPixelMap(persistentId, scaleValue); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dtitle_bar_pattern.cpp877 VectorF scaleValue = VectorF(scaleRatio * 0.1f + 1.0f, scaleRatio * 0.1f + 1.0f); in TransformScale() local
878 renderCtx->UpdateTransformScale(scaleValue); in TransformScale()
/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_scene_session_manager.cpp2915 double scaleValue; in OnGetSessionSnapshotPixelMap() local
2916 if (!ConvertFromJsValue(env, argv[1], scaleValue)) { in OnGetSessionSnapshotPixelMap()
2917 WLOGFE("[NAPI]Failed to convert parameter to scaleValue"); in OnGetSessionSnapshotPixelMap()
2923 float scaleParam = GreatOrEqual(scaleValue, 0.0f) && LessOrEqual(scaleValue, 1.0f) ? in OnGetSessionSnapshotPixelMap()
2924 static_cast<float>(scaleValue) : 0.0f; in OnGetSessionSnapshotPixelMap()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dsession.cpp2041 auto scaleValue = scaleParam == 0.0f ? snapshotScale_ : scaleParam; in Snapshot() local
2043 .scaleX = scaleValue, in Snapshot()
2044 .scaleY = scaleValue, in Snapshot()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_common_modifier.cpp3740 void SetClickEffect(ArkUINodeHandle node, const int32_t levelValue, ArkUI_Float32 scaleValue) in SetClickEffect() argument
3746 ViewAbstract::SetClickEffectLevel(frameNode, level, scaleValue); in SetClickEffect()
/foundation/arkui/ace_engine/frameworks/core/interfaces/cjui/
H A Dcjui_api.h274 void (*setClickEffect)(ArkUINodeHandle node, ArkUI_Int32 level, ArkUI_Float32 scaleValue);
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/
H A Darkoala_api.h1777 void (*setClickEffect)(ArkUINodeHandle node, ArkUI_Int32 level, ArkUI_Float32 scaleValue);

Completed in 123 milliseconds