Home
last modified time | relevance | path

Searched refs:inWidth (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/ui/
DGraphicBuffer.cpp56 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
67 mInitCheck = initSize(inWidth, inHeight, inFormat, inUsage, in GraphicBuffer()
71 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
78 width = static_cast<int>(inWidth); in GraphicBuffer()
137 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument
144 static_cast<int>(inWidth) == width && in reallocate()
155 return initSize(inWidth, inHeight, inFormat, inUsage, "[Reallocation]"); in reallocate()
158 bool GraphicBuffer::needsReallocation(uint32_t inWidth, uint32_t inHeight, in needsReallocation() argument
161 if (static_cast<int>(inWidth) != width) return true; in needsReallocation()
168 status_t GraphicBuffer::initSize(uint32_t inWidth, uint32_t inHeight, in initSize() argument
[all …]
/frameworks/native/include/ui/
DGraphicBuffer.h76 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
80 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
103 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
106 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
162 status_t initSize(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DScaleFilter.java57 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument
58 return (int)(inWidth * mScale); in getOutputWidth()
62 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
DCropFilter.java157 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument
158 return mOutputWidth <= 0 ? inWidth : mOutputWidth; in getOutputWidth()
161 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
/frameworks/base/core/java/android/app/
DWallpaperManager.java522 int inWidth; in getBuiltInDrawable() local
530 inWidth = options.outWidth; in getBuiltInDrawable()
544 outWidth = Math.min(inWidth, outWidth); in getBuiltInDrawable()
547 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
550 float left = (inWidth - outWidth) * horizontalAlignment; in getBuiltInDrawable()
632 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
636 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
640 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; in getMaxCropRect()
644 cropRect.right = inWidth; in getMaxCropRect()
645 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect()
/frameworks/native/include/gui/
DIGraphicBufferProducer.h372 inline void inflate(uint32_t inWidth, uint32_t inHeight, in inflate()
375 width = inWidth; in inflate()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java814 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) {
817 if (inWidth / (float) inHeight > outWidth / (float) outHeight) {
820 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
821 cropRect.right = inWidth - cropRect.left;
828 cropRect.right = inWidth;
829 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;