/foundation/arkui/ace_engine/frameworks/core/components/relative_container/ |
H A D | render_relative_container.cpp | 299 double heightValue = 0.0; in CalcLayoutParam() local 305 heightValue = centerValue - flexItem->GetAlignValue(checkAlign); in CalcLayoutParam() 306 itemMaxHeight = 2 * (heightValue > 0 ? heightValue : 0.0); in CalcLayoutParam() 307 itemMinHeight = 2 * (heightValue > 0 ? heightValue : 0.0); in CalcLayoutParam() 310 heightValue = flexItem->GetAlignValue(checkAlign) - centerValue; in CalcLayoutParam() 311 itemMaxHeight = 2 * (heightValue > 0 ? heightValue : 0.0); in CalcLayoutParam() 312 itemMinHeight = 2 * (heightValue > in CalcLayoutParam() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | stylemgr_tdd_test.cpp | 126 JSValue heightValue = jerry_create_number(propValue); in PrepareStyleSheet() local 127 jerry_release_value(jerry_set_property(sampleSelector, heightKey, heightValue)); in PrepareStyleSheet() 355 constexpr int32_t heightValue = 50; in ACELiteStyleManagerInlineStyle003() local 356 JSValue styleSheetObj = PrepareStyleSheet(id, sample, heightKey, heightValue); in ACELiteStyleManagerInlineStyle003() 390 EXPECT_EQ(sampleSelectorItem->GetNumValue(), heightValue); in ACELiteStyleManagerInlineStyle003() 636 constexpr int32_t heightValue = 100; in ACELiteStyleManagerIDSelector004() local 637 jerry_value_t option = PrepareStyleOption(styleType, heightKey, heightValue); in ACELiteStyleManagerIDSelector004() 772 constexpr int32_t heightValue = 100; in ACELiteStyleManagerClassSelector002() local 775 jerry_value_t styleOption = PrepareStyleOption(styleType, heightKey, heightValue); in ACELiteStyleManagerClassSelector002() 892 constexpr uint16_t heightValue in ACELiteStyleManagerCSSPesudo001() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | blank_modifier.cpp | 35 void SetBlankHeight(ArkUINodeHandle node, ArkUI_Float32 heightValue, ArkUI_Int32 heightUnit) in SetBlankHeight() argument 39 BlankModelNG::SetHeight(frameNode, CalcDimension(heightValue, (DimensionUnit)heightUnit)); in SetBlankHeight()
|
H A D | form_component_modifier.cpp | 55 ArkUI_Float32 heightValue, ArkUI_Int32 heightUnit) in SetFormSize() 61 Dimension(heightValue, static_cast<OHOS::Ace::DimensionUnit>(heightUnit))); in SetFormSize() 54 SetFormSize(ArkUINodeHandle node, ArkUI_Float32 widthValue, ArkUI_Int32 widthUnit, ArkUI_Float32 heightValue, ArkUI_Int32 heightUnit) SetFormSize() argument
|
H A D | radio_modifier.cpp | 107 void SetRadioSize(ArkUINodeHandle node, ArkUI_Float32 widthValue, ArkUI_Int32 widthUnit, ArkUI_Float32 heightValue,
in SetRadioSize() argument 113 RadioModelNG::SetHeight(frameNode, Dimension(heightValue, static_cast<OHOS::Ace::DimensionUnit>(heightUnit)));
in SetRadioSize()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_form.cpp | 127 JSRef<JSVal> heightValue = sizeObj->GetProperty("height"); in SetSize() local 128 if (!heightValue->IsNull() && !heightValue->IsEmpty()) { in SetSize() 129 if (heightValue->IsNumber()) { in SetSize() 130 height = Dimension(heightValue->ToNumber<double>(), DimensionUnit::VP); in SetSize() 131 } else if (heightValue->IsString()) { in SetSize() 132 height = StringUtils::StringToDimension(heightValue->ToString(), true); in SetSize()
|
H A D | js_base_node.cpp | 203 auto heightValue = height->IsNumber() ? height->ToNumber<float>() : 0.0f; in ConstructorCallback() local 204 heightValue = LessNotEqual(heightValue, 0.0f) ? 0.0f : heightValue; in ConstructorCallback() 206 selfIdealSize.SetHeight(PipelineBase::Vp2PxWithCurrentDensity(heightValue)); in ConstructorCallback()
|
H A D | js_plugin.cpp | 90 JSRef<JSVal> heightValue = sizeObj->GetProperty("height"); in JsSize() local 92 if (!ParseJsDimensionVp(heightValue, height)) { in JsSize()
|
H A D | js_navdestination.cpp | 189 std::string heightValue; in SetTitle() local 190 ParseJsString(height, heightValue); in SetTitle() 191 if (heightValue == NG::TITLE_MAIN_WITH_SUB) { in SetTitle() 195 if (heightValue == NG::TITLE_MAIN) { in SetTitle()
|
H A D | js_shape.cpp | 78 JSRef<JSVal> heightValue = obj->GetProperty("height"); in SetViewPort() local 87 ParseJsDimensionVp(heightValue, dimHeight); in SetViewPort()
|
H A D | js_navigation.cpp | 307 std::string heightValue; in SetTitle() local 308 ParseJsString(height, heightValue); in SetTitle() 309 if (heightValue == NG::TITLE_MAIN_WITH_SUB) { in SetTitle() 313 if (heightValue == NG::TITLE_MAIN) { in SetTitle()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text_drag/ |
H A D | text_drag_test_ng.cpp | 170 if (params.heightValue.has_value()) { in SetMockParagraphExpectCallParas() 171 EXPECT_CALL(*paragraph_, GetHeight()).WillRepeatedly(Return(params.heightValue.value())); in SetMockParagraphExpectCallParas() 200 .heightValue = std::make_optional(EXPECT_MOCK_HEIGHT), in HWTEST_F() 238 .heightValue = std::make_optional(EXPECT_MOCK_HEIGHT), in HWTEST_F() 276 .heightValue = std::make_optional(EXPECT_MOCK_HEIGHT), in HWTEST_F() 315 .heightValue = std::make_optional(EXPECT_MOCK_HEIGHT), in HWTEST_F()
|
H A D | text_drag_test_ng.h | 53 std::optional<float> heightValue = std::nullopt; member
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_form_component_bridge.cpp | 123 Local<JSValueRef> heightValue = runtimeCallInfo->GetCallArgRef(2); in SetSize() local 130 bool hasHeight = (!heightValue->IsNull() && !heightValue->IsUndefined() && in SetSize() 131 ArkTSUtils::ParseJsDimensionVp(vm, heightValue, height)); in SetSize()
|
H A D | arkts_native_counter_bridge.cpp | 76 Local<JSValueRef> heightValue = runtimeCallInfo->GetCallArgRef(1); in SetCounterHeight() local 80 ArkTSUtils::ParseJsDimensionVp(vm, heightValue, height, false); in SetCounterHeight() 163 Local<JSValueRef> heightValue = runtimeCallInfo->GetCallArgRef(2); // 2: height Value in SetCounterSize() local 171 ArkTSUtils::ParseJsDimensionVp(vm, heightValue, height, false); in SetCounterSize()
|
H A D | arkts_native_render_node_bridge.cpp | 519 float heightValue = 0; in SetFrame() local 521 heightValue = height->ToNumber(vm)->Value(); in SetFrame() 525 nativeNode, positionXValue, positionYValue, widthValue, heightValue); in SetFrame() 542 float heightValue = 0; in SetSize() local 544 heightValue = height->ToNumber(vm)->Value(); in SetSize() 553 GetArkUINodeModifiers()->getRenderNodeModifier()->setSize(nativeNode, widthValue, heightValue, unitValue); in SetSize()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | percent_tdd_test.h | 61 void ConfigStylesWithRect(JSValue staticStyle, const char *widthValue, const char *heightValue) const;
|
H A D | input_tdd_test.cpp | 331 const int heightValue = 20; in HWTEST_F() local 332 UpdateNumAttributeOrStyleValue(component, "height", heightValue, false); in HWTEST_F() 333 EXPECT_TRUE((button != nullptr) && (button->GetHeight() == heightValue)); in HWTEST_F() 529 const int heightValue = 20; in HWTEST_F() local 530 UpdateNumAttributeOrStyleValue(component, "height", heightValue, false); in HWTEST_F() 531 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetHeight() == heightValue)); in HWTEST_F()
|
H A D | percent_tdd_test.cpp | 78 void PercentTddTest::ConfigStylesWithRect(JSValue staticStyle, const char *widthValue, const char *heightValue) const in ConfigStylesWithRect() 81 SetStyleWithValue(staticStyle, STYLE_HEIGHT_NAME, heightValue); in ConfigStylesWithRect()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_swiper_ffi.cpp | 104 Dimension heightValue(height, static_cast<DimensionUnit>(heightUnit)); in FfiOHOSAceFrameworkSwiperSetSize() 106 ViewAbstractModel::GetInstance()->SetHeight(heightValue); in FfiOHOSAceFrameworkSwiperSetSize()
|
/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/ |
H A D | js_pip_window_manager.cpp | 148 napi_value heightValue = nullptr; in GetPictureInPictureOptionFromJs() local 164 napi_get_named_property(env, optionObject, "contentHeight", &heightValue); in GetPictureInPictureOptionFromJs() 173 ConvertFromJsValue(env, heightValue, height); in GetPictureInPictureOptionFromJs()
|
/foundation/ai/neural_network_runtime/test/unittest/ops/ |
H A D | resize_bilinear_builder_test.cpp | 69 int64_t *heightValue = new (std::nothrow) int64_t(1); in SaveHeightTensor() local 70 EXPECT_NE(nullptr, heightValue); in SaveHeightTensor() 71 heightTensor->SetBuffer(heightValue, sizeof(int64_t)); in SaveHeightTensor() 645 int64_t heightValue = 1; in HWTEST_F() local 652 EXPECT_EQ(heightReturn, heightValue); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | wrap_layout_algorithm.cpp | 257 auto heightValue = constraint->selfIdealSize.Height(); in PerformLayoutInitialize() local 259 hasIdealHeight_ = heightValue.has_value(); in PerformLayoutInitialize() 262 crossLengthLimit_ = hasIdealHeight_ ? heightValue.value() : constraint->maxSize.Height(); in PerformLayoutInitialize() 264 mainLengthLimit_ = hasIdealHeight_ ? heightValue.value() : constraint->maxSize.Height(); in PerformLayoutInitialize()
|
/foundation/arkui/ace_engine/advanced_ui_component/toolbar/interfaces/ |
H A D | toolbar.js | 141 this.heightValue = LengthMetrics.vp(DEFAULT_TOOLBAR_HEIGHT); 159 this.heightValue = h4; 883 minHeight: this.toLengthString(this.toolBarModifier.heightValue), 884 maxHeight: this.toLengthString(this.toolBarModifier.heightValue), 887 Row.height(this.toLengthString(this.toolBarModifier.heightValue));
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/ |
H A D | distributeddb_cloud_reference_sync_test.cpp | 403 double heightValue; in CheckSharedDataAfterUpdated() local 404 ASSERT_EQ(CloudStorageUtils::GetValueFromOneField(cloudValue, heightValue), E_OK); in CheckSharedDataAfterUpdated() 405 EXPECT_EQ(heightValue, expect[i]); in CheckSharedDataAfterUpdated()
|