/base/hiviewdfx/hiview/base/utility/ |
H A D | setting_observer_manager.cpp | 68 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 D | setting_observer_manager.h | 32 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 D | multi_users.h | 41 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 D | utils.h | 33 std::string ReadSystemParameter(const char *paramKey, const int paramLength);
|
/base/global/i18n/frameworks/intl/src/ |
H A D | multi_users.cpp | 235 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 D | utils.cpp | 77 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 D | custom_event_param_dao.cpp | 144 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 D | sys_event_repeat_guard.cpp | 134 [] (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 D | event_export_mgr_test.cpp | 52 [] (const std::string& paramKey) { in HWTEST_F()
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/ |
H A D | export_config_parser.cpp | 80 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 D | export_config_parser.h | 73 bool ParseSettingDbParam(SettingDbParam& settingDbParam, const std::string& paramKey);
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/ |
H A D | event_export_engine.cpp | 121 [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 D | raw_data_builder.cpp | 251 auto paramKey = param->GetKey(); in AppendValue() local 257 if ((*iter)->GetKey() == paramKey) { in AppendValue()
|
/base/security/device_security_level/oem_property/common/ |
H A D | dslm_credential_utils.c | 467 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 D | intl_test.cpp | 1937 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()
|