Home
last modified time | relevance | path

Searched refs:Add (Results 1 - 13 of 13) sorted by relevance

/ide/tools/previewer/util/
H A DJsonReader.h78 bool Add(const char* key, const char* value);
79 bool Add(const char* key, bool value);
80 bool Add(const char* key, int32_t value);
81 bool Add(const char* key, uint32_t value);
82 bool Add(const char* key, int64_t value);
83 bool Add(const char* key, double value);
84 bool Add(const char* key, const Value& value);
86 bool Add(const char* value);
87 bool Add(bool value);
88 bool Add(int32_
[all...]
H A DTraceTool.cpp61 val.Add("sid", "10007"); in HandleTrace()
63 detail.Add("ProjectId", CommandParser::GetInstance().GetProjectID().c_str()); in HandleTrace()
64 detail.Add("device", CommandParser::GetInstance().GetDeviceType().c_str()); in HandleTrace()
65 detail.Add("time", TimeTool::GetTraceFormatTime().c_str()); in HandleTrace()
66 val.Add("detail", detail); in HandleTrace()
67 val.Add("action", msg.c_str()); in HandleTrace()
H A DJsonReader.cpp305 bool Value::Add(const char* key, const char* value) in Add() function in Json2::Value
318 bool Value::Add(const char* key, bool value) in Add() function in Json2::Value
331 bool Value::Add(const char* key, int32_t value) in Add() function in Json2::Value
333 return Add(key, static_cast<double>(value)); in Add()
336 bool Value::Add(const char* key, uint32_t value) in Add() function in Json2::Value
338 return Add(key, static_cast<double>(value)); in Add()
341 bool Value::Add(const char* key, int64_t value) in Add() function in Json2::Value
343 return Add(key, static_cast<double>(value)); in Add()
346 bool Value::Add(const char* key, double value) in Add() function in Json2::Value
359 bool Value::Add(cons function in Json2::Value
372 bool Value::Add(const char* value) Add() function in Json2::Value
385 bool Value::Add(bool value) Add() function in Json2::Value
398 bool Value::Add(int32_t value) Add() function in Json2::Value
403 bool Value::Add(uint32_t value) Add() function in Json2::Value
408 bool Value::Add(int64_t value) Add() function in Json2::Value
413 bool Value::Add(double value) Add() function in Json2::Value
427 bool Value::Add(const Value& value) Add() function in Json2::Value
[all...]
/ide/tools/previewer/test/unittest/util/
H A DJsonReaderTest.cpp51 school.Add("schoolName", g_schoolName.c_str()); in TEST()
52 school.Add("schoolAddr", g_schoolAddr.c_str()); in TEST()
54 student.Add("name", g_name.c_str()); in TEST()
56 student.Add("isChild", g_isChild); in TEST()
58 student.Add("age", g_age); in TEST()
60 student.Add("code1", g_code1); in TEST()
62 student.Add("code2", g_code2); in TEST()
64 student.Add("height", g_height); in TEST()
66 student.Add("school", school); in TEST()
74 school.Add("schoolNam in TEST()
[all...]
/ide/tools/previewer/jsapp/lite/
H A DTimerTaskHandler.cpp100 result.Add("version", CommandLineInterface::COMMAND_VERSION.c_str()); in CheckBrightnessValueChanged()
101 result.Add("property", "Brightness"); in CheckBrightnessValueChanged()
103 brightness.Add("Brightness", static_cast<double>(value)); in CheckBrightnessValueChanged()
104 result.Add("result", brightness); in CheckBrightnessValueChanged()
H A DJsAppImpl.cpp103 InputDeviceManager::GetInstance()->Add(&MouseInputImpl::GetInstance()); in InitHalScreen()
104 InputDeviceManager::GetInstance()->Add(&MouseWheelImpl::GetInstance()); in InitHalScreen()
248 val.Add("uri", urlPath.c_str()); in StartJsApp()
/ide/tools/previewer/test/mock_lite/ui_lite/
H A DMockInputDeviceManager.cpp26 void InputDeviceManager::Add(InputDevice* device) in Add() function in OHOS::InputDeviceManager
/ide/tools/previewer/cli/
H A DCommandLineInterface.cpp68 result.Add("version", COMMAND_VERSION.c_str()); in SendJSHeapMemory()
69 result.Add("property", "memoryUsage"); in SendJSHeapMemory()
71 memory.Add("totalBytes", static_cast<double>(total)); in SendJSHeapMemory()
72 memory.Add("allocBytes", static_cast<double>(alloc)); in SendJSHeapMemory()
73 memory.Add("peakAllocBytes", static_cast<double>(peak)); in SendJSHeapMemory()
74 result.Add("result", memory); in SendJSHeapMemory()
86 result.Add("MessageType", "imageWebsocket"); in SendWebsocketStartupSignal()
87 args.Add("port", VirtualScreen::webSocketPort.c_str()); in SendWebsocketStartupSignal()
88 result.Add("args", args); in SendWebsocketStartupSignal()
H A DCommandLineFactory.cpp82 commandResult.Add("version", CommandLineInterface::COMMAND_VERSION.c_str()); in CreateCommandLine()
83 commandResult.Add("command", command.c_str()); in CreateCommandLine()
84 commandResult.Add("result", "Unsupported command"); in CreateCommandLine()
H A DCommandLine.cpp115 this->commandResult.Add("version", CommandLineInterface::COMMAND_VERSION.c_str()); in SetCommandResult()
116 this->commandResult.Add("command", this->commandName.c_str()); in SetCommandResult()
117 this->commandResult.Add(resultType.c_str(), resultContent); in SetCommandResult()
124 this->commandResultToManager.Add("MessageType", messageType.c_str()); in SetResultToManager()
125 this->commandResultToManager.Add(resultType.c_str(), resultContent); in SetResultToManager()
356 resultContent.Add("Power", power); in RunGet()
414 resultContent.Add("Barometer", barometer); in RunGet()
707 resultContent.Add("CurrentRouter", currentRouter.c_str()); in RunGet()
721 resultContent.Add("AbilityCurrentRouter", currentRouter.c_str()); in RunGet()
761 resultContent.Add("Languag in RunGet()
[all...]
/ide/tools/previewer/
H A DRichPreviewer.cpp58 commandResult.Add("version", CommandLineInterface::COMMAND_VERSION.c_str()); in NotifyInspectorChanged()
59 commandResult.Add("command", "inspector"); in NotifyInspectorChanged()
60 commandResult.Add("result", jsonTree.c_str()); in NotifyInspectorChanged()
/ide/tools/previewer/test/unittest/jsapp/
H A DJsAppImplTest.cpp660 paramObj2.Add("width", width); in TEST_F()
661 paramObj2.Add("height", height); in TEST_F()
662 paramObj2.Add("colorMode", "light"); in TEST_F()
663 paramObj2.Add("orientation", ""); in TEST_F()
664 paramObj2.Add("deviceType", "phone"); in TEST_F()
665 paramObj2.Add("dpi", density); in TEST_F()
666 paramObj2.Add("locale", "zh_Hans_CN"); in TEST_F()
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp995 son.Add("posX", value.posX_); in UpdateAvoidArea2Ide()
996 son.Add("posY", value.posY_); in UpdateAvoidArea2Ide()
997 son.Add("width", value.width_); in UpdateAvoidArea2Ide()
998 son.Add("height", value.height_); in UpdateAvoidArea2Ide()
1000 val.Add(key.c_str(), son); in UpdateAvoidArea2Ide()

Completed in 10 milliseconds