/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | BitmapHelper.java | 39 final int inWidth = input.getWidth(); in createCircularClip() local 46 final RectF srcRect = new RectF(0, 0, inWidth, inHeight); in createCircularClip() 51 canvas.drawCircle(inWidth / 2, inHeight / 2, inWidth / 2, paint); in createCircularClip()
|
/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() 70 GraphicBuffer::GraphicBuffer(uint32_t inWidth, uint32_t inHeight, in GraphicBuffer() argument 77 width = static_cast<int>(inWidth); in GraphicBuffer() 134 status_t GraphicBuffer::reallocate(uint32_t inWidth, uint32_t inHeight, in reallocate() argument 141 static_cast<int>(inWidth) == width && in reallocate() 152 return initSize(inWidth, inHeight, inFormat, inUsage); in reallocate() 155 bool GraphicBuffer::needsReallocation(uint32_t inWidth, uint32_t inHeight, in needsReallocation() argument 158 if (static_cast<int>(inWidth) != width) return true; in needsReallocation() 165 status_t GraphicBuffer::initSize(uint32_t inWidth, uint32_t inHeight, in initSize() argument [all …]
|
/frameworks/native/include/ui/ |
D | GraphicBuffer.h | 75 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/ |
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 | 434 int inWidth; in getBuiltInDrawable() local 441 inWidth = options.outWidth; in getBuiltInDrawable() 453 outWidth = Math.min(inWidth, outWidth); in getBuiltInDrawable() 456 cropRectF = getMaxCropRect(inWidth, inHeight, outWidth, outHeight, in getBuiltInDrawable() 459 float left = (inWidth - outWidth) * horizontalAlignment; in getBuiltInDrawable() 542 private static RectF getMaxCropRect(int inWidth, int inHeight, int outWidth, int outHeight, in getMaxCropRect() argument 546 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect() 550 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; in getMaxCropRect() 554 cropRect.right = inWidth; in getMaxCropRect() 555 float cropHeight = outHeight * (inWidth / (float) outWidth); in getMaxCropRect()
|
/frameworks/native/include/gui/ |
D | IGraphicBufferProducer.h | 344 inline void inflate(uint32_t inWidth, uint32_t inHeight, in inflate() 346 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;
|