Searched refs:limitSize (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FramebufferSurfaceTest.cpp | 26 ui::Size limitSize(const ui::Size& size, const ui::Size maxSize) { in limitSize() function in android::FramebufferSurfaceTest 31 TEST_F(FramebufferSurfaceTest, limitSize) { in TEST_F() argument 33 EXPECT_EQ(ui::Size(1920, 1080), limitSize({3840, 2160}, kMaxSize)); in TEST_F() 34 EXPECT_EQ(ui::Size(1920, 1080), limitSize({1920, 1080}, kMaxSize)); in TEST_F() 35 EXPECT_EQ(ui::Size(1920, 1012), limitSize({4096, 2160}, kMaxSize)); in TEST_F() 36 EXPECT_EQ(ui::Size(1080, 1080), limitSize({3840, 3840}, kMaxSize)); in TEST_F() 37 EXPECT_EQ(ui::Size(1280, 720), limitSize({1280, 720}, kMaxSize)); in TEST_F()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 79 const auto limitedSize = limitSize(size); in FramebufferSurface() 86 const auto limitedSize = limitSize(newSize); in resizeBuffers() 182 ui::Size FramebufferSurface::limitSize(const ui::Size& size) { in limitSize() function in android::FramebufferSurface
|
D | FramebufferSurface.h | 61 ui::Size limitSize(const ui::Size&);
|