/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorSpace.java | 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() 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/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
H A D | LegacySizeSpecSource.kt | 69 getDisplayBounds().height()) 93 getDisplayBounds().height()) 97 val height: Int 107 height = minSize 117 width = Math.round(height * aspectRatio) 119 return Size(width, height) 127 getDisplayBounds().height()) 146 val height: Int 153 height = minSize 156 return Size(width, height) [all …]
|
H A D | PhoneSizeSpecSource.kt | 93 (displayBounds.height() - insetBounds.bottom)) 95 displayBounds.height() - totalVerticalPadding) 178 val currAspectRatio = size.width.toFloat() / size.height 187 var height = Math.round(updatedMaxSize.height * currentPercent) regex 195 height = Math.round(width / aspectRatio) 196 } else if (height < minEdgeSize && aspectRatio > 1) { 197 height = minEdgeSize 198 width = Math.round(height * aspectRatio) 202 return Size(width, height) 214 overrideMinSize.height < mOverridableMinSize) { [all …]
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A 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()
|
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
H A D | UnfoldMoveFromCenterAnimatorTest.kt | 59 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) 179 height: Int = 10, 192 whenever(view.height).thenReturn(height) 203 height: Int = 10, 215 whenever(this.height).thenReturn(height) 225 height: Int = 100, [all …]
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | GainmapTransformsTest.kt | 75 val height: Int = it.height 78 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat()) 79 Bitmap.createBitmap(it, 0, 0, width, height, m, false) 86 val height: Int = it.height 91 Bitmap.createBitmap(it, 0, 0, width, height, m, false) 98 val height: Int = it.height 99 Bitmap.createBitmap(it, width / 2, height / 2, 100 width / 4, height / 4, null, false) 107 val height: Int = it.height 111 Bitmap.createBitmap(it, width / 2, height / 2, [all …]
|
/aosp14/frameworks/base/media/mca/filterfw/native/core/ |
H A 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() 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() 125 const float dy = height * (f - 1.0f); in ScaleWithLengthLimit() [all …]
|
/aosp14/frameworks/base/media/jni/ |
H A D | android_media_Utils.cpp | 185 if (buffer->height % 2 != 0) { in getLockedImageInfo() 195 if (buffer->height <= 0) { in getLockedImageInfo() 226 if (buffer->height % 2 != 0) { in getLockedImageInfo() 236 if (buffer->height <= 0) { in getLockedImageInfo() 265 if (buffer->height % 2 != 0) { in getLockedImageInfo() 275 if (buffer->height <= 0) { in getLockedImageInfo() 287 cSize = cStride * buffer->height / 2; in getLockedImageInfo() 301 if (buffer->height % 2 != 0) { in getLockedImageInfo() 311 if (buffer->height <= 0) { in getLockedImageInfo() 535 outputImage->height = buffer->getHeight(); in extractP010Gralloc4PlaneLayout() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A 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 …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
H A D | TriangleShape.java | 39 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 …]
|
/aosp14/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | BitmapFillrate.cpp | 38 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 59 int itemHeight = 2 * height / 3; in createNode()
|
H A D | RecentsAnimation.cpp | 35 void createContent(int width, int height, Canvas& renderer) override { in createContent() argument 40 thumbnailSize = std::min(std::min(width, height) / 2, 720); in createContent() 41 int cardsize = std::min(width, height) - dp(64); in createContent() 48 int y = (height / 4) * i; in createContent() 74 sp<RenderNode> createCard(int x, int y, int width, int height, Bitmap& thumb) { in createCard() argument 76 x, y, x + width, y + height, in createCard() 77 [&thumb, width, height](RenderProperties& props, Canvas& canvas) { in createCard() 79 props.mutableOutline().setRoundRect(0, 0, width, height, dp(10), 1); in createCard() 83 canvas.drawBitmap(thumb, 0, 0, thumb.width(), thumb.height(), 0, 0, width, in createCard() 84 height, nullptr); in createCard()
|
H A D | TvApp.cpp | 71 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument 72 mBg = createBitmapNode(canvas, 0xFF9C27B0, 0, 0, width, height); in createContent() 79 for (int y = dp(18) - dp(178); y < height - dp(18); y += dp(178)) { in createContent() 100 int height) { in createBitmapNode() argument 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() 153 return TestUtils::createNode(x, y, x + width, y + height, [width, height, selected, this]( in createCard() [all …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 144 mHeight = height; in Bitmap() 186 mHeight = height; in reinit() 286 if (width <= 0 || height <= 0) { in reconfigure() 295 mHeight = height; in reconfigure() 327 public void setHeight(int height) { in setHeight() argument 447 if (height <= 0) { in checkWidthHeight() 901 checkWidthHeight(width, height); in createBitmap() 925 int newh = height; in createBitmap() 1196 if (width <= 0 || height <= 0) { in createBitmap() 2146 if (height < 0) { in checkPixelsAccess() [all …]
|
/aosp14/frameworks/base/opengl/java/android/opengl/ |
H A D | ETC1Util.java | 75 int height = texture.getHeight(); in loadTexture() local 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() 180 return new ETC1Texture(width, height, dataBuffer); in createTexture() 197 return new ETC1Texture(width, height, compressedImage); in compressTexture() 211 int height = texture.getHeight(); in writeTexture() local 213 ETC1.formatHeader(header, width, height); in writeTexture() [all …]
|
/aosp14/frameworks/base/media/mca/filterpacks/native/base/ |
H A 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() 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() 126 const float dy = height * (f - 1.0f); in ScaleWithLengthLimit() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/view/ |
H A 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | TaskResizingAlgorithm.java | 90 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() 134 height1 = Math.max(height, Math.round((float) width1 * MIN_ASPECT)); in resizeDrag() 154 final boolean grows = width > (right - left) || height > (bottom - top); in resizeDrag() 157 height = height1; in resizeDrag() 160 height = height2; in resizeDrag() 171 top = bottom - height; in resizeDrag() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/ |
H A D | RippleShaderTest.kt | 49 assertThat(maxSize.height).isEqualTo(expectedMaxHeight) 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/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 193 int height = pixels.getHeight(); in setThumbnail() local 234 int height = pixels.getHeight(); in setThumbnail() local 348 int height = size.getHeight(); in writeInputStream() local 349 if (width <= 0 || height <= 0) { in writeInputStream() 403 int height = size.getHeight(); in writeByteBuffer() local 495 if (width <= 0 || height <= 0) { in writeByteBuffer() 497 height + ") passed to write"); in writeByteBuffer() 553 int height = yuvImage.getHeight(); in convertToRGB() local 581 for (int i = 0; i < height; i++) { in convertToRGB() 612 int height = argbBitmap.getHeight(); in convertToRGB() local [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | LaunchParamsUtil.java | 57 static void centerBounds(@NonNull TaskDisplayArea displayArea, int width, int height, in centerBounds() argument 63 final int top = inOutBounds.centerY() - height / 2; in centerBounds() 64 inOutBounds.set(left, top, left + width, top + height); in centerBounds() 94 final int portraitHeight = Math.min(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 95 final int otherDimension = Math.max(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 103 final float aspectRatio = (float) Math.max(width, height) / (float) Math.min(width, height); in getDefaultFreeformSize() 111 int adjHeight = height; in getDefaultFreeformSize() 147 || stableBounds.height() < inOutBounds.height()) { in adjustBoundsToFitInDisplayArea() 150 stableBounds.height() / (float) inOutBounds.height(); in adjustBoundsToFitInDisplayArea() 157 (int) (inOutBounds.height() * shrinkRatio)); in adjustBoundsToFitInDisplayArea() [all …]
|
/aosp14/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/ |
H A D | SurfaceViewSyncActivity.java | 81 final float height; in updateSurfaceViewSize() local 83 height = bounds.height() / 2f; in updateSurfaceViewSize() 86 height = bounds.height() / 1.5f; in updateSurfaceViewSize() 97 svParams.height = (int) height; in updateSurfaceViewSize() 111 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument 114 mRenderingThread.renderFrame(null, width, height); in surfaceChanged() 118 mRenderingThread.renderFrame(frameCallback, width, height)); in surfaceChanged() 122 mRenderingThread.renderFrame(null, width, height); in surfaceChanged() 149 int height) { in renderFrame() argument 153 mSurfaceSize.set(width, height); in renderFrame()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ |
H A D | ActivityEmbeddingAnimationSpec.java | 102 startTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsOpenAnimation() 111 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsOpenAnimation() 130 endTop = parentBounds.top == bounds.top ? -bounds.height() : bounds.height(); in createChangeBoundsCloseAnimation() 139 animation.initialize(bounds.width(), bounds.height(), bounds.width(), bounds.height()); in createChangeBoundsCloseAnimation() 157 float scaleY = ((float) startBounds.height()) / endBounds.height(); in createChangeBoundsChangeAnimations() 175 startSet.initialize(startBounds.width(), startBounds.height(), endBounds.width(), in createChangeBoundsChangeAnimations() 176 endBounds.height()); in createChangeBoundsChangeAnimations() 192 parentBounds.height()); in createChangeBoundsChangeAnimations() 216 animation.initialize(wholeAnimationBounds.width(), wholeAnimationBounds.height(), in loadOpenAnimation() 217 wholeAnimationBounds.width(), wholeAnimationBounds.height()); in loadOpenAnimation() [all …]
|