Home
last modified time | relevance | path

Searched refs:inWidth (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
153 static_cast<int>(inWidth) == width && in reallocate()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
130 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
135 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, 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/ui/
DGraphicBuffer.h93 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat,
130 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth,
135 GraphicBuffer(const native_handle_t* inHandle, HandleWrapMethod method, uint32_t inWidth, 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
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/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) {
817 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
818 cropRect.right = inWidth - cropRect.left;
825 cropRect.right = inWidth;
826 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;
/frameworks/base/core/java/android/app/
DWallpaperManager.java919 int inWidth; in getBuiltInDrawable() local
927 inWidth = options.outWidth; in getBuiltInDrawable()
941 outWidth = Math.min(inWidth, outWidth); in getBuiltInDrawable()
944 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable()
947 float left = (inWidth - outWidth) * horizontalAlignment; in getBuiltInDrawable()
1029 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument
1033 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
1037 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; in getMaxCropRect()
1041 cropRect.right = inWidth; in getMaxCropRect()
1042 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect()