/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/serializable/ |
H A D | serializable.cpp | 19 Serializable::json Serializable::Marshall() const in Marshall() 26 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall() 42 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson() 58 bool Serializable::IsJson(const std::string &jsonStr) in IsJson() 66 bool Serializable::GetValue(const json &node, const std::string &name, std::string &value) in GetValue() 76 bool Serializable::GetValue(const json &node, const std::string &name, uint32_t &value) in GetValue() 86 bool Serializable::GetValue(const json &node, const std::string &name, int32_t &value) in GetValue() 96 bool Serializable [all...] |
/foundation/distributeddatamgr/pasteboard/framework/framework/serializable/ |
H A D | serializable.cpp | 19 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall() 30 std::string Serializable::Marshall() const in Marshall() 43 bool Serializable::GetValue(const json node, const std::string &name, std::string &value) in GetValue() 53 bool Serializable::GetValue(const json node, const std::string &name, uint8_t &value) in GetValue() 58 bool Serializable::GetValue(const json node, const std::string &name, uint16_t &value) in GetValue() 63 bool Serializable::GetValue(const json node, const std::string &name, uint32_t &value) in GetValue() 68 bool Serializable::GetValue(const json node, const std::string &name, uint64_t &value) in GetValue() 73 bool Serializable::GetValue(const json node, const std::string &name, int32_t &value) in GetValue() 78 bool Serializable::GetValue(const json node, const std::string &name, int64_t &value) in GetValue() 83 bool Serializable [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/appdatafwk/src/ |
H A D | serializable.cpp | 18 Serializable::json Serializable::Marshall() const in Marshall() 25 bool Serializable::Unmarshall(const std::string &jsonStr) in Unmarshall() 41 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson() 57 bool Serializable::IsJson(const std::string &jsonStr) in IsJson() 65 bool Serializable::GetValue(const json &node, const std::string &name, std::string &value) in GetValue() 75 bool Serializable::GetValue(const json &node, const std::string &name, uint32_t &value) in GetValue() 85 bool Serializable::GetValue(const json &node, const std::string &name, int32_t &value) in GetValue() 95 bool Serializable [all...] |
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | interface_info.cpp | 28 { InterfaceInfoKey::DYNAMIC_MAC, Serializable::ValueType::STRING }, 29 { InterfaceInfoKey::INTERFACE_NAME, Serializable::ValueType::STRING }, 30 { InterfaceInfoKey::CAPABILITY, Serializable::ValueType::INT }, 31 { InterfaceInfoKey::WIFI_DIRECT_ROLE, Serializable::ValueType::INT }, 32 { InterfaceInfoKey::BASE_MAC, Serializable::ValueType::STRING }, 33 { InterfaceInfoKey::PHYSICAL_RATE, Serializable::ValueType::INT }, 34 { InterfaceInfoKey::SUPPORT_BAND, Serializable::ValueType::BYTE }, 35 { InterfaceInfoKey::CHANNEL_AND_BANDWIDTH, Serializable::ValueType::BYTE_ARRAY}, 36 { InterfaceInfoKey::COEXIST_CHANNEL_LIST, Serializable::ValueType::INT_ARRAY }, 37 { InterfaceInfoKey::HML_LINK_COUNT, Serializable [all...] |
H A D | negotiate_message.cpp | 55 { NegotiateMessageKey::MSG_TYPE, Serializable::ValueType::INT }, 56 { NegotiateMessageKey::SESSION_ID, Serializable::ValueType::UINT }, 57 { NegotiateMessageKey::WIFI_CFG_TYPE, Serializable::ValueType::INT }, 58 { NegotiateMessageKey::WIFI_CFG_INFO, Serializable::ValueType::BYTE_ARRAY }, 59 { NegotiateMessageKey::IPV4_INFO_ARRAY, Serializable::ValueType::IPV4_INFO_ARRAY }, 60 { NegotiateMessageKey::PREFER_LINK_MODE, Serializable::ValueType::INT }, 61 { NegotiateMessageKey::IS_MODE_STRICT, Serializable::ValueType::BOOL }, 62 { NegotiateMessageKey::PREFER_LINK_BANDWIDTH, Serializable::ValueType::INT }, 63 { NegotiateMessageKey::IS_BRIDGE_SUPPORTED, Serializable::ValueType::BOOL }, 64 { NegotiateMessageKey::LINK_INFO, Serializable [all...] |
H A D | link_info.cpp | 24 { LinkInfoKey::LOCAL_INTERFACE, Serializable::ValueType::STRING }, 25 { LinkInfoKey::REMOTE_INTERFACE, Serializable::ValueType::STRING }, 26 { LinkInfoKey::LOCAL_LINK_MODE, Serializable::ValueType::INT }, 27 { LinkInfoKey::REMOTE_LINK_MODE, Serializable::ValueType::INT }, 28 { LinkInfoKey::CENTER_20M, Serializable::ValueType::INT }, 29 { LinkInfoKey::CENTER_FREQUENCY1, Serializable::ValueType::INT }, 30 { LinkInfoKey::CENTER_FREQUENCY2, Serializable::ValueType::INT }, 31 { LinkInfoKey::BANDWIDTH, Serializable::ValueType::INT }, 32 { LinkInfoKey::SSID, Serializable::ValueType::STRING }, 33 { LinkInfoKey::BSSID, Serializable [all...] |
H A D | wifi_config_info.cpp | 23 {WifiConfigInfoKey::INTERFACE_INFO_ARRAY, Serializable::ValueType::INTERFACE_INFO_ARRAY}, 24 { WifiConfigInfoKey::DEVICE_ID, Serializable::ValueType::STRING }, 47 switch (Serializable::ValueType(type)) { in Unmarshalling() 48 case Serializable::ValueType::INTERFACE_INFO_ARRAY: in Unmarshalling() 68 Serializable::ValueType::INTERFACE_INFO_ARRAY, output.data(), output.size()); in MarshallingInterfaceArray() 78 case Serializable::ValueType::INTERFACE_INFO_ARRAY: in Marshalling()
|
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | serializable_test.cpp | 33 Serializable::json ToJson(const std::string &str); 61 Serializable::json SerializableTest::ToJson(const std::string &str) in ToJson() 162 auto ret = Serializable::GetValue(node, GET_NAME(param1), res1); in HWTEST_F() 165 ret = Serializable::GetValue(node, GET_NAME(param2), res2); in HWTEST_F() 168 ret = Serializable::GetValue(node, GET_NAME(param3), res3); in HWTEST_F() 171 ret = Serializable::GetValue(node, GET_NAME(param4), res4); in HWTEST_F() 174 ret = Serializable::GetValue(node, GET_NAME(param5), res5); in HWTEST_F() 198 auto ret = Serializable::GetValue(json, "key", value); in HWTEST_F() 204 ret = Serializable::GetValue(json, "key", value); in HWTEST_F() 223 auto ret = Serializable in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/metadata/ |
H A D | store_debug_info.h | 21 struct API_EXPORT StoreDebugInfo final : public Serializable { 22 struct FileInfo final : public Serializable { 29 bool Marshal(Serializable::json &node) const override; 30 bool Unmarshal(const Serializable::json &node) override; 35 bool Marshal(Serializable::json &node) const override; 36 bool Unmarshal(const Serializable::json &node) override;
|
/foundation/distributeddatamgr/relational_store/test/native/appdatafwk/unittest/ |
H A D | serializable_test.cpp | 27 struct Normal final : public Serializable { 66 struct NormalEx final : public Serializable { 137 * @tc.name: Delete Serializable 144 ASSERT_FALSE(std::is_destructible<Serializable>::value); in HWTEST_F() 174 ASSERT_FALSE(Serializable::IsJson(str)); in HWTEST_F() 175 ASSERT_TRUE(Serializable::IsJson(jsonStr)); in HWTEST_F() 186 Serializable::json result = Serializable::ToJson(jsonStr); in HWTEST_F() 198 Serializable::json result = Serializable in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | water_version_manager_test.cpp | 160 ASSERT_EQ(waterVersion, Serializable::Marshall(staticMeta_)) << "meta: " << waterVersion; in HWTEST_F() 162 ASSERT_TRUE(Serializable::Unmarshall(waterVersion, meta)); in HWTEST_F() 167 Serializable::Marshall(meta))) in HWTEST_F() 168 << Serializable::Marshall(meta); in HWTEST_F() 171 ASSERT_EQ(Serializable::Marshall(meta), waterVersion); in HWTEST_F() 193 ASSERT_EQ(waterVersion, Serializable::Marshall(staticMeta_)) << "meta: " << waterVersion; in HWTEST_F() 195 ASSERT_TRUE(Serializable::Unmarshall(waterVersion, meta)); in HWTEST_F() 200 Serializable::Marshall(meta))); in HWTEST_F() 208 Serializable::Marshall(meta))); in HWTEST_F() 229 ASSERT_EQ(waterVersion, Serializable in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/ |
H A D | schema_meta.cpp | 18 bool SchemaMeta::Marshal(Serializable::json &node) const in Marshal() 27 bool SchemaMeta::Unmarshal(const Serializable::json &node) in Unmarshal() 51 bool Database::Marshal(Serializable::json &node) const in Marshal() 59 bool Database::Unmarshal(const Serializable::json &node) in Unmarshal() 67 bool Table::Marshal(Serializable::json &node) const in Marshal() 76 bool Table::Unmarshal(const Serializable::json &node) in Unmarshal() 85 bool Field::Marshal(Serializable::json &node) const in Marshal() 95 bool Field::Unmarshal(const Serializable::json &node) in Unmarshal()
|
H A D | cloud_extra_data.cpp | 20 bool Context::Marshal(Serializable::json &node) const in Marshal() 27 bool Context::Unmarshal(const Serializable::json &node) in Unmarshal() 34 bool ExtensionInfo::Marshal(Serializable::json &node) const in Marshal() 44 bool ExtensionInfo::Unmarshal(const Serializable::json &node) in Unmarshal() 66 bool ExtraData::Marshal(Serializable::json &node) const in Marshal() 73 bool ExtraData::Unmarshal(const Serializable::json &node) in Unmarshal()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/serializable/ |
H A D | serializable.h | 31 struct Serializable { struct 64 API_EXPORT static bool GetValue(const json &node, const std::string &name, Serializable &value); 81 API_EXPORT static bool SetValue(json &node, const Serializable &value); 89 API_EXPORT ~Serializable() = default; 124 bool Serializable::GetValue(const json &node, const std::string &name, std::vector<T> &values) in GetValue() 139 bool Serializable::SetValue(json &node, const std::vector<T> &values) in SetValue() 152 bool Serializable::GetValue(const json &node, const std::string &name, std::map<std::string, T> &values) in GetValue() 166 bool Serializable::SetValue(json &node, const std::map<std::string, T> &values) in SetValue() 177 bool Serializable::GetValue(const json &node, const std::string &name, T *&value) in GetValue() 196 bool Serializable [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/metadata/ |
H A D | store_debug_info.cpp | 18 bool StoreDebugInfo::FileInfo::Marshal(Serializable::json &node) const in Marshal() 29 bool StoreDebugInfo::FileInfo::Unmarshal(const Serializable::json &node) in Unmarshal() 40 bool StoreDebugInfo::Marshal(Serializable::json &node) const in Marshal() 46 bool StoreDebugInfo::Unmarshal(const Serializable::json &node) in Unmarshal()
|
/foundation/distributeddatamgr/pasteboard/services/load/src/ |
H A D | config.cpp | 18 bool Config::Component::Marshal(Serializable::json &node) const in Marshal() 28 bool Config::Component::Unmarshal(const Serializable::json &node) in Unmarshal() 38 bool Config::Marshal(Serializable::json &node) const in Marshal() 50 bool Config::Unmarshal(const Serializable::json &node) in Unmarshal()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | cloud_test.cpp | 141 Serializable::json node1; in HWTEST_F() 174 Serializable::json node1; in HWTEST_F() 207 Serializable::json node1; in HWTEST_F() 245 Serializable::json node1; in HWTEST_F() 247 EXPECT_EQ(Serializable::Marshall(cloudInfo1), to_string(node1)); in HWTEST_F() 251 EXPECT_EQ(Serializable::Marshall(cloudInfo1), Serializable::Marshall(cloudInfo2)); in HWTEST_F() 270 Serializable::json node1; in HWTEST_F() 272 EXPECT_EQ(Serializable::Marshall(cloudInfoAppInfo1), to_string(node1)); in HWTEST_F() 276 EXPECT_EQ(Serializable in HWTEST_F() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/include/model/ |
H A D | checker_config.h | 22 class CheckerConfig final : public Serializable { 24 struct Trust final : public Serializable, public CheckerManager::Trust { 28 struct StaticStore final : public Serializable, public CheckerManager::StoreInfo {
|
H A D | directory_config.h | 22 class DirectoryConfig final : public Serializable { 24 struct DirectoryStrategy final : public Serializable, public DirectoryManager::Strategy {
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
H A D | rdb_cloud_data_translate.h | 36 using Serializable = DistributedData::Serializable; 40 struct InnerAsset : public Serializable {
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/cloud/ |
H A D | cloud_extra_data.h | 23 class API_EXPORT Context final : public Serializable { 31 class API_EXPORT ExtensionInfo final : public Serializable { 45 class API_EXPORT ExtraData final : public Serializable {
|
H A D | schema_meta.h | 20 struct API_EXPORT Field final : public Serializable { 30 struct API_EXPORT Table final : public Serializable { 39 struct API_EXPORT Database final : public Serializable { 48 class API_EXPORT SchemaMeta final : public Serializable {
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/config/src/model/ |
H A D | app_id_mapping_config.cpp | 19 bool AppIdMappingConfig::Marshal(Serializable::json &node) const in Marshal() 25 bool AppIdMappingConfig::Unmarshal(const Serializable::json &node) in Unmarshal()
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/protocol/ |
H A D | json_protocol.cpp | 33 void JsonProtocol::Write(int key, Serializable::ValueType type, const uint8_t *value, size_t size) in Write() 37 case Serializable::ValueType::BOOL: in Write() 40 case Serializable::ValueType::INT: in Write() 43 case Serializable::ValueType::STRING: in Write()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/data/ |
H A D | template_data.cpp | 19 bool TemplateNode::Marshal(DistributedData::Serializable::json &node) const
in Marshal() 26 bool TemplateNode::Unmarshal(const DistributedData::Serializable::json &node)
in Unmarshal() 48 bool TemplateRootNode::Marshal(DistributedData::Serializable::json &node) const
in Marshal() 58 bool TemplateRootNode::Unmarshal(const DistributedData::Serializable::json &node)
in Unmarshal() 88 return DistributedData::Serializable::Marshall(value);
in GetValue() 121 if (!DistributedData::Serializable::Unmarshall(queryResult, data)) {
in Query() 190 bool PredicatesNode::Marshal(DistributedData::Serializable::json &node) const
in Marshal() 196 bool PredicatesNode::Unmarshal(const DistributedData::Serializable::json &node)
in Unmarshal()
|