Home
last modified time | relevance | path

Searched refs:oldValue (Results 1 - 25 of 30) sorted by relevance

12

/foundation/graphic/graphic_utils_lite/interfaces/innerkits/
H A Dhal_atomic.h52 static inline bool HalAtomicCmpAndSwap32(volatile uint32_t* ptr, uint32_t oldValue, uint32_t newValue) in HalAtomicCmpAndSwap32() argument
55 uint32_t initial = InterlockedCompareExchange(ptr, newValue, oldValue); in HalAtomicCmpAndSwap32()
56 return initial == oldValue; in HalAtomicCmpAndSwap32()
58 return __sync_bool_compare_and_swap(ptr, oldValue, newValue); in HalAtomicCmpAndSwap32()
/foundation/arkui/ace_engine/frameworks/core/common/ime/
H A Dtext_input_formatter.h32 * @param[in] oldValue If multiple formatters called, this is the original value of the format chain.
35 virtual void Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const = 0;
43 void Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const override;
51 void Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const override {}
88 void Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const override;
H A Dtext_input_formatter.cpp25 void BlackListCharsFormatter::Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const in Format() argument
47 void LengthLimitingFormatter::Format(const TextEditingValue& oldValue, TextEditingValue& newValue) const in Format() argument
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_atomic.h62 static inline bool SoftBusAtomicCmpAndSwap32(volatile uint32_t* ptr, int32_t oldValue, int32_t newValue) in SoftBusAtomicCmpAndSwap32() argument
65 uint32_t initial = _InterlockedCompareExchange(ptr, newValue, oldValue); in SoftBusAtomicCmpAndSwap32()
66 return initial == oldValue; in SoftBusAtomicCmpAndSwap32()
70 return __sync_bool_compare_and_swap(ptr, oldValue, newValue); in SoftBusAtomicCmpAndSwap32()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/metadata_test/
H A Dmetadata_test.cpp87 std::string oldValue, newValue; in HWTEST_F() local
89 metadata.GetValue("ImageLength", oldValue); in HWTEST_F()
90 EXPECT_EQ(newValue, oldValue); in HWTEST_F()
105 std::string oldValue, newValue; in HWTEST_F() local
108 metadata.GetValue("ImageLength", oldValue); in HWTEST_F()
109 EXPECT_NE(newValue, oldValue); in HWTEST_F()
H A Dfragment_metadata_test.cpp188 std::string oldValue, newValue; in HWTEST_F() local
190 fragmentMetadata.GetValue("WIDTH", oldValue); in HWTEST_F()
191 EXPECT_EQ(newValue, oldValue); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/common/ime/
H A Dime_test.cpp677 TextEditingValue oldValue; in HWTEST_F() local
681 lengthLimitingFormatter.Format(oldValue, newValue); in HWTEST_F()
699 TextEditingValue oldValue; in HWTEST_F() local
705 lengthLimitingFormatter.Format(oldValue, newValue); in HWTEST_F()
723 TextEditingValue oldValue; in HWTEST_F() local
729 lengthLimitingFormatter.Format(oldValue, newValue); in HWTEST_F()
747 TextEditingValue oldValue; in HWTEST_F() local
752 lengthLimitingFormatter.Format(oldValue, newValue); in HWTEST_F()
770 TextEditingValue oldValue; in HWTEST_F() local
775 lengthLimitingFormatter.Format(oldValue, newValu in HWTEST_F()
788 TextEditingValue oldValue; HWTEST_F() local
809 TextEditingValue oldValue; HWTEST_F() local
829 TextEditingValue oldValue; HWTEST_F() local
855 TextEditingValue oldValue; HWTEST_F() local
[all...]
/foundation/resourceschedule/ffrt/src/queue/
H A Dconcurrent_queue.cpp52 int oldValue = concurrency_.fetch_add(1); in Push() local
53 FFRT_LOGD("task [gid=%llu] concurrency[%u] + 1 [queueId=%u]", task->gid, oldValue, queueId_); in Push()
92 int oldValue = concurrency_.fetch_sub(1); // 取不到后继的task,当前这个task正式退出 in Pull() local
93 FFRT_LOGD("concurrency[%d] - 1 [queueId=%u] switch into inactive", oldValue, queueId_); in Pull()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dcallbacks.c583 IN volatile FILLP_ULONG oldValue, in FillpSysArchCompAndWwap()
587 return (FILLP_INT)__sync_bool_compare_and_swap(sem, (FILLP_LLONG)(FILLP_ULLONG)oldValue, in FillpSysArchCompAndWwap()
590 return ((InterlockedCompareExchange((LONG volatile *)sem, (LONG)exchange, (LONG)oldValue)) == (LONG)oldValue); in FillpSysArchCompAndWwap()
810 #define CAS(sem, oldValue, newValue) FillpSysArchCompAndWwap((sem), (oldValue), (newValue))
820 FILLP_ULONG oldValue; in FillpAdaptSysArchRwsemTryrdwait() local
824 oldValue = sem->sem; in FillpAdaptSysArchRwsemTryrdwait()
825 if (oldValue & SYS_ARCH_RWSEM_WR_LOCK_FLAG) { // Write lock in FillpAdaptSysArchRwsemTryrdwait()
828 nextValue = oldValue in FillpAdaptSysArchRwsemTryrdwait()
581 FillpSysArchCompAndWwap( IO volatile FILLP_ULONG *sem, IN volatile FILLP_ULONG oldValue, IN volatile FILLP_ULONG exchange) FillpSysArchCompAndWwap() argument
836 FILLP_ULONG oldValue; FillpAdaptSysArchRwsemTrywrwait() local
852 FILLP_ULONG oldValue; FillpAdaptSysArchRwsemRdPost() local
865 FILLP_ULONG oldValue; FillpAdaptSysArchRwsemWrPost() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_analyzer.cpp82 int32_t oldValue = prefs->GetInt(bundleName, 0); in FlushCommonBehavior() local
83 prefs->PutInt(bundleName, times + oldValue); in FlushCommonBehavior()
107 int32_t oldValue = prefs->GetInt(bundleName, 0); in FlushDeleteBehavior() local
108 prefs->PutInt(bundleName + SPLIT_CHAR + to_string(type), times + oldValue); in FlushDeleteBehavior()
/foundation/multimedia/ringtone_library/services/utils/src/
H A Dringtone_utils.cpp42 std::string RingtoneUtils::ReplaceAll(std::string str, const std::string &oldValue, const std::string &newValue) in ReplaceAll() argument
45 if ((pos = str.find(oldValue, pos)) != std::string::npos) { in ReplaceAll()
46 str.replace(pos, oldValue.length(), newValue); in ReplaceAll()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/ability/
H A Dcamera_ability.cpp270 bool oldValue = lastIsMacroSupported_.value(); in FilterByZoomRatio() local
273 if (oldValue != newValue) { in FilterByZoomRatio()
283 std::vector<float> oldValue = lastGetZoomRatioRange_.value(); in FilterByMacro() local
286 if (oldValue[0] != newValue[0] || oldValue[1] != newValue[1]) { in FilterByMacro()
/foundation/multimedia/ringtone_library/services/utils/include/
H A Dringtone_utils.h26 static std::string ReplaceAll(std::string str, const std::string &oldValue, const std::string &newValue);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_nb_transaction_test.cpp50 Value oldValue; member
62 this->oldValue == comparedData.oldValue && in operator ==()
75 DBCommon::PrintHexVector(this->oldValue, __LINE__, "oldValue"); in operator ==()
76 DBCommon::PrintHexVector(comparedData.oldValue, __LINE__, "coldValue"); in operator ==()
108 Value oldValue; in NotifierCallback() local
111 data.GetValue(OLD_VALUE_TYPE, oldValue); in NotifierCallback()
114 DBCommon::PrintHexVector(oldValue, __LINE__); in NotifierCallback()
118 g_conflictData.push_back({data.GetType(), key, oldValue, newValu in NotifierCallback()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_register_conflict_test.cpp58 Value oldValue; member
70 this->oldValue == comparedData.oldValue && in operator ==()
83 DBCommon::PrintHexVector(this->oldValue, __LINE__, "value"); in operator ==()
84 DBCommon::PrintHexVector(comparedData.oldValue, __LINE__, "oldValue"); in operator ==()
114 Value oldValue; in NotifierCallback() local
117 data.GetValue(OLD_VALUE_TYPE, oldValue); in NotifierCallback()
120 DBCommon::PrintHexVector(oldValue, __LINE__); in NotifierCallback()
124 g_conflictData.push_back({data.GetType(), key, oldValue, newValu in NotifierCallback()
[all...]
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dproperty_animatable_helper.h102 float oldValue = Get(*border); in Set() local
103 if (NearEqual(oldValue, value)) { in Set()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dintercepted_data_impl.cpp158 const auto &oldValue = dataItems_[indexes_[index]]->GetValue(); in ModifyValue() local
159 size_t newLength = totalLength_ - Parcel::GetVectorCharLen(oldValue) + Parcel::GetVectorCharLen(newValue); in ModifyValue()
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_constants.cpp514 const auto& oldValue = ThemeConstants::GetValue(styleId); in ParseCustomStyle() local
515 if (oldValue.type == ThemeConstantsType::ERROR) { in ParseCustomStyle()
519 if (!oldValue.isPublic) { in ParseCustomStyle()
523 const auto& newValue = ThemeUtils::ParseStyleValue(styleId, oldValue, value); in ParseCustomStyle()
525 if (newValue.type == oldValue.type) { in ParseCustomStyle()
/foundation/bundlemanager/app_domain_verify/frameworks/common/include/httpsession/
H A Dffrt_safe_map.h151 * @param oldValue Indicates the value to be replaced.
156 bool FindOldAndSetNew(const K& key, V& oldValue, const V& newValue) in FindOldAndSetNew() argument
163 oldValue = iter->second; in FindOldAndSetNew()
/foundation/arkui/ace_engine/advanced_ui_component/selectionmenu/interfaces/
H A Dselectionmenu.js347 Scroll.onAreaChange((oldValue, newValue) => {
349 let oldValueHeight = oldValue.height;
473 Flex.onAreaChange((oldValue, newValue) => {
475 let oldValueHeight = oldValue.height;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_indicator/
H A Dlinear_indicator_controller.cpp344 float oldValue = animationData_.Value(); in RecalcProgressValue() local
345 return std::clamp(oldAnimationTime * oldValue / newAnimationTime, .0f, END_VALUE); in RecalcProgressValue()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dcallbacks.h217 IN volatile FILLP_ULONG oldValue,
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributeddb_nb_test_tools.cpp494 Value oldValue; in NotifyCallBack() local
497 data.GetValue(KvStoreNbConflictData::ValueType::OLD_VALUE, oldValue); in NotifyCallBack()
499 conflictData->push_back({data.GetType(), key, oldValue, newValue, in NotifyCallBack()
/foundation/communication/dsoftbus/components/nstackx/fillp/include/
H A Dfillpcallbacks.h360 * @param[in] oldValue Indicates the exchange value.
366 IN volatile FILLP_ULONG oldValue, IN volatile FILLP_ULONG newValue);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_auto_launch_test.cpp614 Value oldValue; in ConflictNotifierCallback() local
617 data.GetValue(KvStoreNbConflictData::ValueType::OLD_VALUE, oldValue); in ConflictNotifierCallback()
620 EXPECT_EQ(oldValue, VALUE1); in ConflictNotifierCallback()

Completed in 19 milliseconds

12