Searched defs:height (Results 251 - 275 of 674) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/jni/
H A Dandroid_view_GraphicBuffer.cpp102 jint width, jint height, jint format, jint usage) {
114 sp<GraphicBuffer> buffer(alloc->createGraphicBuffer(width, height, format, usage, &error));
101 android_view_GraphiceBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint usage) argument
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java71 * Top and bottom padding are affected, as is the line descent and height.
226 public int scale(float height) { argument
227 int altVal = (int)(height * sMult + sAdd + 0.5);
228 int rndVal = Math.round(height * sMult + sAdd);
318 int top, int ascent, int descent, int height) {
323 assertEquals(info, height, l.getLineBottom(line) - top);
317 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument
/frameworks/base/graphics/java/android/graphics/
H A DAtlas.java79 * @param height The height of the atlas in pixels
83 public Atlas(Type type, int width, int height) { argument
84 this(type, width, height, FLAG_DEFAULTS);
94 * @param height The height of the atlas in pixels
100 public Atlas(Type type, int width, int height, int flags) { argument
101 mPolicy = findPolicy(type, width, height, flags);
108 * @param height The height o
115 pack(int width, int height) argument
132 pack(int width, int height, Entry entry) argument
137 findPolicy(Type type, int width, int height, int flags) argument
159 pack(int width, int height, Entry entry) argument
249 int height; field in class:Atlas.SlicePolicy.Cell
259 SlicePolicy(int width, int height, int flags, SplitDecision splitDecision) argument
273 pack(int width, int height, Entry entry) argument
356 insert(Cell cell, Cell prev, int width, int height, Entry entry) argument
[all...]
H A DPicture.java77 public Canvas beginRecording(int width, int height) { argument
78 long ni = nativeBeginRecording(mNativePicture, width, height);
105 * Get the height of the picture as passed to beginRecording. This
H A DRect.java30 * These fields can be accessed directly. Use width() and height() to retrieve
31 * the rectangle's width and height. Note: most methods do not check to see that
209 * @return the rectangle's height. This does not check for a valid rectangle
212 public final int height() { method in class:Rect
301 * keeping its width and height the same.
H A DRectF.java28 * These fields can be accessed directly. Use width() and height() to retrieve
29 * the rectangle's width and height. Note: most methods do not check to see that
157 * @return the rectangle's height. This does not check for a valid rectangle
160 public final float height() { method in class:RectF
246 * keeping its width and height the same.
H A DSurfaceTexture.java224 * The width and height parameters must be no greater than the minimum of
230 public void setDefaultBufferSize(int width, int height) { argument
231 nativeSetDefaultBufferSize(width, height);
387 private native void nativeSetDefaultBufferSize(int width, int height); argument
/frameworks/base/libs/hwui/
H A DBakedOpRenderer.cpp32 OffscreenBuffer* BakedOpRenderer::startTemporaryLayer(uint32_t width, uint32_t height) { argument
35 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height);
36 startRepaintLayer(buffer, Rect(width, height));
75 offscreenBuffer->texture.height());
105 const uint32_t height = area.getHeight(); local
106 OffscreenBuffer* buffer = mRenderState.layerPool().get(mRenderState, width, height);
107 if (!area.isEmpty() && width != 0 && height != 0) {
112 area.left, mRenderTarget.viewportHeight - area.bottom, width, height);
117 void BakedOpRenderer::startFrame(uint32_t width, uint32_t height, const Rect& repaintRect) { argument
120 setViewport(width, height);
161 setViewport(uint32_t width, uint32_t height) argument
[all...]
H A DFontRenderer.h120 uint32_t height; member in struct:android::uirenderer::FontRenderer::DropShadow
145 CacheTexture* createCacheTexture(int width, int height, GLenum format, bool allocate);
211 int32_t width, int32_t height);
213 int32_t width, int32_t height);
216 void blurImage(uint8_t** image, int32_t width, int32_t height, float radius);
H A DGradientCache.cpp223 const uint32_t width, const uint32_t height, Texture* texture) {
225 uint8_t pixels[rowBytes * height];
270 texture->upload(GL_RGBA16F, width, height, GL_RGBA, GL_FLOAT, pixels);
272 texture->upload(GL_RGBA, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument
H A DLayer.cpp99 bool Layer::resize(const uint32_t width, const uint32_t height) { argument
101 uint32_t desiredHeight = computeIdealWidth(height);
225 const float height = layer.getHeight(); local
228 dirtyRect.right >= width && dirtyRect.bottom >= height)) {
229 dirtyRect.set(0, 0, width, height);
237 renderer->setupFrameState(width, height, dirtyRect.left, dirtyRect.top,
H A DPatch.cpp39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch)
94 const float yStretch = std::max(height - fixed, 0.0f);
96 rescaleY = fixed == 0.0f ? 0.0f : std::min(std::max(height, 0.0f) / fixed, 1.0f);
135 y2 = height;
38 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
H A DRect.h69 inline Rect(float width, float height): argument
73 bottom(height) {
H A DSkiaShader.cpp223 const float height = outData->bitmapTexture->height(); local
227 && (!isPowerOfTwo(width) || !isPowerOfTwo(height))
243 outData->textureDimension[1] = 1.0f / height;
337 const float height = layer->getHeight(); local
343 outData->textureDimension[1] = 1.0f / height;
H A DSnapshot.h187 void initializeViewport(int width, int height) { argument
188 mViewportData.initialize(width, height);
189 mClipAreaRoot.setViewportDimensions(width, height);
316 void initialize(int width, int height) { argument
318 mHeight = height;
319 mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1);
323 * Width and height of current viewport.
325 * The viewport is always defined to be (0, 0, width, height).
H A DTessellationCache.h71 float height; member in struct:android::uirenderer::TessellationCache::Description::Shape::RoundRect
158 float width, float height, float rx, float ry) {
159 getRoundRectBuffer(transform, paint, width, height, rx, ry);
162 float width, float height, float rx, float ry);
188 float width, float height);
190 float width, float height, float rx, float ry);
157 precacheRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DTexture.cpp86 bool Texture::updateSize(uint32_t width, uint32_t height, GLint format) { argument
87 if (mWidth == width && mHeight == height && mFormat == format) {
91 mHeight = height;
104 void Texture::upload(GLint internalformat, uint32_t width, uint32_t height, argument
107 bool needsAlloc = updateSize(width, height, internalformat);
125 GLsizei width, GLsizei height, const GLvoid * data) {
135 glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, type, data);
137 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, format, type, data);
147 GLvoid * temp = (GLvoid *) malloc(width * height * bpp);
152 for (GLsizei i = 0; i < height;
124 uploadToTexture(bool resize, GLenum format, GLenum type, GLsizei stride, GLsizei bpp, GLsizei width, GLsizei height, const GLvoid * data) argument
265 wrap(GLuint id, uint32_t width, uint32_t height, GLint format) argument
[all...]
/frameworks/base/libs/hwui/font/
H A DCacheTexture.cpp112 CacheTexture::CacheTexture(uint16_t width, uint16_t height, GLenum format, uint32_t maxQuadCount) argument
115 , mHeight(height)
194 uint32_t height = dirtyRect.getHeight(); local
202 mPixelBuffer->upload(x, y, width, height);
258 // it's the remainder space (mY == 0) or there's only enough height for this one glyph
280 // There's enough height left over to create a new CacheBlock
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp29 Canvas* Canvas::create_recording_canvas(int width, int height) { argument
31 return new uirenderer::RecordingCanvas(width, height);
33 return new uirenderer::DisplayListCanvas(width, height);
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.cpp44 uint32_t height = computeIdealDimension(viewportHeight); local
45 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
47 texture.resize(width, height, GL_RGBA);
55 const float texY = 1.0f / static_cast<float>(texture.height());
77 const float texY = 1.0f / float(texture.height());
106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height());
129 return int(lhs.height) - int(rhs.height);
141 const uint32_t width, const uint32_t height) {
144 Entry entry(width, height);
140 get(RenderState& renderState, const uint32_t width, const uint32_t height) argument
162 resize(OffscreenBuffer* layer, const uint32_t width, const uint32_t height) argument
[all...]
H A DRenderState.cpp128 void RenderState::setViewport(GLsizei width, GLsizei height) { argument
130 mViewportHeight = height;
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp44 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
50 layerUpdater->setSize(width, height);
57 LayerRenderer::updateTextureLayer(layer, width, height, isOpaque, forceFilter,
43 createTextureLayerUpdater( renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, const SkMatrix& transform) argument
H A DTestUtils.h135 static SkBitmap createSkBitmap(int width, int height, argument
138 SkImageInfo info = SkImageInfo::Make(width, height,
146 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
150 static std::unique_ptr<DisplayList> createDisplayList(int width, int height, argument
152 CanvasType canvas(width, height);
/frameworks/base/libs/input/
H A DSpriteController.cpp141 update.state.surfaceHeight = update.state.icon.bitmap.height();
159 int32_t desiredHeight = update.state.icon.bitmap.height();
213 surfaceBitmap.installPixels(SkImageInfo::MakeN32Premul(outBuffer.width, outBuffer.height),
225 outBuffer.width, update.state.icon.bitmap.height(), paint);
227 if (outBuffer.height > update.state.icon.bitmap.height()) {
229 surfaceCanvas.drawRectCoords(0, update.state.icon.bitmap.height(),
230 outBuffer.width, outBuffer.height, paint);
372 sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height) { argument
376 String8("Sprite"), width, height, PIXEL_FORMAT_RGBA_888
[all...]
/frameworks/base/media/java/android/media/
H A DFaceDetector.java108 * @param height the height of the image
112 public FaceDetector(int width, int height, int maxFaces) argument
117 fft_initialize(width, height, maxFaces);
119 mHeight = height;
121 mBWBuffer = new byte[width * height];
189 native private int fft_initialize(int width, int height, int maxFaces); argument

Completed in 2098 milliseconds

<<11121314151617181920>>