Searched refs:PreferencesImpl (Results 1 - 6 of 6) sorted by relevance
/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | preferences_impl.h | 33 class PreferencesImpl : public PreferencesBase, public std::enable_shared_from_this<PreferencesImpl> { class 35 static std::shared_ptr<PreferencesImpl> GetPreferences(const Options &options) in GetPreferences() 37 return std::shared_ptr<PreferencesImpl>(new PreferencesImpl(options)); in GetPreferences() 39 virtual ~PreferencesImpl(); 63 explicit PreferencesImpl(const Options &options); 70 static void LoadFromDisk(std::shared_ptr<PreferencesImpl> pref); 73 static int WriteToDiskFile(std::shared_ptr<PreferencesImpl> pref); 74 static bool ReadSettingXml(std::shared_ptr<PreferencesImpl> pre [all...] |
/foundation/distributeddatamgr/preferences/frameworks/cj/src/ |
H A D | preferences_ffi.cpp | 34 auto nativePreferences = FFIData::Create<PreferencesImpl>(context, name, dataGroupId, errCode); in FfiOHOSPreferencesGetPreferences() 44 return PreferencesImpl::DeletePreferences(context, name, dataGroupId); in FfiOHOSPreferencesDeletePreferences() 50 return PreferencesImpl::RemovePreferencesFromCache(context, name, dataGroupId); in FfiOHOSPreferencesRemovePreferencesFromCache() 55 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesGet() 65 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesPut() 75 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesGetAll() 85 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesFlush() 96 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesClear() 107 auto instance = FFIData::GetData<PreferencesImpl>(id); in FfiOHOSPreferencesHas() 117 auto instance = FFIData::GetData<PreferencesImpl>(i in FfiOHOSPreferencesDelete() [all...] |
H A D | preferences_impl.cpp | 58 PreferencesImpl::PreferencesImpl(OHOS::AbilityRuntime::Context* context, in PreferencesImpl() function in OHOS::Preferences::PreferencesImpl 86 int32_t PreferencesImpl::DeletePreferences(OHOS::AbilityRuntime::Context* context, const std::string &name, in DeletePreferences() 100 int32_t PreferencesImpl::RemovePreferencesFromCache(OHOS::AbilityRuntime::Context* context, const std::string &name, in RemovePreferencesFromCache() 114 void PreferencesImpl::Flush() in Flush() 124 void PreferencesImpl::Clear() in Clear() 134 int32_t PreferencesImpl::Delete(const std::string &key) in Delete() 144 bool PreferencesImpl::HasKey(const std::string &key) in HasKey() 154 OHOS::FFI::RuntimeType* PreferencesImpl::GetRuntimeType() in GetRuntimeType() 159 OHOS::FFI::RuntimeType* PreferencesImpl [all...] |
H A D | preferences_impl.h | 39 class PreferencesImpl : public OHOS::FFI::FFIData { class 41 explicit PreferencesImpl(OHOS::AbilityRuntime::Context* context,
|
/foundation/distributeddatamgr/preferences/frameworks/native/src/ |
H A D | preferences_impl.cpp | 128 PreferencesImpl::PreferencesImpl(const Options &options) : PreferencesBase(options) in PreferencesImpl() function in OHOS::NativePreferences::PreferencesImpl 136 PreferencesImpl::~PreferencesImpl() in ~PreferencesImpl() 140 int PreferencesImpl::Init() in Init() 148 bool PreferencesImpl::StartLoadFromDisk() in StartLoadFromDisk() 152 ExecutorPool::Task task = [pref = shared_from_this()] { PreferencesImpl::LoadFromDisk(pref); }; in StartLoadFromDisk() 157 void PreferencesImpl::LoadFromDisk(std::shared_ptr<PreferencesImpl> pref) in LoadFromDisk() 164 bool loadResult = PreferencesImpl in LoadFromDisk() [all...] |
H A D | preferences_helper.cpp | 175 pref = PreferencesImpl::GetPreferences(options); in GetPreferences() 176 errCode = std::static_pointer_cast<PreferencesImpl>(pref)->Init(); in GetPreferences() 179 pref = PreferencesImpl::GetPreferences(options); in GetPreferences() 180 errCode = std::static_pointer_cast<PreferencesImpl>(pref)->Init(); in GetPreferences()
|
Completed in 3 milliseconds