Home
last modified time | relevance | path

Searched refs:PreferencesValue (Results 1 - 25 of 32) sorted by relevance

12

/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_value.cpp20 PreferencesValue::PreferencesValue(const PreferencesValue &preferencesValue) in PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
28 PreferencesValue::PreferencesValue(PreferencesValue &&preferencesValue) noexcept
36 PreferencesValue::PreferencesValue(int value) in PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
41 PreferencesValue::PreferencesValue(int64_ function in OHOS::NativePreferences::PreferencesValue
46 PreferencesValue::PreferencesValue(float value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
51 PreferencesValue::PreferencesValue(double value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
56 PreferencesValue::PreferencesValue(bool value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
61 PreferencesValue::PreferencesValue(const char *value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
66 PreferencesValue::PreferencesValue(std::string value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
71 PreferencesValue::PreferencesValue(std::vector<double> value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
76 PreferencesValue::PreferencesValue(std::vector<std::string> value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
81 PreferencesValue::PreferencesValue(std::vector<bool> value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
86 PreferencesValue::PreferencesValue(std::vector<uint8_t> value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
91 PreferencesValue::PreferencesValue(Object value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
96 PreferencesValue::PreferencesValue(BigInt value) PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
[all...]
H A Dpreferences_value_parcel.cpp25 uint8_t PreferencesValueParcel::GetTypeIndex(const PreferencesValue &value) in GetTypeIndex()
56 uint32_t PreferencesValueParcel::CalSize(PreferencesValue value) in CalSize()
104 int PreferencesValueParcel::MarshallingBasicValueInner(const PreferencesValue &value, const uint8_t type, in MarshallingBasicValueInner()
163 int PreferencesValueParcel::MarshallingBasicValue(const PreferencesValue &value, const uint8_t type, in MarshallingBasicValue()
181 int PreferencesValueParcel::MarshallingStringValue(const PreferencesValue &value, const uint8_t type, in MarshallingStringValue()
222 int PreferencesValueParcel::MarshallingStringArrayValue(const PreferencesValue &value, const uint8_t type, in MarshallingStringArrayValue()
266 int PreferencesValueParcel::MarshallingVecUInt8AfterType(const PreferencesValue &value, uint8_t *startAddr) in MarshallingVecUInt8AfterType()
294 int PreferencesValueParcel::MarshallingVecBigIntAfterType(const PreferencesValue &value, uint8_t *startAddr) in MarshallingVecBigIntAfterType()
330 int PreferencesValueParcel::MarshallingVecDoubleAfterType(const PreferencesValue &value, uint8_t *startAddr) in MarshallingVecDoubleAfterType()
355 int PreferencesValueParcel::MarshallingVecBoolAfterType(const PreferencesValue
[all...]
H A Dpreferences_base.cpp43 PreferencesValue PreferencesBase::Get(const std::string &key, const PreferencesValue &defValue) in Get()
48 int PreferencesBase::Put(const std::string &key, const PreferencesValue &value) in Put()
55 PreferencesValue preferencesValue = Get(key, defValue);
64 PreferencesValue preferencesValue = Get(key, defValue);
72 PreferencesValue preferencesValue = Get(key, defValue);
80 PreferencesValue preferencesValue = Get(key, defValue);
89 PreferencesValue preferencesValue = Get(key, defValue);
98 PreferencesValue preferencesValue = Get(key, defValue);
105 std::map<std::string, PreferencesValue> PreferencesBas
[all...]
H A Dpreferences_enhance_impl.cpp60 PreferencesValue PreferencesEnhanceImpl::Get(const std::string &key, const PreferencesValue &defValue) in Get()
145 int PreferencesEnhanceImpl::Put(const std::string &key, const PreferencesValue &value) in Put()
220 PreferencesValue value; in Delete()
228 std::pair<int, std::map<std::string, PreferencesValue>> PreferencesEnhanceImpl::GetAllInner() in GetAllInner()
230 std::map<std::string, PreferencesValue> map; in GetAllInner()
242 std::map<std::string, PreferencesValue> result; in GetAllInner()
265 std::map<std::string, PreferencesValue> PreferencesEnhanceImpl::GetAll() in GetAll()
268 std::pair<int, std::map<std::string, PreferencesValue>> res = GetAllInner(); in GetAll()
273 const std::string &key, const PreferencesValue in NotifyPreferencesObserver()
[all...]
H A Dpreferences_impl.cpp188 PreferencesValue PreferencesImpl::Get(const std::string &key, const PreferencesValue &defValue) in Get()
203 std::map<std::string, PreferencesValue> PreferencesImpl::GetAll() in GetAll()
286 void ReadXmlElement(const Element &element, std::map<std::string, PreferencesValue> &prefMap) in ReadXmlElement()
288 PreferencesValue value(static_cast<int64_t>(0)); in ReadXmlElement()
302 std::map<std::string, PreferencesValue> values; in ReadSettingXml()
381 void WriteXmlElement(Element &elem, const PreferencesValue &value) in WriteXmlElement()
387 const Options &options, const std::map<std::string, PreferencesValue> &writeToDiskMap) in WriteSettingXml()
393 PreferencesValue value = it->second; in WriteSettingXml()
412 int PreferencesImpl::Put(const std::string &key, const PreferencesValue
[all...]
H A Dpreferences_utils.cpp44 int CheckValue(const PreferencesValue &value) in CheckValue()
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/
H A Dpreferences_value.h53 * The PreferencesValue class of the preference. Various operations on PreferencesValue are provided in this class.
55 class PREF_API_EXPORT PreferencesValue { class
57 PREF_API_EXPORT PreferencesValue() in PreferencesValue() function in OHOS::NativePreferences::PreferencesValue
62 PREF_API_EXPORT ~PreferencesValue() in ~PreferencesValue()
69 PREF_API_EXPORT PreferencesValue(PreferencesValue &&preferencesValue) noexcept;
74 PREF_API_EXPORT PreferencesValue(const PreferencesValue &preferencesValue);
79 * This constructor is used to convert the int input parameter to a value of type PreferencesValue
[all...]
H A Dpreferences.h88 virtual PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) = 0;
100 virtual int Put(const std::string &key, const PreferencesValue &value) = 0;
179 * @return Returns a map, the key is string type and the value is PreferencesValue type.
181 virtual std::map<std::string, PreferencesValue> GetAll() = 0;
407 virtual std::pair<int, PreferencesValue> GetValue(const std::string &key, const PreferencesValue &defValue) in GetValue()
419 virtual std::pair<int, std::map<std::string, PreferencesValue>> GetAllData() in GetAllData()
H A Dpreferences_observer.h45 virtual void OnChange(const std::map<std::string, NativePreferences::PreferencesValue> &records) {}; in OnChange()
/foundation/distributeddatamgr/preferences/frameworks/native/include/
H A Dpreferences_value_parcel.h30 static uint8_t GetTypeIndex(const PreferencesValue &value);
31 static uint32_t CalSize(PreferencesValue value);
32 static int MarshallingPreferenceValue(const PreferencesValue &value, std::vector<uint8_t> &data);
33 static std::pair<int, PreferencesValue> UnmarshallingPreferenceValue(const std::vector<uint8_t> &data);
51 static int MarshallingBasicValue(const PreferencesValue &value, const uint8_t type, std::vector<uint8_t> &data);
52 static int MarshallingStringValue(const PreferencesValue &value, const uint8_t type, std::vector<uint8_t> &data);
53 static int MarshallingStringArrayValue(const PreferencesValue &value, const uint8_t type,
55 static int MarshallingVecUInt8AfterType(const PreferencesValue &value, uint8_t *startAddr);
56 static int MarshallingVecBigIntAfterType(const PreferencesValue &value, uint8_t *startAddr);
57 static int MarshallingVecDoubleAfterType(const PreferencesValue
[all...]
H A Dpreferences_enhance_impl.h43 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override;
45 int Put(const std::string &key, const PreferencesValue &value) override;
49 std::map<std::string, PreferencesValue> GetAll() override;
57 std::pair<int, PreferencesValue> GetValue(const std::string &key, const PreferencesValue &defValue) override;
59 std::pair<int, std::map<std::string, PreferencesValue>> GetAllData() override;
63 const PreferencesValue &value);
65 const std::map<std::string, PreferencesValue> &data);
66 std::pair<int, std::map<std::string, PreferencesValue>> GetAllInne
[all...]
H A Dpreferences_impl.h43 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override;
45 int Put(const std::string &key, const PreferencesValue &value) override;
49 std::map<std::string, PreferencesValue> GetAll() override;
59 std::pair<int, PreferencesValue> GetValue(const std::string &key, const PreferencesValue &defValue) override;
61 std::pair<int, std::map<std::string, PreferencesValue>> GetAllData() override;
66 const std::map<std::string, PreferencesValue> &writeToDiskMap);
72 bool WriteSettingXml(const Options &options, const std::map<std::string, PreferencesValue> &writeToDiskMap);
85 ConcurrentMap<std::string, PreferencesValue> valuesCache
[all...]
H A Dpreferences_base.h48 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override;
50 int Put(const std::string &key, const PreferencesValue &value) override;
64 std::map<std::string, PreferencesValue> GetAll() override;
104 std::pair<int, PreferencesValue> GetValue(const std::string &key, const PreferencesValue &defValue) override;
106 std::pair<int, std::map<std::string, PreferencesValue>> GetAllData() override;
H A Dpreferences_utils.h45 int CheckValue(const PreferencesValue &value);
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/
H A Dmock_preferences.h36 PreferencesValue Get(const std::string& key, const PreferencesValue& defValue) override
38 return PreferencesValue();
40 int Put(const std::string& key, const PreferencesValue& value) override
65 std::map<std::string, PreferencesValue> GetAll() override
67 return std::map<std::string, PreferencesValue>();
/foundation/barrierfree/accessibility/services/aams/test/mock/include/
H A Dmock_preferences.h28 PreferencesValue Get(const std::string &key, const PreferencesValue &defValue) override;
30 int Put(const std::string &key, const PreferencesValue &value) override;
44 std::map<std::string, PreferencesValue> GetAll() override;
/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_test.cpp94 void OnChange(const std::map<std::string, OHOS::NativePreferences::PreferencesValue> &records) override;
115 const std::map<std::string, OHOS::NativePreferences::PreferencesValue> &records) in OnChange()
839 PreferencesValue defValue(static_cast<int64_t>(0)); in HWTEST_F()
840 PreferencesValue stringArrayRes = pref1->Get(KEY_TEST_STRING_ARRAY_ELEMENT, defValue); in HWTEST_F()
844 PreferencesValue boolArrayRes = pref1->Get(KEY_TEST_BOOL_ARRAY_ELEMENT, defValue); in HWTEST_F()
848 PreferencesValue doubleArrayRes = pref1->Get(KEY_TEST_DOUBLE_ARRAY_ELEMENT, defValue); in HWTEST_F()
852 PreferencesValue uint8ArrayRes = pref1->Get(KEY_TEST_UINT8_ARRAY_ELEMENT, defValue); in HWTEST_F()
870 std::map<std::string, PreferencesValue> map = { { KEY_TEST_INT_ELEMENT, 1 }, { KEY_TEST_FLOAT_ELEMENT, 0.1 }, in HWTEST_F()
980 PreferencesValue defValue(static_cast<int64_t>(0)); in HWTEST_F()
981 PreferencesValue re in HWTEST_F()
[all...]
/foundation/filemanagement/dfs_service/test/mock/
H A Dpreference_helper_mock.cpp25 MOCK_METHOD2(Get, PreferencesValue(const std::string &key, const PreferencesValue &defValue));
26 MOCK_METHOD2(Put, int(const std::string &key, const PreferencesValue &value));
33 MOCK_METHOD0(GetAll, std::map<std::string, PreferencesValue>());
/foundation/distributeddatamgr/preferences/frameworks/cj/src/
H A Dpreferences_impl.cpp176 static PreferencesValue CValueTypeToNativeValue(const ValueType &value) in CValueTypeToNativeValue()
178 NativePreferences::PreferencesValue preferencesValue = NativePreferences::PreferencesValue(-1); in CValueTypeToNativeValue()
181 preferencesValue = NativePreferences::PreferencesValue(value.integer); in CValueTypeToNativeValue()
185 preferencesValue = NativePreferences::PreferencesValue(value.float64); in CValueTypeToNativeValue()
189 preferencesValue = NativePreferences::PreferencesValue(std::string(value.string)); in CValueTypeToNativeValue()
193 preferencesValue = NativePreferences::PreferencesValue(value.boolean); in CValueTypeToNativeValue()
201 preferencesValue = NativePreferences::PreferencesValue(bools); in CValueTypeToNativeValue()
209 preferencesValue = NativePreferences::PreferencesValue(doubles); in CValueTypeToNativeValue()
217 preferencesValue = NativePreferences::PreferencesValue(string in CValueTypeToNativeValue()
[all...]
/foundation/distributeddatamgr/preferences/frameworks/ndk/include/
H A Doh_preferences_value_impl.h37 OHOS::NativePreferences::PreferencesValue value_;
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Dnapi_preferences_observer.h32 void OnChange(const std::map<std::string, NativePreferences::PreferencesValue> &records) override;
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Dnapi_preferences_observer.cpp38 void JSPreferencesObserver::OnChange(const std::map<std::string, PreferencesValue> &records) in OnChange()
/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/
H A Ddevice_timed_collect_tool.h35 std::map<std::string, NativePreferences::PreferencesValue> ObtainAll();
/foundation/distributeddatamgr/preferences/frameworks/ndk/src/
H A Doh_preferences.cpp189 auto res = innerPreferences->GetValue(key, OHOS::NativePreferences::PreferencesValue()); in OH_Preferences_GetInt()
219 auto res = innerPreferences->GetValue(key, OHOS::NativePreferences::PreferencesValue()); in OH_Preferences_GetString()
280 auto res = innerPreferences->GetValue(key, OHOS::NativePreferences::PreferencesValue()); in OH_Preferences_GetBool()
424 void NDKPreferencesObserver::OnChange(const std::map<std::string, OHOS::NativePreferences::PreferencesValue> &records) in OnChange()
/foundation/filemanagement/dfs_service/test/unittests/utils/preference/
H A Dcloud_pref_impl_test.cpp33 MOCK_METHOD2(Get, PreferencesValue(const std::string &key, const PreferencesValue &defValue));
34 MOCK_METHOD2(Put, int(const std::string &key, const PreferencesValue &value));
41 MOCK_METHOD0(GetAll, std::map<std::string, PreferencesValue>());

Completed in 11 milliseconds

12