| /ide/tools/previewer/test/fuzztest/commandparse_fuzzer/ |
| H A D | RichCommandParseFuzzer.cpp | 33 {"Orientation", R"({"Orientation":"landscape","screenDensity":480,"width":2340, 35 {"ResolutionSwitch", R"({"originWidth":1080,"originHeight":2340,"width":1080, 43 {"LoadDocument", R"({"url":"pages/Index","className":"Index","previewParam":{"width":1080, 51 {"FoldStatus", R"({"FoldStatus":"fold","width":1080,"height":2504})"}, 52 {"AvoidArea", R"({"topRect":{"posX":0,"posY":0,"width":2340,"height":117},"bottomRect":{"posX": 53 0,"posY":0,"width":0,"height":0},"leftRect":{"posX":0,"posY":0,"width":0,"height":0}, 54 "rightRect":{"posX":0,"posY":0,"width":2340,"height":84}})"},
|
| /ide/tools/previewer/test/unittest/mock/ |
| H A D | VirtualScreenImplTest.cpp | 83 int32_t width = 100; in TEST_F() local 84 VirtualScreenImpl::GetInstance().SetOrignalWidth(width); in TEST_F() 85 EXPECT_EQ(VirtualScreenImpl::GetInstance().GetOrignalWidth(), width); in TEST_F() 104 int32_t width = 100; in TEST_F() local 105 VirtualScreenImpl::GetInstance().SetOrignalHeight(width); in TEST_F() 106 EXPECT_EQ(VirtualScreenImpl::GetInstance().GetOrignalHeight(), width); in TEST_F() 111 int32_t width = 100; in TEST_F() local 112 VirtualScreenImpl::GetInstance().SetCompressionWidth(width); in TEST_F() 113 EXPECT_EQ(VirtualScreenImpl::GetInstance().GetCompressionWidth(), width); in TEST_F() 118 int32_t width in TEST_F() local 134 int width = 1111; TEST_F() local 170 int32_t width = 1080; TEST_F() local 185 int32_t width = 1080; TEST_F() local 203 int32_t width = 200; TEST_F() local 395 int width = 1000; TEST_F() local 403 int width = 1080; TEST_F() local 426 int width = 100; TEST_F() local 472 int width = 100; TEST_F() local 510 int width = 200; TEST_F() local [all...] |
| /ide/tools/previewer/test/unittest/mock_lite/ |
| H A D | VirtualScreenImplTest.cpp | 65 int32_t width = 100; in TEST_F() local 67 VirtualScreenImpl::GetInstance().SetOrignalWidth(width); in TEST_F() 71 EXPECT_FALSE(VirtualScreenImpl::GetInstance().IsRectValid(x, y, width, height)); in TEST_F() 75 EXPECT_FALSE(VirtualScreenImpl::GetInstance().IsRectValid(x, y, width, height)); in TEST_F() 79 width = 100; in TEST_F() 81 EXPECT_FALSE(VirtualScreenImpl::GetInstance().IsRectValid(x, y, width, height)); in TEST_F() 83 width = 50; in TEST_F() 85 EXPECT_FALSE(VirtualScreenImpl::GetInstance().IsRectValid(x, y, width, height)); in TEST_F() 87 width = 50; in TEST_F() 89 EXPECT_TRUE(VirtualScreenImpl::GetInstance().IsRectValid(x, y, width, heigh in TEST_F() 94 int32_t width = 100; TEST_F() local 130 int32_t width = 100; TEST_F() local [all...] |
| /ide/tools/previewer/test/mock/graphic/ |
| H A D | MockGlfwRenderContext.cpp | 34 int GlfwRenderContext::CreateGlfwWindow(int32_t width, int32_t height, bool visible) in CreateGlfwWindow() argument 55 void GlfwRenderContext::SetWindowSize(int32_t width, int32_t height) {} in SetWindowSize() argument
|
| /ide/tools/previewer/test/unittest/jsapp/ |
| H A D | JsAppImplTest.cpp | 139 int32_t width = 222; in TEST_F() local 143 ResolutionParam param(originWidth, originHeight, width, height); in TEST_F() 167 int32_t width = 111; in TEST_F() local 170 JsAppImpl::GetInstance().SetResolutionParams(originWidth, originHeight, width, height, screenDensity); in TEST_F() 180 width = 222; in TEST_F() 183 JsAppImpl::GetInstance().SetResolutionParams(originWidth, originHeight, width, height, screenDensity); in TEST_F() 294 int width = 200; in TEST_F() local 297 JsAppImpl::GetInstance().FoldStatusChanged("fold", width, height); in TEST_F() 301 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width); in TEST_F() local 304 JsAppImpl::GetInstance().FoldStatusChanged("unfold", width, heigh in TEST_F() 319 EXPECT_NE(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width); TEST_F() local 414 int width = 100; TEST_F() local 599 int width = 300; TEST_F() local 657 int width = 666; TEST_F() local 668 EXPECT_EQ(JsAppImpl::GetInstance().aceRunArgs.deviceWidth, width); TEST_F() local [all...] |
| /ide/tools/previewer/jsapp/ |
| H A D | JsApp.h | 43 uint32_t width; member 46 AvoidRect() : posX(0), posY(0), width(0), height(0) {} in AvoidRect() 48 AvoidRect(int32_t x, int32_t y, uint32_t w, uint32_t h) : posX(x), posY(y), width(w), height(h) {} in AvoidRect() 51 width(other.width), height(other.height) {} in AvoidRect() 55 return (posX == a.posX && posY == a.posY && width == a.width && height == a.height); in operator ==() 63 this->width = other.width; in operator =()
|
| /ide/tools/previewer/mock/ |
| H A D | VirtualScreen.cpp | 207 int VirtualScreen::GetJpgQualityValue(int32_t width, int32_t height) const in GetJpgQualityValue() argument 209 long long pixCount = static_cast<long long>(width) * static_cast<long long>(height); in GetJpgQualityValue() 292 void VirtualScreen::RgbToJpg(unsigned char* data, const int32_t width, const int32_t height) in RgbToJpg() argument 294 if (width < 1 || height < 1) { in RgbToJpg() 295 FLOG("VirtualScreenImpl::RgbToJpg the width or height is invalid value"); in RgbToJpg() 302 jpeg.image_width = width; in RgbToJpg() 307 jpeg_set_quality(&jpeg, GetJpgQualityValue(width, height), TRUE); in RgbToJpg() 310 int rowStride = width * jpgPix; in RgbToJpg() 355 void VirtualScreen::SetCurrentResolution(int32_t width, int32_t height) in SetCurrentResolution() argument 357 currentWidth = width; in SetCurrentResolution() [all...] |
| H A D | VirtualScreen.h | 70 int GetJpgQualityValue(int32_t width, int32_t height) const; 90 void RgbToJpg(unsigned char* data, const int32_t width, const int32_t height); 101 void SetCurrentResolution(int32_t width, int32_t height); 108 // start width and height 115 // width and height after resize
|
| /ide/tools/previewer/test/unittest/cli/ |
| H A D | CommandLineTest.cpp | 140 JsAppImpl::GetInstance().width = 0; in TEST_F() 147 EXPECT_EQ(JsAppImpl::GetInstance().width, 0); in TEST_F() 150 std::string jsonStr = R"({"aaaaa":1080,"originHeight":2340,"width":1080,"height":2340,"screenDensity":480})"; in TEST_F() 154 EXPECT_NE(JsAppImpl::GetInstance().width, 1080); in TEST_F() 161 JsAppImpl::GetInstance().width = 0; in TEST_F() 164 std::string jsonStr = R"({"originWidth":"1080","originHeight":2340,"width":1080, in TEST_F() 169 EXPECT_NE(JsAppImpl::GetInstance().width, 1080); in TEST_F() 172 JsAppImpl::GetInstance().width = 0; in TEST_F() 174 std::string jsonStr1 = R"({"originWidth" : 1080, "originHeight" : 2340, "width" : 1080, in TEST_F() 179 EXPECT_EQ(JsAppImpl::GetInstance().width, in TEST_F() [all...] |
| /ide/tools/previewer/util/ |
| H A D | TimeTool.h | 28 static std::string FixedTime(int32_t time, int32_t width);
|
| H A D | TimeTool.cpp | 65 std::string TimeTool::FixedTime(int32_t time, int32_t width) in FixedTime() argument 69 if (len < width) { in FixedTime() 70 for (int i = 0; i < width - len; i++) { in FixedTime()
|
| /ide/tools/previewer/test/mock/mock/ |
| H A D | MockVirtualScreen.cpp | 35 return 1080; // 1080 is screen default width in GetCurrentWidth() 85 orignalResolutionWidth = 1080; // 1080 is default width in InitVirtualScreen() 87 compressionResolutionWidth = 1080; // 1080 is default width in InitVirtualScreen() 142 void VirtualScreen::SetCurrentResolution(int32_t width, int32_t height) in SetCurrentResolution() argument 144 currentWidth = width; in SetCurrentResolution()
|
| H A D | MockVirtualScreenImpl.cpp | 41 const int32_t width, const int32_t height, const uint64_t timeStamp) in Callback() 40 Callback(const void* data, const size_t length, const int32_t width, const int32_t height, const uint64_t timeStamp) Callback() argument
|
| /ide/tools/previewer/mock/rich/ |
| H A D | VirtualScreenImpl.cpp | 141 bool VirtualScreenImpl::LoadDocCallback(const void* data, const size_t length, const int32_t width, in LoadDocCallback() argument 155 GetInstance().widthTemp = width; in LoadDocCallback() 182 const int32_t width, const int32_t height, const uint64_t timeStamp) in Callback() 197 if (!LoadDocCallback(data, length, width, height, timeStamp)) { in Callback() 209 return GetInstance().SendPixmap(data, length, width, height); in Callback() 382 uint16_t width = static_cast<uint16_t>(retWidth); in SendPixmap() local 387 WriteBuffer(width); in SendPixmap() 181 Callback(const void* data, const size_t length, const int32_t width, const int32_t height, const uint64_t timeStamp) Callback() argument
|
| H A D | VirtualScreenImpl.h | 44 const int32_t width, const int32_t height, const uint64_t timeStamp); 45 static bool Callback(const void* data, const size_t length, const int32_t width, const int32_t height,
|
| /ide/tools/previewer/test/mock/jsapp/ |
| H A D | MockJsAppImpl.cpp | 31 this->width = param.orignalWidth; in ResolutionChanged() 98 this->width = currentWidth; in FoldStatusChanged()
|
| /ide/tools/previewer/test/mock_lite/ui_lite/ |
| H A D | MockSoftEngine.cpp | 25 int16_t width, ColorType color, OpacityType opacity) {} in DrawLine() 31 const Point& control2, const Point& end, const Rect& mask, int16_t width, ColorType color, in DrawCubicBezier() 24 DrawLine(BufferInfo& dst, const Point& start, const Point& end, const Rect& mask, int16_t width, ColorType color, OpacityType opacity) DrawLine() argument 30 DrawCubicBezier(BufferInfo& dst, const Point& start, const Point& control1, const Point& control2, const Point& end, const Rect& mask, int16_t width, ColorType color, OpacityType opacity) DrawCubicBezier() argument
|
| /ide/tools/previewer/mock/lite/ |
| H A D | VirtualScreenImpl.h | 53 void Send(unsigned char* data, int32_t width, int32_t height);
|
| H A D | VirtualScreenImpl.cpp | 42 ELOG("VirtualScreen::InitAll invalid resolution, width : %d height : %d", orignalResolutionWidth, in InitAll() 159 void VirtualScreenImpl::Send(unsigned char* data, int32_t width, int32_t height) in Send() argument 166 VirtualScreen::RgbToJpg(data + headSize, width, height); in Send() 292 bufferInfo->width = orignalResolutionWidth; in GetFBBufferInfo()
|
| /ide/tools/previewer/test/mock/arkui/ |
| H A D | MockAceAbility.cpp | 68 const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, in SurfaceChanged() 67 SurfaceChanged( const DeviceOrientation& orientation, const double& resolution, int32_t& width, int32_t& height, WindowSizeChangeReason type) SurfaceChanged() argument
|
| /ide/tools/previewer/cli/ |
| H A D | CommandLine.cpp | 436 if (args.IsNull() || !args.IsMember("originWidth") || !args.IsMember("originHeight") || !args.IsMember("width") || in IsSetArgValid() 442 !args["screenDensity"].IsInt() || !args["width"].IsInt() || !args["height"].IsInt()) { in IsSetArgValid() 466 args["width"].AsInt() < minWidth || args["width"].AsInt() > maxWidth || in IsIntValValid() 468 ELOG("width or height is out of range %d-%d", minWidth, maxWidth); in IsIntValValid() 482 int32_t width = args["width"].AsInt(); in RunSet() local 489 ResolutionParam param(originWidth, originHeight, width, height); in RunSet() 609 if (!previewParam["width"].IsInt() || !previewParam["height"].IsInt() || !previewParam["dpi"].IsInt() || in IsSetArgValid() 622 int width in IsIntValValid() local 1515 int32_t width = args["width"].AsInt(); RunSet() local [all...] |
| /ide/tools/previewer/jsapp/rich/ |
| H A D | JsAppImpl.cpp | 122 aceRunArgs.deviceHeight = width; in OrientationChanged() 136 glfwRenderContext->SetWindowSize(width, height); in OrientationChanged() 599 width = compWidth; in AssignValueForWidthAndHeight() 601 ILOG("AssignValueForWidthAndHeight: %d %d %d %d", orignalWidth, orignalHeight, width, height); in AssignValueForWidthAndHeight() 769 SetDeviceWidth(args, paramObj["width"].AsInt()); in ParseSystemParams() 997 son.Add("width", value.width_); in UpdateAvoidArea2Ide()
|
| H A D | JsAppImpl.h | 156 int32_t width = 0; member in OHOS::JsAppImpl
|