Home
last modified time | relevance | path

Searched refs:defValue (Results 1 – 15 of 15) sorted by relevance

/base/telephony/core_service/utils/preferences/include/
Dtel_profile_util.h34 std::string ObtainString(const std::string &key, const std::string &defValue);
36 int ObtainInt(const std::string &key, int defValue);
38 bool ObtainBool(const std::string &key, bool defValue);
40 int64_t ObtainLong(const std::string &key, int64_t defValue);
42 float ObtainFloat(const std::string &key, float defValue);
/base/telephony/core_service/utils/preferences/src/
Dtel_profile_util.cpp43 std::string TelProfileUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
49 return ptr->GetString(key, defValue); in ObtainString()
61 int TelProfileUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
67 return ptr->GetInt(key, defValue); in ObtainInt()
79 bool TelProfileUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
85 return ptr->GetBool(key, defValue); in ObtainBool()
97 int64_t TelProfileUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
103 return ptr->GetLong(key, defValue); in ObtainLong()
115 float TelProfileUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument
121 return ptr->GetFloat(key, defValue); in ObtainFloat()
/base/telephony/data_storage/common/include/
Dpreferences_util.h38 std::string ObtainString(const std::string &key, const std::string &defValue);
40 int ObtainInt(const std::string &key, int defValue);
42 bool ObtainBool(const std::string &key, bool defValue);
44 int64_t ObtainLong(const std::string &key, int64_t defValue);
46 float ObtainFloat(const std::string &key, float defValue);
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_config_test.cpp173 int32_t defValue = 100; variable
174 EXPECT_EQ(defValue, g_configTest.GetInt("XXXXXXXXX", defValue));
186 int32_t defValue = 200; variable
187 EXPECT_EQ(defValue, g_configTest.GetInt("X.X.X.X.X.X", defValue));
199 int32_t defValue = 300; variable
200 EXPECT_EQ(defValue, g_configTest.GetInt("", defValue));
/base/telephony/data_storage/common/src/
Dpreferences_util.cpp47 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
53 return ptr->GetString(key, defValue); in ObtainString()
65 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
71 return ptr->GetInt(key, defValue); in ObtainInt()
83 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
89 return ptr->GetBool(key, defValue); in ObtainBool()
101 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
107 return ptr->GetLong(key, defValue); in ObtainLong()
119 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument
125 return ptr->GetFloat(key, defValue); in ObtainFloat()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_definition_cache.cpp153 for (const GenericValues& defValue : permDefRes) { in RestorePermDefInfo() local
155 AccessTokenID tokenId = (AccessTokenID)defValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in RestorePermDefInfo()
156 int32_t ret = DataTranslator::TranslationIntoPermissionDef(defValue, def); in RestorePermDefInfo()
/base/startup/syspara_lite/adapter/native/syspara/include/
Dparameters_abstractor.h25 virtual std::string GetParameter(const std::string& key, const std::string& defValue) = 0;
/base/startup/init/services/include/param/
Dsys_param.h81 CachedHandle CachedParameterCreate(const char *name, const char *defValue);
/base/telephony/sms_mms/services/
Dsms_persist_helper.cpp137 bool SmsPersistHelper::QueryParamBoolean(const std::string key, bool defValue) in QueryParamBoolean() argument
141 std::string defStrValue = defValue ? "1" : "0"; in QueryParamBoolean()
159 return defValue; in QueryParamBoolean()
/base/telephony/sms_mms/services/include/
Dsms_persist_helper.h38 bool QueryParamBoolean(const std::string key, bool defValue);
/base/startup/init/services/param/base/
Dparam_base.c369 CachedHandle CachedParameterCreate(const char *name, const char *defValue) in CachedParameterCreate() argument
371 PARAM_CHECK(name != NULL && defValue != NULL, return NULL, "Invalid name or default value"); in CachedParameterCreate()
376 uint32_t valueLen = strlen(defValue); in CachedParameterCreate()
378 …PARAM_CHECK(valueLen < PARAM_CONST_VALUE_LEN_MAX, return NULL, "Illegal param value %s", defValue); in CachedParameterCreate()
380 …ARAM_CHECK(valueLen < PARAM_VALUE_LEN_MAX, return NULL, "Illegal param value %s length", defValue); in CachedParameterCreate()
412 ret = ParamStrCpy(param->paramValue, param->bufferLen, defValue); in CachedParameterCreate()
/base/startup/init/interfaces/kits/jskits/src_enhance/
Dnative_parameters_js.cpp256 std::vector<char> defValue(MAX_VALUE_LENGTH, 0); in GetSync() local
259 ret = GetParamString(env, args[1], defValue.data(), MAX_VALUE_LENGTH, &valueSize); in GetSync()
267 …ret = GetParameter(keyBuf.data(), (valueSize == 0) ? nullptr : defValue.data(), value.data(), MAX_… in GetSync()
269 ret, keyBuf.data(), value.data(), defValue.data()); in GetSync()
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_mms.cpp716 bool GetNapiBooleanValue(napi_env env, napi_value napiValue, std::string name, bool defValue = fals… in GetNapiBooleanValue() argument
720 bool result = defValue; in GetNapiBooleanValue()
724 return defValue; in GetNapiBooleanValue()
728 …GetNapiStringValue(napi_env env, napi_value napiValue, std::string name, std::string defValue = "") in GetNapiStringValue() argument
734 return defValue; in GetNapiStringValue()
738 int32_t GetNapiInt32Value(napi_env env, napi_value napiValue, std::string name, int32_t defValue = … in GetNapiInt32Value() argument
748 return defValue; in GetNapiInt32Value()
751 int64_t GetNapiInt64Value(napi_env env, napi_value napiValue, std::string name, int64_t defValue = … in GetNapiInt64Value() argument
761 return defValue; in GetNapiInt64Value()
764 uint32_t GetNapiUint32Value(napi_env env, napi_value napiValue, std::string name, uint32_t defValue in GetNapiUint32Value() argument
[all …]
/base/startup/init/services/init/
Dinit_service_manager.c566 static int GetMapValue(const char *name, const InitArgInfo *infos, int argNum, int defValue) in GetMapValue() argument
569 return defValue; in GetMapValue()
576 return defValue; in GetMapValue()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test.cpp3745 std::string defValue = ""; variable
3755 telProfileUtil->ObtainString(key, defValue);