Home
last modified time | relevance | path

Searched refs:Preferences (Results 1 - 25 of 61) sorted by relevance

123

/foundation/communication/nfc/services/src/external_deps/
H A Dnfc_preferences.cpp37 std::shared_ptr<NativePreferences::Preferences> NfcPreferences::GetPreference(const std::string& fileName) in GetPreference()
45 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in SetString()
57 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in GetString()
68 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in SetInt()
80 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in GetInt()
91 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in Clear()
103 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in Delete()
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/src/
H A Dmock_preferences_helper.cpp20 std::shared_ptr<Preferences> mockPreference = nullptr;
21 void MockPreferences(std::shared_ptr<Preferences> pre, int errCode) in MockPreferences()
30 std::shared_ptr<Preferences> PreferencesHelper::GetPreferences(const Options& options, int& errCode) in GetPreferences()
/foundation/arkui/ace_engine/adapter/ohos/capability/preference/
H A Dstorage_impl.cpp19 std::shared_ptr<NativePreferences::Preferences> StorageImpl::GetPreference(const std::string& fileName) in GetPreference()
32 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in SetString()
42 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in GetString()
50 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in Clear()
60 std::shared_ptr<NativePreferences::Preferences> pref = GetPreference(fileName_); in Delete()
H A Dstorage_impl.h58 std::shared_ptr<NativePreferences::Preferences> GetPreference(const std::string& fileName);
61 std::unordered_map<std::string, std::shared_ptr<NativePreferences::Preferences>> preferences_;
/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/
H A Ddevice_timed_collect_tool.h47 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& value);
49 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const std::string& value);
55 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& defValue);
57 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const std::string& defValue);
58 std::shared_ptr<NativePreferences::Preferences> ptr_ = nullptr;
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/
H A Dnetfirewall_preference_helper.h95 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int32_t &value);
97 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &value);
101 int32_t ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key,
104 bool ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue);
106 std::shared_ptr<NativePreferences::Preferences> ptr_ = nullptr;
/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_helper_test.cpp67 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences("/data/test/test_helper", errCode); in HWTEST_F()
86 * @tc.desc: error testcase of Preferences
92 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences("", errCode); in HWTEST_F()
111 * @tc.desc: error testcase of Preferences
117 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences("", errCode); in HWTEST_F()
147 std::shared_ptr<Preferences> preferences = PreferencesHelper::GetPreferences(option, errCode); in HWTEST_F()
161 std::shared_ptr<Preferences> preferences = PreferencesHelper::GetPreferences(option, errCode); in HWTEST_F()
H A Dpreferences_file_test.cpp55 int PreferencesPutValue(std::shared_ptr<Preferences> pref, const std::string &intKey, int intValue, in PreferencesPutValue()
88 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
117 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
148 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
206 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
H A Dpreferences_xml_utils_test.cpp88 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(fileName, errCode); in HWTEST_F()
169 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
207 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
247 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
287 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
317 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
349 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
381 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(file, errCode); in HWTEST_F()
415 std::shared_ptr<Preferences> pref = PreferencesHelper::GetPreferences(fileName, errCode); in HWTEST_F()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/include/
H A Dnapi_preferences.h38 using Preferences = NativePreferences::Preferences;
41 class PreferencesProxy : public JSProxy<Preferences> {
45 static napi_status NewInstance(napi_env env, std::shared_ptr<Preferences> value, napi_value *instance);
67 static std::pair<PreferencesProxy *, std::weak_ptr<Preferences>> GetSelfInstance(napi_env env, napi_value self);
92 } // namespace OHOS::Sendable::Preferences
/foundation/distributeddatamgr/preferences/frameworks/js/napi/preferences/include/
H A Dnapi_preferences.h37 using Preferences = NativePreferences::Preferences;
40 class PreferencesProxy : public JSProxy<Preferences> {
44 static napi_status NewInstance(napi_env env, std::shared_ptr<Preferences> value, napi_value *instance);
64 static std::pair<PreferencesProxy *, std::weak_ptr<Preferences>> GetSelfInstance(napi_env env, napi_value self);
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Ddevice_timed_collect_tool.cpp74 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& value) in SaveInner()
84 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const string& value) in SaveInner()
126 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const int64_t& defValue) in ObtainInner()
132 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string& key, const std::string& defValue) in ObtainInner()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_preference_helper.cpp79 bool NetFirewallPreferenceHelper::SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, in SaveInner()
89 bool NetFirewallPreferenceHelper::SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, in SaveInner()
118 int32_t NetFirewallPreferenceHelper::ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, in ObtainInner()
124 bool NetFirewallPreferenceHelper::ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, in ObtainInner()
/foundation/distributeddatamgr/preferences/frameworks/cj/src/
H A Dpreferences_interface.h24 namespace Preferences { namespace
63 std::shared_ptr<NativePreferences::Preferences> proxy;
71 } // namespace Preferences
H A Dpreferences_utils.h24 namespace Preferences { namespace
H A Dpreferences_utils.cpp19 namespace Preferences { namespace
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences_helper.h44 * @return Returns a Preferences instance matching the specified preferences file name.
46 PREF_API_EXPORT static std::shared_ptr<Preferences> GetPreferences(const Options &options, int &errCode);
72 // use bool to mark whether Preferences is EnhancePreferences or not
73 static std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>> prefsCache_;
/foundation/bundlemanager/app_domain_verify/frameworks/common/include/config/
H A Dwhite_list_config_mgr.h37 std::shared_ptr<NativePreferences::Preferences> GetPreference(const std::string& path);
40 std::shared_ptr<NativePreferences::Preferences> preferences_;
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/
H A Ddfx_analyzer.cpp44 shared_ptr<NativePreferences::Preferences> prefs = in FlushThumbnail()
69 shared_ptr<NativePreferences::Preferences> prefs = in FlushCommonBehavior()
98 shared_ptr<NativePreferences::Preferences> prefs = in FlushDeleteBehavior()
119 shared_ptr<NativePreferences::Preferences> prefs = in FlushAdaptationToMovingPhoto()
H A Ddfx_worker.cpp67 shared_ptr<NativePreferences::Preferences> prefs = in HandleLoopTask()
93 shared_ptr<NativePreferences::Preferences> prefs = in Prepare()
118 shared_ptr<NativePreferences::Preferences> prefs = in IsThumbnailUpdate()
137 shared_ptr<NativePreferences::Preferences> prefs = in IsDeleteStatisticUpdate()
/foundation/distributeddatamgr/preferences/frameworks/ndk/src/
H A Doh_preferences.cpp33 (std::shared_ptr<OHOS::NativePreferences::Preferences> preferences) : preferences_(preferences) in OH_PreferencesImpl()
93 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= in OH_Preferences_Open()
98 LOG_ERROR("Get native Preferences failed: %{public}s, errcode: %{public}d", in OH_Preferences_Open()
124 static std::shared_ptr<OHOS::NativePreferences::Preferences> GetNativePreferencesFromOH(OH_Preferences *preference) in GetNativePreferencesFromOH()
134 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= preferencesImpl->GetNativePreferences(); in GetNativePreferencesFromOH()
161 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= preferencesImpl->GetNativePreferences(); in OH_Preferences_Close()
181 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= GetNativePreferencesFromOH(preference); in OH_Preferences_GetInt()
210 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= GetNativePreferencesFromOH(preference); in OH_Preferences_GetString()
272 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreferences= GetNativePreferencesFromOH(preference); in OH_Preferences_GetBool()
300 std::shared_ptr<OHOS::NativePreferences::Preferences> innerPreference in OH_Preferences_SetInt()
[all...]
/foundation/distributeddatamgr/preferences/frameworks/ndk/include/
H A Doh_preferences_impl.h53 explicit OH_PreferencesImpl(std::shared_ptr<OHOS::NativePreferences::Preferences> preferences);
58 std::shared_ptr<OHOS::NativePreferences::Preferences> GetNativePreferences() in GetNativePreferences()
72 std::shared_ptr<OHOS::NativePreferences::Preferences> preferences_;
/foundation/distributeddatamgr/preferences/frameworks/js/napi/storage/include/
H A Dnapi_storage.h41 explicit StorageProxy(std::shared_ptr<OHOS::NativePreferences::Preferences> &value);
63 std::shared_ptr<OHOS::NativePreferences::Preferences> value_;
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_helper.cpp34 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>> PreferencesHelper::prefsCache_;
139 std::shared_ptr<Preferences> PreferencesHelper::GetPreferences(const Options &options, int &errCode) in GetPreferences()
166 std::shared_ptr<Preferences> pref = nullptr; in GetPreferences()
200 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>>::iterator it = prefsCache_.find(realPath); in DeletePreferences()
204 LOG_INFO("Begin to Delete Preferences: %{public}s", ExtractFileName(path).c_str()); in DeletePreferences()
252 std::map<std::string, std::pair<std::shared_ptr<Preferences>, bool>>::iterator it = prefsCache_.find(realPath); in RemovePreferencesFromCache()
/foundation/multimodalinput/input/service/module_loader/src/
H A Dmultimodal_input_preferences_manager.cpp84 std::shared_ptr<NativePreferences::Preferences> mousePref = in GetPreferencesSettings()
87 std::shared_ptr<NativePreferences::Preferences> keyboardPref = in GetPreferencesSettings()
90 std::shared_ptr<NativePreferences::Preferences> touchpadPref = in GetPreferencesSettings()
194 std::shared_ptr<NativePreferences::Preferences> pref = in SetIntValue()
230 std::shared_ptr<NativePreferences::Preferences> pref = in SetBoolValue()
251 std::shared_ptr<NativePreferences::Preferences> pref = in GetShortKeyDuration()
272 std::shared_ptr<NativePreferences::Preferences> pref = in SetShortKeyDuration()

Completed in 8 milliseconds

123