Home
last modified time | relevance | path

Searched refs:valueStr (Results 1 – 11 of 11) sorted by relevance

/base/powermgr/power_manager/utils/setting/src/
Dsetting_provider.cpp70 std::string valueStr; in GetLongValue() local
71 ErrCode ret = GetStringValue(key, valueStr); in GetLongValue()
75 value = static_cast<int64_t>(strtoll(valueStr.c_str(), nullptr, 10)); in GetLongValue()
81 std::string valueStr; in GetBoolValue() local
82 ErrCode ret = GetStringValue(key, valueStr); in GetBoolValue()
86 value = (valueStr == "true"); in GetBoolValue()
102 std::string valueStr = value ? "true" : "false"; in PutBoolValue() local
103 return PutStringValue(key, valueStr, needNotify); in PutBoolValue()
/base/account/os_account/services/accountmgr/src/
Daccount_data_storage.cpp225 std::string valueStr; in GetAccountInfoById() local
226 ErrCode ret = GetValueFromKvStore(id, valueStr); in GetAccountInfoById()
232 nlohmann::json jsonObject = nlohmann::json::parse(valueStr, nullptr, false); in GetAccountInfoById()
265 …rCode AccountDataStorage::PutValueToKvStore(const std::string &keyStr, const std::string &valueStr) in PutValueToKvStore() argument
273 OHOS::DistributedKv::Value value(valueStr); in PutValueToKvStore()
292 ErrCode AccountDataStorage::GetValueFromKvStore(const std::string &keyStr, std::string &valueStr) in GetValueFromKvStore() argument
317 valueStr = value.ToString(); in GetValueFromKvStore()
323 std::string valueStr; in IsKeyExists() local
324 if (GetValueFromKvStore(keyStr, valueStr) != ERR_OK) { in IsKeyExists()
/base/account/os_account/services/accountmgr/include/
Daccount_data_storage.h43 ErrCode PutValueToKvStore(const std::string &keyStr, const std::string &valueStr);
44 ErrCode GetValueFromKvStore(const std::string &keyStr, std::string &valueStr);
/base/hiviewdfx/hidumper/test/unittest/common/
Dmemory_dumper_test.cpp130 const std::string valueStr = "MemTotal: 2010244 kB"; variable
131 ASSERT_TRUE(MemoryUtil::GetInstance().GetTypeAndValue(valueStr, type, value));
/base/startup/syspara_lite/interfaces/kits/js/src/
Dnative_parameters_js.cpp155 std::string valueStr = valueBuf; in SetSync() local
156 int setResult = SetParameter(keyStr.c_str(), valueStr.c_str()); in SetSync()
193 std::string valueStr = ""; in GetSync() local
202 valueStr = valueBuf; in GetSync()
204 int ret = OHOS::system::GetStringParameter(keyStr, getValue, valueStr); in GetSync()
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_js.cpp151 std::string valueStr = valueBuf; in SetSync() local
152 int setResult = SetParameter(keyStr.c_str(), valueStr.c_str()); in SetSync()
189 std::string valueStr = ""; in GetSync() local
198 valueStr = valueBuf; in GetSync()
200 int ret = OHOS::system::GetStringParameter(keyStr, getValue, valueStr); in GetSync()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dmemory_util.cpp153 string valueStr = str.substr(typePos + 1); in GetTypeAndValue() local
155 value = strtoull(valueStr.c_str(), nullptr, base); in GetTypeAndValue()
/base/security/device_auth/common_lib/impl/src/
Djson_utils.c199 const char *valueStr = GetStringFromJson(jsonObj, key); in GetByteFromJson() local
200 if (valueStr == NULL) { in GetByteFromJson()
203 if (len < strlen(valueStr) / BYTE_TO_HEX_OPER_LENGTH) { in GetByteFromJson()
206 return HexStringToByte(valueStr, byte, len); in GetByteFromJson()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_test.cpp212 std::string valueStr = ""; variable
233 EXPECT_TRUE(mmsHeader->GetTextValue(1, valueStr));
242 EXPECT_FALSE(mmsHeader->SetEncodeStringValue(1, 1, valueStr));
247 EXPECT_TRUE(mmsHeader->GetSmilFileName(valueStr));
Dsms_mms_gtest.cpp2284 std::string valueStr = "valueStr"; variable
2285 mmsBase64.Encode(valueStr);
2286 std::string ret = mmsBase64.Decode(valueStr);
2315 std::string valueStr = "123"; variable
2316 mmsQuotedPrintable.Encode(valueStr);
2317 mmsQuotedPrintable.Decode(valueStr, valueStr);
2318 bool ret = mmsQuotedPrintable.Decode("", valueStr);
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences_database.cpp791 std::string valueStr = std::to_string(t); in PutBundlePropertyToDisturbeDB() local
792 int32_t result = rdbDataManager_->InsertData(keyStr, valueStr); in PutBundlePropertyToDisturbeDB()
913 std::string valueStr = entry.second; in ParseBundlePropertyFromDisturbeDB() local
918 func(this, bundleInfo, valueStr); in ParseBundlePropertyFromDisturbeDB()
926 std::string valueStr = entry.second; in ParseSlot() local
935 func(this, slot, valueStr); in ParseSlot()