Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 1549) sorted by relevance

12345678910>>...62

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorSpace.java42 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/
DBitmapMeshLayerActivity.java50 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()
DBitmapMeshActivity.java49 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()
DAlpha8BitmapActivity.java60 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/
Dion_buffer.cpp20 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/
DImagePoolImplTest.java51 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 …]
DImagePoolHelperTest.java35 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/graphics/java/android/graphics/
DBitmap.java130 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/filterfw/native/core/
Dgeometry.cpp73 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/
DTriangleShape.java37 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/
DBitmapFillrate.cpp37 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()
DRecentsAnimation.cpp30 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()
DTvApp.cpp66 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument
67 mBg = createBitmapNode(canvas, 0xFF9C27B0, 0, 0, width, height); in createContent()
74 for (int y = dp(18) - dp(178); y < height - dp(18); y += dp(178)) { in createContent()
95 int height) { in createBitmapNode() argument
97 left, top, left + width, top + height, in createBitmapNode()
98 [this, width, height, color](RenderProperties& props, Canvas& canvas) { in createBitmapNode()
100 mAllocator(width, height, kRGBA_8888_SkColorType, in createBitmapNode()
106 sp<RenderNode> createSharedBitmapNode(Canvas& canvas, int left, int top, int width, int height, in createSharedBitmapNode() argument
108 return TestUtils::createNode(left, top, left + width, top + height, in createSharedBitmapNode()
114 sp<RenderNode> createInfoNode(Canvas& canvas, int left, int top, int width, int height, in createInfoNode() argument
[all …]
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java75 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/
DShadowPainter.java83 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/media/mca/filterpacks/native/base/
Dgeometry.cpp74 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/libs/hwui/pipeline/skia/
DVectorDrawableAtlas.cpp72 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/base/core/java/com/android/internal/view/
DActionBarPolicy.java55 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/av/media/ndk/
DNdkImage.cpp35 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()
105 AImage::getHeight(int32_t* height) const { in getHeight()
106 if (height == nullptr) { in getHeight()
109 *height = -1; in getHeight()
114 *height = mHeight; in getHeight()
435 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData()
440 (mLockedBuffer->height / 2 - 1) + in getPlaneData()
448 (mLockedBuffer->stride * mLockedBuffer->height); in getPlaneData()
451 ySize = mLockedBuffer->width * (mLockedBuffer->height - 1) + in getPlaneData()
[all …]
/frameworks/av/camera/
DCameraParameters2.cpp220 int width, height; in parseSizesList() local
221 int success = parse_pair(sizeStartPtr, &width, &height, 'x', in parseSizesList()
227 sizes.push(Size(width, height)); in parseSizesList()
236 void CameraParameters2::setPreviewSize(int width, int height) in setPreviewSize() argument
239 sprintf(str, "%dx%d", width, height); in setPreviewSize()
243 void CameraParameters2::getPreviewSize(int *width, int *height) const in getPreviewSize()
245 *width = *height = -1; in getPreviewSize()
249 parse_pair(p, width, height, 'x'); in getPreviewSize()
252 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const in getPreferredPreviewSizeForVideo()
254 *width = *height = -1; in getPreferredPreviewSizeForVideo()
[all …]
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp84 … list.keyAt(i), static_cast<double>(rec.size) / 1024.0, rec.width, rec.stride, rec.height, in dump()
89 list.keyAt(i), rec.width, rec.stride, rec.height, rec.layerCount, in dump()
106 status_t GraphicBufferAllocator::allocate(uint32_t width, uint32_t height, in allocate() argument
115 if (!width || !height) in allocate()
116 width = height = 1; in allocate()
119 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocate()
122 width, height, layerCount, format, usage); in allocate()
134 mAllocator->allocate(width, height, format, layerCount, usage, 1, stride, handle); in allocate()
140 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocate()
141 bufSize = static_cast<size_t>(width) * height * bpp; in allocate()
[all …]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java109 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/media/jni/
Dandroid_media_Utils.cpp90 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
153 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
157 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo()
163 cr = buffer->data + (buffer->stride * buffer->height); in getLockedImageInfo()
166 ySize = buffer->width * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
167 cSize = buffer->width * (buffer->height / 2 - 1) + buffer->width - 1; in getLockedImageInfo()
185 ySize = buffer->stride * buffer->height; in getLockedImageInfo()
188 cSize = cStride * buffer->height / 2; in getLockedImageInfo()
206 dataSize = buffer->stride * buffer->height; in getLockedImageInfo()
216 dataSize = buffer->stride * buffer->height * bytesPerPixel; in getLockedImageInfo()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java193 int height = pixels.getHeight(); in setThumbnail() local
195 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
197 "," + height + ") too large, dimensions must be smaller than " + in setThumbnail()
202 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
234 int height = pixels.getHeight(); in setThumbnail() local
236 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
238 "," + height + ") too large, dimensions must be smaller than " + in setThumbnail()
243 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
348 int height = size.getHeight(); in writeInputStream() local
349 if (width <= 0 || height <= 0) { in writeInputStream()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp72 int32_t height; in main() local
74 height = atoi(argv[5]); in main()
75 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) { in main()
76 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height); in main()
80 if (width % 16 != 0 || height % 16 != 0) { in main()
82 width, height); in main()
103 uint8_t *inputBuf = (uint8_t *)malloc((width * height * 3) / 2); in main()
147 encParams.encHeight[0] = height; in main()
207 int32_t frameSize = (width * height * 3) / 2; in main()
222 vin.height = height; // height is multiple of 16. in main()
[all …]

12345678910>>...62