Home
last modified time | relevance | path

Searched refs:NativePreferences (Results 1 - 20 of 20) sorted by relevance

/base/telephony/core_service/utils/preferences/src/
H A Dtel_profile_util.cpp24 std::shared_ptr<NativePreferences::Preferences> TelProfileUtil::GetProfiles(const std::string &path, int &errCode) in GetProfiles()
26 return NativePreferences::PreferencesHelper::GetPreferences(path, errCode); in GetProfiles()
31 return NativePreferences::PreferencesHelper::DeletePreferences(path_); in DeleteProfiles()
36 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString()
38 return NativePreferences::E_ERROR; in SaveString()
47 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString()
56 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt()
58 return NativePreferences::E_ERROR; in SaveInt()
67 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainInt()
69 return NativePreferences in ObtainInt()
[all...]
/base/telephony/telephony_data/common/src/
H A Dpreferences_util.cpp30 std::shared_ptr<NativePreferences::Preferences> PreferencesUtil::GetProfiles(const std::string &path, int &errCode) in GetProfiles()
32 return NativePreferences::PreferencesHelper::GetPreferences(path, errCode); in GetProfiles()
37 return NativePreferences::PreferencesHelper::DeletePreferences(path_); in DeleteProfiles()
42 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString()
44 return NativePreferences::E_ERROR; in SaveString()
53 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString()
62 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt()
64 return NativePreferences::E_ERROR; in SaveInt()
73 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainInt()
82 std::shared_ptr<NativePreferences in SaveBool()
[all...]
/base/theme/screenlock_mgr/utils/src/
H A Dpreferences_util.cpp28 std::shared_ptr<NativePreferences::Preferences> PreferencesUtil::GetProfiles(const std::string &path, int &errCode) in GetProfiles()
30 return NativePreferences::PreferencesHelper::GetPreferences(path, errCode); in GetProfiles()
35 return NativePreferences::PreferencesHelper::DeletePreferences(path_); in DeleteProfiles()
40 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString()
42 return NativePreferences::E_ERROR; in SaveString()
51 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString()
60 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt()
62 return NativePreferences::E_ERROR; in SaveInt()
71 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainInt()
80 std::shared_ptr<NativePreferences in SaveBool()
[all...]
/base/update/updateservice/services/core/ability/preference/src/
H A Dpreference_utils.cpp24 std::shared_ptr<NativePreferences::Preferences> PreferencesUtil::GetPreference() in GetPreference()
31 std::shared_ptr<NativePreferences::Preferences> ptr = in GetPreference()
32 NativePreferences::PreferencesHelper::GetPreferences(path, errCode); in GetPreference()
45 return NativePreferences::PreferencesHelper::DeletePreferences(path) == NativePreferences::E_OK; in DeletePreference()
76 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); in Save()
88 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &value) in SaveInner()
94 return ptr->PutString(key, value) == NativePreferences::E_OK; in SaveInner()
98 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &value) in SaveInner()
104 return ptr->PutInt(key, value) == NativePreferences in SaveInner()
[all...]
/base/update/updateservice/services/core/ability/preference/include/
H A Dpreferences_utils.h57 std::shared_ptr<NativePreferences::Preferences> GetPreference();
67 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &value);
68 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &value);
69 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &value);
70 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &value);
71 bool SaveInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const float &value);
78 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &defValue);
79 int ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &defValue);
80 bool ObtainInner(std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue);
82 std::shared_ptr<NativePreferences
[all...]
/base/security/security_guard/test/unittest/mock/preferences/
H A Dpreferences_errno.h19 namespace OHOS::NativePreferences { namespace in OHOS
21 } // OHOS::NativePreferences
H A Dpreferences.h25 namespace OHOS::NativePreferences { namespace in OHOS
45 } // OHOS::NativePreferences
H A Dpreferences_helper.h27 namespace OHOS::NativePreferences { namespace in OHOS
87 } // namespace OHOS::NativePreferences
/base/telephony/core_service/utils/preferences/include/
H A Dtel_profile_util.h51 std::shared_ptr<NativePreferences::Preferences> GetProfiles(const std::string &path, int &errCode);
55 int errCode_ = NativePreferences::E_OK;
/base/telephony/telephony_data/common/include/
H A Dpreferences_util.h50 std::shared_ptr<NativePreferences::Preferences> GetProfiles(const std::string &path, int &errCode);
54 int errCode_ = NativePreferences::E_OK;
/base/theme/screenlock_mgr/utils/include/
H A Dpreferences_util.h50 std::shared_ptr<NativePreferences::Preferences> GetProfiles(const std::string &path, int &errCode);
54 int errCode_ = NativePreferences::E_OK;
/base/global/i18n/frameworks/intl/src/
H A Dpreferred_language.cpp144 std::shared_ptr<NativePreferences::Preferences> PreferredLanguage::GetI18nAppPreferences() in GetI18nAppPreferences()
150 NativePreferences::Options options(i18nPreferencesFilePath); in GetI18nAppPreferences()
151 std::shared_ptr<NativePreferences::Preferences> preferences = in GetI18nAppPreferences()
152 NativePreferences::PreferencesHelper::GetPreferences(options, status); in GetI18nAppPreferences()
162 std::shared_ptr<NativePreferences::Preferences> preferences = GetI18nAppPreferences(); in IsSetAppPreferredLanguage()
177 std::shared_ptr<NativePreferences::Preferences> preferences = GetI18nAppPreferences(); in GetAppPreferredLanguage()
196 std::shared_ptr<NativePreferences::Preferences> preferences = GetI18nAppPreferences(); in SetAppPreferredLanguage()
H A Dmulti_users.cpp34 std::shared_ptr<NativePreferences::Preferences> MultiUsers::preferences = nullptr;
308 OHOS::NativePreferences::Options opt(PREFERENCE_PATH); in InitPreferences()
310 preferences = NativePreferences::PreferencesHelper::GetPreferences(opt, status); in InitPreferences()
/base/global/i18n/frameworks/intl/include/
H A Dmulti_users.h56 static std::shared_ptr<NativePreferences::Preferences> preferences;
/base/global/i18n/interfaces/native/inner_api/preferred_language/include/
H A Dpreferred_language.h83 static std::shared_ptr<NativePreferences::Preferences> GetI18nAppPreferences();
/base/telephony/telephony_data/opkey/src/
H A Drdb_opkey_callback.cpp139 return NativePreferences::E_ERROR; in SetPreferOpKeyConfChecksum()
/base/telephony/telephony_data/pdp_profile/src/
H A Dpdp_profile_ability.cpp180 return NativePreferences::E_ERROR; in GetPreferApn()
193 return NativePreferences::E_ERROR; in SetPreferApn()
H A Drdb_pdp_profile_helper.cpp238 return NativePreferences::E_ERROR; in SetPreferApnConfChecksum()
/base/security/security_guard/test/unittest/data_collect/src/
H A Dsecurity_guard_data_collect_test.cpp47 std::shared_ptr<NativePreferences::MockPreferenceHelperInterface>
48 NativePreferences::PreferencesHelper::instance_ = nullptr;
51 std::mutex NativePreferences::PreferencesHelper::mutex_ {};
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp1845 OHOS::NativePreferences::Options opt(path); in HWTEST_F()
1847 std::shared_ptr<NativePreferences::Preferences> preferences = in HWTEST_F()
1848 NativePreferences::PreferencesHelper::GetPreferences(opt, status); in HWTEST_F()

Completed in 16 milliseconds