Searched refs:NodeType (Results 1 – 8 of 8) sorted by relevance
/base/update/updater/utils/json/ |
D | json_node.cpp | 23 inline const std::unordered_map<uint16_t, NodeType> &GetJsonTypeMap() in GetJsonTypeMap() 25 static const std::unordered_map<uint16_t, NodeType> jsonTypeMap { in GetJsonTypeMap() 26 …{ cJSON_Object, NodeType::OBJECT }, { cJSON_Array, NodeType::ARRAY }, { cJSON_Number, NodeType::IN… in GetJsonTypeMap() 27 …{ cJSON_String, NodeType::STRING }, { cJSON_False, NodeType::BOOL }, { cJSON_True, NodeType::BOOL… in GetJsonTypeMap() 28 { cJSON_NULL, NodeType::NUL }, in GetJsonTypeMap() 34 JsonNode::JsonNode() : type_ {NodeType::UNKNOWN} in JsonNode() 73 type_ = NodeType::UNKNOWN; in JsonNode() 93 case NodeType::OBJECT: { in Parse() 105 case NodeType::ARRAY: { in Parse() 117 case NodeType::INT: in Parse() [all …]
|
D | json_visitor.h | 91 …if ((node.Type() != NodeType::UNKNOWN && node.Type() != NodeType::NUL && node.Type() != NodeType::… 92 (defaultNode.Type() != NodeType::UNKNOWN && defaultNode.Type() != NodeType::NUL && 93 defaultNode.Type() != NodeType::ARRAY)) {
|
D | json_node.h | 36 enum class NodeType { OBJECT, INT, STRING, ARRAY, BOOL, NUL, UNKNOWN }; enum 79 NodeType Type() const in Type() 103 NodeType type_ {NodeType::UNKNOWN}; /* json node type */
|
/base/update/updater/test/unittest/utils/json/ |
D | utils_json_test.cpp | 79 EXPECT_EQ(node["key"].Type(), NodeType::STRING); 87 EXPECT_EQ(node["key"].Type(), NodeType::INT); 95 EXPECT_EQ(node["key"].Type(), NodeType::BOOL); 103 EXPECT_EQ(node["key"].Type(), NodeType::ARRAY); 114 EXPECT_EQ(node["key"].Type(), NodeType::OBJECT); 122 EXPECT_EQ(node["key1"].Type(), NodeType::NUL); 129 EXPECT_EQ(node.Type(), NodeType::UNKNOWN); 155 EXPECT_EQ(node.Type(), NodeType::OBJECT); 170 EXPECT_EQ(node["key1"].Type(), NodeType::UNKNOWN); 178 EXPECT_EQ(node["key"].Type(), NodeType::STRING); [all …]
|
/base/update/updater/services/ui/ |
D | updater_ui_config.cpp | 107 case NodeType::STRING: { in Init() 116 case NodeType::ARRAY: { in Init()
|
/base/update/updater/services/ui/control/ |
D | callback_manager.cpp | 36 if (cbNodes.Type() != NodeType::ARRAY) { in LoadCallbacks()
|
/base/update/updater/services/ui/view/layout/ |
D | layout_parser.cpp | 73 if (componentNodes.Type() != NodeType::ARRAY) { in ParseViewInfo()
|
/base/update/updater/services/ui/language/ |
D | language_ui.cpp | 101 if (root.Type() != NodeType::OBJECT) { in ParseJson()
|