/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/av/media/module/codecs/m4v_h263/dec/src/ |
D | mb_motion_comp.cpp | 144 int height, width, pred_width; in MBMotionComp() local 165 width = video->width; in MBMotionComp() 181 offset = (int32)ypos * width + xpos; in MBMotionComp() 268 pred_width = width; in MBMotionComp() 272 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp() 278 GetPredAdvBTable[ypred&1][xpred&1](c_prev + (xpred >> 1) + ((ypred >> 1)*width), in MBMotionComp() 279 pred, width, (pred_width << 1) | round1); in MBMotionComp() 286 pred, width, height, round1, pred_width); in MBMotionComp() 304 pred_width = width; in MBMotionComp() 308 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp() [all …]
|
D | mb_utils.cpp | 25 void PutSKIPPED_MB(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_MB() argument 42 comp += width; in PutSKIPPED_MB() 43 prev += width; in PutSKIPPED_MB() 53 comp += width; in PutSKIPPED_MB() 54 prev += width; in PutSKIPPED_MB() 64 comp += width; in PutSKIPPED_MB() 65 prev += width; in PutSKIPPED_MB() 74 comp += width; in PutSKIPPED_MB() 75 prev += width; in PutSKIPPED_MB() 86 void PutSKIPPED_B(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_B() argument [all …]
|
D | block_idct.cpp | 123 static void idctrow(int16 *blk, uint8 *pred, uint8 *dst, int width); 124 static void idctrow_intra(int16 *blk, PIXEL *, int width); 231 int width, width_uv; in MBlockIDCT() local 233 width = video->width; in MBlockIDCT() 234 width_uv = width >> 1; in MBlockIDCT() 235 offset = (int32)(y_pos << 4) * width + (x_pos << 4); in MBlockIDCT() 241 BlockIDCT_intra(mblock, c_comp, 0, width); in MBlockIDCT() 242 BlockIDCT_intra(mblock, c_comp + 8, 1, width); in MBlockIDCT() 243 BlockIDCT_intra(mblock, c_comp + (width << 3), 2, width); in MBlockIDCT() 244 BlockIDCT_intra(mblock, c_comp + (width << 3) + 8, 3, width); in MBlockIDCT() [all …]
|
D | idct.h | 48 void idctrow0(int16 *blk, uint8 *pred, uint8 *dst, int width); 49 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width); 50 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width); 51 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width); 52 void idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width); 59 void idctrow0_intra(int16 *blk, PIXEL *comp, int width); 60 void idctrow1_intra(int16 *blk, PIXEL *comp, int width); 61 void idctrow2_intra(int16 *blk, PIXEL *comp, int width); 62 void idctrow3_intra(int16 *blk, PIXEL *comp, int width); 63 void idctrow4_intra(int16 *blk, PIXEL *comp, int width);
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 39 for (int width = 0; width < 10; width++) { in testBasic() 40 PackedIntVector p = new PackedIntVector(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() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapMeshLayerActivity.java | 49 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()
|
D | BitmapMeshActivity.java | 48 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()
|
D | Alpha8BitmapActivity.java | 59 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()
|
/frameworks/av/services/camera/virtualcamera/tests/ |
D | VirtualCameraDeviceTest.cc | 69 .width = kVgaWidth, 76 .width = kVgaWidth, 82 const int width; member 91 return a.width == b.width && a.height == b.height && in operator ==() 98 os << config.width << "x" << config.height << " (pixfmt " in operator <<() 118 .width = entry.data.i32[i + 1], in getAvailableStreamConfigurations() 153 .width = config.width, in TEST_P() 171 .width = kVgaWidth, 180 .width = kQvgaWidth, 185 .width = kQvgaWidth, [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchParamsUtil.java | 59 static void centerBounds(@NonNull TaskDisplayArea displayArea, int width, int height, in centerBounds() argument 64 final int left = inOutBounds.centerX() - width / 2; in centerBounds() 66 inOutBounds.set(left, top, left + width, top + height); in centerBounds() 96 final int portraitHeight = Math.min(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 97 final int otherDimension = Math.max(stableBounds.width(), stableBounds.height()); in getDefaultFreeformSize() 103 final int width = Math.min(maxWidth, Math.max(freeformWidth, layoutMinWidth)); in getDefaultFreeformSize() local 105 final float aspectRatio = (float) Math.max(width, height) / (float) Math.min(width, height); in getDefaultFreeformSize() 112 int adjWidth = width; in getDefaultFreeformSize() 148 if (stableBounds.width() < inOutBounds.width() in adjustBoundsToFitInDisplayArea() 150 final float heightShrinkRatio = stableBounds.width() / (float) inOutBounds.width(); in adjustBoundsToFitInDisplayArea() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | LegacySizeSpecSource.kt | 68 val shorterLength: Int = Math.min(getDisplayBounds().width(), in getMaxSize() 71 (getDisplayBounds().width() - insetBounds.right)) in getMaxSize() 76 val maxWidth = Math.max(getDefaultSize(aspectRatio).width, in getMaxSize() 92 val smallestDisplaySize: Int = Math.min(getDisplayBounds().width(), in getDefaultSize() 96 val width: Int in getDefaultSize() constant 103 width = minSize in getDefaultSize() 104 height = Math.round(width / aspectRatio) in getDefaultSize() 108 width = Math.round(height * aspectRatio) in getDefaultSize() 117 width = Math.round(height * aspectRatio) in getDefaultSize() 119 return Size(width, height) in getDefaultSize() [all …]
|
D | PhoneSizeSpecSource.kt | 73 get() = minOf(pipDisplayLayoutState.displayLayout.width(), 75 maxOf(pipDisplayLayoutState.displayLayout.width(), 141 (displayBounds.width() - insetBounds.right)) in getMaxSize() 144 val shorterLength: Int = Math.min(displayBounds.width() - totalHorizontalPadding, in getMaxSize() 181 val defaultWidth = Math.max(Math.round(maxSize.width * mPreferredDefaultSizePercent), in getDefaultSize() 182 minSize.width) in getDefaultSize() 199 var minWidth = Math.round(maxSize.width * mPreferredMinimumSizePercent) in getMinSize() 228 val currAspectRatio = size.width.toFloat() / size.height in getSizeForAspectRatio() 232 val currentPercent = size.width.toFloat() / currentMaxSize.width in getSizeForAspectRatio() 236 var width = Math.round(updatedMaxSize.width * currentPercent) in getSizeForAspectRatio() variable [all …]
|
/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/base/libs/hwui/tests/common/scenes/ |
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 58 int itemWidth = 2 * width / 3; in createNode()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/ |
D | GainmapTransformsTest.kt | 69 process { Bitmap.createScaledBitmap(it, it.width / 3, it.height / 3, true) } in <lambda>() 74 val width: Int = it.width in <lambda>() constant 78 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat()) in <lambda>() 79 Bitmap.createBitmap(it, 0, 0, width, height, m, false) in <lambda>() 85 val width: Int = it.width in <lambda>() constant 89 m.setRotate(90.0f, (width / 2).toFloat(), (height / 2).toFloat()) in <lambda>() 91 Bitmap.createBitmap(it, 0, 0, width, height, m, false) in <lambda>() 97 val width: Int = it.width in <lambda>() constant 99 Bitmap.createBitmap(it, width / 2, height / 2, in <lambda>() 100 width / 4, height / 4, null, false) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimatorTest.kt | 58 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 59 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 74 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() 75 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() 90 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_fullProgress_viewTranslatedToTheOriginalPosition() 91 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewOnTheLeftOfVerticalFold_fullProgress_viewTranslatedToTheOriginalPosition() 106 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 107 val view = createView(x = 20, width = 10, height = 10, translationX = 100f) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 122 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewAndUnregister_halfProgress_viewIsNotUpdated() 123 val view = createView(x = 20, width = 10, height = 10) in testRegisterViewAndUnregister_halfProgress_viewIsNotUpdated() [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() 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() 97 const float dx = width * (length / current_length - 1.0f); 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() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | TriangleShape.java | 39 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 …]
|
/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 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 …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | YuvImage.java | 147 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument 148 this(yuv, format, width, height, strides, ColorSpace.get(ColorSpace.Named.SRGB)); in YuvImage() 167 public YuvImage(@NonNull byte[] yuv, int format, int width, int height, in YuvImage() argument 177 if (width <= 0 || height <= 0) { in YuvImage() 191 mStrides = calculateStrides(width, format); in YuvImage() 198 mWidth = width; in YuvImage() 244 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg() 405 private int[] calculateStrides(int width, int format) { in calculateStrides() argument 409 strides = new int[] {width, width}; in calculateStrides() 412 strides = new int[] {width * 2, width * 2}; in calculateStrides() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | DngCreator.java | 192 int width = pixels.getWidth(); in setThumbnail() local 195 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail() 196 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail() 202 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail() 233 int width = pixels.getWidth(); in setThumbnail() local 236 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail() 237 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail() 243 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail() 347 int width = size.getWidth(); in writeInputStream() local 349 if (width <= 0 || height <= 0) { in writeInputStream() [all …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 101 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() 135 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local 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() 143 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 74 int width = texture.getWidth(); in loadTexture() local 79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, in loadTexture() 84 int stride = pixelSize * width; 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 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() [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() 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() 98 const float dx = width * (length / current_length - 1.0f); 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() [all …]
|