Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 1402) sorted by relevance

12345678910>>...57

/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DColorSpace.java43 expectInputSize(input, (3 * width * height) / 2); in convertYuv420pToRgba8888()
44 expectOutputSize(output, width * height * 4); in convertYuv420pToRgba8888()
45 nativeYuv420pToRgba8888(input, output, width, height); in convertYuv420pToRgba8888()
62 expectInputSize(input, width * height * 4); in convertArgb8888ToRgba8888()
63 expectOutputSize(output, width * height * 4); in convertArgb8888ToRgba8888()
64 nativeArgb8888ToRgba8888(input, output, width, height); in convertArgb8888ToRgba8888()
81 expectInputSize(input, width * height * 4); in convertRgba8888ToHsva8888()
82 expectOutputSize(output, width * height * 4); in convertRgba8888ToHsva8888()
83 nativeRgba8888ToHsva8888(input, output, width, height); in convertRgba8888ToHsva8888()
100 expectInputSize(input, width * height * 4); in convertRgba8888ToYcbcra8888()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/text/
H A DPackedIntVectorTest.java39 for (int width = 0; width < 10; width++) { in testBasic()
41 int[] ins = new int[width]; in testBasic()
43 for (int height = width * 2; height < width * 4; height++) { in testBasic()
44 assertEquals(p.width(), width); in testBasic() local
57 for (int j = 0; j < width; j++) { in testBasic()
69 for (int j = 0; j < width; j++) { in testBasic()
81 for (int j = 0; j < width; j++) { in testBasic()
90 for (int j = 0; j < width; j++) { in testBasic()
95 for (int j = 0; j < width; j++) { in testBasic()
106 for (int j = 0; j < width; j++) { in testBasic()
[all …]
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapMeshLayerActivity.java49 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
53 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
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()
H A DBitmapMeshActivity.java48 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
52 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
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()
H A DAlpha8BitmapActivity.java59 final float width = texture.getWidth() / 3.0f; in BitmapsView() local
63 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapsView()
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()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DLegacySizeSpecSource.kt96 val width: Int
103 width = minSize
104 height = Math.round(width / aspectRatio)
117 width = Math.round(height * aspectRatio)
119 return Size(width, height)
145 val width: Int
149 width = minSize
150 height = Math.round(width / aspectRatio)
154 width = Math.round(height * aspectRatio)
156 return Size(width, height)
[all …]
H A DPhoneSizeSpecSource.kt91 (displayBounds.width() - insetBounds.right))
132 minSize.width)
178 val currAspectRatio = size.width.toFloat() / size.height
182 val currentPercent = size.width.toFloat() / currentMaxSize.width
186 var width = Math.round(updatedMaxSize.width * currentPercent) regex
193 if (width < minEdgeSize && aspectRatio <= 1) {
194 width = minEdgeSize
195 height = Math.round(width / aspectRatio)
198 width = Math.round(height * aspectRatio)
202 return Size(width, height)
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java174 if (width <= 0 || height <= 0) { in YuvImage()
195 mWidth = width; in YuvImage()
373 strides = new int[] {width, width}; in calculateStrides()
376 strides = new int[] {width * 2, width * 2}; in calculateStrides()
379 strides = new int[] {width, (width + 1) / 2, (width + 1) / 2}; in calculateStrides()
382 strides = new int[] {width * 2}; in calculateStrides()
391 int width = rect.width(); in adjustRectangle() local
395 width &= ~1; in adjustRectangle()
399 rect.right = rect.left + width; in adjustRectangle()
405 width &= ~1; in adjustRectangle()
[all …]
H A DBitmap.java143 mWidth = width; in Bitmap()
185 mWidth = width; in reinit()
286 if (width <= 0 || height <= 0) { in reconfigure()
294 mWidth = width; in reconfigure()
311 public void setWidth(int width) { in setWidth() argument
444 if (width <= 0) { in checkWidthHeight()
924 int neww = width; in createBitmap()
1206 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true, in createBitmap()
1315 return createBitmap(null, colors, 0, width, width, height, config); in createBitmap()
1340 return createBitmap(display, colors, 0, width, width, height, config); in createBitmap()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/
H A DUnfoldMoveFromCenterAnimatorTest.kt59 val view = createView(x = 20, width = 10, height = 10)
75 val view = createView(x = 20, width = 10, height = 10)
91 val view = createView(x = 20, width = 10, height = 10)
123 val view = createView(x = 20, width = 10, height = 10)
136 val view = createView(x = 20, width = 10, height = 10)
178 width: Int = 10,
191 whenever(view.width).thenReturn(width)
202 width: Int = 10,
214 whenever(this.width).thenReturn(width)
224 width: Int = 100,
[all …]
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/
H A DGainmapTransformsTest.kt74 val width: Int = it.width
78 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat())
79 Bitmap.createBitmap(it, 0, 0, width, height, m, false)
85 val width: Int = it.width
91 Bitmap.createBitmap(it, 0, 0, width, height, m, false)
97 val width: Int = it.width
99 Bitmap.createBitmap(it, width / 2, height / 2,
100 width / 4, height / 4, null, false)
106 val width: Int = it.width
111 Bitmap.createBitmap(it, width / 2, height / 2,
[all …]
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/
H A DBitmapFillrate.cpp38 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument
40 createNode(canvas, 0x909C27B0, 0, 0, width, height); in createContent()
41 createNode(canvas, 0xA0CDDC39, width / 3, height / 3, width, height); in createContent()
42 createNode(canvas, 0x90009688, width / 3, 0, width, height); in createContent()
43 createNode(canvas, 0xA0FF5722, 0, height / 3, width, height); in createContent()
44 createNode(canvas, 0x9000796B, width / 6, height / 6, width, height); in createContent()
45 createNode(canvas, 0xA0FFC107, width / 6, 0, width, height); in createContent()
57 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode() argument
58 int itemWidth = 2 * width / 3; in createNode()
H A DTvApp.cpp71 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument
72 mBg = createBitmapNode(canvas, 0xFF9C27B0, 0, 0, width, height); in createContent()
81 for (int x = dp(18); x < width - dp(18); x += dp(178)) { in createContent()
102 left, top, left + width, top + height, in createBitmapNode()
105 mAllocator(width, height, kRGBA_8888_SkColorType, in createBitmapNode()
113 return TestUtils::createNode(left, top, left + width, top + height, in createSharedBitmapNode()
121 return TestUtils::createNode(left, top, left + width, top + height, in createInfoNode()
139 return TestUtils::createNode(left, top, left + width, top + height, in createColorNode()
152 sp<RenderNode> createCard(int x, int y, int width, int height, bool selected) { in createCard() argument
153 return TestUtils::createNode(x, y, x + width, y + height, [width, height, selected, this]( in createCard()
[all …]
/aosp14/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
77 const float current_ratio = width / height; in ExpandToAspectRatio()
79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
81 width += dx; 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()
99 width += dx; 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()
122 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DTriangleShape.java37 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument
41 triangularPath.lineTo(width, height); in create()
42 triangularPath.lineTo(width / 2, 0); in create()
46 triangularPath.lineTo(width / 2, height); in create()
47 triangularPath.lineTo(width, 0); in create()
50 return new TriangleShape(triangularPath, width, height); in create()
55 float width, float height, boolean isPointingLeft) { in createHorizontal() argument
59 triangularPath.lineTo(width, height); in createHorizontal()
60 triangularPath.lineTo(width, 0); in createHorizontal()
64 triangularPath.lineTo(width, height / 2); in createHorizontal()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTriangleShape.java39 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument
43 triangularPath.lineTo(width, height); in create()
44 triangularPath.lineTo(width / 2, 0); in create()
48 triangularPath.lineTo(width / 2, height); in create()
49 triangularPath.lineTo(width, 0); in create()
52 return new TriangleShape(triangularPath, width, height); in create()
57 float width, float height, boolean isPointingLeft) { in createHorizontal() argument
61 triangularPath.lineTo(width, height); in createHorizontal()
62 triangularPath.lineTo(width, 0); in createHorizontal()
66 triangularPath.lineTo(width, height / 2); in createHorizontal()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java192 int width = pixels.getWidth(); in setThumbnail() local
233 int width = pixels.getWidth(); in setThumbnail() local
347 int width = size.getWidth(); in writeInputStream() local
349 if (width <= 0 || height <= 0) { in writeInputStream()
402 int width = size.getWidth(); in writeByteBuffer() local
495 if (width <= 0 || height <= 0) { in writeByteBuffer()
552 int width = yuvImage.getWidth(); in convertToRGB() local
589 for (int j = 0; j < width; j++) { in convertToRGB()
611 int width = argbBitmap.getWidth(); in convertToRGB() local
615 int[] pixelRow = new int[width]; in convertToRGB()
[all …]
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_Utils.cpp117 uint32_t width = buffer->width; in Image_getBlobSize() local
121 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
147 __FUNCTION__, width); in Image_getBlobSize()
148 size = width; in Image_getBlobSize()
190 if (buffer->width <= 0) { in getLockedImageInfo()
231 if (buffer->width <= 0) { in getLockedImageInfo()
244 ySize = buffer->width * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
245 cSize = buffer->width * (buffer->height / 2 - 1) + buffer->width - 1; in getLockedImageInfo()
256 rStride = buffer->width; in getLockedImageInfo()
270 if (buffer->width <= 0) { in getLockedImageInfo()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_text_AndroidCharacter.cpp101 int width = u_getIntPropertyValue(input, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidth() local
102 if (width < 0 || width > u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH)) in getEastAsianWidth()
103 width = PROPERTY_UNDEFINED; in getEastAsianWidth()
105 return width; in getEastAsianWidth()
136 if (width < 0 || width > maxWidth) in getEastAsianWidths()
137 width = PROPERTY_UNDEFINED; in getEastAsianWidths()
139 dest[i++] = width; in getEastAsianWidths()
140 dest[i] = width; in getEastAsianWidths()
144 if (width < 0 || width > maxWidth) in getEastAsianWidths()
145 width = PROPERTY_UNDEFINED; in getEastAsianWidths()
[all …]
/aosp14/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java74 int width = texture.getWidth(); in loadTexture() local
84 int stride = pixelSize * width; in loadTexture()
117 public ETC1Texture(int width, int height, ByteBuffer data) { in ETC1Texture() argument
118 mWidth = width; in ETC1Texture()
153 int width = 0; in createTexture() local
166 width = ETC1.getWidth(headerBuffer); in createTexture()
169 int encodedSize = ETC1.getEncodedDataSize(width, height); in createTexture()
180 return new ETC1Texture(width, height, dataBuffer); in createTexture()
197 return new ETC1Texture(width, height, compressedImage); in compressTexture()
210 int width = texture.getWidth(); in writeTexture() local
[all …]
/aosp14/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp74 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
78 const float current_ratio = width / height; in ExpandToAspectRatio()
80 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
82 width += dx; 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()
100 width += dx; 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()
123 const float dx = width * (f - 1.0f); in ScaleWithLengthLimit()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/
H A DYuvToJpegEncoder.cpp133 int width, int height, int quality) { in setJpegCompressStruct() argument
134 cinfo->image_width = width; in setJpegCompressStruct()
164 int width = cinfo->image_width; in compress() local
204 for (int i = 0; i < (width >> 1); ++i) { in deinterleave()
205 int index = row * (width >> 1) + i; in deinterleave()
240 int width = cinfo->image_width; in compress() local
242 uint8_t* yRows = new uint8_t [16 * width]; in compress()
255 y[i] = yRows + i * width; in compress()
259 int offset = i * (width >> 1); in compress()
361 p010.width = width; in encode()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DTaskResizingAlgorithm.java89 int width = right - left; in resizeDrag() local
92 width = Math.max(minVisibleWidth, Math.min(width - deltaX, maxVisibleSize.x)); in resizeDrag()
94 width = Math.max(minVisibleWidth, Math.min(width + deltaX, maxVisibleSize.x)); in resizeDrag()
103 final float aspect = (float) width / (float) height; in resizeDrag()
124 width2 = Math.max(width, Math.round((float) height2 * MIN_ASPECT)); in resizeDrag()
143 width2 = Math.min(width, Math.round((float) height2 / MIN_ASPECT)); in resizeDrag()
154 final boolean grows = width > (right - left) || height > (bottom - top); in resizeDrag()
156 width = width1; in resizeDrag()
159 width = width2; in resizeDrag()
166 left = right - width; in resizeDrag()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/
H A DRippleShaderTest.kt48 assertThat(maxSize.width).isEqualTo(expectedMaxWidth)
54 val expectedSize0 = RippleShader.SizeAtProgress(t = 0f, width = 100f, height = 100f)
55 val expectedSize1 = RippleShader.SizeAtProgress(t = 0.2f, width = 1500f, height = 1200f)
56 val expectedSize2 = RippleShader.SizeAtProgress(t = 0.4f, width = 200f, height = 70f)
68 val expectedSize0 = RippleShader.SizeAtProgress(t = 0f, width = 100f, height = 100f)
70 val expectedSize2 = RippleShader.SizeAtProgress(t = 0.4f, width = 200f, height = 70f)
71 val expectedSize3 = RippleShader.SizeAtProgress(t = 0.8f, width = 300f, height = 900f)
72 val expectedSize4 = RippleShader.SizeAtProgress(t = 1f, width = 500f, height = 300f)
93 val expectedSize0 = RippleShader.SizeAtProgress(t = 0f, width = 100f, height = 100f)
95 val expectedSize2 = RippleShader.SizeAtProgress(t = 0.4f, width = 200f, height = 70f)
[all …]
/aosp14/frameworks/base/libs/hwui/utils/
H A DBlur.cpp95 int32_t width, int32_t height) { in horizontal() argument
100 const uint8_t* input = source + y * width; in horizontal()
101 uint8_t* output = dest + y * width; in horizontal()
103 for (int32_t x = 0; x < width; x++) { in horizontal()
107 if (x > radius && x < (width - radius)) { in horizontal()
122 if (validW > width - 1) { in horizontal()
123 validW = width - 1; in horizontal()
138 int32_t width, int32_t height) { in vertical() argument
143 uint8_t* output = dest + y * width; in vertical()
145 for (int32_t x = 0; x < width; x++) { in vertical()
[all …]

12345678910>>...57