Home
last modified time | relevance | path

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

12345678910>>...74

/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/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/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/base/media/jni/
Dandroid_media_Utils.cpp91 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
150 if (buffer->height % 2 != 0) { in getLockedImageInfo()
151 ALOGE("YCbCr_420_888: height (%d) should be a multiple of 2", buffer->height); in getLockedImageInfo()
160 if (buffer->height <= 0) { in getLockedImageInfo()
161 ALOGE("YCbCr_420_888: height (%d) should be a > 0", buffer->height); in getLockedImageInfo()
175 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
179 dataSize = buffer->chromaStride * (buffer->height / 2 - 1) + in getLockedImageInfo()
191 if (buffer->height % 2 != 0) { in getLockedImageInfo()
192 ALOGE("YCrCb_420_SP: height (%d) should be a multiple of 2", buffer->height); in getLockedImageInfo()
201 if (buffer->height <= 0) { in getLockedImageInfo()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java52 int height = 800; in testImageDispose() local
55 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDispose()
56 Image img1 = pool.acquire(width, height, type, in testImageDispose()
69 int height = 800; in testImageDisposeFromFunction() local
72 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDisposeFromFunction()
74 BufferedImage img = createImageAndReturnBufferedImage(pool, width, height, type, cd); in testImageDisposeFromFunction()
85 int height = 800; in testImageDisposedAndRecycled() local
99 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled()
117 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled()
136 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.java124 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
127 this(nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap()
132 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
140 mHeight = height; in Bitmap()
180 void reinit(int width, int height, boolean requestPremultiplied) { in reinit() argument
182 mHeight = height; in reinit()
280 public void reconfigure(int width, int height, Config config) { in reconfigure() argument
282 if (width <= 0 || height <= 0) { in reconfigure()
289 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure()
291 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/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTriangleShape.java39 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument
42 triangularPath.moveTo(0, height); in create()
43 triangularPath.lineTo(width, height); in create()
48 triangularPath.lineTo(width / 2, height); in create()
52 return new TriangleShape(triangularPath, width, height); in create()
57 float width, float height, boolean isPointingLeft) { in createHorizontal() argument
60 triangularPath.moveTo(0, height / 2); in createHorizontal()
61 triangularPath.lineTo(width, height); in createHorizontal()
65 triangularPath.moveTo(0, height); in createHorizontal()
66 triangularPath.lineTo(width, height / 2); in createHorizontal()
[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()
/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/av/media/libmediaformatshaper/
DCodecProperties.cpp182 int32_t height = 0; in bppPoint() local
187 width = 1080; height = 1920; in bppPoint()
189 width = 720; height = 1280; in bppPoint()
191 width = 540; height = 960; in bppPoint()
193 width = 480; height = 854; in bppPoint()
213 height = strtol(p, &q, 0); in bppPoint()
215 height = -1; in bppPoint()
217 if (width <= 0 || height <= 0 || width > DIMENSION_LIMIT || height > DIMENSION_LIMIT) { in bppPoint()
237 point->pixels = width * height; in bppPoint()
239 point->height = height; in bppPoint()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DZoomRatioTest.cpp165 int32_t height = testActiveArraySize[3]; in subScaleCoordinatesTest() local
169 height = testPreCorrActiveArraySize[3]; in subScaleCoordinatesTest()
175 0, height - 1, // bottom-left in subScaleCoordinatesTest()
176 width - 1, height - 1, // bottom-right in subScaleCoordinatesTest()
177 (width - 1) / 2, (height - 1) / 2, // center in subScaleCoordinatesTest()
178 (width - 1) / 4, (height - 1) / 4, // top-left after 2x in subScaleCoordinatesTest()
179 (width - 1) / 3, (height - 1) * 2 / 3, // bottom-left after 3x zoom in subScaleCoordinatesTest()
180 (width - 1) * 7 / 8, (height - 1) / 2, // middle-right after 1.33x zoom in subScaleCoordinatesTest()
185 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
192 - (width - 1) / 2.0f, - (height - 1) / 2.0f,// top-left in subScaleCoordinatesTest()
[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/native/libs/ui/
DGraphicBufferAllocator.cpp95 list.keyAt(i), sizeStr.c_str(), rec.width, rec.stride, rec.height, in dump()
111 status_t GraphicBufferAllocator::allocateHelper(uint32_t width, uint32_t height, PixelFormat format, in allocateHelper() argument
119 if (!width || !height) in allocateHelper()
120 width = height = 1; in allocateHelper()
123 if (std::numeric_limits<size_t>::max() / width / height < static_cast<size_t>(bpp)) { in allocateHelper()
126 width, height, layerCount, format, usage); in allocateHelper()
138 status_t error = mAllocator->allocate(requestorName, width, height, format, layerCount, usage, in allocateHelper()
143 width, height, layerCount, format, usage, error); in allocateHelper()
155 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocateHelper()
156 bufSize = static_cast<size_t>(width) * height * bpp; in allocateHelper()
[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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBitmapRenderer.java35 static Bitmap createSoftwareBitmap(int width, int height, BitmapRenderer renderer) { in createSoftwareBitmap() argument
37 Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in createSoftwareBitmap()
43 static Bitmap createHardwareBitmap(int width, int height, BitmapRenderer renderer) { in createHardwareBitmap() argument
45 return createSoftwareBitmap(width, height, renderer); in createHardwareBitmap()
50 renderer.draw(picture.beginRecording(width, height)); in createHardwareBitmap()
59 static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) { in createBitmap() argument
61 return createHardwareBitmap(width, height, c -> c.drawBitmap(source, in createBitmap()
62 new Rect(x, y, x + width, y + height), new RectF(0, 0, width, height), null)); in createBitmap()
65 return Bitmap.createBitmap(source, x, y, width, height); in createBitmap()
/frameworks/base/core/java/com/android/internal/policy/
DTaskResizingAlgorithm.java90 int height = bottom - top; in resizeDrag() local
97 height = Math.max(minVisibleHeight, Math.min(height - deltaY, maxVisibleSize.y)); in resizeDrag()
99 height = Math.max(minVisibleHeight, Math.min(height + deltaY, maxVisibleSize.y)); in resizeDrag()
103 final float aspect = (float) width / (float) height; in resizeDrag()
115 height1 = Math.min(height, Math.round((float) width1 / MIN_ASPECT)); in resizeDrag()
123 height2 = Math.max(minVisibleHeight, Math.min(maxVisibleSize.y, height)); in resizeDrag()
134 height1 = Math.max(height, Math.round((float) width1 * MIN_ASPECT)); in resizeDrag()
142 height2 = Math.max(minVisibleHeight, Math.min(maxVisibleSize.y, height)); in resizeDrag()
154 final boolean grows = width > (right - left) || height > (bottom - top); in resizeDrag()
157 height = height1; in resizeDrag()
[all …]
/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/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()

12345678910>>...74