| /ide/tools/previewer/util/ |
| H A D | JsonReader.h | 35 // 重载实现obj["key"]形式调用 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; 60 bool IsMember(const char* key) const; 62 int32_t GetInt(const char* key, int32_t defaultVal = 0) const; 63 uint32_t GetUInt(const char* key, int32_t defaultVal = 0) const; 64 int64_t GetInt64(const char* key, int32_t defaultVal = 0) const; 65 float GetFloat(const char* key, floa [all...] |
| H A D | JsonReader.cpp | 41 Value Value::operator[](const char* key) in operator []() argument 43 if (!cJSON_HasObjectItem(jsonPtr, key)) { in operator []() 46 return Value(cJSON_GetObjectItemCaseSensitive(jsonPtr, key), false); in operator []() 49 const Value Value::operator[](const char* key) const in operator []() 51 if (!cJSON_HasObjectItem(jsonPtr, key)) { in operator []() 54 return Value(cJSON_GetObjectItemCaseSensitive(jsonPtr, key), false); in operator []() 57 Value Value::operator[](const std::string& key) in operator []() argument 59 if (!cJSON_HasObjectItem(jsonPtr, key.c_str())) { in operator []() 62 return Value(cJSON_GetObjectItemCaseSensitive(jsonPtr, key.c_str()), false); in operator []() 65 const Value Value::operator[](const std::string& key) cons 208 GetInt(const char* key, int32_t defaultVal) const GetInt() argument 213 GetUInt(const char* key, int32_t defaultVal) const GetUInt() argument 218 GetInt64(const char* key, int32_t defaultVal) const GetInt64() argument 223 GetFloat(const char* key, float defaultVal) const GetFloat() argument 228 GetDouble(const char* key, double defaultVal) const GetDouble() argument 237 GetBool(const char* key, bool defaultVal) const GetBool() argument 246 GetString(const char* key, const std::string defaultVal) const GetString() argument 305 Add(const char* key, const char* value) Add() argument 318 Add(const char* key, bool value) Add() argument 331 Add(const char* key, int32_t value) Add() argument 336 Add(const char* key, uint32_t value) Add() argument 341 Add(const char* key, int64_t value) Add() argument 346 Add(const char* key, double value) Add() argument 359 Add(const char* key, const Value& value) Add() argument 440 Replace(const char* key, bool value) Replace() argument 456 Replace(const char* key, int32_t value) Replace() argument 461 Replace(const char* key, uint32_t value) Replace() argument 466 Replace(const char* key, int64_t value) Replace() argument 471 Replace(const char* key, double value) Replace() argument 487 Replace(const char* key, const char* value) Replace() argument 503 Replace(const char* key, const Value& value) Replace() argument 618 const char* key = jsonPtr->string; GetKey() local [all...] |
| H A D | CommandParser.h | 57 bool IsSet(std::string key); 58 std::string Value(std::string key); 59 std::vector<std::string> Values(std::string key); 60 void Register(std::string key, uint32_t argc, std::string help);
|
| H A D | CommandParser.cpp | 146 bool CommandParser::IsSet(std::string key) in IsSet() argument 148 if (argsMap.find(std::string("-") + key) == argsMap.end()) { in IsSet() 154 std::string CommandParser::Value(std::string key) in Value() argument 156 auto args = argsMap[std::string("-") + key]; in Value() 163 std::vector<std::string> CommandParser::Values(std::string key) in Values() argument 165 if (argsMap.find(key) == argsMap.end()) { in Values() 168 std::vector<std::string> args = argsMap[key]; in Values() 172 void CommandParser::Register(std::string key, uint32_t argc, std::string help) in Register() argument 174 regsArgsCountMap[key] = argc; in Register() 175 regsHelpMap[key] in Register() [all...] |
| /ide/tools/previewer/test/unittest/mock_lite/ |
| H A D | VirtualMessageImplTest.cpp | 36 const char* key = "test"; in TEST() local 37 VirtualMessageImpl::GetInstance().RegistBundle(key, SuccessCallback, FailCallback); in TEST() 38 EXPECT_TRUE(VirtualMessageImpl::GetInstance().callBacks.find(key) != in TEST() 44 const char* key = "test"; in TEST() local 45 VirtualMessageImpl::GetInstance().UnregistBundle(key); in TEST() 46 EXPECT_TRUE(VirtualMessageImpl::GetInstance().callBacks.find(key) == in TEST() 67 const char* key = "test"; in TEST() local 68 VirtualMessageImpl::GetInstance().RegistBundle(key, SuccessCallback, FailCallback); in TEST() 71 VirtualMessageImpl::GetInstance().UnregistBundle(key); in TEST()
|
| /ide/tools/previewer/test/unittest/util/ |
| H A D | JsonReaderTest.cpp | 194 EXPECT_EQ(objVal.GetDouble("height1", 0.0), 0.0); // key not exist retrun default value in TEST() 202 const char* key = "name"; in TEST() local 203 Json2::Value name = objVal[key]; in TEST() 206 // key not exist in TEST() 216 const char* key = "name"; in TEST() local 217 const Json2::Value name = objVal[key]; in TEST() 220 // key not exist in TEST() 230 std::string key = "name"; in TEST() local 231 Json2::Value name = objVal[key]; in TEST() 234 // key no in TEST() 244 std::string key = "name"; TEST() local 351 std::string key = "school"; TEST() local 437 const char* key = nullptr; TEST() local 470 const char* key = nullptr; TEST() local 488 const char* key = nullptr; TEST() local [all...] |
| H A D | CommandParserTest.cpp | 908 std::string key = "-abcd"; in TEST_F() local 910 CommandParser::GetInstance().Register(key, count, "abcd"); in TEST_F() 911 uint32_t num = CommandParser::GetInstance().regsArgsCountMap[key]; in TEST_F() 912 std::string helpStr = CommandParser::GetInstance().regsHelpMap[key]; in TEST_F()
|
| /ide/tools/previewer/cli/ |
| H A D | CommandLineInterface.cpp | 214 std::string key = *iter; in ApplyConfigMembers() local 215 if (!commands[key].IsObject() || !commands[key].IsMember("args") || !commands[key]["args"].IsObject()) { in ApplyConfigMembers() 216 ELOG("Invalid JSON: %s", commands[key].AsString().c_str()); in ApplyConfigMembers() 219 Json2::Value val = commands[key]["args"]; in ApplyConfigMembers() 221 CommandLineFactory::CreateCommandLine(key, CommandLine::CommandType::SET, val, *socket); in ApplyConfigMembers() 222 ApplyConfigCommands(key, command); in ApplyConfigMembers() 226 void CommandLineInterface::ApplyConfigCommands(const std::string& key, in ApplyConfigCommands() argument 230 ELOG("Unsupported configuration: %s", key in ApplyConfigCommands() [all...] |
| H A D | CommandLineInterface.h | 38 void ApplyConfigCommands(const std::string& key, const std::unique_ptr<CommandLine>& command) const;
|
| /ide/tools/previewer/test/fuzztest/commandparse_fuzzer/ |
| H A D | CommandParse.cpp | 59 std::string key = iter->first; in CreateAndExecuteCommand() local 61 Execute(key, val, j, index, false); in CreateAndExecuteCommand() 62 Execute(key, val, j, index, true); in CreateAndExecuteCommand()
|
| /ide/tools/previewer/jsapp/rich/external/ |
| H A D | StageContext.cpp | 90 for (const auto& key : jsonObj.GetMemberNames()) { in GetModulePathMapFromLoaderJson() 91 modulePathMap[key] = jsonObj[key].AsString(); in GetModulePathMapFromLoaderJson() 100 for (const auto& key : jsonObjOhm.GetMemberNames()) { in GetModulePathMapFromLoaderJson() 101 hspNameOhmMap[key] = jsonObjOhm[key].AsString(); in GetModulePathMapFromLoaderJson() 443 for (const auto& key : rootJson.GetMemberNames()) { in ParseMockJsonFile() 444 if (!rootJson[key].IsNull() && rootJson[key].IsMember("source") && rootJson[key]["sourc in ParseMockJsonFile() [all...] |
| /ide/tools/previewer/mock/rich/ |
| H A D | KeyInputImpl.cpp | 48 keyEvent->key = keyString.c_str(); in DispatchOsKeyEvent()
|
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.h | 85 void UpdateAvoidArea2Ide(const std::string& key, const OHOS::Rosen::Rect& value);
|
| H A D | JsAppImpl.cpp | 992 void JsAppImpl::UpdateAvoidArea2Ide(const std::string& key, const OHOS::Rosen::Rect& value) in UpdateAvoidArea2Ide() argument 1000 val.Add(key.c_str(), son); in UpdateAvoidArea2Ide()
|