Home
last modified time | relevance | path

Searched refs:paramKey (Results 1 - 15 of 15) sorted by relevance

/base/hiviewdfx/hiview/base/utility/
H A Dsetting_observer_manager.cpp68 bool SettingObserverManager::RegisterObserver(const std::string& paramKey, SettingObserver::ObserverCallback callback) in RegisterObserver() argument
70 auto observer = GetSettingObserver(paramKey); in RegisterObserver()
72 HIVIEW_LOGI("observer has been registered with key %{public}s", paramKey.c_str()); in RegisterObserver()
73 UnregisterObserver(paramKey); in RegisterObserver()
77 HIVIEW_LOGE("DataShareHelper is null with key %{public}s", paramKey.c_str()); in RegisterObserver()
80 Uri uri = AssembleUri(paramKey); in RegisterObserver()
81 observer = new SettingObserver(paramKey, callback); in RegisterObserver()
84 HIVIEW_LOGI("succeed to register observer with key %{public}s", paramKey.c_str()); in RegisterObserver()
86 observers_[paramKey] = observer; in RegisterObserver()
90 bool SettingObserverManager::UnregisterObserver(const std::string& paramKey) in UnregisterObserver() argument
111 GetStringValue(const std::string& paramKey, const std::string& defaultVal) GetStringValue() argument
151 AssembleUri(const std::string& paramKey) AssembleUri() argument
156 GetSettingObserver(const std::string& paramKey) GetSettingObserver() argument
[all...]
/base/hiviewdfx/hiview/base/utility/include/
H A Dsetting_observer_manager.h32 SettingObserver(const std::string& paramKey, ObserverCallback callback) in SettingObserver() argument
33 : paramKey_(paramKey), callback_(callback) {} in SettingObserver()
46 bool RegisterObserver(const std::string& paramKey, SettingObserver::ObserverCallback callback);
47 bool UnregisterObserver(const std::string& paramKey);
48 std::string GetStringValue(const std::string& paramKey, const std::string& defaultVal = "");
51 Uri AssembleUri(const std::string& paramKey);
52 sptr<SettingObserver> GetSettingObserver(const std::string& paramKey);
/base/global/i18n/frameworks/intl/include/
H A Dmulti_users.h41 static std::string ReadMultiUsersParameter(const std::string& paramKey, const std::string& localId);
42 static I18nErrorCode WriteMultiUsersParameter(const std::string& paramKey, const std::string& paramValue,
46 static std::string GetParamFromPreferences(const std::string& paramKey);
47 static I18nErrorCode SetParamFromPreferences(const std::string& paramKey, const std::string& paramValue);
H A Dutils.h33 std::string ReadSystemParameter(const char *paramKey, const int paramLength);
/base/global/i18n/frameworks/intl/src/
H A Dmulti_users.cpp235 std::string MultiUsers::ReadMultiUsersParameter(const std::string& paramKey, const std::string& localId) in ReadMultiUsersParameter() argument
237 std::string param = GetParamFromPreferences(paramKey); in ReadMultiUsersParameter()
257 I18nErrorCode MultiUsers::WriteMultiUsersParameter(const std::string& paramKey, const std::string& paramValue, in WriteMultiUsersParameter() argument
260 std::string param = GetParamFromPreferences(paramKey); in WriteMultiUsersParameter()
288 if (SetParamFromPreferences(paramKey, newParam) != I18nErrorCode::SUCCESS) { in WriteMultiUsersParameter()
289 HILOG_ERROR_I18N("WriteMultiUsersParameter: set param %{public}s failed", paramKey.c_str()); in WriteMultiUsersParameter()
318 std::string MultiUsers::GetParamFromPreferences(const std::string& paramKey) in GetParamFromPreferences() argument
325 return preferences->GetString(paramKey, ""); in GetParamFromPreferences()
328 I18nErrorCode MultiUsers::SetParamFromPreferences(const std::string& paramKey, const std::string& paramValue) in SetParamFromPreferences() argument
335 int status = preferences->PutString(paramKey, paramValu in SetParamFromPreferences()
[all...]
H A Dutils.cpp77 std::string ReadSystemParameter(const char *paramKey, const int paramLength) in ReadSystemParameter() argument
80 int status = GetParameter(paramKey, "", param, paramLength); in ReadSystemParameter()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
H A Dcustom_event_param_dao.cpp144 std::string paramKey; in QueryParamkeys() local
145 if (resultSet->GetString(0, paramKey) != NativeRdb::E_OK) { in QueryParamkeys()
150 out.insert(paramKey); in QueryParamkeys()
172 std::string paramKey; in Query() local
174 if (resultSet->GetString(0, paramKey) != NativeRdb::E_OK in Query()
180 params[paramKey] = paramValue; in Query()
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_repeat_guard.cpp134 [] (const std::string& paramKey) { in RegisterListeningUeSwitch()
135 std::string val = SettingObserverManager::GetInstance()->GetStringValue(paramKey); in RegisterListeningUeSwitch()
136 HIVIEW_LOGI("value of param key[%{public}s] is %{public}s", paramKey.c_str(), val.c_str()); in RegisterListeningUeSwitch()
/base/hiviewdfx/hiview/plugins/event_store/event_export/test/unittest/common/
H A Devent_export_mgr_test.cpp52 [] (const std::string& paramKey) { in HWTEST_F()
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/
H A Dexport_config_parser.cpp80 bool ExportConfigParser::ParseSettingDbParam(SettingDbParam& settingDbParam, const std::string& paramKey) in ParseSettingDbParam() argument
82 cJSON* settingDbParamJson = cJSON_GetObjectItem(jsonRoot_, paramKey.c_str()); in ParseSettingDbParam()
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/include/
H A Dexport_config_parser.h73 bool ParseSettingDbParam(SettingDbParam& settingDbParam, const std::string& paramKey);
/base/hiviewdfx/hiview/plugins/event_store/event_export/
H A Devent_export_engine.cpp121 [this, &config] (const std::string& paramKey) { in RegistSettingObserver()
122 std::string val = SettingObserverManager::GetInstance()->GetStringValue(paramKey); in RegistSettingObserver()
123 HIVIEW_LOGI("value of param key[%{public}s] is %{public}s", paramKey.c_str(), val.c_str()); in RegistSettingObserver()
/base/hiviewdfx/hiview/base/event_raw/encoded/
H A Draw_data_builder.cpp251 auto paramKey = param->GetKey(); in AppendValue() local
257 if ((*iter)->GetKey() == paramKey) { in AppendValue()
/base/security/device_security_level/oem_property/common/
H A Ddslm_credential_utils.c467 static int32_t GetDataFromJson(DslmJsonHandle json, const char *paramKey, char *dest, uint32_t destLen) in GetDataFromJson() argument
469 const char *data = DslmGetJsonFieldString(json, paramKey); in GetDataFromJson()
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test.cpp1937 string paramKey = "const.global.language"; in HWTEST_F() local
1939 string res = ReadSystemParameter(paramKey.c_str(), paramLength); in HWTEST_F()
1942 paramKey = "fake system param"; in HWTEST_F()
1943 res = ReadSystemParameter(paramKey.c_str(), paramLength); in HWTEST_F()

Completed in 13 milliseconds