/foundation/graphic/graphic_utils_lite/interfaces/innerkits/ |
H A D | hal_atomic.h | 52 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 D | text_input_formatter.h | 32 * @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 D | text_input_formatter.cpp | 25 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 D | softbus_adapter_atomic.h | 62 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 D | metadata_test.cpp | 87 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 D | fragment_metadata_test.cpp | 188 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 D | ime_test.cpp | 677 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 D | concurrent_queue.cpp | 52 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 D | callbacks.c | 583 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 D | dfx_analyzer.cpp | 82 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 D | ringtone_utils.cpp | 42 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 D | camera_ability.cpp | 270 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 D | ringtone_utils.h | 26 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 D | distributeddb_interfaces_nb_transaction_test.cpp | 50 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 D | distributeddb_storage_register_conflict_test.cpp | 58 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 D | property_animatable_helper.h | 102 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 D | intercepted_data_impl.cpp | 158 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 D | theme_constants.cpp | 514 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 D | ffrt_safe_map.h | 151 * @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 D | selectionmenu.js | 347 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 D | linear_indicator_controller.cpp | 344 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 D | callbacks.h | 217 IN volatile FILLP_ULONG oldValue,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributeddb_nb_test_tools.cpp | 494 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 D | fillpcallbacks.h | 360 * @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 D | distributeddb_auto_launch_test.cpp | 614 Value oldValue; in ConflictNotifierCallback() local 617 data.GetValue(KvStoreNbConflictData::ValueType::OLD_VALUE, oldValue); in ConflictNotifierCallback() 620 EXPECT_EQ(oldValue, VALUE1); in ConflictNotifierCallback()
|