/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_layout_algorithm.cpp | 82 std::min(contentConstraint.selfIdealSize.Height().value(), contentConstraint.selfIdealSize.Width().value()); in MeasureContent() 86 NonNegative(contentConstraint.selfIdealSize.Width().value())) { in MeasureContent() 87 auto width = contentConstraint.selfIdealSize.Width().value(); in MeasureContent() 91 NonNegative(contentConstraint.selfIdealSize.Height().value())) { in MeasureContent() 92 auto height = contentConstraint.selfIdealSize.Height().value(); in MeasureContent()
|
/foundation/ability/ability_runtime/interfaces/inner_api/dataobs_manager/include/ |
H A D | dataobs_utils.h | 161 _First value{}; in ReadVariant() 162 auto success = DataObsUtils::Unmarshalling(value, data); in ReadVariant() 163 output = value; in ReadVariant() 298 typename T::value_type value; in UnmarshalFromContainer() local 299 if (!DataObsUtils::Unmarshalling(value, parcel)) { in UnmarshalFromContainer() 302 val.emplace_back(std::move(value)); in UnmarshalFromContainer()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_adapter_wrapper.cpp | 326 auto& modelSource = modelPaintProperty->GetModelSource().value(); in UpdateScene() 350 auto& backgroundPath = modelPaintProperty->GetModelBackground().value(); in UpdateEnviroment() 385 auto& customRender = modelPaintProperty->GetModelCustomRender().value(); in UpdateCustomRender() 412 auto& shaderPath = modelPaintProperty->GetShaderPath().value(); in UpdateShaderPath() 435 auto& imageTexture = modelPaintProperty->GetModelImageTexturePaths().value(); in UpdateImageTexturePaths() 458 auto& shaderInputBuffer = modelPaintProperty->GetModelShaderInputBuffer().value(); in UpdateShaderInputBuffers()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_pattern_lock_bridge.cpp | 61 uint32_t value = 1;
in SetAutoReset() local 63 value = static_cast<uint32_t>(secondArg->ToBoolean(vm)->Value());
in SetAutoReset() 65 GetArkUINodeModifiers()->getPatternLockModifier()->setPatternLockAutoReset(nativeNode, value);
in SetAutoReset() 267 uint32_t value = 1;
in SetPatternLockActivateCircleStyle() local 269 value = static_cast<uint32_t>(jsEnable->ToBoolean(vm)->Value());
in SetPatternLockActivateCircleStyle() 271 GetArkUINodeModifiers()->getPatternLockModifier()->setPatternLockEnableWaveEffect(nativeNode, value);
in SetPatternLockActivateCircleStyle()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_text_clock.cpp | 220 void JSTextClock::SetFontStyle(int32_t value) in SetFontStyle() argument 222 if (value < 0 || value >= static_cast<int32_t>(FONT_STYLES.size())) { in SetFontStyle() 225 TextClockModel::GetInstance()->SetItalicFontStyle(FONT_STYLES[value]); in SetFontStyle() 301 const std::string& value) { in JsOnDateChange() 305 auto newJSVal = JSRef<JSVal>::Make(ToJSValue(value)); in JsOnDateChange()
|
H A D | js_data_panel.cpp | 111 double value = item->ToNumber<double>(); in Create() local 112 if (LessOrEqual(value, 0.0)) { in Create() 113 value = 0.0; in Create() 115 // if the sum of values exceeds the maximum value, only fill in to the maximum value in Create() 116 if (GreatOrEqual(dataSum + value, max) && GreatNotEqual(max, 0)) { in Create() 120 dataSum += value; in Create() 121 dateValues.emplace_back(value); in Create() 201 // If the parameter value is string(''), parse result 0. in StrokeWidth() 202 // The value o in StrokeWidth() [all...] |
H A D | js_utils.cpp | 65 panda::Local<JsiValue> value = obj.Get().GetLocalHandle(); in UnwrapNapiValue() local 67 JSValueWrapper valueWrapper = value; in UnwrapNapiValue() 107 panda::Local<JsiValue> value = obj.Get().GetLocalHandle(); in CreatePixelMapFromNapiValue() local 109 JSValueWrapper valueWrapper = value; in CreatePixelMapFromNapiValue() 159 panda::Local<JsiValue> value = obj.Get().GetLocalHandle(); in CreateWantWrapFromNapiValue() local 161 JSValueWrapper valueWrapper = value; in CreateWantWrapFromNapiValue()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_video.cpp | 171 auto value = GetParamFromJson(args, "currenttime"); in CallSpecializedMethod() 172 if (value) { in CallSpecializedMethod() 173 int32_t pos = value->GetInt(); in CallSpecializedMethod() 180 auto value = GetParamFromJson(args, "screenOrientation "); in CallSpecializedMethod() 181 if (value) { in CallSpecializedMethod() 182 controller->RequestFullscreen(!(value->GetString() == "landscape")); in CallSpecializedMethod()
|
H A D | dom_progress.cpp | 23 bool IsGradient(const std::string& value) in IsGradient() argument 25 auto gradientJson = JsonUtil::ParseJsonString(value); in IsGradient() 32 Gradient ParseGradient(const DOMProgress& progress, const std::string& value) in ParseGradient() argument 35 auto gradientJson = JsonUtil::ParseJsonString(value); in ParseGradient() 122 progressAttrsOperators[operatorIter].value(attr.second, *this); in SetSpecializedAttr() 199 progressStylesOperators[operatorIter].value(style.second, *this); in SetSpecializedStyle()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/ |
H A D | pa_backend.cpp | 94 int32_t PaBackend::Insert(const Uri& uri, const OHOS::NativeRdb::ValuesBucket& value) in Insert() argument 101 [weakEngine = WeakPtr<JsBackendEngine>(jsBackendEngine_), &ret, uri, value, callingInfo] { in Insert() 104 ret = jsBackendEngine->Insert(uri, value, callingInfo); in Insert() 144 int32_t PaBackend::Update(const Uri& uri, const OHOS::NativeRdb::ValuesBucket& value, in Update() argument 152 [weakEngine = WeakPtr<JsBackendEngine>(jsBackendEngine_), &ret, uri, value, predicates, callingInfo] { in Update() 155 ret = jsBackendEngine->Update(uri, value, predicates, callingInfo); in Update()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_event_hub.cpp | 113 void RichEditorAbstractSpanResult::SetValue(const std::string& value) in SetValue() argument 115 value_ = value; in SetValue() 613 void RichEditorEventHub::FireOnCut(NG::TextCommonEvent& value) in FireOnCut() argument 616 onCut_(value); in FireOnCut() 625 void RichEditorEventHub::FireOnCopy(NG::TextCommonEvent& value) in FireOnCopy() argument 628 onCopy_(value); in FireOnCopy()
|
H A D | rich_editor_layout_algorithm.cpp | 77 auto typingTextStyle = typingTextStyle_.value(); in CopySpanStyle() 138 SizeF res = optionalTextSize.value(); in MeasureContent() 141 UpdateRichTextRect(optionalTextSize.value(), layoutWrapper); in MeasureContent() 234 CreateIdealSize(layoutConstraint.value(), Axis::HORIZONTAL, MeasureType::MATCH_PARENT_MAIN_AXIS); in Measure() 268 GreatNotEqual(pManager_->minParagraphFontSize.value(), style.fontSize)) { in GetParagraphStyle() 284 paragraph->PushStyle(textStyle.value()); in HandleEmptyParagraph()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_image_span_modifier.cpp | 46 void SetImageSpanVerticalAlign(ArkUINodeHandle node, int32_t value) in SetImageSpanVerticalAlign() argument 50 ImageSpanView::SetVerticalAlign(frameNode, static_cast<VerticalAlign>(value)); in SetImageSpanVerticalAlign() 67 void SetImageSpanObjectFit(ArkUINodeHandle node, int32_t value) in SetImageSpanObjectFit() argument 71 ImageModelNG::SetImageFit(frameNode, static_cast<ImageFit>(value)); in SetImageSpanObjectFit() 137 void SetImageSpanBaselineOffset(ArkUINodeHandle node, ArkUI_Float32 value, ArkUI_Int32 unit) in SetImageSpanBaselineOffset() argument 141 ImageSpanView::SetBaselineOffset(frameNode, CalcDimension(value, (DimensionUnit)unit)); in SetImageSpanBaselineOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | calendar_composed_element.cpp | 46 for (const auto& value : CREATE_JSON_MAP) { in ToJsonObject() 47 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject() 49 for (const auto& value : CREATE_CALENDAR_THEME_JASON) { in ToJsonObject() 50 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_pattern.cpp | 83 auto value = paintProperty->GetValueValue(PROGRESS_DEFAULT_VALUE); in InitAnimatableProperty() local 84 progressAnimatableProperty.value = value; in InitAnimatableProperty() 433 auto value = renderProperty->GetValue().value_or(0); in BuildContentModifierNode() local 440 return (makeFunc_.value())(ProgressConfiguration{value, total, enabled}); in BuildContentModifierNode()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | utils.cpp | 37 // The json value of accessibilityAbility type 45 // The json value of capabilities 60 static bool GetStringFromJson(const nlohmann::json &json, const std::string &key, std::string &value) in GetStringFromJson() argument 69 value = json.at(key).get<std::string>(); in GetStringFromJson() 75 std::vector<std::string> &value) in GetStringVecFromJson() 84 value = json.at(key).get<std::vector<std::string>>(); in GetStringVecFromJson() 89 static bool GetBoolFromJson(const nlohmann::json &json, const std::string &key, bool &value) in GetBoolFromJson() argument 98 value = json.at(key).get<bool>(); in GetBoolFromJson() 74 GetStringVecFromJson(const nlohmann::json &json, const std::string &key, std::vector<std::string> &value) GetStringVecFromJson() argument
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | device.cpp | 811 void Device::SetLockResourceBackendAccess(const bool value) in SetLockResourceBackendAccess() argument 813 isBackendResourceAccessLocked_ = value; in SetLockResourceBackendAccess() 821 void Device::SetRenderBackendRunning(const bool value) in SetRenderBackendRunning() argument 823 isRenderbackendRunning_ = value; in SetRenderBackendRunning() 826 void Device::SetRenderFrameRunning(const bool value) in SetRenderFrameRunning() argument 828 isRenderFrameRunning_ = value; in SetRenderFrameRunning()
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | postprocess_impl.cpp | 51 auto value = property->GetValue(); in IsBitSet() local 52 return static_cast<bool>(value& bit); in IsBitSet() 57 auto value = property->GetValue(); in SetBit() local 59 value |= bit; in SetBit() 61 value &= ~bit; in SetBit() 63 property->SetValue(value); in SetBit()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/serialization/ |
H A D | importer.cpp | 271 static ReturnError ImportSingleBuiltinValue(TypeList<Builtins...>, const ISerNode::ConstPtr& n, IAny& value) in ImportSingleBuiltinValue() argument 275 ((Builtins::ID == value.GetTypeId() ? (res = Builtins::ExtractValue(n, value), true) : false) || ...); in ImportSingleBuiltinValue() 394 if (auto value = members->FindNode("value")) { in ImportAny() 396 if (ImportWeakPtrInAny(value, any)) { in ImportAny() 399 } else if (ImportValue(value, *any)) { in ImportAny()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_modifier_demo.cpp | 74 MyData Add(const MyData& value) const override 76 float res = data + value.data; 79 MyData Minus(const MyData& value) const override 81 float res = data - value.data; 89 bool IsEqual(const MyData& value) const override 91 return data == value.data;
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ |
H A D | engine.cpp | 287 [](Uid value, const InterfaceTypeInfo* element) { return value < element->uid; }); in RegisterInterfaceType() 295 [](const InterfaceTypeInfo* element, Uid value) { return element->uid < value; }); in UnregisterInterfaceType() 313 [](const InterfaceTypeInfo* element, Uid value) { return element->uid < value; }); in GetInterfaceMetadata()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/command/ |
H A D | rs_node_command.h | 88 static void UpdateModifier(RSContext& context, NodeId nodeId, T value, PropertyId id, PropertyUpdateType type) in UpdateModifier() argument 90 std::shared_ptr<RSRenderPropertyBase> prop = std::make_shared<RSRenderProperty<T>>(value, id); in UpdateModifier() 116 RSContext& context, NodeId nodeId, Drawing::DrawCmdListPtr value, PropertyId id, bool isDelta) in UpdateModifierDrawCmdList() 119 std::make_shared<RSRenderProperty<Drawing::DrawCmdListPtr>>(value, id); in UpdateModifierDrawCmdList() 130 if (value) { in UpdateModifierDrawCmdList() 131 value->UpdateNodeIdToPicture(nodeId); in UpdateModifierDrawCmdList() 115 UpdateModifierDrawCmdList( RSContext& context, NodeId nodeId, Drawing::DrawCmdListPtr value, PropertyId id, bool isDelta) UpdateModifierDrawCmdList() argument
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | convert_test.cpp | 234 EXPECT_EQ(sptextStyle.background->brush.value().GetColor(), Drawing::Color::COLOR_CYAN); in HWTEST_F() 235 EXPECT_EQ(sptextStyle.background->pen.value().GetColor(), Drawing::Color::COLOR_CYAN); in HWTEST_F() 236 EXPECT_EQ(sptextStyle.foreground->brush.value().GetColor(), Drawing::Color::COLOR_DKGRAY); in HWTEST_F() 237 EXPECT_EQ(sptextStyle.foreground->pen.value().GetColor(), Drawing::Color::COLOR_DKGRAY); in HWTEST_F() 267 EXPECT_EQ(textStyle.backgroundBrush.value().GetColor(), Drawing::Color::COLOR_LTGRAY); in HWTEST_F() 268 EXPECT_EQ(textStyle.foregroundBrush.value().GetColor(), Drawing::Color::COLOR_MAGENTA); in HWTEST_F()
|
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/drmservice_fuzzer/ |
H A D | drmservice_fuzzer.h | 205 int32_t GetConfigurationString(const std::string &name, std::string &value) override 207 value = "mock_value"; 211 int32_t SetConfigurationString(const std::string &name, const std::string &value) override 216 int32_t GetConfigurationByteArray(const std::string &name, std::vector<uint8_t> &value) override 218 value = { 0x01, 0x02, 0x03 }; 222 int32_t SetConfigurationByteArray(const std::string &name, const std::vector<uint8_t> &value) override
|
/foundation/multimedia/media_library/interfaces/kits/js/include/sendable/ |
H A D | sendable_medialibrary_napi_utils.h | 102 static napi_status GetUInt32(napi_env env, napi_value arg, uint32_t &value); 103 static napi_status GetInt32(napi_env env, napi_value arg, int32_t &value); 161 int32_t &value); 191 static std::tuple<bool, std::unique_ptr<char[]>, size_t> ToUTF8String(napi_env env, napi_value value); 204 static napi_value GetInt32Arg(napi_env env, napi_value arg, int32_t &value); 206 static void UriAppendKeyValue(std::string &uri, const std::string &key, const std::string &value);
|