/base/powermgr/power_manager/utils/setting/src/ |
D | setting_provider.cpp | 70 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/ |
D | account_data_storage.cpp | 225 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/ |
D | account_data_storage.h | 43 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/ |
D | memory_dumper_test.cpp | 130 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/ |
D | native_parameters_js.cpp | 155 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/ |
D | native_parameters_js.cpp | 151 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/ |
D | memory_util.cpp | 153 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/ |
D | json_utils.c | 199 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/ |
D | zero_branch_test.cpp | 212 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));
|
D | sms_mms_gtest.cpp | 2284 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/ |
D | notification_preferences_database.cpp | 791 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()
|