Home
last modified time | relevance | path

Searched refs:limitedSize (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp79 const auto limitedSize = limitSize(size); in FramebufferSurface() local
80 mConsumer->setDefaultBufferSize(limitedSize.width, limitedSize.height); in FramebufferSurface()
86 const auto limitedSize = limitSize(newSize); in resizeBuffers() local
87 mConsumer->setDefaultBufferSize(limitedSize.width, limitedSize.height); in resizeBuffers()
187 ui::Size limitedSize = size; in limitSizeInternal() local
191 limitedSize.height = maxSize.width / aspectRatio; in limitSizeInternal()
192 limitedSize.width = maxSize.width; in limitSizeInternal()
195 if (limitedSize.height > maxSize.height && maxSize.height != 0) { in limitSizeInternal()
197 limitedSize.height = maxSize.height; in limitSizeInternal()
198 limitedSize.width = maxSize.height * aspectRatio; in limitSizeInternal()
[all …]
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp523 const auto limitedSize = limitSurfaceSize(newWidth, newHeight); in resizeSurface() local
524 mWidth = limitedSize.width; in resizeSurface()
525 mHeight = limitedSize.height; in resizeSurface()