Home
last modified time | relevance | path

Searched refs:defaultValue (Results 1 – 25 of 32) sorted by relevance

12

/base/hiviewdfx/hiview/base/utility/
Dparameter_ex.cpp24 std::string GetString(const std::string& key, const std::string& defaultValue) in GetString() argument
26 return OHOS::system::GetParameter(key, defaultValue); in GetString()
29 int64_t GetInteger(const std::string& key, const int64_t defaultValue) in GetInteger() argument
31 return OHOS::system::GetIntParameter(key, defaultValue); in GetInteger()
34 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue) in GetUnsignedInteger() argument
36 return OHOS::system::GetUintParameter(key, defaultValue); in GetUnsignedInteger()
39 bool GetBoolean(const std::string& key, const bool defaultValue) in GetBoolean() argument
41 return OHOS::system::GetBoolParameter(key, defaultValue); in GetBoolean()
44 bool SetProperty(const std::string& key, const std::string& defaultValue) in SetProperty() argument
46 return OHOS::system::SetParameter(key, defaultValue); in SetProperty()
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
Ddgram_socket_client.cpp34 int defaultValue = -1; in CheckSocket() local
35 fdHandler.compare_exchange_strong(defaultValue, fd); in CheckSocket()
36 if (defaultValue != -1) { in CheckSocket()
37 ret = defaultValue; in CheckSocket()
/base/hiviewdfx/hiview/base/utility/include/
Dparameter_ex.h32 std::string GetString(const std::string& key, const std::string& defaultValue);
33 int64_t GetInteger(const std::string& key, const int64_t defaultValue);
34 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue);
35 bool GetBoolean(const std::string& key, const bool defaultValue);
36 bool SetProperty(const std::string& key, const std::string& defaultValue);
/base/startup/init/test/unittest/init/
Dutils_unittest.cpp56 int defaultValue = 1; variable
57 int ret = StringToInt(str, defaultValue);
60 ret = StringToInt(str, defaultValue);
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_cb_handler.h51 const int32_t defaultValue = -1; in MatchLocation() local
55 if (lac_ != defaultValue && lac_ != lac) { in MatchLocation()
58 if (cid_ != defaultValue && cid_ != cid) { in MatchLocation()
/base/update/updateservice/services/startup/manage/src/
Dschedule_config.cpp51 …_t ScheduleConfig::ParseConfig(nlohmann::json &root, const std::string &key, uint64_t defaultValue) in ParseConfig() argument
58 return defaultValue; in ParseConfig()
/base/update/updater/services/ui/view/component/
Dbox_progress_adapter.cpp29 this->SetValue(spec.defaultValue); in BoxProgressAdapter()
44 if (info.defaultValue > MAX_PROGRESS_VALUE) { in IsValid()
45 LOG(ERROR) << "progress viewinfo check failed, defaultValue: " << info.defaultValue; in IsValid()
Dbox_progress_adapter.h26 uint32_t defaultValue; member
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp116 double ParseNumberValue(const napi_env env, const napi_value& value, double defaultValue = 0.0) in ParseNumberValue() argument
118 double numValue = defaultValue; in ParseNumberValue()
126 std::string ParseStringValue(const napi_env env, const napi_value& value, std::string defaultValue in ParseStringValue() argument
133 return defaultValue; in ParseStringValue()
139 double ParseBigIntValue(const napi_env env, const napi_value& value, double defaultValue = 0.0) in ParseBigIntValue() argument
143 return defaultValue; in ParseBigIntValue()
147 double ret = defaultValue; in ParseBigIntValue()
149 int64_t int64Value = static_cast<int64_t>(defaultValue); in ParseBigIntValue()
153 uint64_t uint64Value = static_cast<uint64_t>(defaultValue); in ParseBigIntValue()
163 std::string GetTagAttribute(const napi_env env, const napi_value& object, std::string defaultValue in GetTagAttribute() argument
[all …]
/base/update/updateservice/services/startup/manage/include/
Dschedule_config.h31 … static uint64_t ParseConfig(nlohmann::json &root, const std::string &key, uint64_t defaultValue);
/base/usb/usb_manager/services/native/src/
Dusb_function_switch_window.cpp64 const char defaultValue[PARAM_BUF_LEN] = { 0 }; in PopUpFunctionSwitchWindow() local
66 …int32_t ret = GetParameter("persist.usb.setting.gadget_conn_prompt", defaultValue, paramValue, siz… in PopUpFunctionSwitchWindow()
/base/hiviewdfx/hiview/base/
Dhiview_global.cpp53 std::string HiviewGlobal::GetHiviewProperty(const std::string& key, const std::string& defaultValue) in GetHiviewProperty() argument
55 return context_.GetHiviewProperty(key, defaultValue); in GetHiviewProperty()
/base/useriam/face_auth/services_ex/src/
Dscreen_brightness_task.cpp70 uint32_t GetUInt32Param(const char *key, uint32_t defaultValue) in GetUInt32Param() argument
72 std::string defaultStr = std::to_string(defaultValue); in GetUInt32Param()
77 return defaultValue; in GetUInt32Param()
89 return defaultValue; in GetUInt32Param()
/base/global/i18n/frameworks/intl/include/
Dplural_rules.h59 int GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultValue);
/base/hiviewdfx/hiview/base/include/
Dhiview_global.h36 std::string GetHiviewProperty(const std::string& key, const std::string& defaultValue);
Dplugin.h259 …ual std::string GetHiviewProperty(const std::string& key __UNUSED, const std::string& defaultValue) in GetHiviewProperty() argument
261 return defaultValue; in GetHiviewProperty()
/base/global/i18n/frameworks/intl/src/
Dplural_rules.cpp51 …PluralRules::GetValidInteger(std::string &integerStr, int minValue, int maxValue, int defaultValue) in GetValidInteger() argument
56 validInteger = defaultValue; in GetValidInteger()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_cb_handler.cpp157 const int32_t defaultValue = -1; in InitLocation() local
175 info.cid_ = defaultValue; in InitLocation()
182 info.cid_ = defaultValue; in InitLocation()
183 info.lac_ = defaultValue; in InitLocation()
/base/startup/init/services/include/
Dinit_utils.h68 int StringToInt(const char *str, int defaultValue);
/base/hiviewdfx/hilog/frameworks/libhilog/param/
Dproperties.cpp190 …CacheData(DataConverter converter, const T& defaultValue, PropType propType, const std::string& su… in CacheData() argument
191 …: m_value(defaultValue), m_defaultValue(defaultValue), m_propType(propType), m_converter(converter) in CacheData()
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_layout_unittest.cpp36 return std::tie(lhs.defaultValue, lhs.fgColor, lhs.bgColor, lhs.hasEp, lhs.endPoint) == in operator ==()
37 std::tie(rhs.defaultValue, rhs.fgColor, rhs.bgColor, rhs.hasEp, rhs.endPoint); in operator ==()
/base/update/updater/services/ui/
Dupdater_ui_traits.h66 (uint32_t, defaultValue),
/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
Dohos_account_manager_test.cpp55 const std::string &eventKey, const std::string &defaultValue) in GetAccountEventStr() argument
61 return defaultValue; in GetAccountEventStr()
/base/startup/init/services/utils/
Dinit_utils.c510 int StringToInt(const char *str, int defaultValue) in StringToInt() argument
513 return defaultValue; in StringToInt()
517 return (errno != 0) ? defaultValue : value; in StringToInt()
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/
Daccount_mgr_service_test.cpp70 const std::string &eventKey, const std::string &defaultValue) in GetAccountEventStr() argument
76 return defaultValue; in GetAccountEventStr()

12