Home
last modified time | relevance | path

Searched refs:value_ (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/foundation/distributeddatamgr/preferences/frameworks/native/src/
Dpreferences_value.cpp25 value_ = preferencesValue.value_; in PreferencesValue()
33 value_ = std::move(preferencesValue.value_); in PreferencesValue()
38 value_ = value; in PreferencesValue()
43 value_ = value; in PreferencesValue()
48 value_ = value; in PreferencesValue()
53 value_ = value; in PreferencesValue()
58 value_ = value; in PreferencesValue()
68 value_ = value; in PreferencesValue()
73 value_ = value; in PreferencesValue()
78 value_ = value; in PreferencesValue()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
Djsi_ref.h62 explicit JsiRef(const T& val) : value_(val) {} in JsiRef()
65 value_.Reset(); in ~JsiRef()
69 JsiRef(const JsiRef<S>& that) : value_(T::Cast(that.Get())) in JsiRef()
102 JsiRef(const JsiRef<T>& rhs) : value_(rhs.value_) {} in JsiRef()
104 JsiRef(JsiRef<T>&& rhs) : value_(std::move(rhs.value_)) in JsiRef()
106 rhs.value_.Reset(); in JsiRef()
111 value_.Reset();
112 value_ = rhs.value_;
118 value_.Reset();
119 value_ = std::move(rhs.value_);
[all …]
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
Dmock_preferences_value.cpp27 value_ = std::move(preferencesValue.value_); in PreferencesValue()
36 value_ = preferencesValue.value_; in PreferencesValue()
42 value_ = value; in PreferencesValue()
48 value_ = value; in PreferencesValue()
54 value_ = value; in PreferencesValue()
60 value_ = value; in PreferencesValue()
72 value_ = value; in PreferencesValue()
78 value_ = value; in PreferencesValue()
84 value_ = value; in PreferencesValue()
90 value_ = value; in PreferencesValue()
[all …]
/foundation/multimedia/image_framework/plugins/manager/src/common/
Dattr_data.cpp52 value_.boolValue = value; in AttrData()
57 value_.uint32Value = value; in AttrData()
62 value_.stringValue = new (std::nothrow) string(value); in AttrData()
63 if (value_.stringValue == nullptr) { in AttrData()
71 value_.stringValue = new (std::nothrow) string(std::move(value)); in AttrData()
72 if (value_.stringValue == nullptr) { in AttrData()
84 value_.uint32Rang[LOWER_BOUND_INDEX] = lowerBound; in AttrData()
85 value_.uint32Rang[UPPER_BOUND_INDEX] = upperBound; in AttrData()
92 value_.boolValue = data.value_.boolValue; in AttrData()
97 value_.uint32Value = data.value_.uint32Value; in AttrData()
[all …]
/foundation/arkui/ace_engine/frameworks/base/geometry/
Ddimension.h79 …constexpr explicit Dimension(double value, DimensionUnit unit = DimensionUnit::PX) : value_(value)… in value_() function
83 value_ = 0.0; in Reset()
89 if (std::isnan(value_)) { in ResetInvalidValue()
96 return value_; in Value()
101 value_ = value; in SetValue()
116 return GreatNotEqual(value_, 0.0); in IsValid()
121 return NonNegative(value_); in IsNonNegative()
126 return NonPositive(value_); in IsNonPositive()
131 return !NonNegative(value_); in IsNegative()
138 return value_ * dipScale; in ConvertToPx()
[all …]
Ddimension.cpp95 return value_; in ConvertToVp()
101 return value_ / pipeline->GetDipScale(); in ConvertToVp()
104 return value_ / pipeline->GetDipScale(); in ConvertToVp()
107 return value_ * pipeline->GetFontScale(); in ConvertToVp()
110 return value_ * pipeline->GetLogicScale() / pipeline->GetDipScale(); in ConvertToVp()
112 LOGE("fail to ConvertToVp, %{public}f, %{public}d", value_, unit_); in ConvertToVp()
119 return value_; in ConvertToPx()
122 return value_; in ConvertToPx()
128 return value_ * pipeline->GetDipScale(); in ConvertToPx()
131 return value_ * pipeline->GetDipScale() * pipeline->GetFontScale(); in ConvertToPx()
[all …]
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
Dgatt_data.cpp40 : handle_(handle), permissions_(permissions), value_(nullptr), length_(length), uuid_(uuid) in Descriptor()
43 value_ = std::make_unique<uint8_t[]>(length); in Descriptor()
44 (void)memcpy_s(value_.get(), length_, value, length_); in Descriptor()
46 value_ = nullptr; in Descriptor()
52 …: handle_(src.handle_), permissions_(src.permissions_), value_(nullptr), length_(src.length_), uui… in Descriptor()
54 if (src.value_ != nullptr && src.length_ != 0) { in Descriptor()
55 value_ = std::make_unique<uint8_t[]>(length_); in Descriptor()
56 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in Descriptor()
58 value_ = nullptr; in Descriptor()
64 : handle_(handle), permissions_(0), value_(nullptr), length_(length), uuid_() in Descriptor()
[all …]
/foundation/arkui/napi/native_engine/impl/ark/native_value/
Dark_native_value.cpp22 value_ = globalValue; in ArkNativeValue()
33 Global<JSValueRef> oldValue = value_; in ~ArkNativeValue()
45 Global<JSValueRef> oldValue = value_; in UpdateValue()
49 value_ = newValue; in UpdateValue()
54 Global<JSValueRef> value = value_; in TypeOf()
88 Global<JSValueRef> value = value_; in InstanceOf()
95 Global<JSValueRef> value = value_; in IsArray()
101 Global<JSValueRef> value = value_; in IsArrayBuffer()
107 Global<JSValueRef> value = value_; in IsBuffer()
113 Global<JSValueRef> value = value_; in IsDate()
[all …]
/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/src/
Ddk_record_field.cpp23 DKRecordField::DKRecordField(DKFieldValue fieldValue) noexcept : value_(std::move(fieldValue)) in DKRecordField()
25 type_ = DKRecordFieldType(value_.index()); in DKRecordField()
34 value_ = std::move(recordField.value_); in DKRecordField()
44 value_ = recordField.value_; in DKRecordField()
49 value_ = static_cast<int64_t>(val); in DKRecordField()
53 value_ = val; in DKRecordField()
57 value_ = val; in DKRecordField()
61 value_ = val; in DKRecordField()
65 value_ = std::string(val); in DKRecordField()
69 value_ = val; in DKRecordField()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
Ddata_value.cpp92 value_.zeroMem = nullptr; in DataValue()
118 (void)dataValue.GetInt64(this->value_.iValue); in operator =()
121 (void)dataValue.GetDouble(this->value_.dValue); in operator =()
125 (void)dataValue.GetBlob(this->value_.blobPtr); in operator =()
141 this->value_ = dataValue.value_; in operator =()
145 dataValue.value_.blobPtr = nullptr; in operator =()
157 value_.iValue = intVal; in operator =()
165 value_.dValue = doubleVal; in operator =()
183 value_.blobPtr = blob; in Set()
201 return dataValue.value_.iValue == value_.iValue; in operator ==()
[all …]
Dvalue_object.cpp24 value_ = other.value_; in ValueObject()
32 value_ = other.value_; in operator =()
43 int errCode = value_.Parse(inString); in Parse()
53 int errCode = value_.Parse(inData); in Parse()
68 int errCode = value_.Parse(dataBegin + offset, dataEnd); in Parse()
85 return value_.ToString(); in ToString()
89 outString += value_.ToString(); in ToString()
96 std::string valueStr = value_.ToString(); in WriteIntoVector()
104 return value_.IsFieldPathExist(inPath); in IsFieldPathExist()
112 return value_.GetFieldTypeByFieldPath(inPath, outType); in GetFieldTypeByFieldPath()
[all …]
/foundation/communication/bluetooth/frameworks/inner/src/
Dbluetooth_gatt_descriptor.cpp27 …: handle_(0), permissions_(permissions), characteristic_(nullptr), value_(nullptr), length_(0), uu… in GattDescriptor()
31 …: handle_(handle), permissions_(permissions), characteristic_(nullptr), value_(nullptr), length_(0… in GattDescriptor()
38 value_(nullptr), in GattDescriptor()
42 if (length_ != 0 && src.value_ != nullptr) { in GattDescriptor()
43 value_ = std::make_unique<uint8_t[]>(length_); in GattDescriptor()
44 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in GattDescriptor()
46 value_.reset(nullptr); in GattDescriptor()
60 if (length_ != 0 && src.value_ != nullptr) { in operator =()
61 value_ = std::make_unique<uint8_t[]>(length_); in operator =()
62 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in operator =()
[all …]
Dbluetooth_gatt_characteristic.cpp32 value_(nullptr), in GattCharacteristic()
46 value_(nullptr), in GattCharacteristic()
58 value_(nullptr), in GattCharacteristic()
63 if (nullptr != src.value_ && 0 != length_) { in GattCharacteristic()
64 value_ = std::make_unique<uint8_t[]>(length_); in GattCharacteristic()
65 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in GattCharacteristic()
67 value_.reset(nullptr); in GattCharacteristic()
87 if (nullptr != src.value_ && 0 != length_) { in operator =()
88 value_ = std::make_unique<uint8_t[]>(length_); in operator =()
89 (void)memcpy_s(value_.get(), length_, src.value_.get(), length_); in operator =()
[all …]
/foundation/arkui/ace_engine/frameworks/core/animation/
Dbilateral_spring_node.cpp72 value_ = spring_->GetEndValue(); in OnAnimation()
75 OnUpdate(value_, velocity_); in OnAnimation()
76 NotifyUpdateListener(value_, velocity_); in OnAnimation()
77 OnEnd(value_); in OnAnimation()
81 LOGD("Animation. index: %{public}d complete at value: %{public}.3lf", index_, value_); in OnAnimation()
83 OnUpdate(value_, velocity_); in OnAnimation()
84 NotifyUpdateListener(value_, velocity_); in OnAnimation()
101value_ = std::clamp(value_, nextBasePosition - maxDecoration_, nextBasePosition - minDecoration_); in DoCollision()
109value_ = std::clamp(value_, prevBasePosition + minDecoration_, prevBasePosition + maxDecoration_); in DoCollision()
119 value_ = springValue; in FixValue()
[all …]
Dsimple_spring_node.cpp27 : SpringNode(index), context_(context), value_(value) in SimpleSpringNode()
50 value_ = value; in SetValue()
51 OnUpdate(value_, velocity_); in SetValue()
52 NotifyUpdateListener(value_, velocity_); in SetValue()
53 NotifyNext(value_, velocity_); in SetValue()
98 spring_->Reset(value_, endValue, velocity_, springProperty_); in EndToValue()
105 spring_->Reset(value_, endValue, velocity_, springProperty_); in EndToValue()
127 value_ = spring_->GetCurrentPosition(); in OnAnimation()
131 value_ = spring_->GetEndValue(); in OnAnimation()
134 OnUpdate(value_, velocity_); in OnAnimation()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/
Drender_watch_slider.cpp78 value_ = sliderComponent->GetValue(); in Update()
94 value_ = std::round(value_ / ((max_ - min_) / 4.0)) * ((max_ - min_) / 4.0); in Update()
180 value_ = value_ + CHANGE_RATIO * (max_ - min_); in HandleClick()
182 value_ = value_ + INTERMITTENT_RATIO * (max_ - min_); in HandleClick()
184 if (value_ > max_) { in HandleClick()
185 value_ = max_; in HandleClick()
189 value_ = value_ - CHANGE_RATIO * (max_ - min_); in HandleClick()
191 value_ = value_ - INTERMITTENT_RATIO * (max_ - min_); in HandleClick()
193 if (value_ < min_) { in HandleClick()
194 value_ = min_; in HandleClick()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
Dprogress_data.h42 value_ = value; in SetValue()
59 double temp = value_ + (stepValue_ * num); in MoveSteps()
61 value_ = minValue_; in MoveSteps()
63 value_ = maxValue_; in MoveSteps()
65 value_ = temp; in MoveSteps()
67 return value_; in MoveSteps()
82 return value_; in GetValue()
98 double value_ { 0.0 };
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/
Ddatashare_template.cpp35 value_ = std::move(item.value_); in PublishedDataItem()
45 value_ = std::move(item.value_); in operator =()
55 AshmemNode &node = std::get<AshmemNode>(value_); in MoveOutAshmem()
67 return value_.index() == 0; in IsAshmem()
72 return value_.index() == 1; in IsString()
95 value_ = std::move(node); in Set()
97 value_ = std::move(std::get<std::string>(value)); in Set()
104 const AshmemNode &node = std::get<AshmemNode>(value_); in GetData()
115 return std::get<std::string>(value_); in GetData()
122 value_ = std::move(node); in SetAshmem()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
Dform_value.h35 if (value_.empty()) { in DECLARE_ACE_TYPE()
41 return { name_, value_ }; in DECLARE_ACE_TYPE()
45 return { name_, value_ }; in DECLARE_ACE_TYPE()
49 value_ = originValue_; in Reset()
69 value_ = originValue; in SetOriginValue()
73 return value_; in GetValue()
77 value_ = value; in SetValue()
79 if (value_ == originValue_) { in SetValue()
126 std::string value_; variable
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
Dscope_js_value.h31 ScopeJSValue(jerry_value_t value) : value_(value) {} in ScopeJSValue()
34 if (value_ == 0) { in ~ScopeJSValue()
37 jerry_release_value(value_); in ~ScopeJSValue()
38 value_ = 0; in ~ScopeJSValue()
43 return value_; in Obain()
61 jerry_value_t value_ = 0; variable
/foundation/arkui/napi/native_engine/impl/ark/
Dark_native_reference.cpp34 value_(Global<JSValueRef>(engine->GetEcmaVm(), JSValueRef::Undefined(engine->GetEcmaVm()))), in ArkNativeReference()
45 value_ = newValue; in ArkNativeReference()
47value_.SetWeakCallback(reinterpret_cast<void*>(this), FreeGlobalCallBack, NativeFinalizeCallBack); in ArkNativeReference()
67 if (value_.IsEmpty()) { in ~ArkNativeReference()
71 value_.FreeGlobalHandleAddr(); in ~ArkNativeReference()
79 value_.ClearWeak(); in Ref()
90 if (value_.IsEmpty()) { in Unref()
94value_.SetWeakCallback(reinterpret_cast<void*>(this), FreeGlobalCallBack, NativeFinalizeCallBack); in Unref()
101 if (value_.IsEmpty()) { in Get()
106 Local<JSValueRef> value = value_.ToLocal(vm); in Get()
[all …]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/test/unittest/common/distributedcameramgr/
Ddcamera_sink_controller_test.cpp168 cmd.value_ = std::make_shared<DCameraInfo>();
169 int32_t ret = controller_->GetCameraInfo(cmd.value_);
171 EXPECT_EQ(DCAMERA_CHANNEL_STATE_DISCONNECTED, cmd.value_->state_);
184 int32_t ret = controller_->ChannelNeg(cmd.value_);
198 int32_t ret = controller_->StartCapture(cmd.value_);
212 int32_t ret = controller_->StartCapture(cmd.value_);
217 ret = controller_->UpdateSettings(cmdMetadata.value_);
218 controller_->OnMetadataResult(cmdMetadata.value_);
232 int32_t ret = controller_->StartCapture(cmd.value_);
251 int32_t ret = controller_->DCameraNotify(cmd.value_);
[all …]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/
Dblock_integer.cpp21 value_++; in operator ++()
29 temp.value_ = value_; in operator ++()
30 value_++; in operator ++()
37 value_ = value; in operator =()
/foundation/arkui/ace_engine/frameworks/base/utils/
Dvalue_change_notifier.h64 if (newValue == value_) {
68 preValue_ = value_;
69 value_ = std::move(newValue);
75 if (newValue == value_) {
79 preValue_ = value_;
80 value_ = newValue;
86 return value_; in GetValue()
111 U value_; variable
/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/include/
Ddk_record_field.h90 return static_cast<int>(int64_t(std::get<int64_t>(value_)));
94 return std::get<int64_t>(value_); in int64_t()
98 return std::get<double>(value_);
102 return std::get<bool>(value_);
106 return std::get<std::string>(value_); in string()
110 return std::get<std::vector<uint8_t>>(value_);
114 return std::get<DKRecordFieldList>(value_); in DKRecordFieldList()
118 return std::get<DKRecordFieldMap>(value_); in DKRecordFieldMap()
122 return std::get<DKAsset>(value_); in DKAsset()
126 return std::get<DKReference>(value_); in DKReference()
[all …]

12345678910>>...12