Home
last modified time | relevance | path

Searched refs:defValue (Results 1 - 24 of 24) sorted by relevance

/base/update/updateservice/services/core/ability/preference/src/
H A Dpreference_utils_empty.cpp58 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
60 return defValue; in ObtainString()
63 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
65 return defValue; in ObtainInt()
68 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
70 return defValue; in ObtainBool()
73 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
75 return defValue; in ObtainLong()
78 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument
80 return defValue; in ObtainFloat()
84 Obtain(const std::string &key, const T &defValue) Obtain() argument
[all...]
H A Dpreference_utils.cpp137 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
139 return Obtain(key, defValue); in ObtainString()
142 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
144 return Obtain(key, defValue); in ObtainInt()
147 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
149 return Obtain(key, defValue); in ObtainBool()
152 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
154 return Obtain(key, defValue); in ObtainLong()
157 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument
159 return Obtain(key, defValue); in ObtainFloat()
163 Obtain(const std::string &key, const T &defValue) Obtain() argument
173 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &defValue) ObtainInner() argument
183 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &defValue) ObtainInner() argument
193 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue) ObtainInner() argument
203 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &defValue) ObtainInner() argument
213 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const float &defValue) ObtainInner() argument
[all...]
/base/update/updateservice/services/core/ability/preference/include/
H A Dpreferences_utils.h40 std::string ObtainString(const std::string &key, const std::string &defValue);
41 int ObtainInt(const std::string &key, int defValue);
42 bool ObtainBool(const std::string &key, bool defValue);
43 int64_t ObtainLong(const std::string &key, int64_t defValue);
44 float ObtainFloat(const std::string &key, float defValue);
74 T Obtain(const std::string &key, const T &defValue);
78 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &defValue);
79 int ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &defValue);
80 bool ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue);
82 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &defValue);
[all...]
/base/telephony/telephony_data/common/src/
H A Dpreferences_util.cpp51 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
55 return defValue; in ObtainString()
57 return ptr->GetString(key, defValue); in ObtainString()
71 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
75 return defValue; in ObtainInt()
77 return ptr->GetInt(key, defValue); in ObtainInt()
91 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
95 return defValue; in ObtainBool()
97 return ptr->GetBool(key, defValue); in ObtainBool()
111 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
131 ObtainFloat(const std::string &key, float defValue) ObtainFloat() argument
[all...]
/base/theme/screenlock_mgr/utils/src/
H A Dpreferences_util.cpp49 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
53 return defValue; in ObtainString()
55 return ptr->GetString(key, defValue); in ObtainString()
69 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
73 return defValue; in ObtainInt()
75 return ptr->GetInt(key, defValue); in ObtainInt()
89 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
93 return defValue; in ObtainBool()
95 return ptr->GetBool(key, defValue); in ObtainBool()
109 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
129 ObtainFloat(const std::string &key, float defValue) ObtainFloat() argument
[all...]
/base/telephony/core_service/utils/preferences/include/
H A 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/telephony_data/common/include/
H A Dpreferences_util.h33 std::string ObtainString(const std::string &key, const std::string &defValue);
35 int ObtainInt(const std::string &key, int defValue);
37 bool ObtainBool(const std::string &key, bool defValue);
39 int64_t ObtainLong(const std::string &key, int64_t defValue);
41 float ObtainFloat(const std::string &key, float defValue);
/base/theme/screenlock_mgr/utils/include/
H A Dpreferences_util.h33 std::string ObtainString(const std::string &key, const std::string &defValue);
35 int ObtainInt(const std::string &key, int defValue);
37 bool ObtainBool(const std::string &key, bool defValue);
39 int64_t ObtainLong(const std::string &key, int64_t defValue);
41 float ObtainFloat(const std::string &key, float defValue);
/base/telephony/core_service/utils/preferences/src/
H A Dtel_profile_util.cpp45 std::string TelProfileUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument
51 return ptr->GetString(key, defValue); in ObtainString()
65 int TelProfileUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument
71 return ptr->GetInt(key, defValue); in ObtainInt()
85 bool TelProfileUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument
91 return ptr->GetBool(key, defValue); in ObtainBool()
105 int64_t TelProfileUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument
111 return ptr->GetLong(key, defValue); in ObtainLong()
125 float TelProfileUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument
131 return ptr->GetFloat(key, defValue); in ObtainFloat()
[all...]
/base/security/security_guard/test/unittest/mock/preferences/
H A Dpreferences.h32 virtual int GetInt(const std::string &key, const int &defValue) = 0;
41 MOCK_METHOD2(GetInt, int(const std::string &key, const int &defValue));
/base/powermgr/battery_manager/test/unittest/src/
H A Dbattert_service_inner_test.cpp254 int32_t defValue = 100; in HWTEST_F() local
255 EXPECT_EQ(defValue, g_configTest.GetInt("XXXXXXXXX", defValue)); in HWTEST_F()
267 int32_t defValue = 200; in HWTEST_F() local
268 EXPECT_EQ(defValue, g_configTest.GetInt("X.X.X.X.X.X", defValue)); in HWTEST_F()
280 int32_t defValue = 300; in HWTEST_F() local
281 EXPECT_EQ(defValue, g_configTest.GetInt("", defValue)); in HWTEST_F()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_definition_cache.cpp194 for (const GenericValues& defValue : permDefRes) { in RestorePermDefInfo()
196 AccessTokenID tokenId = (AccessTokenID)defValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in RestorePermDefInfo()
197 int32_t ret = DataTranslator::TranslationIntoPermissionDef(defValue, def); in RestorePermDefInfo()
/base/telephony/core_service/utils/common/include/
H A Dtel_aes_crypto_util.h32 static std::string ObtainDecryptString(const std::string &key, int32_t id, const std::string &defValue);
/base/startup/init/interfaces/kits/jskits/src_enhance/
H A Dnative_parameters_js.cpp255 std::vector<char> defValue(MAX_VALUE_LENGTH, 0);
261 ret = GetParamString(env, args[1], defValue.data(), MAX_VALUE_LENGTH, &valueSize);
269 ret = GetParameter(keyBuf.data(), (valueSize == 0) ? nullptr : defValue.data(), value.data(), MAX_VALUE_LENGTH);
270 PARAM_JS_LOGV("JSApp get status: %d, key: '%s', value: '%s', defValue: '%s'.",
271 ret, keyBuf.data(), value.data(), defValue.data());
/base/startup/init/services/param/base/
H A Dparam_base.c602 CachedHandle CachedParameterCreate(const char *name, const char *defValue)
604 if (name == NULL || defValue == NULL) {
610 uint32_t valueLen = strlen(defValue);
612 PARAM_CHECK(valueLen < PARAM_CONST_VALUE_LEN_MAX, return NULL, "Illegal param value %s", defValue);
614 PARAM_CHECK(valueLen < PARAM_VALUE_LEN_MAX, return NULL, "Illegal param value %s length", defValue);
647 ret = PARAM_STRCPY(param->paramValue, param->bufferLen, defValue);
/base/startup/init/interfaces/innerkits/include/param/
H A Dsys_param.h139 CachedHandle CachedParameterCreate(const char *name, const char *defValue);
/base/telephony/sms_mms/services/sms/include/
H A Dsms_persist_helper.h39 bool QueryParamBoolean(const std::string key, bool defValue);
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_mms.cpp742 bool GetNapiBooleanValue(napi_env env, napi_value napiValue, std::string name, bool defValue = false) in GetNapiBooleanValue()
746 bool result = defValue; in GetNapiBooleanValue()
750 return defValue; in GetNapiBooleanValue()
754 std::string GetNapiStringValue(napi_env env, napi_value napiValue, std::string name, std::string defValue = "") in GetNapiStringValue()
760 return defValue; in GetNapiStringValue()
764 int32_t GetNapiInt32Value(napi_env env, napi_value napiValue, std::string name, int32_t defValue = 0) in GetNapiInt32Value()
774 return defValue; in GetNapiInt32Value()
777 int64_t GetNapiInt64Value(napi_env env, napi_value napiValue, std::string name, int64_t defValue = 0) in GetNapiInt64Value()
787 return defValue; in GetNapiInt64Value()
790 uint32_t GetNapiUint32Value(napi_env env, napi_value napiValue, std::string name, uint32_t defValue
[all...]
/base/notification/distributed_notification_service/services/ans/include/
H A Dreminder_store.h104 const std::string& columnName, const std::string& columnType, const std::string& defValue);
/base/telephony/sms_mms/services/sms/
H A Dsms_persist_helper.cpp471 bool SmsPersistHelper::QueryParamBoolean(const std::string key, bool defValue) in QueryParamBoolean() argument
475 std::string defStrValue = defValue ? "1" : "0"; in QueryParamBoolean()
493 return defValue; in QueryParamBoolean()
/base/telephony/core_service/utils/common/src/
H A Dtel_aes_crypto_util.cpp83 std::string TelAesCryptoUtils::ObtainDecryptString(const std::string &key, int32_t id, const std::string &defValue) in ObtainDecryptString() argument
86 std::string encryptValue = telProfileUtil->ObtainString(key + std::to_string(id), defValue); in ObtainDecryptString()
/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_store.cpp262 const std::string& columnName, const std::string& columnType, const std::string& defValue) in AddRdbColum()
265 sqlStr = "ALTER TABLE " + tableName + " ADD " + columnName + " " + columnType + " DEFAULT " + defValue + ";"; in AddRdbColum()
261 AddRdbColum(NativeRdb::RdbStore& store, const std::string& tableName, const std::string& columnName, const std::string& columnType, const std::string& defValue) AddRdbColum() argument
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dsim_test.cpp1406 std::string defValue = ""; in HWTEST_F() local
1416 telProfileUtil->ObtainString(key, defValue); in HWTEST_F()
/base/startup/init/services/init/
H A Dinit_service_manager.c621 static int GetMapValue(const char *name, const InitArgInfo *infos, int argNum, int defValue) in GetMapValue() argument
624 return defValue; in GetMapValue()
631 return defValue; in GetMapValue()

Completed in 16 milliseconds