/base/telephony/core_service/utils/preferences/src/ |
H A D | tel_profile_util.cpp | 24 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 D | preferences_util.cpp | 30 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 D | preferences_util.cpp | 28 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 D | preference_utils.cpp | 24 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 D | preferences_utils.h | 57 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 D | preferences_errno.h | 19 namespace OHOS::NativePreferences { namespace in OHOS 21 } // OHOS::NativePreferences
|
H A D | preferences.h | 25 namespace OHOS::NativePreferences { namespace in OHOS 45 } // OHOS::NativePreferences
|
H A D | preferences_helper.h | 27 namespace OHOS::NativePreferences { namespace in OHOS 87 } // namespace OHOS::NativePreferences
|
/base/telephony/core_service/utils/preferences/include/ |
H A D | tel_profile_util.h | 51 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 D | preferences_util.h | 50 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 D | preferences_util.h | 50 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 D | preferred_language.cpp | 144 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 D | multi_users.cpp | 34 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 D | multi_users.h | 56 static std::shared_ptr<NativePreferences::Preferences> preferences;
|
/base/global/i18n/interfaces/native/inner_api/preferred_language/include/ |
H A D | preferred_language.h | 83 static std::shared_ptr<NativePreferences::Preferences> GetI18nAppPreferences();
|
/base/telephony/telephony_data/opkey/src/ |
H A D | rdb_opkey_callback.cpp | 139 return NativePreferences::E_ERROR; in SetPreferOpKeyConfChecksum()
|
/base/telephony/telephony_data/pdp_profile/src/ |
H A D | pdp_profile_ability.cpp | 180 return NativePreferences::E_ERROR; in GetPreferApn() 193 return NativePreferences::E_ERROR; in SetPreferApn()
|
H A D | rdb_pdp_profile_helper.cpp | 238 return NativePreferences::E_ERROR; in SetPreferApnConfChecksum()
|
/base/security/security_guard/test/unittest/data_collect/src/ |
H A D | security_guard_data_collect_test.cpp | 47 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 D | intl_test_extent.cpp | 1845 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()
|