| /ide/tools/previewer/util/ |
| H A D | JsonReader.cpp | 26 Value::Value(cJSON* object) : jsonPtr(object), rootNode(true) {} in Value() function in Json2::Value 28 Value::Value(cJSON* object, bool isRoot) : jsonPtr(object), rootNode(isRoot) {} in Value() function in Json2::Value 30 Value::~Value() in ~Value() 41 Value Value::operator[](const char* key) in operator []() 44 return Value(); in operator []() 46 return Value(cJSON_GetObjectItemCaseSensitiv in operator []() [all...] |
| H A D | JsonReader.h | 29 class Value { class 31 Value() = default; 32 explicit Value(cJSON* object); 33 Value(cJSON* object, bool isRoot); 34 ~Value(); 36 Value operator[](const char* key); 37 const Value operator[](const char* key) const; 38 Value operator[](const std::string& key); 39 const Value operator[](const std::string& key) const; 42 Value [all...] |
| H A D | CommandParser.cpp | 154 std::string CommandParser::Value(std::string key) in Value() function in CommandParser 304 if (CheckParamInvalidity(Value("p"), true)) { in IsDebugPortValid() 308 int port = atoi(Value("p").c_str()); in IsDebugPortValid() 317 ILOG("CommandParser debug port: %s", Value("p").c_str()); in IsDebugPortValid() 328 std::string path = Value("j"); in IsAppPathValid() 341 if (CheckParamInvalidity(Value("n"), false)) { in IsAppNameValid() 345 size_t size = Value("n").size(); in IsAppNameValid() 350 appName = Value("n"); in IsAppNameValid() 379 if (CheckParamInvalidity(Value("hs"), true)) { in IsJsHeapValid() 383 int size = atoi(Value("h in IsJsHeapValid() [all...] |
| 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() 86 return CommandParser::GetInstance().Value("ts"); in GetTracePipeName()
|
| H A D | TraceTool.h | 22 class Value; 30 static void SendTraceData(const Json2::Value& value);
|
| /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::Value objVa 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::Value [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::Value versionMember 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::Value [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/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::Value args 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::Value command 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 | JsAppImpl.cpp | 247 Json2::Value val = JsonReader::CreateObject(); in StartJsApp() 261 SetPipeName(parser.Value("s")); in InitJsApp() 264 SetPipePort(parser.Value("lws")); in InitJsApp() 275 SetDebugServerPort(static_cast<uint16_t>(atoi(parser.Value("p").c_str()))); in InitJsApp() 278 SetJsAppPath(parser.Value("j")); in InitJsApp() 280 SetUrlPath(parser.Value("url")); in InitJsApp()
|
| H A D | TimerTaskHandler.cpp | 99 Json2::Value result = JsonReader::CreateObject(); in CheckBrightnessValueChanged() 102 Json2::Value brightness = JsonReader::CreateObject(); in CheckBrightnessValueChanged()
|
| /ide/tools/previewer/ |
| H A D | RichPreviewer.cpp | 57 Json2::Value commandResult = JsonReader::CreateObject(); in NotifyInspectorChanged() 86 SharedData<std::string>(SharedDataType::LANGUAGE, parser.Value("l")); in InitSharedData() 116 CommandLineInterface::GetInstance().Init(parser.Value("s")); in main()
|
| H A D | ThinPreviewer.cpp | 118 CommandLineInterface::GetInstance().Init(parser.Value("s")); in main()
|
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.cpp | 755 void JsAppImpl::ParseSystemParams(OHOS::Ace::Platform::AceRunArgs& args, const Json2::Value& paramObj) in ParseSystemParams() 784 void JsAppImpl::SetSystemParams(OHOS::Ace::Platform::SystemParams& params, const Json2::Value& paramObj) in SetSystemParams() 801 const Json2::Value& previewContext) in LoadDocument() 994 Json2::Value son = JsonReader::CreateObject(); in UpdateAvoidArea2Ide() 999 Json2::Value val = JsonReader::CreateObject(); in UpdateAvoidArea2Ide() 1029 SetJsAppPath(parser.Value("j")); in InitJsApp() 1031 SetPipeName(parser.Value("s")); in InitJsApp() 1034 SetUrlPath(parser.Value("url")); in InitJsApp() 1037 SetPipePort(parser.Value("lws")); in InitJsApp() 1040 SetArgsColorMode(parser.Value("c in InitJsApp() [all...] |
| 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/test/mock/jsapp/ |
| H A D | MockJsApp.cpp | 70 void JsApp::LoadDocument(const std::string, const std::string, const Json2::Value&) { 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()
|
| /ide/tools/previewer/jsapp/ |
| H A D | JsApp.cpp | 183 void JsApp::LoadDocument(const std::string, const std::string, const Json2::Value&) {} in LoadDocument()
|