/base/update/updateservice/services/core/ability/preference/src/ |
D | preference_utils_empty.cpp | 59 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument 61 return defValue; in ObtainString() 64 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument 66 return defValue; in ObtainInt() 69 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument 71 return defValue; in ObtainBool() 74 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument 76 return defValue; in ObtainLong() 79 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument 81 return defValue; in ObtainFloat() [all …]
|
D | preference_utils.cpp | 118 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() argument 120 return Obtain(key, defValue); in ObtainString() 123 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() argument 125 return Obtain(key, defValue); in ObtainInt() 128 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() argument 130 return Obtain(key, defValue); in ObtainBool() 133 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() argument 135 return Obtain(key, defValue); in ObtainLong() 138 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() argument 140 return Obtain(key, defValue); in ObtainFloat() [all …]
|
/base/update/updateservice/services/core/ability/preference/include/ |
D | preferences_utils.h | 41 std::string ObtainString(const std::string &key, const std::string &defValue); 42 int ObtainInt(const std::string &key, int defValue); 43 bool ObtainBool(const std::string &key, bool defValue); 44 int64_t ObtainLong(const std::string &key, int64_t defValue); 45 float ObtainFloat(const std::string &key, float defValue); 75 T Obtain(const std::string &key, const T &defValue); 79 …ared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &defValue); 80 …(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &defValue); 81 …std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue); 83 …::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &defValue); [all …]
|
/base/telephony/core_service/utils/preferences/include/ |
D | tel_profile_util.h | 34 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/ |
D | tel_profile_util.cpp | 45 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()
|
/base/powermgr/battery_manager/test/unittest/src/ |
D | battery_config_test.cpp | 172 int32_t defValue = 100; variable 173 EXPECT_EQ(defValue, g_configTest.GetInt("XXXXXXXXX", defValue)); 185 int32_t defValue = 200; variable 186 EXPECT_EQ(defValue, g_configTest.GetInt("X.X.X.X.X.X", defValue)); 198 int32_t defValue = 300; variable 199 EXPECT_EQ(defValue, g_configTest.GetInt("", defValue));
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_definition_cache.cpp | 154 for (const GenericValues& defValue : permDefRes) { in RestorePermDefInfo() local 156 AccessTokenID tokenId = (AccessTokenID)defValue.GetInt(TokenFiledConst::FIELD_TOKEN_ID); in RestorePermDefInfo() 157 int32_t ret = DataTranslator::TranslationIntoPermissionDef(defValue, def); in RestorePermDefInfo()
|
/base/startup/init/services/include/param/ |
D | sys_param.h | 35 CachedHandle CachedParameterCreate(const char *name, const char *defValue);
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_persist_helper.h | 38 bool QueryParamBoolean(const std::string key, bool defValue);
|
/base/telephony/sms_mms/services/sms/ |
D | sms_persist_helper.cpp | 230 bool SmsPersistHelper::QueryParamBoolean(const std::string key, bool defValue) in QueryParamBoolean() argument 234 std::string defStrValue = defValue ? "1" : "0"; in QueryParamBoolean() 252 return defValue; in QueryParamBoolean()
|
/base/startup/init/services/param/base/ |
D | param_base.c | 566 CachedHandle CachedParameterCreate(const char *name, const char *defValue) in CachedParameterCreate() argument 568 PARAM_CHECK(name != NULL && defValue != NULL, return NULL, "Invalid name or default value"); in CachedParameterCreate() 572 uint32_t valueLen = strlen(defValue); in CachedParameterCreate() 574 …PARAM_CHECK(valueLen < PARAM_CONST_VALUE_LEN_MAX, return NULL, "Illegal param value %s", defValue); in CachedParameterCreate() 576 …ARAM_CHECK(valueLen < PARAM_VALUE_LEN_MAX, return NULL, "Illegal param value %s length", defValue); in CachedParameterCreate() 609 ret = PARAM_STRCPY(param->paramValue, param->bufferLen, defValue); in CachedParameterCreate()
|
/base/startup/init/interfaces/kits/jskits/src_enhance/ |
D | native_parameters_js.cpp | 255 std::vector<char> defValue(MAX_VALUE_LENGTH, 0); in GetSync() local 261 ret = GetParamString(env, args[1], defValue.data(), MAX_VALUE_LENGTH, &valueSize); in GetSync() 269 …ret = GetParameter(keyBuf.data(), (valueSize == 0) ? nullptr : defValue.data(), value.data(), MAX_… in GetSync() 271 ret, keyBuf.data(), value.data(), defValue.data()); in GetSync()
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | napi_mms.cpp | 753 bool GetNapiBooleanValue(napi_env env, napi_value napiValue, std::string name, bool defValue = fals… in GetNapiBooleanValue() argument 757 bool result = defValue; in GetNapiBooleanValue() 761 return defValue; in GetNapiBooleanValue() 765 …GetNapiStringValue(napi_env env, napi_value napiValue, std::string name, std::string defValue = "") in GetNapiStringValue() argument 771 return defValue; in GetNapiStringValue() 775 int32_t GetNapiInt32Value(napi_env env, napi_value napiValue, std::string name, int32_t defValue = … in GetNapiInt32Value() argument 785 return defValue; in GetNapiInt32Value() 788 int64_t GetNapiInt64Value(napi_env env, napi_value napiValue, std::string name, int64_t defValue = … in GetNapiInt64Value() argument 798 return defValue; in GetNapiInt64Value() 801 uint32_t GetNapiUint32Value(napi_env env, napi_value napiValue, std::string name, uint32_t defValue… in GetNapiUint32Value() argument [all …]
|
/base/startup/init/services/init/ |
D | init_service_manager.c | 584 static int GetMapValue(const char *name, const InitArgInfo *infos, int argNum, int defValue) in GetMapValue() argument 587 return defValue; in GetMapValue() 594 return defValue; in GetMapValue()
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | sim_test.cpp | 1380 std::string defValue = ""; variable 1390 telProfileUtil->ObtainString(key, defValue);
|