| /ide/tools/previewer/test/unittest/util/ |
| H A D | JsonReaderTest.cpp | 43 Json2::Value val = JsonReader::ParseJsonData2(str); in TEST() 50 Json2::Value school = JsonReader::CreateObject(); in TEST() 53 Json2::Value student = JsonReader::CreateObject(); in TEST() 73 Json2::Value school = JsonReader::CreateObject(); in TEST() 76 Json2::Value books = JsonReader::CreateArray(); in TEST() 100 Json2::Value resultJson = JsonReader::CreateObject(); in TEST() 108 Json2::Value resultJson = JsonReader::CreateObject(); in TEST() 116 Json2::Value resultJson = JsonReader::CreateObject(); in TEST() 118 Json2::Value newJson = JsonReader::DepthCopy(resultJson); in TEST() 125 Json2 in TEST() [all...] |
| /ide/tools/previewer/cli/ |
| H A D | CommandLine.h | 28 CommandLine(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket); 31 void SetCommandResult(const std::string& type, const Json2::Value& resultContent); 32 void SetResultToManager(const std::string& type, const Json2::Value& resultContent, const std::string& messageType); 42 const Json2::Value& args; 44 Json2::Value commandResult = JsonReader::CreateObject(); 45 Json2::Value commandResultToManager = JsonReader::CreateObject(); 109 TouchPressCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket); 119 TouchMoveCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket); 129 TouchReleaseCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket); 139 MouseWheelCommand(CommandType commandType, const Json2 [all...] |
| H A D | CommandLineInterface.h | 31 static void SendJsonData(const Json2::Value&); 36 void ApplyConfig(const Json2::Value& val) const; 37 void ApplyConfigMembers(const Json2::Value& commands, const Json2::Value::Members& members) const; 41 void CreatCommandToSendData(const std::string, const Json2::Value&, const std::string) const; 48 bool ProcessCommandValidate(bool parsingSuccessful, const Json2::Value& jsonData, const std::string& errors) const;
|
| H A D | CommandLineInterface.cpp | 60 void CommandLineInterface::SendJsonData(const Json2::Value& value) in SendJsonData() 67 Json2::Value result = JsonReader::CreateObject(); in SendJSHeapMemory() 70 Json2::Value memory = JsonReader::CreateObject(); in SendJSHeapMemory() 84 Json2::Value result = JsonReader::CreateObject(); in SendWebsocketStartupSignal() 85 Json2::Value args = JsonReader::CreateObject(); in SendWebsocketStartupSignal() 114 Json2::Value jsonData = JsonReader::ParseJsonData2(message); in ProcessCommandMessage() 134 Json2::Value val = jsonData["args"]; in ProcessCommandMessage() 145 const Json2::Value& jsonData, in ProcessCommandValidate() 186 void CommandLineInterface::ApplyConfig(const Json2::Value& val) const in ApplyConfig() 190 Json2 in ApplyConfig() [all...] |
| H A D | CommandLineFactory.h | 30 const Json2::Value& args, 36 CreateObject(CommandLine::CommandType, const Json2::Value&, const LocalSocket& socket); 39 std::unique_ptr<CommandLine> (*)(CommandLine::CommandType, const Json2::Value&, const LocalSocket& socket)>;
|
| H A D | CommandLine.cpp | 39 CommandLine::CommandLine(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in CommandLine() 113 void CommandLine::SetCommandResult(const std::string& resultType, const Json2::Value& resultContent) in SetCommandResult() 121 const Json2::Value& resultContent, in SetResultToManager() 209 TouchPressCommand::TouchPressCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchPressCommand() 238 MouseWheelCommand::MouseWheelCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in MouseWheelCommand() 272 TouchReleaseCommand::TouchReleaseCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchReleaseCommand() 312 TouchMoveCommand::TouchMoveCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in TouchMoveCommand() 333 PowerCommand::PowerCommand(CommandType commandType, const Json2::Value& arg, const LocalSocket& socket) in PowerCommand() 355 Json2::Value resultContent = JsonReader::CreateObject(); in RunGet() 369 VolumeCommand::VolumeCommand(CommandType commandType, const Json2 [all...] |
| H A D | CommandLineFactory.cpp | 78 CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) in CreateCommandLine() 81 Json2::Value commandResult = JsonReader::CreateObject(); in CreateCommandLine() 104 const Json2::Value& args, const LocalSocket& socket) in CreateObject()
|
| /ide/tools/previewer/util/ |
| H A D | JsonReader.h | 28 namespace Json2 { namespace 125 static Json2::Value ParseJsonData2(const std::string& jsonStr); 127 static Json2::Value CreateObject(); 128 static Json2::Value CreateArray(); 129 static Json2::Value CreateBool(const bool value); 130 static Json2::Value CreateString(const std::string& value); 131 static Json2::Value DepthCopy(const Json2::Value& value); 132 static Json2::Value CreateNull();
|
| H A D | TraceTool.h | 21 namespace Json2 { namespace 30 static void SendTraceData(const Json2::Value& value);
|
| H A D | TraceTool.cpp | 49 void TraceTool::SendTraceData(const Json2::Value& value) in SendTraceData() 60 Json2::Value val = JsonReader::CreateObject(); in HandleTrace() 62 Json2::Value detail = JsonReader::CreateObject(); in HandleTrace()
|
| H A D | JsonReader.cpp | 25 namespace Json2 { namespace 639 Json2::Value JsonReader::ParseJsonData2(const std::string& jsonStr) in ParseJsonData2() 641 return Json2::Value(cJSON_Parse(jsonStr.c_str())); in ParseJsonData2() 653 Json2::Value JsonReader::CreateObject() in CreateObject() 655 return Json2::Value(cJSON_CreateObject()); in CreateObject() 658 Json2::Value JsonReader::CreateArray() in CreateArray() 660 return Json2::Value(cJSON_CreateArray()); in CreateArray() 663 Json2::Value JsonReader::CreateBool(const bool value) in CreateBool() 665 return Json2::Value(cJSON_CreateBool(value)); in CreateBool() 668 Json2 [all...] |
| /ide/tools/previewer/test/unittest/cli/ |
| H A D | CommandLineTest.cpp | 74 Json2::Value args = JsonReader::ParseJsonData2(msg); in TEST_F() 84 Json2::Value args; in TEST_F() 94 Json2::Value args; in TEST_F() 106 Json2::Value args1 = JsonReader::CreateNull(); in TEST_F() 112 Json2::Value args2 = JsonReader::ParseJsonData2(jsonStr); in TEST_F() 118 Json2::Value args3 = JsonReader::ParseJsonData2(jsonStr); in TEST_F() 124 Json2::Value args4 = JsonReader::ParseJsonData2(jsonStr); in TEST_F() 144 Json2::Value args1 = JsonReader::CreateNull(); in TEST_F() 151 Json2::Value args2 = JsonReader::ParseJsonData2(jsonStr); in TEST_F() 166 Json2 in TEST_F() [all...] |
| H A D | CommandLineInterfaceTest.cpp | 199 Json2::Value jsonData1 = JsonReader::ParseJsonData2(msg); in TEST() 202 Json2::Value jsonData2 = JsonReader::ParseJsonData2(msg); in TEST() 205 Json2::Value jsonData3 = JsonReader::ParseJsonData2(msg); in TEST() 208 Json2::Value jsonData4 = JsonReader::ParseJsonData2(msg); in TEST() 211 Json2::Value jsonData5 = JsonReader::ParseJsonData2(msg); in TEST() 319 Json2::Value val; in TEST() 328 Json2::Value jsonData = JsonReader::ParseJsonData2(msg); in TEST() 354 Json2::Value val; in TEST() 368 Json2::Value::Members members= { "Language", "Language2", "Language3", "Language4" }; in TEST() 369 Json2 in TEST() [all...] |
| H A D | CommandLineFactoryTest.cpp | 41 Json2::Value jsonData = JsonReader::ParseJsonData2(jsonStr); in TEST()
|
| /ide/tools/previewer/mock/ |
| H A D | SystemCapability.cpp | 57 Json2::Value val = JsonReader::ParseJsonData2(jsonStr); in ReadCapability() 66 Json2::Value val2 = val["systemCapability"]; in ReadCapability() 68 Json2::Value cap = val2.GetArrayItem(i); in ReadCapability()
|
| /ide/tools/previewer/jsapp/lite/ |
| H A D | TimerTaskHandler.cpp | 99 Json2::Value result = JsonReader::CreateObject(); in CheckBrightnessValueChanged() 102 Json2::Value brightness = JsonReader::CreateObject(); in CheckBrightnessValueChanged()
|
| H A D | JsAppImpl.cpp | 247 Json2::Value val = JsonReader::CreateObject(); in StartJsApp()
|
| /ide/tools/previewer/test/mock/jsapp/ |
| H A D | MockJsApp.cpp | 70 void JsApp::LoadDocument(const std::string, const std::string, const Json2::Value&) { in LoadDocument() argument
|
| H A D | MockJsAppImpl.cpp | 69 const Json2::Value& previewContext) in LoadDocument()
|
| /ide/tools/previewer/jsapp/rich/external/ |
| H A D | StageContext.cpp | 79 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in GetModulePathMapFromLoaderJson() 89 Json2::Value jsonObj = rootJson["modulePathMap"]; in GetModulePathMapFromLoaderJson() 93 Json2::Value jsonObjOhm = rootJson["harNameOhmMap"]; in GetModulePathMapFromLoaderJson() 116 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in GetHspAceModuleBuild() 438 Json2::Value rootJson = JsonReader::ParseJsonData2(jsonStr); in ParseMockJsonFile() 542 Json2::Value rootJson1 = JsonReader::ParseJsonData2(moduleJsonStr); in SetPkgContextInfo()
|
| H A D | StageContext.h | 24 namespace Json2 { namespace
|
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.h | 81 void LoadDocument(const std::string, const std::string, const Json2::Value&) override; 148 void ParseSystemParams(OHOS::Ace::Platform::AceRunArgs& args, const Json2::Value& paramObj); 149 void SetSystemParams(OHOS::Ace::Platform::SystemParams& args, const Json2::Value& paramObj);
|
| /ide/tools/previewer/ |
| H A D | RichPreviewer.cpp | 57 Json2::Value commandResult = JsonReader::CreateObject(); in NotifyInspectorChanged()
|
| /ide/tools/previewer/jsapp/ |
| H A D | JsApp.cpp | 183 void JsApp::LoadDocument(const std::string, const std::string, const Json2::Value&) {} in LoadDocument() argument
|
| /ide/tools/previewer/mock/rich/ |
| H A D | VirtualScreenImpl.cpp | 242 Json2::Value val; in PageCallback() 251 Json2::Value val; in LoadContentCallback() 259 Json2::Value val; in FastPreviewCallback()
|