Lines Matching refs:paramKey
235 std::string MultiUsers::ReadMultiUsersParameter(const std::string& paramKey, const std::string& localId)
237 std::string param = GetParamFromPreferences(paramKey);
257 I18nErrorCode MultiUsers::WriteMultiUsersParameter(const std::string& paramKey, const std::string& paramValue,
260 std::string param = GetParamFromPreferences(paramKey);
288 if (SetParamFromPreferences(paramKey, newParam) != I18nErrorCode::SUCCESS) {
289 HILOG_ERROR_I18N("WriteMultiUsersParameter: set param %{public}s failed", paramKey.c_str());
318 std::string MultiUsers::GetParamFromPreferences(const std::string& paramKey)
325 return preferences->GetString(paramKey, "");
328 I18nErrorCode MultiUsers::SetParamFromPreferences(const std::string& paramKey, const std::string& paramValue)
335 int status = preferences->PutString(paramKey, paramValue);
337 HILOG_ERROR_I18N("SetParamFromPreferences: put param %{public}s failed", paramKey.c_str());