Home
last modified time | relevance | path

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

/frameworks/native/libs/ui/
DGraphicBuffer.cpp78 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
80 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), requestorName) in GraphicBuffer()
84 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
87 mInitCheck = initWithSize(inWidth, inHeight, inFormat, inLayerCount, inUsage, in GraphicBuffer()
92 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument
96 inWidth, inHeight, inFormat, inLayerCount, static_cast<uint64_t>(inUsage), in GraphicBuffer()
102 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument
105 mInitCheck = initWithHandle(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
146 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument
154 static_cast<int>(inHeight) == height && in reallocate()
[all …]
/frameworks/native/libs/ui/include/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
131 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
136 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer() argument
138 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
166 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
169 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
244 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
131 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage,
136 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer() argument
138 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer()
140 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
143 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
166 status_t reallocate(uint32_t inWidth, uint32_t inHeight,
169 bool needsReallocation(uint32_t inWidth, uint32_t inHeight,
198 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
244 status_t initWithSize(uint32_t inWidth, uint32_t inHeight,
[all …]
/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.java803 int inHeight; in getBuiltInDrawable() local
811 inHeight = options.outHeight; in getBuiltInDrawable()
825 outHeight = Math.min(inHeight, outHeight); in getBuiltInDrawable()
827 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
832 float top = (inHeight - outHeight) * verticalAlignment; in getBuiltInDrawable()
912 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
916 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
918 cropRect.bottom = inHeight; in getMaxCropRect()
919 float cropWidth = outWidth * (inHeight / (float) outHeight); in getMaxCropRect()
926 cropRect.top = (inHeight - cropHeight) * verticalAlignment; in getMaxCropRect()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java811 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) {
814 if (inWidth / (float) inHeight > outWidth / (float) outHeight) {
816 cropRect.bottom = inHeight;
817 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
826 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;
827 cropRect.bottom = inHeight - cropRect.top;