Home
last modified time | relevance | path

Searched refs:type (Results 1 - 25 of 29) sorted by relevance

12

/ide/tools/previewer/util/
H A DSharedData.h34 SharedData(SharedDataType type, T v, T min = T(), T max = T()) : value(v), minValue(min), maxValue(max) in SharedData() argument
38 dataMap[type] = *this; in SharedData()
44 static bool SetData(SharedDataType type, T v) in SetData() argument
47 if (dataMap.find(type) == dataMap.end()) { in SetData()
49 FLOG("SharedData::SetData invalid data type."); in SetData()
53 SharedData data = dataMap[type]; in SetData()
60 dataMap[type] = data; in SetData()
65 static T GetData(SharedDataType type) in GetData() argument
68 if (dataMap.find(type) == dataMap.end()) { in GetData()
69 FLOG("SharedData::GetData invalid data type in GetData()
75 IsValid(SharedDataType type, T v) IsValid() argument
126 AppendNotify(SharedDataType type, std::function<void(T)> func, std::thread::id threadId, uint32_t period = 1) AppendNotify() argument
[all...]
H A DEndianUtil.h25 template <class T, class = typename std::enable_if<std::is_integral<T>::value>::type>
H A DLocalSocket.h46 template <class T, class = typename std::enable_if<std::is_integral<T>::value>::type>
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp72 CommandLine::CommandType type = CommandLine::CommandType::ACTION; in TEST_F() local
75 BackClickedCommand command(type, args, *socket); in TEST_F()
83 CommandLine::CommandType type = CommandLine::CommandType::ACTION; in TEST_F() local
85 InspectorJSONTree command(type, args, *socket); in TEST_F()
93 CommandLine::CommandType type = CommandLine::CommandType::ACTION; in TEST_F() local
95 InspectorDefault command(type, args, *socket); in TEST_F()
104 CommandLine::CommandType type = CommandLine::CommandType::SET; in TEST_F() local
107 OrientationCommand command1(type, args1, *socket); in TEST_F()
113 OrientationCommand command2(type, args2, *socket); in TEST_F()
119 OrientationCommand command3(type, args in TEST_F()
142 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
163 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
188 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
233 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
245 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
255 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
273 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
282 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
292 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
301 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
311 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
321 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
339 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
355 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
365 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
378 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
392 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
433 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
457 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
467 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
478 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
502 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
529 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
541 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
552 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
580 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
611 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
645 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
688 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
710 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
734 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
758 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
771 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
795 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
805 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
834 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
858 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
868 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
878 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
918 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
930 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
940 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
959 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
969 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
979 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
998 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1008 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1018 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1051 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1061 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1071 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1104 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1114 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1124 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1157 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1167 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1177 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1210 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1220 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1230 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1263 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1273 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1283 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1319 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1332 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1355 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1366 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1398 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1416 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1427 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1459 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1477 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1488 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1520 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1538 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1566 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1585 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1596 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1613 CommandLine::CommandType type = CommandLine::CommandType::ACTION; TEST_F() local
1625 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1633 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1643 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1653 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1705 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1740 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1750 CommandLine::CommandType type = CommandLine::CommandType::GET; TEST_F() local
1760 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1771 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
1794 CommandLine::CommandType type = CommandLine::CommandType::SET; TEST_F() local
[all...]
H A DCommandLineInterfaceTest.cpp169 std::string msg = R"({"type" : "action", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
174 std::string msg0 = R"({"type" : "aaaaa", "command" : "MousePress", "bbbb" : "1.0.1", "args" : {}})"; in TEST()
179 std::string msg1 = R"({"type" : "aaaaa", "command" : "MousePress", "bbbb" : "1.0.1"})"; in TEST()
182 // cmd type error in TEST()
184 std::string msg2 = R"({"type" : "aaaaa", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
204 msg = R"({"type" : "action", "command" : "MousePress"})"; in TEST()
207 msg = R"({"type" : "action", "command" : "MousePress", "version" : "s.0.1"})"; in TEST()
210 msg = R"({"type" : "action", "command" : "MousePress", "version" : "1.0.1"})"; in TEST()
327 std::string msg = R"({"type":"action","command":"MousePress"})"; in TEST()
/ide/tools/previewer/test/fuzztest/
H A DChangeJsonUtil.cpp38 if (item->type == cJSON_String) { in ModifyObject()
56 } else if (item->type == cJSON_Number) { in ModifyObject()
60 } else if (item->type == cJSON_True || item->type == cJSON_False) { in ModifyObject()
65 item->type = ret ? cJSON_True : cJSON_False; in ModifyObject()
66 } else if (item->type == cJSON_Object) { in ModifyObject()
71 } else if (item->type == cJSON_Array) { in ModifyObject()
87 if (item->type == cJSON_String) { in ModifyObject4ChangeType()
90 item->type = cJSON_Number; in ModifyObject4ChangeType()
97 } else if (item->type in ModifyObject4ChangeType()
[all...]
/ide/tools/previewer/test/mock/window/
H A Dwindow.h51 void OnAvoidAreaChanged(const AvoidArea avoidArea, AvoidAreaType type) {} in OnAvoidAreaChanged() argument
56 WMError OnSetSpecificBarProperty(WindowType type, const SystemBarProperty& property) in OnSetSpecificBarProperty() argument
76 virtual void UpdateAvoidArea(const sptr<AvoidArea>& avoidArea, AvoidAreaType type) = 0;
77 virtual SystemBarProperty GetSystemBarPropertyByType(WindowType type) const = 0;
H A DMockWindow.cpp43 void UpdateAvoidArea(const sptr<AvoidArea>& avoidArea, AvoidAreaType type) override
47 SystemBarProperty GetSystemBarPropertyByType(WindowType type) const override
/ide/tools/previewer/test/unittest/jsapp/
H A DJsAppImplTest.cpp601 std::string type = "wearable"; in TEST_F() local
602 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height); in TEST_F()
604 type = "tv"; in TEST_F()
605 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height); in TEST_F()
607 type = "phone"; in TEST_F()
608 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height); in TEST_F()
610 type = "default"; in TEST_F()
611 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, width, height); in TEST_F()
613 type = "2in1"; in TEST_F()
614 JsAppImpl::GetInstance().AdaptDeviceType(JsAppImpl::GetInstance().aceRunArgs, type, widt in TEST_F()
627 std::string type = "wearable"; TEST_F() local
[all...]
/ide/tools/previewer/cli/
H A DCommandLineInterface.cpp125 CommandLine::CommandType type = GetCommandType(jsonData["type"].AsString()); in ProcessCommandMessage() local
126 if (type == CommandLine::CommandType::INVALID) { in ProcessCommandMessage()
136 CommandLineFactory::CreateCommandLine(command, type, val, *socket); in ProcessCommandMessage()
158 if (!jsonData.IsMember("type") || !jsonData.IsMember("command") || !jsonData.IsMember("version")) { in ProcessCommandValidate()
173 CommandLine::CommandType type = CommandLine::CommandType::INVALID; in GetCommandType() local
175 type = CommandLine::CommandType::SET; in GetCommandType()
177 type = CommandLine::CommandType::GET; in GetCommandType()
179 type = CommandLine::CommandType::ACTION; in GetCommandType()
181 ELOG("Command type invali in GetCommandType()
[all...]
H A DCommandLineFactory.cpp78 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()
103 std::unique_ptr<CommandLine> CommandLineFactory::CreateObject(CommandLine::CommandType type, in CreateObject() argument
106 return std::make_unique<T>(type, args, socket); in CreateObject()
77 CreateCommandLine(std::string command, CommandLine::CommandType type, const Json2::Value& val, const LocalSocket& socket) CreateCommandLine() argument
H A DCommandLineFactory.h29 CommandLine::CommandType type,
H A DCommandLine.cpp40 : args(arg), cliSocket(socket), type(commandType), commandName("") in CommandLine()
87 if (type == CommandType::GET) { in IsArgValid()
90 if (type == CommandType::SET) { in IsArgValid()
93 if (type == CommandType::ACTION) { in IsArgValid()
130 if (type == CommandType::GET) { in Run()
132 } else if (type == CommandType::SET) { in Run()
134 } else if (type == CommandType::ACTION) { in Run()
171 MouseInputImpl::GetInstance().SetMouseStatus(params.type); in SetEventParams()
185 ILOG("%s(%f,%f,%d,%d,%d,%d,%d,%d,%d,%s)", params.name.c_str(), params.x, params.y, params.type, params.button, in SetEventParams()
216 int type in RunAction() local
279 int type = 1; RunAction() local
319 int type = 2; RunAction() local
1454 int type = 9; RunAction() local
[all...]
H A DCommandLine.h31 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);
46 CommandType type; member in CommandLine
95 int type; member
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp53 OHOS::Rosen::WMError OnSetSpecificBarProperty(OHOS::Rosen::WindowType type, in OnSetSpecificBarProperty() argument
56 JsAppImpl::GetInstance().CalculateAvoidAreaByType(type, property); in OnSetSpecificBarProperty()
416 void JsAppImpl::AdaptDeviceType(Platform::AceRunArgs& args, const std::string type, in AdaptDeviceType() argument
419 if (type == "wearable") { in AdaptDeviceType()
426 if (type == "tv") { in AdaptDeviceType()
433 if (type == "phone" || type == "default") { in AdaptDeviceType()
440 if (type == "2in1") { in AdaptDeviceType()
447 if (type == "tablet") { in AdaptDeviceType()
454 if (type in AdaptDeviceType()
698 SetDeviceScreenDensity(const int32_t screenDensity, const std::string type) SetDeviceScreenDensity() argument
953 CalculateAvoidAreaByType(OHOS::Rosen::WindowType type, const OHOS::Rosen::SystemBarProperty& property) CalculateAvoidAreaByType() argument
[all...]
/ide/tools/previewer/util/linux/
H A DClipboardX11.cpp57 if (event.type == SelectionRequest) { in SetCopyData()
64 ev.type = SelectionNotify, ev.display = xsr->display, ev.requestor = xsr->requestor, in SetCopyData()
98 if (event.type == SelectionNotify) { in GetPasteType()
/ide/tools/previewer/test/mock_lite/ui_lite/
H A DMockUIFont.cpp60 int8_t UIFont::SetFontPath(const char* path, BaseFont::FontType type) in SetFontPath() argument
/ide/tools/previewer/mock/rich/
H A DMouseInputImpl.cpp57 pointerEvent->type = ConvertToOsType(touchAction); in DispatchOsTouchEvent()
71 ILOG("MouseInputImpl::DispatchEvent x: %f y:%f type:%d buttonId_:%d pointerAction_:%d sourceType:%d \ in DispatchOsTouchEvent()
73 pointerEvent->type, pointerEvent->buttonId_, pointerEvent->pointerAction_, pointerEvent->sourceType, in DispatchOsTouchEvent()
H A DVirtualScreenImpl.h61 template<class T, class = typename std::enable_if<std::is_integral<T>::value>::type>
/ide/tools/previewer/test/unittest/mock/
H A DMouseInputImplTest.cpp59 int type = 1; in TEST() local
60 MouseInputImpl::GetInstance().SetSourceType(type); in TEST()
61 EXPECT_EQ(MouseInputImpl::GetInstance().sourceType, type); in TEST()
/ide/tools/previewer/mock/lite/
H A DVirtualScreenImpl.h58 template <class T, class = typename std::enable_if<std::is_integral<T>::value>::type>
/ide/tools/previewer/test/fuzztest/commandparse_fuzzer/
H A DRichCommandParseFuzzer.cpp42 "globalVariable":[],"slot":0,"type":"UpdateComponent","parentID":2})"},
/ide/tools/previewer/test/fuzztest/jsonparse_fuzzer/
H A DGetModulePathMapFuzzer.cpp49 "anBuildMode" : "type",
H A DReadFileContentsFuzzer.cpp51 "anBuildMode" : "type",
/ide/tools/previewer/test/mock/arkui/
H A DMockAceAbility.cpp69 WindowSizeChangeReason type) in SurfaceChanged()
67 SurfaceChanged( const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, WindowSizeChangeReason type) SurfaceChanged() argument

Completed in 13 milliseconds

12