/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_schema_unit_test.cpp | 63 EXPECT_EQ(res.defaultValue.stringValue, check.defaultValue.stringValue); in CheckSchemaAttribute() 64 EXPECT_EQ(memcmp(&res.defaultValue, &check.defaultValue, 8), 0); // only check this unit 8 byte in CheckSchemaAttribute() 71 attributeRes.defaultValue.integerValue = 0; in PreNumDataForParseAndCheckSchemaAttribute003() 79 attributeRes1.defaultValue.integerValue = INT32_MAX; in PreNumDataForParseAndCheckSchemaAttribute003() 85 attributeRes2.defaultValue.integerValue = 0; in PreNumDataForParseAndCheckSchemaAttribute003() 91 attributeRes3.defaultValue.longValue = 0; in PreNumDataForParseAndCheckSchemaAttribute003() 98 attributeRes4.defaultValue.longValue = LONG_MAX; in PreNumDataForParseAndCheckSchemaAttribute003() 107 attributeRes5.defaultValue in PreStringDataForParseAndCheckSchemaAttribute003() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_scrollable.cpp | 27 EdgeEffect JSScrollable::ParseEdgeEffect(const JSRef<JSVal>& jsValue, EdgeEffect defaultValue) in ParseEdgeEffect() argument 29 auto edgeEffect = static_cast<int32_t>(defaultValue); in ParseEdgeEffect() 32 edgeEffect = static_cast<int32_t>(defaultValue); in ParseEdgeEffect() 37 bool JSScrollable::ParseAlwaysEnable(const JSRef<JSVal>& jsValue, bool defaultValue) in ParseAlwaysEnable() argument 39 auto alwaysEnabled = defaultValue; in ParseAlwaysEnable() 43 alwaysEnabled = alwaysEnabledParam->IsBoolean() ? alwaysEnabledParam->ToBoolean() : defaultValue; in ParseAlwaysEnable() 48 DisplayMode JSScrollable::ParseDisplayMode(const JSCallbackInfo& info, DisplayMode defaultValue) in ParseDisplayMode() argument 51 return defaultValue; in ParseDisplayMode() 53 auto displayMode = static_cast<int32_t>(defaultValue); in ParseDisplayMode() 57 displayMode = static_cast<int32_t>(defaultValue); in ParseDisplayMode() [all...] |
H A D | js_scrollable.h | 25 static EdgeEffect ParseEdgeEffect(const JSRef<JSVal>& jsValue, EdgeEffect defaultValue); 26 static bool ParseAlwaysEnable(const JSRef<JSVal>& jsValue, bool defaultValue); 27 static DisplayMode ParseDisplayMode(const JSCallbackInfo& info, DisplayMode defaultValue);
|
H A D | js_particle.cpp | 87 std::optional<std::pair<float, float>> ParseParticleRange(JSRef<JSVal>& jsValue, float defaultValue) in ParseParticleRange() argument 90 auto defaultPair = std::pair<float, float>(defaultValue, defaultValue); in ParseParticleRange() 100 auto from = defaultValue; in ParseParticleRange() 104 auto to = defaultValue; in ParseParticleRange() 132 std::list<NG::ParticlePropertyAnimation<float>>& particleAnimationFloatArray, float defaultValue, float minValue, in ParseAnimationFloatArray() 144 float from = defaultValue; in ParseAnimationFloatArray() 148 from = defaultValue; in ParseAnimationFloatArray() 151 from = defaultValue; in ParseAnimationFloatArray() 156 float to = defaultValue; in ParseAnimationFloatArray() 131 ParseAnimationFloatArray(JSRef<JSArray>& curveConfigJsArray, std::list<NG::ParticlePropertyAnimation<float>>& particleAnimationFloatArray, float defaultValue, float minValue, float maxValue) ParseAnimationFloatArray() argument 208 ParseFloatCurveConfig(JSRef<JSVal>& configJsValue, OHOS::Ace::NG::ParticleFloatPropertyUpdater& updater, float defaultValue, float minValue, float maxValue) ParseFloatCurveConfig() argument 223 ParseFloatUpdater(JSRef<JSObject>& updaterJsObject, OHOS::Ace::NG::ParticleFloatPropertyUpdater& updater, float defaultValue, float minValue, float maxValue) ParseFloatUpdater() argument 256 ParseFloatInitRange(JSRef<JSVal>& floatRangeJsValue, OHOS::Ace::NG::ParticleFloatPropertyOption& floatOption, float defaultValue, float minValue, float maxValue) ParseFloatInitRange() argument 299 ParseFloatOption(JSRef<JSObject>& floatJsObject, OHOS::Ace::NG::ParticleFloatPropertyOption& floatOption, float defaultValue, float minValue, float maxValue) ParseFloatOption() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_system_properties.cpp | 30 bool GESystemProperties::GetBoolSystemProperty(const char* name, bool defaultValue) in GetBoolSystemProperty() argument 33 static CachedHandle g_Handle = CachedParameterCreate(name, defaultValue ? "1" : "0"); in GetBoolSystemProperty() 36 return ConvertToInt(enable, defaultValue ? 1 : 0) != 0; in GetBoolSystemProperty() 42 int GESystemProperties::ConvertToInt(const char* originValue, int defaultValue) in ConvertToInt() argument 44 return originValue == nullptr ? defaultValue : std::atoi(originValue); in ConvertToInt()
|
/foundation/window/window_manager/utils/include/ |
H A D | class_var_definition.h | 29 #define DEFINE_VAR_DEFAULT(type, memberName, defaultValue) \
31 type memberName##_ {defaultValue};
80 #define DEFINE_VAR_DEFAULT_FUNC_GET(type, funcName, memberName, defaultValue) \
81 DEFINE_VAR_DEFAULT(type, memberName, defaultValue) \
84 #define DEFINE_VAR_DEFAULT_FUNC_SET(type, funcName, memberName, defaultValue) \
85 DEFINE_VAR_DEFAULT(type, memberName, defaultValue) \
98 #define DEFINE_VAR_DEFAULT_FUNC_GET_SET(type, funcName, memberName, defaultValue) \
99 DEFINE_VAR_DEFAULT(type, memberName, defaultValue) \
|
H A D | future.h | 64 void Reset(T defaultValue)
in Reset() argument 67 result_ = defaultValue;
in Reset() 69 void ResetLock(T defaultValue)
in ResetLock() argument 73 result_ = defaultValue;
in ResetLock()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | db_properties.cpp | 20 std::string DBProperties::GetStringProp(const std::string &name, const std::string &defaultValue) const in GetStringProp() 26 return defaultValue; in GetStringProp() 34 bool DBProperties::GetBoolProp(const std::string &name, bool defaultValue) const in GetBoolProp() 40 return defaultValue; in GetBoolProp() 48 int DBProperties::GetIntProp(const std::string &name, int defaultValue) const in GetIntProp() 54 return defaultValue; in GetIntProp() 62 uint32_t DBProperties::GetUIntProp(const std::string &name, uint32_t defaultValue) const in GetUIntProp() 68 return defaultValue; in GetUIntProp()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | utils.h | 48 static T CheckRange(T min, T max, T defaultValue, T value) in CheckRange() argument 51 return defaultValue; in CheckRange() 57 static T CheckMin(T min, T defaultValue, T value) in CheckMin() argument 60 return defaultValue; in CheckMin()
|
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/ |
H A D | napi_common_fileaccess.cpp | 32 uint32_t UnwrapUint32FromJS(napi_env env, napi_value param, uint32_t defaultValue) in UnwrapUint32FromJS() argument 34 uint32_t value = defaultValue; in UnwrapUint32FromJS() 38 return defaultValue; in UnwrapUint32FromJS() 68 uint64_t UnwrapBigIntUint64FromJS(napi_env env, napi_value param, uint64_t defaultValue) in UnwrapBigIntUint64FromJS() argument 71 uint64_t value = defaultValue; in UnwrapBigIntUint64FromJS() 75 return defaultValue; in UnwrapBigIntUint64FromJS() 79 bool UnwrapBigIntUint64FromJS2(napi_env env, napi_value param, uint64_t &defaultValue) in UnwrapBigIntUint64FromJS2() argument 82 if (napi_get_value_bigint_uint64(env, param, &defaultValue, &lossless) == napi_ok) { in UnwrapBigIntUint64FromJS2()
|
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/ |
H A D | switch_status_dependency_test.cpp | 74 std::string defaultValue = CONTINUE_SWITCH_ON; in HWTEST_F() local 77 SwitchStatusDependency::GetInstance().GetSwitchStatus(key, defaultValue)); in HWTEST_F() 79 defaultValue = CONTINUE_SWITCH_ON; in HWTEST_F() 81 SwitchStatusDependency::GetInstance().GetSwitchStatus(key, defaultValue)); in HWTEST_F()
|
/foundation/resourceschedule/memmgr/common/src/ |
H A D | xml_helper.cpp | 48 std::string key, int &dst, int defaultValue) in SetIntParam() 50 dst = defaultValue; in SetIntParam() 68 std::string key, unsigned int &dst, unsigned int defaultValue) in SetUnsignedIntParam() 70 dst = defaultValue; in SetUnsignedIntParam() 76 src = defaultValue; in SetUnsignedIntParam() 133 std::string key, std::string &dst, std::string defaultValue) in SetStringParam() 136 dst = defaultValue; in SetStringParam() 47 SetIntParam(std::map<std::string, std::string> ¶m, std::string key, int &dst, int defaultValue) SetIntParam() argument 67 SetUnsignedIntParam(std::map<std::string, std::string> ¶m, std::string key, unsigned int &dst, unsigned int defaultValue) SetUnsignedIntParam() argument 132 SetStringParam(std::map<std::string, std::string> ¶m, std::string key, std::string &dst, std::string defaultValue) SetStringParam() argument
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/ |
H A D | implementation_macros.h | 44 #define META_DEFINE_PROPERTY_VAR(intf, name, type, defaultValue, flags) \ 48 [] { return ::META_NS::IProperty::Ptr(::META_NS::ConstructProperty<type>(#name, defaultValue, flags)); }, \ 58 #define META_DEFINE_PROPERTY_VARArray(intf, name, type, defaultValue, flags) \ 61 [] { return ::META_NS::IProperty::Ptr(::META_NS::ConstructArrayProperty<type>(#name, defaultValue, flags)); }, \ 71 #define META_DEFINE_READONLY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 73 intf, name, type, defaultValue, flags)::META_NS::IProperty::ConstPtr Property##name() const noexcept override \ 79 #define META_DEFINE_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 80 META_DEFINE_READONLY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 87 #define META_DEFINE_READONLY_ARRAY_PROPERTY(propType, intf, name, type, defaultValue, flags) \ 89 intf, name, type, defaultValue, flag [all...] |
/foundation/resourceschedule/memmgr/common/include/ |
H A D | xml_helper.h | 37 std::string key, int &dst, int defaultValue); 39 std::string key, unsigned int &dst, unsigned int defaultValue); 41 std::string key, std::string &dst, std::string defaultValue);
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/ |
H A D | napi_zlib_common.cpp | 37 std::string UnwrapStringFromJS(napi_env env, napi_value param, const std::string &defaultValue) in UnwrapStringFromJS() argument 41 return defaultValue; in UnwrapStringFromJS() 46 return defaultValue; in UnwrapStringFromJS() 63 value = defaultValue; in UnwrapStringFromJS()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | db_properties.h | 28 std::string GetStringProp(const std::string &name, const std::string &defaultValue) const; 34 bool GetBoolProp(const std::string &name, bool defaultValue) const; 40 int GetIntProp(const std::string &name, int defaultValue) const; 46 uint32_t GetUIntProp(const std::string &name, uint32_t defaultValue) const;
|
/foundation/multimedia/media_foundation/src/meta/ |
H A D | format.cpp | 146 auto defaultValue = GetDefaultAnyValueOpt(key.data()); in PutIntValue() local 147 if (defaultValue != std::nullopt) { in PutIntValue() 149 Any::IsSameTypeWith<int32_t>(defaultValue.value()) || in PutIntValue() 150 Any::IsSameTypeWith<bool>(defaultValue.value()) || IsIntEnum(key.data()); in PutIntValue() 159 auto defaultValue = GetDefaultAnyValueOpt(key.data()); in PutLongValue() local 160 if (defaultValue != std::nullopt) { in PutLongValue() 162 Any::IsSameTypeWith<int64_t>(defaultValue.value()) || IsLongEnum(key.data()); in PutLongValue() 170 auto defaultValue = GetDefaultAnyValueOpt(key.data()); in PutFloatValue() local 171 if (defaultValue != std::nullopt) { in PutFloatValue() 172 auto isSameType = Any::IsSameTypeWith<float>(defaultValue in PutFloatValue() 182 auto defaultValue = GetDefaultAnyValueOpt(key.data()); PutDoubleValue() local 194 auto defaultValue = GetDefaultAnyValueOpt(key.data()); PutStringValue() local 206 auto defaultValue = GetDefaultAnyValueOpt(key.data()); PutBuffer() local [all...] |
/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/ |
H A D | effect_json_helper.h | 50 IMAGE_EFFECT_EXPORT int32_t GetInt(const std::string &key, int32_t defaultValue = 0); 51 IMAGE_EFFECT_EXPORT uint32_t GetUInt(const std::string &key, uint32_t defaultValue = 0); 52 IMAGE_EFFECT_EXPORT float GetFloat(const std::string &key, float defaultValue = 0.0f); 53 IMAGE_EFFECT_EXPORT double GetDouble(const std::string &key, double defaultValue = 0.0); 54 IMAGE_EFFECT_EXPORT bool GetBool(const std::string &key, bool defaultValue = false); 55 IMAGE_EFFECT_EXPORT std::string GetString(const std::string &key, const std::string &defaultValue = "");
|
/foundation/ability/dmsfwk/services/dtbschedmgr/src/ |
H A D | switch_status_dependency.cpp | 56 std::string SwitchStatusDependency::GetSwitchStatus(const std::string &key, const std::string &defaultValue) in GetSwitchStatus() argument 62 return defaultValue; in GetSwitchStatus() 74 return defaultValue; in GetSwitchStatus() 82 return defaultValue; in GetSwitchStatus() 93 return defaultValue; in GetSwitchStatus()
|
/foundation/barrierfree/accessibility/services/aams/include/ |
H A D | accessibility_datashare_helper.h | 40 std::string GetStringValue(const std::string& key, const std::string& defaultValue); 41 int32_t GetIntValue(const std::string& key, const int32_t& defaultValue); 42 int64_t GetLongValue(const std::string& key, const int64_t& defaultValue); 43 bool GetBoolValue(const std::string& key, const bool& defaultValue); 44 float GetFloatValue(const std::string& key, const float& defaultValue);
|
/foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache/include/ |
H A D | dynamic_cache.h | 43 string defaultValue = "default"; in QueryResult() local 44 GetParameter(key_.c_str(), defaultValue.c_str(), waterLine, waterLineLength); in QueryResult() 47 if (CanUseCache(querySaId, waterLine, defaultValue)) { in QueryResult() 71 bool CanUseCache(int32_t querySaId, char* waterLine, string defaultValue) in CanUseCache() argument 74 defaultValue != string(waterLine) && string(waterLine) == localPara_[key_] && in CanUseCache()
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/ |
H A D | util.h | 80 Type GetValue(const Property<Type>& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 82 return p ? p->GetValue() : BASE_NS::move(defaultValue); 85 Type GetValue(const IProperty::ConstPtr& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 87 return GetValue(Property<Type>(p), BASE_NS::move(defaultValue)); 90 Type GetValue(const IProperty::ConstWeakPtr& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 92 return GetValue<Type>(p.lock(), BASE_NS::move(defaultValue)); 96 Type GetValue(const IProperty::Ptr& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 98 return GetValue(Property<Type>(p), BASE_NS::move(defaultValue)); 102 Type GetValue(const IProperty::WeakPtr& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 104 return GetValue<Type>(p.lock(), BASE_NS::move(defaultValue)); [all...] |
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/include/ |
H A D | napi_common_fileaccess.h | 31 uint32_t UnwrapUint32FromJS(napi_env env, napi_value param, uint32_t defaultValue = 0); 36 uint64_t UnwrapBigIntUint64FromJS(napi_env env, napi_value param, uint64_t defaultValue = 0); 37 bool UnwrapBigIntUint64FromJS2(napi_env env, napi_value param, uint64_t &defaultValue);
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | intf_metadata.h | 154 constexpr auto GetValue(const META_NS::IMetadata* meta, BASE_NS::string_view name, ValueType defaultValue = {}) noexcept 158 return GetValue(property, defaultValue); 161 return BASE_NS::move(defaultValue); 167 const BASE_NS::shared_ptr<Interface>& intf, BASE_NS::string_view name, ValueType defaultValue = {}) noexcept 169 return GetValue<ValueType>(interface_cast<IMetadata>(intf), name, defaultValue); 175 const BASE_NS::weak_ptr<Interface>& intf, BASE_NS::string_view name, ValueType defaultValue = {}) noexcept 177 return GetValue<ValueType>(interface_pointer_cast<IMetadata>(intf), name, defaultValue);
|
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/include/ |
H A D | ge_system_properties.h | 38 static bool GetBoolSystemProperty(const char* name, bool defaultValue); 39 static int ConvertToInt(const char* originValue, int defaultValue);
|