Home
last modified time | relevance | path

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

12345678910>>...60

/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/services/core/java/com/android/server/am/
DLaunchingTaskPositioner.java95 int height = mAvailableRect.height(); in configure() local
97 mDefaultFreeformStartY = mAvailableRect.top + height / MARGIN_SIZE_DENOMINATOR; in configure()
99 mDefaultFreeformHeight = height / WINDOW_SIZE_DENOMINATOR; in configure()
101 mDefaultFreeformStepVertical = Math.max(height / STEP_DENOMINATOR, MINIMAL_STEP); in configure()
125 int height = getFinalHeight(windowLayout); in updateDefaultBounds() local
130 positionTopRight(task, tasks, width, height); in updateDefaultBounds()
132 positionTopLeft(task, tasks, width, height); in updateDefaultBounds()
136 positionBottomRight(task, tasks, width, height); in updateDefaultBounds()
138 positionBottomLeft(task, tasks, width, height); in updateDefaultBounds()
145 positionCenter(task, tasks, width, height); in updateDefaultBounds()
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmap.java108 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
116 mHeight = height; in Bitmap()
146 void reinit(int width, int height, boolean requestPremultiplied) { in reinit() argument
148 mHeight = height; in reinit()
246 public void reconfigure(int width, int height, Config config) { in reconfigure() argument
248 if (width <= 0 || height <= 0) { in reconfigure()
255 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure()
257 mHeight = height; in reconfigure()
289 public void setHeight(int height) { in setHeight() argument
290 reconfigure(getWidth(), height, getConfig()); in setHeight() local
[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/hwui/
DPixelBuffer.cpp36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
40 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override;
49 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) in CpuPixelBuffer() argument
50 : PixelBuffer(format, width, height) in CpuPixelBuffer()
51 , mBuffer(new uint8_t[width * height * formatSize(format)]) { in CpuPixelBuffer()
65 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { in upload() argument
66 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, in upload()
76 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height);
81 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override;
93 uint32_t width, uint32_t height) in GpuPixelBuffer() argument
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
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 int width, int height) { in createNode() argument
59 int itemHeight = 2 * height / 3; in createNode()
/frameworks/base/libs/hwui/renderstate/
DScissor.cpp46 bool Scissor::set(GLint x, GLint y, GLint width, GLint height) { in set() argument
48 || width != mScissorWidth || height != mScissorHeight)) { in set()
55 height += y; in set()
61 if (height < 0) { in set()
62 height = 0; in set()
64 glScissor(x, y, width, height); in set()
69 mScissorHeight = height; in set()
81 GLint height = std::max(0, (viewportHeight - (int)clip.top) - y); in set() local
86 || height != mScissorHeight) { in set()
87 glScissor(x, y, width, height); in set()
[all …]
DOffscreenBufferPool.cpp45 uint32_t height = computeIdealDimension(viewportHeight); in OffscreenBuffer() local
46 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); in OffscreenBuffer()
48 texture.resize(width, height, caches.rgbaInternalFormat(), GL_RGBA); in OffscreenBuffer()
56 const float texY = 1.0f / static_cast<float>(texture.height()); in getTextureCoordinates()
78 const float texY = 1.0f / float(texture.height()); in updateMeshFromRegion()
107 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height()); in ~OffscreenBuffer()
130 return int(lhs.height) - int(rhs.height); in compare()
142 const uint32_t width, const uint32_t height) { in get() argument
145 Entry entry(width, height); in get()
154 layer->viewportHeight = height; in get()
[all …]
/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/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/base/tools/layoutlib/bridge/src/android/view/
DShadowPainter.java81 int height = source.getHeight(); in createDropShadow() local
82 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, in createDropShadow()
190 int height = source.getHeight(); in createRectangularDropShadow() local
192 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, type); in createRectangularDropShadow()
195 drawRectangleShadow(image, 0, 0, width, height); in createRectangularDropShadow()
217 int height = source.getHeight(); in createSmallRectangularDropShadow() local
220 image = new BufferedImage(width + SMALL_SHADOW_SIZE, height + SMALL_SHADOW_SIZE, type); in createSmallRectangularDropShadow()
224 drawSmallRectangleShadow(image, 0, 0, width, height); in createSmallRectangularDropShadow()
242 int x, int y, int width, int height) { in drawRectangleShadow() argument
245 drawRectangleShadow(gc, x, y, width, height); in drawRectangleShadow()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java50 final int height = config.screenHeightDp; in getMaxActionButtons() local
52 if (smallest > 600 || (width > 960 && height > 720) || (width > 720 && height > 960)) { in getMaxActionButtons()
55 } else if (width >= 500 || (width > 640 && height > 480) || (width > 480 && height > 640)) { in getMaxActionButtons()
83 final int height = configuration.screenHeightDp; in hasEmbeddedTabs() local
85 width >= 480 || (width >= 640 && height >= 480); in hasEmbeddedTabs()
91 int height = a.getLayoutDimension(R.styleable.ActionBar_height, 0); in getTabContainerHeight() local
95 height = Math.min(height, in getTabContainerHeight()
99 return height; in getTabContainerHeight()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DOverlayDisplayWindow.java64 int width, int height, int gravity) { in OverlayDisplayWindow() argument
68 mHeight = height; in OverlayDisplayWindow()
73 int width, int height, int gravity) { in create() argument
75 return new JellybeanMr1Impl(context, name, width, height, gravity); in create()
77 return new LegacyImpl(context, name, width, height, gravity); in create()
93 public abstract void updateAspectRatio(int width, int height); in updateAspectRatio() argument
115 int width, int height, int gravity) { in LegacyImpl() argument
116 super(context, name, width, height, gravity); in LegacyImpl()
141 int height = (int)(display.getHeight() * INITIAL_SCALE); in show() local
143 height = mHeight * width / mWidth; in show()
[all …]
/frameworks/av/camera/
DCameraParameters2.cpp219 int width, height; in parseSizesList() local
220 int success = parse_pair(sizeStartPtr, &width, &height, 'x', in parseSizesList()
226 sizes.push(Size(width, height)); in parseSizesList()
235 void CameraParameters2::setPreviewSize(int width, int height) in setPreviewSize() argument
238 sprintf(str, "%dx%d", width, height); in setPreviewSize()
242 void CameraParameters2::getPreviewSize(int *width, int *height) const in getPreviewSize()
244 *width = *height = -1; in getPreviewSize()
248 parse_pair(p, width, height, 'x'); in getPreviewSize()
251 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const in getPreferredPreviewSizeForVideo()
253 *width = *height = -1; in getPreferredPreviewSizeForVideo()
[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()
118 AImage::getHeight(int32_t* height) const { in getHeight()
119 if (height == nullptr) { in getHeight()
122 *height = -1; in getHeight()
127 *height = mHeight; in getHeight()
448 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData()
453 (mLockedBuffer->height / 2 - 1) + in getPlaneData()
461 (mLockedBuffer->stride * mLockedBuffer->height); in getPlaneData()
464 ySize = mLockedBuffer->width * (mLockedBuffer->height - 1) + in getPlaneData()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DShape.java70 public final void resize(float width, float height) { in resize() argument
74 if (height < 0) { in resize()
75 height =0; in resize()
77 if (mWidth != width || mHeight != height) { in resize()
79 mHeight = height; in resize()
80 onResize(width, height); in resize()
102 protected void onResize(float width, float height) {} in onResize() argument
/frameworks/support/wear/src/android/support/wear/widget/
DCurvingLayoutCallback.java129 private void maybeSetUpCircularInitialLayout(int width, int height) {
131 if (mCurvePathHeight != height) {
132 mCurvePathHeight = height;
133 mCurveBottom = -0.048f * height;
134 mCurveTop = 1.048f * height;
138 mCurvePath.lineTo(0.34f * width, 0.075f * height);
140 0.22f * width, 0.17f * height, 0.13f * width, 0.32f * height, 0.13f * width,
141 height / 2);
144 0.68f * height,
146 0.83f * height,
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java193 int height = pixels.getHeight(); in setThumbnail() local
195 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
197 "," + height + ") too large, dimensions must be smaller than " + in setThumbnail()
202 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
234 int height = pixels.getHeight(); in setThumbnail() local
236 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
238 "," + height + ") too large, dimensions must be smaller than " + in setThumbnail()
243 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
348 int height = size.getHeight(); in writeInputStream() local
349 if (width <= 0 || height <= 0) { in writeInputStream()
[all …]
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
DUT_global_query.java31 private boolean Test(int width, int height, int depth) { in Test() argument
37 if (height > 0) { in Test()
38 typeBuilder.setY(height); in Test()
48 if (height < 1) { in Test()
49 height = 1; in Test()
56 int g[] = new int[width * height * depth]; in Test()
57 int d[] = new int[width * height * depth]; in Test()
58 int r[] = new int[width * height * depth]; in Test()
62 for (int i = 0; i < width * height * depth; i++) { in Test()
84 for (int i = 0; i < width * height * depth; i++) { in Test()
/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()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dion_buffer.h15 IonBuffer(uint32_t width, uint32_t height, uint32_t format, uint64_t usage);
16 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
18 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
34 int Alloc(uint32_t width, uint32_t height, uint32_t layer_count,
39 void Reset(buffer_handle_t handle, uint32_t width, uint32_t height,
46 int Import(buffer_handle_t handle, uint32_t width, uint32_t height,
54 int int_count, uint32_t width, uint32_t height,
64 int Lock(uint32_t usage, int x, int y, int width, int height, void** address);
65 int LockYUV(uint32_t usage, int x, int y, int width, int height,
74 uint32_t height() const { return buffer_.get() ? buffer_->getHeight() : 0; } in height() function

12345678910>>...60