/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ColorSpace.java | 42 ByteBuffer input, ByteBuffer output, int width, int height) { in convertYuv420pToRgba8888() argument 43 expectInputSize(input, (3 * width * height) / 2); in convertYuv420pToRgba8888() 44 expectOutputSize(output, width * height * 4); in convertYuv420pToRgba8888() 45 nativeYuv420pToRgba8888(input, output, width, height); in convertYuv420pToRgba8888() 61 ByteBuffer input, ByteBuffer output, int width, int height) { in convertArgb8888ToRgba8888() argument 62 expectInputSize(input, width * height * 4); in convertArgb8888ToRgba8888() 63 expectOutputSize(output, width * height * 4); in convertArgb8888ToRgba8888() 64 nativeArgb8888ToRgba8888(input, output, width, height); in convertArgb8888ToRgba8888() 80 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToHsva8888() argument 81 expectInputSize(input, width * height * 4); in convertRgba8888ToHsva8888() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapMeshLayerActivity.java | 50 final float height = mBitmap1.getHeight() / 3.0f; in BitmapMeshView() local 54 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView() 55 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView() 56 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
|
D | BitmapMeshActivity.java | 49 final float height = mBitmap1.getHeight() / 3.0f; in BitmapMeshView() local 53 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView() 54 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView() 55 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
|
D | Alpha8BitmapActivity.java | 60 final float height = texture.getHeight() / 3.0f; in BitmapsView() local 64 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapsView() 65 … 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapsView() 66 … 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapsView()
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, in IonBuffer() argument 23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); in IonBuffer() 26 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument 28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride, in IonBuffer() 31 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument 38 handle, width, height, layer_count, stride, format, usage); in IonBuffer() 40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer() 48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer() 74 int IonBuffer::Alloc(uint32_t width, uint32_t height, uint32_t layer_count, in Alloc() argument 78 "usage=%" PRIx64, width, height, layer_count, format, usage); in Alloc() [all …]
|
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolImplTest.java | 51 int height = 800; in testImageDispose() local 54 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDispose() 55 Image img1 = pool.acquire(width, height, type, in testImageDispose() 68 int height = 800; in testImageDisposeFromFunction() local 71 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDisposeFromFunction() 73 BufferedImage img = createImageAndReturnBufferedImage(pool, width, height, type, cd); in testImageDisposeFromFunction() 84 int height = 800; in testImageDisposedAndRecycled() local 98 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled() 116 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled() 135 int height = 800; in testBufferedImageReleased() local [all …]
|
D | ImagePoolHelperTest.java | 35 int height = 10; in testGetBufferedImage() local 37 int maxCacheSize = width * height * 4 * 5; // can fit 5 width | height buffer in testGetBufferedImage() 40 width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesInBucket, Orientation in testGetBufferedImage() 50 int height = 10; in testGetBufferedImageRecurse() local 53 int maxCacheSize = width * height * 4 * numberOfCopiesToRequestInBucket; in testGetBufferedImageRecurse() 60 … width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesToRequestInBucket, Orientation in testGetBufferedImageRecurse() 70 int height = 10; in testRecurseThenHitCacheLimit() local 73 int maxCacheSize = width * height * 4 * numberOfCopiesToRequestInBucket / 2; in testRecurseThenHitCacheLimit() 80 … width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesToRequestInBucket, Orientation in testRecurseThenHitCacheLimit() 90 int height = 10; in testBucketHasImageToReturn() local [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio() 77 const float current_ratio = width / height; in ExpandToAspectRatio() 83 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio() 85 height += dy; in ExpandToAspectRatio() 91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength() 95 const float current_length = width > height ? width : height; in ExpandToMinLength() 100 const float dy = height * (length / current_length - 1.0f); in ExpandToMinLength() 102 height += dy; in ExpandToMinLength() 108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit() 112 const float current_length = width > height ? width : height; in ScaleWithLengthLimit() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | TriangleShape.java | 37 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument 40 triangularPath.moveTo(0, height); in create() 41 triangularPath.lineTo(width, height); in create() 46 triangularPath.lineTo(width / 2, height); in create() 50 return new TriangleShape(triangularPath, width, height); in create() 55 float width, float height, boolean isPointingLeft) { in createHorizontal() argument 58 triangularPath.moveTo(0, height / 2); in createHorizontal() 59 triangularPath.lineTo(width, height); in createHorizontal() 63 triangularPath.moveTo(0, height); in createHorizontal() 64 triangularPath.lineTo(width, height / 2); in createHorizontal() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | BitmapFillrate.cpp | 37 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument 39 createNode(canvas, 0x909C27B0, 0, 0, width, height); in createContent() 40 createNode(canvas, 0xA0CDDC39, width / 3, height / 3, width, height); in createContent() 41 createNode(canvas, 0x90009688, width / 3, 0, width, height); in createContent() 42 createNode(canvas, 0xA0FF5722, 0, height / 3, width, height); in createContent() 43 createNode(canvas, 0x9000796B, width / 6, height / 6, width, height); in createContent() 44 createNode(canvas, 0xA0FFC107, width / 6, 0, width, height); in createContent() 56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode() argument 58 int itemHeight = 2 * height / 3; in createNode()
|
D | RecentsAnimation.cpp | 30 void createContent(int width, int height, Canvas& renderer) override { in createContent() argument 35 thumbnailSize = std::min(std::min(width, height) / 2, 720); in createContent() 36 int cardsize = std::min(width, height) - dp(64); in createContent() 43 int y = (height / 4) * i; in createContent() 69 sp<RenderNode> createCard(int x, int y, int width, int height, Bitmap& thumb) { in createCard() argument 71 x, y, x + width, y + height, in createCard() 72 [&thumb, width, height](RenderProperties& props, Canvas& canvas) { in createCard() 74 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard() 78 canvas.drawBitmap(thumb, 0, 0, thumb.width(), thumb.height(), 0, 0, width, in createCard() 79 height, nullptr); in createCard()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 130 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument 133 this(nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap() 138 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument 146 mHeight = height; in Bitmap() 189 void reinit(int width, int height, boolean requestPremultiplied) { in reinit() argument 191 mHeight = height; in reinit() 289 public void reconfigure(int width, int height, Config config) { in reconfigure() argument 291 if (width <= 0 || height <= 0) { in reconfigure() 298 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure() 300 mHeight = height; in reconfigure() [all …]
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 74 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio() 78 const float current_ratio = width / height; in ExpandToAspectRatio() 84 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio() 86 height += dy; in ExpandToAspectRatio() 92 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength() 96 const float current_length = width > height ? width : height; in ExpandToMinLength() 101 const float dy = height * (length / current_length - 1.0f); in ExpandToMinLength() 103 height += dy; in ExpandToMinLength() 109 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit() 113 const float current_length = width > height ? width : height; in ScaleWithLengthLimit() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 75 int height = texture.getHeight(); in loadTexture() local 79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, in loadTexture() 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height) in loadTexture() 87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); in loadTexture() 88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border, in loadTexture() 117 public ETC1Texture(int width, int height, ByteBuffer data) { in ETC1Texture() argument 119 mHeight = height; in ETC1Texture() 154 int height = 0; in createTexture() local 167 height = ETC1.getHeight(headerBuffer); in createTexture() 169 int encodedSize = ETC1.getEncodedDataSize(width, height); in createTexture() [all …]
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | ShadowPainter.java | 83 int height = source.getHeight(); in createDropShadow() local 84 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, in createDropShadow() 192 int height = source.getHeight(); in createRectangularDropShadow() local 194 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, type); in createRectangularDropShadow() 197 drawRectangleShadow(image, 0, 0, width, height); in createRectangularDropShadow() 219 int height = source.getHeight(); in createSmallRectangularDropShadow() local 222 image = new BufferedImage(width + SMALL_SHADOW_SIZE, height + SMALL_SHADOW_SIZE, type); in createSmallRectangularDropShadow() 226 drawSmallRectangleShadow(image, 0, 0, width, height); in createSmallRectangularDropShadow() 244 int x, int y, int width, int height) { in drawRectangleShadow() argument 247 drawRectangleShadow(gc, x, y, width, height); in drawRectangleShadow() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 55 final int height = config.screenHeightDp; in getMaxActionButtons() local 57 if (smallest > 600 || (width > 960 && height > 720) || (width > 720 && height > 960)) { in getMaxActionButtons() 60 } else if (width >= 500 || (width > 640 && height > 480) || (width > 480 && height > 640)) { in getMaxActionButtons() 91 final int height = configuration.screenHeightDp; in hasEmbeddedTabs() local 93 width >= 480 || (width >= 640 && height >= 480); in hasEmbeddedTabs() 100 int height = a.getLayoutDimension(R.styleable.ActionBar_height, 0); in getTabContainerHeight() local 104 height = Math.min(height, in getTabContainerHeight() 108 return height; in getTabContainerHeight()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | VectorDrawableAtlas.cpp | 72 return first.VDrect.width() * first.VDrect.height() < in compareCacheEntry() 73 second.VDrect.width() * second.VDrect.height(); in compareCacheEntry() 110 if (!fitInAtlas(currentVDRect.width(), currentVDRect.height())) { in repack() 117 size_t VDRectArea = currentVDRect.width() * currentVDRect.height(); in repack() 119 if (canvas && mRectanizer->addRect(currentVDRect.width(), currentVDRect.height(), &pos)) { in repack() 121 SkRect::MakeXYWH(pos.fX, pos.fY, currentVDRect.width(), currentVDRect.height()); in repack() 136 SkRect newRect = SkRect::MakeWH(currentVDRect.width(), currentVDRect.height()); in repack() 137 entry.surface = createSurface(newRect.width(), newRect.height(), context); in repack() 152 AtlasEntry VectorDrawableAtlas::requestNewEntry(int width, int height, GrContext* context) { in requestNewEntry() argument 154 if (width <= 0 || height <= 0) { in requestNewEntry() [all …]
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
D | UT_global_query.java | 31 private boolean Test(int width, int height, int depth) { in Test() argument 37 if (height > 0) { in Test() 38 typeBuilder.setY(height); in Test() 48 if (height < 1) { in Test() 49 height = 1; in Test() 56 int g[] = new int[width * height * depth]; in Test() 57 int d[] = new int[width * height * depth]; in Test() 58 int r[] = new int[width * height * depth]; in Test() 62 for (int i = 0; i < width * height * depth; i++) { in Test() 84 for (int i = 0; i < width * height * depth; i++) { in Test()
|
D | UT_invert.java | 31 private boolean Test(int width, int height, int depth) { in Test() argument 37 if (height > 0) { in Test() 38 typeBuilder.setY(height); in Test() 48 if (height < 1) { in Test() 49 height = 1; in Test() 55 float a[] = new float[width * height * depth * 4]; in Test() 56 float b[] = new float[width * height * depth * 4]; in Test() 60 for (int i = 0; i < width * height * depth * 4; i++) { in Test() 77 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
|
D | UT_multi_kernel.java | 31 private boolean Test(int width, int height, int depth) { in Test() argument 37 if (height > 0) { in Test() 38 typeBuilder.setY(height); in Test() 48 if (height < 1) { in Test() 49 height = 1; in Test() 55 float a[] = new float[width * height * depth * 4]; in Test() 56 float b[] = new float[width * height * depth * 4]; in Test() 60 for (int i = 0; i < width * height * depth * 4; i++) { in Test() 79 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
|
/frameworks/av/camera/ |
D | CameraParameters2.cpp | 219 int width, height; in parseSizesList() local 220 int success = parse_pair(sizeStartPtr, &width, &height, 'x', in parseSizesList() 226 sizes.push(Size(width, height)); in parseSizesList() 235 void CameraParameters2::setPreviewSize(int width, int height) in setPreviewSize() argument 238 sprintf(str, "%dx%d", width, height); in setPreviewSize() 242 void CameraParameters2::getPreviewSize(int *width, int *height) const in getPreviewSize() 244 *width = *height = -1; in getPreviewSize() 248 parse_pair(p, width, height, 'x'); in getPreviewSize() 251 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const in getPreferredPreviewSizeForVideo() 253 *width = *height = -1; in getPreferredPreviewSizeForVideo() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 35 int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) : in AImage() argument 37 mTimestamp(timestamp), mWidth(width), mHeight(height), mNumPlanes(numPlanes) { in AImage() 119 AImage::getHeight(int32_t* height) const { in getHeight() 120 if (height == nullptr) { in getHeight() 123 *height = -1; in getHeight() 128 *height = mHeight; in getHeight() 449 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData() 454 (mLockedBuffer->height / 2 - 1) + in getPlaneData() 462 (mLockedBuffer->stride * mLockedBuffer->height); in getPlaneData() 465 ySize = mLockedBuffer->width * (mLockedBuffer->height - 1) + in getPlaneData() [all …]
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | ResourceModifiers.java | 109 final float height = mBitmap.getHeight() / 8.0f; in ResourceModifiers() local 113 0.0f, height, width, height, width * 2, height, width * 4, height, in ResourceModifiers() 114 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in ResourceModifiers() 115 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in ResourceModifiers()
|
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/ |
D | WindowUtils.java | 62 return new Rect(0, 0, displayBounds.height(), displayBounds.width()); in getDisplayBounds() 65 return new Rect(0, 0, displayBounds.width(), displayBounds.height()); in getDisplayBounds() 82 return new Rect(0, 0, displayBounds.height(), displayBounds.width()); in getAppPosition() 85 return new Rect(0, 0, displayBounds.width(), displayBounds.height()); in getAppPosition() 95 width = Math.min(displayBounds.width(), displayBounds.height()); in getStatusBarPosition() 98 width = Math.max(displayBounds.width(), displayBounds.height()); in getStatusBarPosition() 102 int height = resources.getDimensionPixelSize(resourceId); in getStatusBarPosition() local 104 return new Rect(0, 0, width, height); in getStatusBarPosition() 110 int displayWidth = Math.min(displayBounds.width(), displayBounds.height()); in getNavigationBarPosition() 111 int displayHeight = Math.max(displayBounds.width(), displayBounds.height()); in getNavigationBarPosition() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | Shape.java | 72 public final void resize(float width, float height) { in resize() argument 76 if (height < 0) { in resize() 77 height =0; in resize() 79 if (mWidth != width || mHeight != height) { in resize() 81 mHeight = height; in resize() 82 onResize(width, height); in resize() 104 protected void onResize(float width, float height) {} in onResize() argument
|