| /ide/tools/previewer/mock/ |
| H A D | SystemCapability.cpp | 57 Json2::Value val = JsonReader::ParseJsonData2(jsonStr); in ReadCapability() local 58 if (val.IsNull()) { in ReadCapability() 62 if (val["systemCapability"].IsNull() || !val["systemCapability"].IsArray()) { in ReadCapability() 63 ELOG("Empty systemCapability json object: %s", val["systemCapability"].ToStyledString().c_str()); in ReadCapability() 66 Json2::Value val2 = val["systemCapability"]; in ReadCapability()
|
| /ide/tools/previewer/util/ |
| H A D | TraceTool.cpp | 60 Json2::Value val = JsonReader::CreateObject(); in HandleTrace() local 61 val.Add("sid", "10007"); in HandleTrace() 66 val.Add("detail", detail); in HandleTrace() 67 val.Add("action", msg.c_str()); in HandleTrace() 68 SendTraceData(val); in HandleTrace()
|
| H A D | JsonReader.cpp | 230 Value val = GetValue(key); in GetDouble() local 231 if (!val.IsNull() && val.IsNumber()) { in GetDouble() 232 return val.AsDouble(); in GetDouble() 239 Value val = GetValue(key); in GetBool() local 240 if (!val.IsNull() && val.IsBool()) { in GetBool() 241 return val.AsBool(); in GetBool() 248 Value val = GetValue(key); in GetString() local 249 if (!val in GetString() [all...] |
| H A D | CommandParser.cpp | 885 std::string val = Value("staticCard"); in IsStaticCardValid() local 886 if (val != "true" && val != "false") { in IsStaticCardValid() 891 if (val == "true") { in IsStaticCardValid() 912 std::string val = Value("foldable"); in IsFoldableValid() local 913 if (val != "true" && val != "false") { in IsFoldableValid() 918 if (val == "true") { in IsFoldableValid()
|
| /ide/tools/previewer/test/unittest/mock_lite/ |
| H A D | BrightnessModuleImplTest.cpp | 36 uint8_t val; in TEST() local 37 OHOS::ACELite::BrightnessImpl::GetValueImpl(val); in TEST() 38 EXPECT_EQ(val, setVal); in TEST() 53 uint8_t val; in TEST() local 54 OHOS::ACELite::BrightnessImpl::GetModeImpl(val); in TEST() 55 EXPECT_EQ(val, setVal); in TEST()
|
| /ide/tools/previewer/test/fuzztest/commandparse_fuzzer/ |
| H A D | CommandParse.cpp | 60 std::string val = iter->second; in CreateAndExecuteCommand() local 61 Execute(key, val, j, index, false); in CreateAndExecuteCommand() 62 Execute(key, val, j, index, true); in CreateAndExecuteCommand()
|
| /ide/tools/previewer/cli/ |
| H A D | CommandLineInterface.cpp | 134 Json2::Value val = jsonData["args"]; in ProcessCommandMessage() local 136 CommandLineFactory::CreateCommandLine(command, type, val, *socket); in ProcessCommandMessage() 186 void CommandLineInterface::ApplyConfig(const Json2::Value& val) const in ApplyConfig() 189 if (val.IsMember(set.c_str())) { in ApplyConfig() 190 Json2::Value versionMembers = val[set]; in ApplyConfig() 219 Json2::Value val = commands[key]["args"]; in ApplyConfigMembers() local 221 CommandLineFactory::CreateCommandLine(key, CommandLine::CommandType::SET, val, *socket); in ApplyConfigMembers() 251 Json2::Value val = JsonReader::ParseJsonData2(jsonStr); in ReadAndApplyConfig() local 252 ApplyConfig(val); in ReadAndApplyConfig()
|
| H A D | CommandLine.cpp | 181 for (double val : params.axisVec) { in SetEventParams() 182 ss << " " << val << " "; in SetEventParams() local 344 double val = args["Power"].AsDouble(); in IsSetArgValid() local 345 if (!SharedData<double>::IsValid(SharedDataType::BATTERY_LEVEL, val)) { in IsSetArgValid() 346 ELOG("PowerCommand invalid value: %f", val); in IsSetArgValid() 363 double val = args["Power"].AsDouble(); in RunSet() local 364 SharedData<double>::SetData(SharedDataType::BATTERY_LEVEL, val); in RunSet() 366 ILOG("Set power run finished, the value is: %f", val); in RunSet() 402 uint32_t val = args["Barometer"].AsUInt(); in IsSetArgValid() local 403 if (!SharedData<uint32_t>::IsValid(SharedDataType::PRESSURE_VALUE, val)) { in IsSetArgValid() 421 uint32_t val = args["Barometer"].AsUInt(); RunSet() local 1459 Json2::Value val = pressedCodes.GetArrayItem(i); RunAction() local [all...] |
| H A D | CommandLineInterface.h | 36 void ApplyConfig(const Json2::Value& val) const;
|
| H A D | CommandLineFactory.cpp | 78 CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) in CreateCommandLine() 94 std::unique_ptr<CommandLine> cmdLine = typeMap[command](type, val, socket); in CreateCommandLine() 77 CreateCommandLine(std::string command, CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) CreateCommandLine() argument
|
| H A D | CommandLine.h | 514 bool IsObjectValid(const Json2::Value& val) const;
|
| /ide/tools/previewer/test/unittest/util/ |
| H A D | JsonReaderTest.cpp | 43 Json2::Value val = JsonReader::ParseJsonData2(str); in TEST() local 44 EXPECT_EQ(val["name"].AsString(), "jin"); in TEST() 45 EXPECT_EQ(val["age"].AsInt(), age); in TEST() 374 float val = height.AsFloat(); in TEST() local 376 EXPECT_EQ(val, expectVal); in TEST() 383 double val = name.AsDouble(); in TEST() local 385 EXPECT_EQ(val, expectVal); in TEST() 392 bool val = name.AsBool(); in TEST() local 393 EXPECT_FALSE(val); in TEST() 446 Json2::Value val in TEST() local 461 Json2::Value val = JsonReader::CreateNull(); TEST() local 479 Json2::Value val = JsonReader::ParseJsonData2(str); TEST() local 498 Json2::Value val = JsonReader::ParseJsonData2(str); TEST() local [all...] |
| H A D | SharedDataTest.cpp | 52 std::function<void(uint8_t)> func = [&num](uint8_t val) { num += val; }; in TEST()
|
| /ide/tools/previewer/mock/rich/ |
| H A D | MouseInputImpl.cpp | 67 for (double val : axisValuesArr) { in DispatchOsTouchEvent() 68 ss << " " << val << " "; in DispatchOsTouchEvent() local
|
| H A D | VirtualScreenImpl.cpp | 242 Json2::Value val; in PageCallback() local 243 CommandLineInterface::GetInstance().CreatCommandToSendData("CurrentRouter", val, "get"); in PageCallback() 251 Json2::Value val; in LoadContentCallback() local 252 CommandLineInterface::GetInstance().CreatCommandToSendData("LoadContent", val, "get"); in LoadContentCallback() 259 Json2::Value val; in FastPreviewCallback() local 260 CommandLineInterface::GetInstance().CreatCommandToSendData("FastPreviewMsg", val, "get"); in FastPreviewCallback()
|
| /ide/tools/previewer/jsapp/lite/ |
| H A D | JsAppImpl.cpp | 247 Json2::Value val = JsonReader::CreateObject(); in StartJsApp() local 248 val.Add("uri", urlPath.c_str()); in StartJsApp() 249 std::string routerInfo = val.ToStyledString(); in StartJsApp()
|
| /ide/tools/previewer/test/unittest/cli/ |
| H A D | CommandLineInterfaceTest.cpp | 319 Json2::Value val; in TEST() local 320 CommandLineInterface::GetInstance().CreatCommandToSendData("aaaa", val, "set"); in TEST() 354 Json2::Value val; in TEST() local 355 CommandLineInterface::GetInstance().CreatCommandToSendData("LoadContent", val, "get"); in TEST()
|
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.cpp | 999 Json2::Value val = JsonReader::CreateObject(); in UpdateAvoidArea2Ide() local 1000 val.Add(key.c_str(), son); in UpdateAvoidArea2Ide() 1001 CommandLineInterface::GetInstance().CreatCommandToSendData("AvoidAreaChanged", val, "get"); in UpdateAvoidArea2Ide()
|
| /ide/tools/previewer/test/unittest/jsapp/ |
| H A D | JsAppImplTest.cpp | 280 Json2::Value val = JsonReader::CreateNull(); in TEST_F() local 282 JsAppImpl::GetInstance().LoadDocument("aaa", "bbb", val); in TEST_F()
|