/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 56 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/ |
D | GraphicBuffer.h | 76 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/ |
D | ScaleFilter.java | 57 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
|
D | CropFilter.java | 157 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/ |
D | WallpaperManager.java | 522 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/ |
D | IGraphicBufferProducer.h | 372 inline void inflate(uint32_t inWidth, uint32_t inHeight, in inflate() 375 width = inWidth; in inflate()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 814 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;
|