Home
last modified time | relevance | path

Searched refs:screenDensity (Results 1 - 11 of 11) sorted by relevance

/ide/tools/previewer/test/unittest/jsapp/
H A DJsAppImplTest.cpp141 int32_t screenDensity = 360; in TEST_F() local
145 JsAppImpl::GetInstance().ResolutionChanged(param, screenDensity, reason); in TEST_F()
169 int32_t screenDensity = 480; in TEST_F() local
170 JsAppImpl::GetInstance().SetResolutionParams(originWidth, originHeight, width, height, screenDensity); in TEST_F()
182 screenDensity = 320; in TEST_F()
183 JsAppImpl::GetInstance().SetResolutionParams(originWidth, originHeight, width, height, screenDensity); in TEST_F()
252 EXPECT_EQ(JsAppImpl::GetInstance().screenDensity, "360"); in TEST_F()
626 const int32_t screenDensity = 480; in TEST_F() local
628 JsAppImpl::GetInstance().SetDeviceScreenDensity(screenDensity, type); in TEST_F()
629 EXPECT_EQ(JsAppImpl::GetInstance().watchScreenDensity, screenDensity); in TEST_F()
[all...]
/ide/tools/previewer/util/
H A DModelConfig.h29 int screenDensity; member
/ide/tools/previewer/test/fuzztest/commandparse_fuzzer/
H A DRichCommandParseFuzzer.cpp33 {"Orientation", R"({"Orientation":"landscape","screenDensity":480,"width":2340,
36 "height":2340,"screenDensity":480})"},
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp178 SetDeviceScreenDensity(atoi(screenDensity.c_str()), commandInfo.deviceType); in SetJsAppArgs()
604 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) in ResolutionChanged() argument
607 param.compressionHeight, screenDensity); in ResolutionChanged()
653 int32_t changedHeight, int32_t screenDensity) in SetResolutionParams()
659 SetDeviceScreenDensity(screenDensity, commandInfo.deviceType); in SetResolutionParams()
698 void JsAppImpl::SetDeviceScreenDensity(const int32_t screenDensity, const std::string type) in SetDeviceScreenDensity() argument
700 if (type == "wearable" && screenDensity != 0) { in SetDeviceScreenDensity()
701 watchScreenDensity = screenDensity; in SetDeviceScreenDensity()
704 if (type == "tv" && screenDensity != 0) { in SetDeviceScreenDensity()
705 tvScreenDensity = screenDensity; in SetDeviceScreenDensity()
652 SetResolutionParams(int32_t changedOriginWidth, int32_t changedOriginHeight, int32_t changedWidth, int32_t changedHeight, int32_t screenDensity) SetResolutionParams() argument
[all...]
H A DJsAppImpl.h67 void ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) override;
70 int32_t changedWidth, int32_t changedHeight, int32_t screenDensity);
150 void SetDeviceScreenDensity(const int32_t screenDensity, const std::string type);
/ide/tools/previewer/jsapp/
H A DJsApp.cpp39 screenDensity(""), in JsApp()
89 screenDensity = value; in SetScreenDensity()
H A DJsApp.h156 std::string screenDensity; member in JsApp
/ide/tools/previewer/test/mock/jsapp/
H A DMockJsAppImpl.cpp29 void JsAppImpl::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) in ResolutionChanged() argument
118 screenDensity = value; in SetScreenDensity()
H A DMockJsApp.cpp40 void JsApp::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) { in ResolutionChanged() argument
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp150 std::string jsonStr = R"({"aaaaa":1080,"originHeight":2340,"width":1080,"height":2340,"screenDensity":480})"; in TEST_F()
165 "height":2340,"screenDensity":480})"; in TEST_F()
175 "height" : 2340, "screenDensity" : 480, "reason" : 333})"; in TEST_F()
190 "height":2340,"screenDensity":480})"; 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()
/ide/tools/previewer/cli/
H A DCommandLine.cpp437 !args.IsMember("height") || !args.IsMember("screenDensity")) { in IsSetArgValid()
442 !args["screenDensity"].IsInt() || !args["width"].IsInt() || !args["height"].IsInt()) { in IsSetArgValid()
471 if (args["screenDensity"].AsInt() < minDpi || args["screenDensity"].AsInt() > maxDpi) { in IsIntValValid()
472 ELOG("screenDensity is out of range %d-%d", minDpi, maxDpi); in IsIntValValid()
484 int32_t screenDensity = args["screenDensity"].AsInt(); in RunSet() local
490 JsAppImpl::GetInstance().ResolutionChanged(param, screenDensity, reason); in RunSet()

Completed in 12 milliseconds