/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | custom_utd_json_parser.cpp | 45 cJSON* jsonRoot = cJSON_Parse(jsonData.c_str()); in ParseStoredCustomUtdJson() local 46 if (jsonRoot != NULL && cJSON_IsObject(jsonRoot)) { in ParseStoredCustomUtdJson() 47 GetTypeDescriptors(*jsonRoot, UTD_CUSTOM, typesCfg); in ParseStoredCustomUtdJson() 49 cJSON_Delete(jsonRoot); in ParseStoredCustomUtdJson() 61 cJSON* jsonRoot = cJSON_Parse(jsonData.c_str()); in ParseUserCustomUtdJson() local 62 if (jsonRoot != NULL && cJSON_IsObject(jsonRoot)) { in ParseUserCustomUtdJson() 63 GetTypeDescriptors(*jsonRoot, UTD_CUSTOM_DECLAEEARION, typesDeclarations); in ParseUserCustomUtdJson() 64 GetTypeDescriptors(*jsonRoot, UTD_CUSTOM_REFERENC in ParseUserCustomUtdJson() 113 GetTypeDescriptors(const json &jsonRoot, const std::string &nodeName, std::vector<TypeDescriptorCfg> &typesCfg) GetTypeDescriptors() argument [all...] |
H A D | custom_utd_json_parser.h | 40 bool GetTypeDescriptors(const json &jsonRoot, const std::string &nodeName,
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | inspector.cpp | 394 void GetContextInfo(const RefPtr<PipelineContext>& context, std::unique_ptr<JsonValue>& jsonRoot) in GetContextInfo() argument 400 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetContextInfo() 401 jsonRoot->Put(INSPECTOR_HEIGHT, std::to_string(rootHeight * scale).c_str()); in GetContextInfo() 402 jsonRoot->Put(INSPECTOR_RESOLUTION, std::to_string(PipelineBase::GetCurrentDensity()).c_str()); in GetContextInfo() 406 std::unique_ptr<JsonValue> jsonRoot, bool isLayoutInspector, const InspectorFilter& filter = InspectorFilter()) in GetInspectorInfo() 416 jsonRoot->PutRef(INSPECTOR_CHILDREN, std::move(jsonNodeArray)); in GetInspectorInfo() 422 jsonTree->PutRef("content", std::move(jsonRoot)); in GetInspectorInfo() 432 return jsonRoot->ToString(); in GetInspectorInfo() 574 auto jsonRoot = JsonUtil::Create(true); in GetInspector() local 575 jsonRoot in GetInspector() 405 GetInspectorInfo(std::vector<RefPtr<NG::UINode>> children, int32_t pageId, std::unique_ptr<JsonValue> jsonRoot, bool isLayoutInspector, const InspectorFilter& filter = InspectorFilter()) GetInspectorInfo() argument 618 auto jsonRoot = JsonUtil::Create(true); GetInspectorOfNode() local 639 auto jsonRoot = JsonUtil::Create(true); GetSubWindowInspector() local 733 auto jsonRoot = JsonUtil::Create(true); GetSimplifiedInspector() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | inspector.cpp | 162 auto jsonRoot = JsonUtil::Create(true); in GetInspectorTree() local 163 jsonRoot->Put(INSPECTOR_TYPE, INSPECTOR_ROOT); in GetInspectorTree() 168 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetInspectorTree() 169 jsonRoot->Put(INSPECTOR_HEIGHT, std::to_string(rootHeight * scale).c_str()); in GetInspectorTree() 170 jsonRoot->Put(INSPECTOR_RESOLUTION, std::to_string(PipelineBase::GetCurrentDensity()).c_str()); in GetInspectorTree() 174 return jsonRoot->ToString(); in GetInspectorTree() 179 return jsonRoot->ToString(); in GetInspectorTree() 191 jsonRoot->Put(INSPECTOR_CHILDREN, jsonNodeArray); in GetInspectorTree() 197 jsonTree->Put("content", jsonRoot); in GetInspectorTree() 200 return jsonRoot in GetInspectorTree() [all...] |
H A D | inspector_composed_element.cpp | 1302 auto jsonRoot = JsonUtil::Create(true); in GetUseSizeType() local 1304 return jsonRoot; in GetUseSizeType() 1312 jsonRoot->Put(GRID_SIZE_TYPE[index], jsonValue); in GetUseSizeType() 1314 return jsonRoot; in GetUseSizeType()
|
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | inspector_test_ng.cpp | 181 auto jsonRoot = JsonUtil::Create(true); in HWTEST_F() local 184 jsonRoot->Put(inspectorType, inspectorRoot); in HWTEST_F() 186 EXPECT_EQ(test5, jsonRoot->ToString()); in HWTEST_F() 196 EXPECT_EQ(test6, jsonRoot->ToString()); in HWTEST_F()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | layout_inspector.cpp | 327 auto jsonRoot = JsonUtil::Create(true); in HandleStopRecord() local 342 jsonRoot->PutRef(RECNODE_CHILDREN, std::move(jsonNodeArray)); in HandleStopRecord() 344 std::string arrayJsonStr = jsonRoot->ToString(); in HandleStopRecord()
|
/foundation/arkui/ace_engine/frameworks/component_test/core/ |
H A D | component_test_component_impl.h | 65 void GetContextInfo(const RefPtr<NG::PipelineContext>& context, std::unique_ptr<JsonValue>& jsonRoot) const;
|
H A D | component_test_component_impl.cpp | 620 const RefPtr<NG::PipelineContext>& context, std::unique_ptr<JsonValue>& jsonRoot) const in GetContextInfo() 626 jsonRoot->Put(INSPECTOR_WIDTH, std::to_string(rootWidth * scale).c_str()); in GetContextInfo() 627 jsonRoot->Put(INSPECTOR_HEIGHT, std::to_string(rootHeight * scale).c_str()); in GetContextInfo() 628 jsonRoot->Put(INSPECTOR_RESOLUTION, std::to_string(PipelineBase::GetCurrentDensity()).c_str()); in GetContextInfo()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_view_register.cpp | 104 std::unique_ptr<JsonValue> jsonRoot = JsonUtil::ParseJsonString(data); in RegisterCardUpdateCallback() 105 CHECK_NULL_VOID(jsonRoot); in RegisterCardUpdateCallback() 106 auto child = jsonRoot->GetChild(); in RegisterCardUpdateCallback()
|