/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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()
|
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()
|
/frameworks/av/libvideoeditor/vss/src/ |
D | M4DECODER_Null.c | 199 M4OSA_UInt32 height = 0; in M4DECODER_NULL_setOption() local 224 for (height = 0; height<pStreamContext->pDecYuvWithEffect[0].u_height; in M4DECODER_NULL_setOption() 225 height++) { in M4DECODER_NULL_setOption() 238 for (height = 0; height<pStreamContext->pDecYuvWithEffect[1].u_height; in M4DECODER_NULL_setOption() 239 height++) { in M4DECODER_NULL_setOption() 252 for (height = 0; height<pStreamContext->pDecYuvWithEffect[2].u_height; in M4DECODER_NULL_setOption() 253 height++) { in M4DECODER_NULL_setOption() 328 M4OSA_UInt32 height; in M4DECODER_NULL_render() local 339 for (height = 0; height<pOutputPlane[0].u_height; height++) { in M4DECODER_NULL_render() 349 for (height = 0; height<pOutputPlane[1].u_height; height++) { in M4DECODER_NULL_render() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | ViewManager.java | 43 int height; field in ViewManager.ChildView 49 void setBounds(int x, int y, int width, int height) { in setBounds() argument 53 this.height = height; in setBounds() 56 void attachView(int x, int y, int width, int height) { in attachView() argument 60 setBounds(x, y, width, height); in attachView() 123 int height = mWebView.contentToViewDimension(v.height); in requestLayout() local 133 lp.height = height; in requestLayout() 137 lp = new AbsoluteLayout.LayoutParams(width, height, x, y); in requestLayout() 163 int fixedH = height; in requestLayout() 165 if (v.width > v.height) { in requestLayout() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | SizeAdaptiveLayoutTest.java | 83 int height = (int) lp.minHeight + 10; in testOpenLarge() local 85 measureAndLayout(height); in testOpenLarge() 100 int height = (int) lp.minHeight; in testOpenSmall() local 102 measureAndLayout(height); in testOpenSmall() 117 int height = (int) lp.minHeight - 10; in testOpenTooSmall() local 119 measureAndLayout(height); in testOpenTooSmall() 136 int height = (int) (lp.minHeight + 10); in testOpenTooBig() local 138 measureAndLayout(height); in testOpenTooBig() 153 int height = (int) lp.minHeight + 10; in testOpenWrapContent() local 156 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, View.MeasureSpec.AT_MOST); in testOpenWrapContent() [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() 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/graphics/java/android/graphics/ |
D | Bitmap.java | 264 private static void checkWidthHeight(int width, int height) { in checkWidthHeight() argument 268 if (height <= 0) { in checkWidthHeight() 462 final int height = src.getHeight(); in createScaledBitmap() local 464 final float sy = dstHeight / (float)height; in createScaledBitmap() 466 Bitmap b = Bitmap.createBitmap(src, 0, 0, width, height, m, filter); in createScaledBitmap() 500 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height) { in createBitmap() argument 501 return createBitmap(source, x, y, width, height, null, false); in createBitmap() 527 public static Bitmap createBitmap(Bitmap source, int x, int y, int width, int height, in createBitmap() argument 531 checkWidthHeight(width, height); in createBitmap() 535 if (y + height > source.getHeight()) { in createBitmap() [all …]
|
D | YuvImage.java | 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument 87 if (width <= 0 || height <= 0) { in YuvImage() 105 mHeight = height; in YuvImage() 142 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg() 216 int height = rect.height(); in adjustRectangle() local 220 height &= ~1; in adjustRectangle() 224 rect.bottom = rect.top + height; in adjustRectangle() 238 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 75 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/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio() 76 const float current_ratio = width / height; in ExpandToAspectRatio() 82 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio() 84 height += dy; in ExpandToAspectRatio() 90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength() 94 const float current_length = width > height ? width : height; in ExpandToMinLength() 99 const float dy = height * (length / current_length - 1.0f); in ExpandToMinLength() 101 height += dy; in ExpandToMinLength() 107 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit() 111 const float current_length = width > height ? width : height; in ScaleWithLengthLimit() [all …]
|
/frameworks/base/libs/hwui/ |
D | ShapeCache.h | 149 RoundRectShapeCacheEntry(float width, float height, float rx, float ry, SkPaint* paint): in RoundRectShapeCacheEntry() 152 mHeight = *(uint32_t*) &height; in RoundRectShapeCacheEntry() 208 OvalShapeCacheEntry(float width, float height, SkPaint* paint): in OvalShapeCacheEntry() 211 mHeight = *(uint32_t*) &height; in OvalShapeCacheEntry() 234 RectShapeCacheEntry(float width, float height, SkPaint* paint): in RectShapeCacheEntry() 237 mHeight = *(uint32_t*) &height; in RectShapeCacheEntry() 260 ArcShapeCacheEntry(float width, float height, float startAngle, float sweepAngle, in ArcShapeCacheEntry() 264 mHeight = *(uint32_t*) &height; in ArcShapeCacheEntry() 346 void purgeCache(uint32_t width, uint32_t height); 348 void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height); [all …]
|
D | LayerRenderer.cpp | 46 const float height = mLayer->layer.getHeight(); in prepareDirty() local 51 dirty.right >= width && dirty.bottom >= height)) { in prepareDirty() 53 dirty.set(0.0f, 0.0f, width, height); in prepareDirty() 55 dirty.intersect(0.0f, 0.0f, width, height); in prepareDirty() 62 return OpenGLRenderer::prepareDirty(0.0f, 0.0f, width, height, opaque); in prepareDirty() 146 const float height = mLayer->layer.getHeight(); in generateMesh() local 155 const float v1 = (height - r->top) * texY; in generateMesh() 157 const float v2 = (height - r->bottom) * texY; in generateMesh() 182 Layer* LayerRenderer::createLayer(uint32_t width, uint32_t height, bool isOpaque) { in createLayer() argument 183 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); in createLayer() [all …]
|
D | TextureCache.cpp | 127 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { in get() 129 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); in get() 133 const uint32_t size = bitmap->rowBytes() * bitmap->height(); in get() 165 texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); in getTransient() 220 bitmap->height() != int(texture->height); in generateTexture() 228 texture->height = bitmap->height(); in generateTexture() 240 uploadToTexture(resize, GL_ALPHA, bitmap->rowBytesAsPixels(), texture->height, in generateTexture() 245 uploadToTexture(resize, GL_RGB, bitmap->rowBytesAsPixels(), texture->height, in generateTexture() 250 uploadToTexture(resize, GL_RGBA, bitmap->rowBytesAsPixels(), texture->height, in generateTexture() 258 uploadLoFiTexture(resize, bitmap, texture->width, texture->height); in generateTexture() [all …]
|
D | ShapeCache.cpp | 32 PathTexture* RoundRectShapeCache::getRoundRect(float width, float height, in getRoundRect() argument 34 RoundRectShapeCacheEntry entry(width, height, rx, ry, paint); in getRoundRect() 40 r.set(0.0f, 0.0f, width, height); in getRoundRect() 79 PathTexture* OvalShapeCache::getOval(float width, float height, SkPaint* paint) { in getOval() argument 80 OvalShapeCacheEntry entry(width, height, paint); in getOval() 86 r.set(0.0f, 0.0f, width, height); in getOval() 103 PathTexture* RectShapeCache::getRect(float width, float height, SkPaint* paint) { in getRect() argument 104 RectShapeCacheEntry entry(width, height, paint); in getRect() 109 bounds.set(0.0f, 0.0f, width, height); in getRect() 144 PathTexture* ArcShapeCache::getArc(float width, float height, in getArc() argument [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
D | Shape.java | 64 public final void resize(float width, float height) { in resize() argument 68 if (height < 0) { in resize() 69 height =0; in resize() 71 if (mWidth != width || mHeight != height) { in resize() 73 mHeight = height; in resize() 74 onResize(width, height); in resize() 94 protected void onResize(float width, float height) {} in onResize() argument
|
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/ |
D | CameraCapture.java | 59 public synchronized void beginCapture(int cameraId, int width, int height, in beginCapture() argument 65 openCamera(width, height); in beginCapture() 121 private void openCamera(int width, int height) { in openCamera() argument 124 mCamera.setParameters(calcCameraParameters(width, height)); in openCamera() 138 private Camera.Parameters calcCameraParameters(int width, int height) { in calcCameraParameters() argument 143 int closestSize[] = findClosestSize(width, height, params); in calcCameraParameters() 157 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) { in findClosestSize() argument 162 int smallestHeight = previewSizes.get(0).height; in findClosestSize() 169 size.height <= height && in findClosestSize() 171 size.height >= closestHeight) { in findClosestSize() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_reconstruct.h | 77 u32 height, 88 u32 height, 99 u32 height, 110 u32 height, 122 u32 height, 132 u32 height, 143 u32 height, 153 u32 height, 164 u32 height, 175 u32 height, [all …]
|
D | h264bsd_reconstruct.c | 114 u32 height, in h264bsdInterpolateChromaHor() argument 136 (y0 < 0) || ((u32)y0+chromaPartHeight > height)) in h264bsdInterpolateChromaHor() 138 h264bsdFillBlock(pRef, block, x0, y0, width, height, in h264bsdInterpolateChromaHor() 140 pRef += width * height; in h264bsdInterpolateChromaHor() 142 x0, y0, width, height, chromaPartWidth + 1, in h264bsdInterpolateChromaHor() 149 height = chromaPartHeight; in h264bsdInterpolateChromaHor() 157 ptrA = pRef + (comp * height + (u32)y0) * width + x0; in h264bsdInterpolateChromaHor() 210 u32 height, in h264bsdInterpolateChromaVer() argument 232 (y0 < 0) || ((u32)y0+chromaPartHeight+1 > height)) in h264bsdInterpolateChromaVer() 234 h264bsdFillBlock(pRef, block, x0, y0, width, height, chromaPartWidth, in h264bsdInterpolateChromaVer() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 31 for (int height = width * 2; height < width * 4; height++) { in testBasic() 36 for (int i = 0; i < height; i++) { in testBasic() 49 if (i == height / 2) { in testBasic() 58 if (i == height / 2) { in testBasic() 68 for (int i = 0; i < height; i++) { in testBasic() 82 for (int i = 0; i < height; i++) { in testBasic() 98 for (int i = 0; i < height; i++) { in testBasic() 120 for (int i = 0; i < height; i++) { in testBasic() 149 assertEquals(p.getValue(i, j), (i + height - p.size()) * j); in testBasic()
|
/frameworks/base/core/java/android/view/ |
D | GLES20RenderLayer.java | 34 GLES20RenderLayer(int width, int height, boolean isOpaque) { in GLES20RenderLayer() argument 35 super(width, height, isOpaque); in GLES20RenderLayer() 38 mLayer = GLES20Canvas.nCreateLayer(width, height, isOpaque, layerInfo); in GLES20RenderLayer() 57 void resize(int width, int height) { in resize() argument 58 if (!isValid() || width <= 0 || height <= 0) return; in resize() 61 mHeight = height; in resize() 63 if (width != mLayerWidth || height != mLayerHeight) { in resize() 66 GLES20Canvas.nResizeLayer(mLayer, width, height, layerInfo); in resize()
|
/frameworks/av/camera/ |
D | CameraParameters.cpp | 323 int width, height; in parseSizesList() local 324 int success = parse_pair(sizeStartPtr, &width, &height, 'x', in parseSizesList() 330 sizes.push(Size(width, height)); in parseSizesList() 339 void CameraParameters::setPreviewSize(int width, int height) in setPreviewSize() argument 342 sprintf(str, "%dx%d", width, height); in setPreviewSize() 346 void CameraParameters::getPreviewSize(int *width, int *height) const in getPreviewSize() 348 *width = *height = -1; in getPreviewSize() 352 parse_pair(p, width, height, 'x'); in getPreviewSize() 355 void CameraParameters::getPreferredPreviewSizeForVideo(int *width, int *height) const in getPreferredPreviewSizeForVideo() 357 *width = *height = -1; in getPreferredPreviewSizeForVideo() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaMetadataRetriever.cpp | 164 static void rotate0(T* dst, const T* src, size_t width, size_t height) in rotate0() argument 166 memcpy(dst, src, width * height * sizeof(T)); in rotate0() 170 static void rotate90(T* dst, const T* src, size_t width, size_t height) in rotate90() argument 172 for (size_t i = 0; i < height; ++i) { in rotate90() 174 dst[j * height + height - 1 - i] = src[i * width + j]; in rotate90() 180 static void rotate180(T* dst, const T* src, size_t width, size_t height) in rotate180() argument 182 for (size_t i = 0; i < height; ++i) { in rotate180() 184 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width + j]; in rotate180() 190 static void rotate270(T* dst, const T* src, size_t width, size_t height) in rotate270() argument 192 for (size_t i = 0; i < height; ++i) { in rotate270() [all …]
|
/frameworks/av/include/camera/ |
D | CameraParameters.h | 27 int height; member 31 height = 0; in Size() 36 height = h; in Size() 59 void setPreviewSize(int width, int height); 60 void getPreviewSize(int *width, int *height) const; 68 void setVideoSize(int width, int height); 74 void getVideoSize(int *width, int *height) const; 89 void getPreferredPreviewSizeForVideo(int *width, int *height) const; 96 void setPictureSize(int width, int height); 97 void getPictureSize(int *width, int *height) const;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | post_filter.cpp | 43 int width, height; in PostFilter() local 51 height = video->height; in PostFilter() 52 size = (int32)width * height; in PostFilter() 75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod); in PostFilter() 83 CombinedHorzVertFilter(output, width, height, in PostFilter() 88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height, in PostFilter() 94 Deringing_Luma(output, width, height, QP_store, in PostFilter() 107 …CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mo… in PostFilter() 116 (int)(height >> 1), QP_store, (int) 1, pp_mod); in PostFilter() 121 … (int)(height >> 1), QP_store, (int) 1, pp_mod); in PostFilter() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/ |
D | MediaPropertiesTest.java | 74 int videoProfile, int videoLevel, int width, int height, int audioCodecType, in validateVideoProperties() argument 87 assertEquals("Video height " + mvi.getHeight(), height, mvi.getHeight()); in validateVideoProperties() 121 int width, int height, MediaImageItem mii) in validateImageProperties() argument 125 assertEquals("Image height " + mii.getHeight(), height, mii.getHeight()); in validateImageProperties() 150 final int height = MediaProperties.HEIGHT_480; in testPropertiesMPEG4854_480() local 157 videoBitrate, fps, videoProfile, videoLevel, width, height, audioCodecType, in testPropertiesMPEG4854_480() 182 final int height = MediaProperties.HEIGHT_480; in testPropertiesMPEGWVGA() local 189 videoBitrate, fps, videoProfile, videoLevel, width, height, audioCodecType, in testPropertiesMPEGWVGA() 213 final int height = MediaProperties.HEIGHT_480; in testPropertiesMPEGNTSC() local 220 videoBitrate, fps, videoProfile, videoLevel, width, height, audioCodecType, in testPropertiesMPEGNTSC() [all …]
|