Home
last modified time | relevance | path

Searched refs:reason (Results 1 - 10 of 10) sorted by relevance

/ide/tools/previewer/test/mock/util/
H A DMockWebSocketServer.cpp42 enum lws_callback_reasons reason, in ProtocolCallback()
41 ProtocolCallback(struct lws* wsi, enum lws_callback_reasons reason, void* user, void* in, size_t len) ProtocolCallback() argument
/ide/tools/previewer/util/
H A DWebSocketServer.h30 static int ProtocolCallback(struct lws* wsi, enum lws_callback_reasons reason, void* user, void* in, size_t len);
H A DWebSocketServer.cpp48 enum lws_callback_reasons reason, in ProtocolCallback()
53 switch (reason) { in ProtocolCallback()
47 ProtocolCallback(struct lws* wsi, enum lws_callback_reasons reason, void* user, void* in, size_t len) ProtocolCallback() argument
/ide/tools/previewer/test/mock/jsapp/
H A DMockJsApp.cpp40 void JsApp::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) { in ResolutionChanged() argument
H A DMockJsAppImpl.cpp29 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) in ResolutionChanged() argument
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.h67 void ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) override;
68 OHOS::Ace::WindowSizeChangeReason ConvertResizeReason(std::string reason);
H A DJsAppImpl.cpp604 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) in ResolutionChanged() argument
636 aceRunArgs.deviceWidth, aceRunArgs.deviceHeight, ConvertResizeReason(reason)); in ResolutionChanged()
641 WindowSizeChangeReason JsAppImpl::ConvertResizeReason(std::string reason) in ConvertResizeReason() argument
643 if (reason == "undefined") { in ConvertResizeReason()
645 } else if (reason == "rotation") { in ConvertResizeReason()
918 std::string reason = "resize"; in FoldStatusChanged() local
930 ResolutionChanged(param, atoi(screenDensity.c_str()), reason); in FoldStatusChanged()
/ide/tools/previewer/cli/
H A DCommandLine.cpp449 if (args.IsMember("reason")) { in IsSetArgValid()
450 if (!args["reason"].IsString()) { in IsSetArgValid()
453 std::string reason = args["reason"].AsString(); in IsSetArgValid() local
454 if (reason != "rotation" && reason != "resize" && reason != "undefined") { in IsSetArgValid()
455 ELOG("Invalid value of reason!"); in IsSetArgValid()
485 std::string reason = "undefined"; in RunSet() local
486 if (args.IsMember("reason")) { in RunSet()
[all...]
/ide/tools/previewer/test/unittest/jsapp/
H A DJsAppImplTest.cpp142 std::string reason = "resize"; in TEST_F() local
145 JsAppImpl::GetInstance().ResolutionChanged(param, screenDensity, reason); in TEST_F()
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp175 "height" : 2340, "screenDensity" : 480, "reason" : 333})"; in TEST_F()
200 "height" : 2340, "screenDensity" : 480, "reason" : "aaa"})"; in TEST_F()
210 "height" : 2340, "screenDensity" : 100, "reason" : "resize"})"; in TEST_F()
220 "height" : 2340, "screenDensity" : 700, "reason" : "resize"})"; in TEST_F()
235 "height" : 2340, "screenDensity" : 480, "reason" : "resize"})"; in TEST_F()

Completed in 10 milliseconds