/frameworks/native/libs/ui/include_vndk/ui/ |
D | GraphicBuffer.h | 103 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 143 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage, 148 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer() argument 150 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer() 152 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 155 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 180 status_t reallocate(uint32_t inWidth, uint32_t inHeight, 183 bool needsReallocation(uint32_t inWidth, uint32_t inHeight, 212 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 258 status_t initWithSize(uint32_t inWidth, uint32_t inHeight, [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | GraphicBuffer.h | 103 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 143 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint64_t inUsage, 148 uint32_t inHeight, PixelFormat inFormat, uint32_t inLayerCount, uint32_t inUsage, in GraphicBuffer() argument 150 : GraphicBuffer(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer() 152 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 155 GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 180 status_t reallocate(uint32_t inWidth, uint32_t inHeight, 183 bool needsReallocation(uint32_t inWidth, uint32_t inHeight, 212 status_t isSupported(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, 258 status_t initWithSize(uint32_t inWidth, uint32_t inHeight, [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 110 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument 112 : GraphicBuffer(inWidth, inHeight, inFormat, 1, static_cast<uint64_t>(inUsage), requestorName) in GraphicBuffer() 116 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument 119 mInitCheck = initWithSize(inWidth, inHeight, inFormat, inLayerCount, inUsage, in GraphicBuffer() 124 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument 128 inWidth, inHeight, inFormat, inLayerCount, static_cast<uint64_t>(inUsage), in GraphicBuffer() 134 uint32_t inWidth, uint32_t inHeight, PixelFormat inFormat, in GraphicBuffer() argument 137 mInitCheck = initWithHandle(inHandle, method, inWidth, inHeight, inFormat, inLayerCount, in GraphicBuffer() 202 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument 210 static_cast<int>(inHeight) == height && in reallocate() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ScaleFilter.java | 57 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()
|
D | CropFilter.java | 157 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/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 811 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;
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 1136 int inHeight; in getBuiltInDrawable() local 1144 inHeight = options.outHeight; in getBuiltInDrawable() 1158 outHeight = Math.min(inHeight, outHeight); in getBuiltInDrawable() 1160 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable() 1165 float top = (inHeight - outHeight) * verticalAlignment; in getBuiltInDrawable() 1245 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument 1249 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect() 1251 cropRect.bottom = inHeight; in getMaxCropRect() 1252 float cropWidth = outWidth * (inHeight / (float) outHeight); in getMaxCropRect() 1259 cropRect.top = (inHeight - cropHeight) * verticalAlignment; in getMaxCropRect()
|