Home
last modified time | relevance | path

Searched refs:inHeight (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()
70 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
78 height = static_cast<int>(inHeight); in GraphicBuffer()
136 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument
144 static_cast<int>(inHeight) == height && in reallocate()
154 return initSize(inWidth, inHeight, inFormat, inUsage); in reallocate()
157 bool GraphicBuffer::needsReallocation(uint32_t inWidth, uint32_t inHeight, in needsReallocation() argument
161 if (static_cast<int>(inHeight) != height) return true; in needsReallocation()
167 status_t GraphicBuffer::initSize(uint32_t inWidth, uint32_t inHeight, in initSize() argument
[all …]
/frameworks/native/include/ui/
DGraphicBuffer.h75 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
79 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
102 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
105 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
161 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
62 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
63 return (int)(inHeight * mScale); in getOutputHeight()
DCropFilter.java157 protected int getOutputWidth(int inWidth, int inHeight) { in getOutputWidth() argument
161 protected int getOutputHeight(int inWidth, int inHeight) { in getOutputHeight() argument
162 return mOutputHeight <= 0 ? inHeight : mOutputHeight; in getOutputHeight()
/frameworks/base/core/java/android/app/
DWallpaperManager.java511 int inHeight; in getBuiltInDrawable() local
519 inHeight = options.outHeight; in getBuiltInDrawable()
533 outHeight = Math.min(inHeight, outHeight); in getBuiltInDrawable()
535 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
540 float top = (inHeight - outHeight) * verticalAlignment; in getBuiltInDrawable()
620 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
624 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
626 cropRect.bottom = inHeight; in getMaxCropRect()
627 float cropWidth = outWidth * (inHeight / (float) outHeight); in getMaxCropRect()
634 cropRect.top = (inHeight - cropHeight) * verticalAlignment; in getMaxCropRect()
/frameworks/native/include/gui/
DIGraphicBufferProducer.h368 inline void inflate(uint32_t inWidth, uint32_t inHeight, in inflate()
371 height = inHeight; 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) {
819 cropRect.bottom = inHeight;
820 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
829 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;
830 cropRect.bottom = inHeight - cropRect.top;