Home
last modified time | relevance | path

Searched refs:val (Results 1 – 12 of 12) sorted by relevance

/ide/tools/previewer/util/
DTraceTool.cpp66 Json::Value val = GetBaseInfo(); in HandleTrace() local
67 val["action"] = msg; in HandleTrace()
68 SendTraceData(val); in HandleTrace()
86 Json::Value val; in GetBaseInfo() local
87 val["sid"] = "10007"; in GetBaseInfo()
88 val["detail"]["ProjectId"] = CommandParser::GetInstance().GetProjectID(); in GetBaseInfo()
89 val["detail"]["device"] = CommandParser::GetInstance().GetDeviceType(); in GetBaseInfo()
90 val["detail"]["time"] = TimeTool::GetTraceFormatTime(); in GetBaseInfo()
91 return val; in GetBaseInfo()
DJsonReader.cpp38 Json::Value val; in ParseJsonData() local
43 return val; in ParseJsonData()
48 return val; in ParseJsonData()
51 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &val, &message)) { in ParseJsonData()
54 return val; in ParseJsonData()
/ide/tools/previewer/mock/
DSystemCapability.cpp58 Json::Value val; in ReadCapability() local
69 if (!reader->parse(jsonStr.data(), jsonStr.data() + jsonStr.size(), &val, &message)) { in ReadCapability()
72 if (val["systemCapability"].empty() || !val["systemCapability"].isArray()) { in ReadCapability()
73 … ELOG("Empty systemCapability json object: %s", val["systemCapability"].toStyledString().c_str()); in ReadCapability()
76 val = val["systemCapability"]; in ReadCapability()
77 for (Json::ValueIterator iter = val.begin(); iter != val.end(); iter++) { in ReadCapability()
/ide/tools/previewer/automock/mock-generate/src/generate/
DgenerateMockJsFile.ts106 value.staticMethods.forEach(val => {
107 staticMethodBody += generateStaticFunction(val, true, sourceFile);
119 mockFunctionElements.forEach(val => {
120 mockApi += `${val.elementName}: ${val.elementName},`;
228 value.heritageClauses.forEach(val => {
229 val.types.forEach(v => {
235 value.heritageClauses.forEach(val => {
236 val.types.forEach(v => {
DgenerateClassDeclaration.ts56 value.types.forEach((val, index) => {
58 classBody += `${val},`;
60 classBody += `${val}`;
DgenerateModuleDeclaration.ts65 value.staticMethods.forEach(val => {
66 staticMethodBody += generateStaticFunction(val, true, sourceFile) + '\n';
136 value.forEach(val => {
137 moduleBody += generateVariableStatementDelcatation(val) + '\n';
154 value.forEach(val => {
155 sourceFileStatementBody += generateVariableStatementDelcatation(val);
222 value.forEach(val => {
223 innerModuleBody += generateVariableStatementDelcatation(val) + '\n';
/ide/tools/previewer/cli/
DCommandLineInterface.cpp188 void CommandLineInterface::ApplyConfig(const Json::Value& val) const in ApplyConfig()
191 if (val.isMember(set)) { in ApplyConfig()
192 Json::Value versionMembers = val[set]; in ApplyConfig()
252 Json::Value val = JsonReader::ParseJsonData(jsonStr); in ReadAndApplyConfig() local
253 ApplyConfig(val); in ReadAndApplyConfig()
DCommandLineFactory.cpp76 Json::Value val, in CreateCommandLine() argument
93 unique_ptr<CommandLine> cmdLine = typeMap[command](type, val, socket); in CreateCommandLine()
DCommandLineInterface.h36 void ApplyConfig(const Json::Value& val) const;
DCommandLine.cpp287 float val = args["Power"].asFloat(); in IsSetArgValid() local
288 if (!SharedData<double>::IsValid(SharedDataType::BATTERY_LEVEL, val)) { in IsSetArgValid()
289 ELOG("PowerCommand invalid value: %f", val); in IsSetArgValid()
/ide/tools/previewer/mock/rich/
DVirtualScreenImpl.cpp138 Json::Value val; in PageCallBack() local
139 CommandLineInterface::GetInstance().CreatCommandToSendData("CurrentRouter", val, "get"); in PageCallBack()
146 Json::Value val; in FastPreviewCallBack() local
147 CommandLineInterface::GetInstance().CreatCommandToSendData("FastPreviewMsg", val, "get"); in FastPreviewCallBack()
/ide/tools/previewer/jsapp/lite/
DJsAppImpl.cpp277 Json::Value val; in StartJsApp() local
278 val["uri"] = urlPath; in StartJsApp()
279 string routerInfo = val.toStyledString(); in StartJsApp()