| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
| AlbumSlotRenderer.java | 104 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { 120 drawContent(canvas, content, width, height, entry.rotation); 127 drawVideoOverlay(canvas, width, height); 131 drawPanoramaIcon(canvas, width, height); 134 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height); 140 AlbumSlidingWindow.AlbumEntry entry, int width, int height) { 144 drawPressedUpFrame(canvas, width, height); 151 drawPressedFrame(canvas, width, height); 154 drawSelectedFrame(canvas, width, height); 156 drawSelectedFrame(canvas, width, height); [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
| AvatarRequest.java | 92 final int height = mDescriptor.desiredHeight; local 109 bitmap = renderLetterTile(name, width, height); 111 bitmap = renderDefaultAvatar(width, height); 117 private Bitmap renderDefaultAvatar(final int width, final int height) { 118 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, 140 (height > sDefaultPersonBitmap.getHeight()); 148 final RectF dest = new RectF(0, 0, width, height); 156 private Bitmap renderLetterTile(final String name, final int width, final int height) { 158 final float halfHeight = height / 2; 159 final int minOfWidthAndHeight = Math.min(width, height); [all...] |
| /external/deqp/modules/gles31/functional/ |
| es31fFboNoAttachmentTests.cpp | 297 m_results.check(gl.checkFramebufferStatus(GL_DRAW_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE, "Framebuffer was incorrectly reported as complete when it had no width, height or attachments"); 303 m_results.check(gl.checkFramebufferStatus(GL_DRAW_FRAMEBUFFER) == GL_FRAMEBUFFER_COMPLETE, "Framebuffer not reported as complete when it had width and height set"); 306 m_results.check(gl.checkFramebufferStatus(GL_DRAW_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE, "Framebuffer was incorrectly reported as complete when it only had a height"); 317 int height; member in struct:deqp::gles31::Functional::__anon11129::FboSpec 320 FboSpec(int width_, int height_, int samples_) : width(width_), height(height_), samples(samples_){} 366 const int height = getHeight(); local 372 gl.framebufferParameteri(GL_DRAW_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, height); 375 log << TestLog::Message << "Verifying " << width << "x" << height << " framebuffer with " << samples << "x multisampling" << TestLog::EndMessage; 377 if(checkFramebufferRenderable(log, m_renderCtx, framebuffer, IVec2(width, height)) && checkFramebufferSize(log, m_renderCtx, framebuffer, IVec2(width, height))) 409 GLint height = 0; local 523 name << width << "x" << height; local 602 const int height = rng.getInt(1, maxHeight); local [all...] |
| /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
| CImageLabel.java | 98 m_backImage = new Image(getDisplay(), clientArea.width, clientArea.height); 112 int y = clientArea.y + (clientArea.height - imageBounds.height) / 2; 117 int y = clientArea.y + (clientArea.height - textExtent.y) / 2; 137 int height = Math.max(imageBounds.height, textExtent.y); local 138 return new Point(width, height);
|
| /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/dialogs/ |
| ResizableDialog.java | 42 private static final String HEIGHT = "height"; 77 int height = Math.min(displayBounds.height, Math.max(oldBounds.height, defaultSize.y)); local 78 return new Point(width, height); 110 int maxY = windowBounds.y + windowBounds.height - initialSize.y; 127 int y = windowBounds.y + (windowBounds.height - initialSize.y) / 2; 145 settings.getInt(HEIGHT)); 159 settings.put(HEIGHT, bounds.height) [all...] |
| /external/glide/library/src/main/java/com/bumptech/glide/request/ |
| RequestFutureTarget.java | 43 private final int height; field in class:RequestFutureTarget 58 public RequestFutureTarget(Handler mainHandler, int width, int height) { 59 this(mainHandler, width, height, true, DEFAULT_WAITER); 62 RequestFutureTarget(Handler mainHandler, int width, int height, boolean assertBackgroundThread, Waiter waiter) { 65 this.height = height; 129 cb.onSizeReady(width, height);
|
| /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/ |
| Glyph.java | 33 private short width, height;
field in class:Glyph 52 boolean empty = g.width == 0 || g.height == 0;
54 height = empty ? 0 : (short)(g.height + padTop + padBottom);
70 int glyphHeight = bounds.height;
73 height = (short)(glyphHeight + padTop + padBottom);
109 /** The height of the glyph's image. */
111 return height;
|
| /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
| ColorBleedEffect.java | 37 int height = image.getHeight(); local 39 BufferedImage processedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); 40 int[] rgb = image.getRGB(0, 0, width, height, null, 0, width); 47 executeIteration(rgb, mask, width, height); 51 processedImage.setRGB(0, 0, width, height, rgb, 0, width); 55 private void executeIteration (int[] rgb, Mask mask, int width, int height) { 69 if (column < 0 || column >= width || row < 0 || row >= height) continue;
|
| /external/libpng/contrib/gregbook/ |
| readpng.c | 72 png_uint_32 width, height; variable 139 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 142 *pHeight = height; 267 if ((image_data = (uch *)malloc(rowbytes*height)) == NULL) { 271 if ((row_pointers = (png_bytepp)malloc(height*sizeof(png_bytep))) == NULL) { 278 Trace((stderr, "readpng_get_image: channels = %d, rowbytes = %ld, height = %ld\n", 279 *pChannels, rowbytes, height)); 284 for (i = 0; i < height; ++i)
|
| /external/libvpx/libvpx/vp8/common/ |
| alloccommon.c | 48 int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) 58 if ((height & 0xf) != 0) 59 height += 16 - (height & 0xf); 66 if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0) 83 oci->mb_rows = height >> 4; 103 if (vp8_yv12_alloc_frame_buffer(&oci->post_proc_buffer, width, height, VP8BORDERINPIXELS) < 0)
|
| /external/mesa3d/src/gallium/auxiliary/util/ |
| u_staging.c | 33 util_staging_resource_template(struct pipe_resource *pt, unsigned width, unsigned height, unsigned depth, struct pipe_resource *template) 42 template->height0 = height; 75 util_staging_resource_template(pt, box->width, box->height, box->depth, &staging_resource_template); 93 sbox.height = box->height; 120 sbox.height = tx->base.box.height;
|
| /external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d10app/ |
| d3d10winmain.cpp | 33 static unsigned width, height; variable 46 height = lParam >> 16; 48 swap_chain->ResizeBuffers(buffer_count, width, height, format, 0); 90 height = rc.bottom - rc.top; 95 swap_chain_desc.BufferDesc.Height = height; 167 else if(width && height) 177 app->draw(ctx, rtv, width, height, ctime);
|
| /external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/ |
| d3d11winmain.cpp | 33 static unsigned width, height; variable 46 height = lParam >> 16; 48 swap_chain->ResizeBuffers(buffer_count, width, height, format, 0); 90 height = rc.bottom - rc.top; 95 swap_chain_desc.BufferDesc.Height = height; 151 else if(width && height) 161 app->draw(ctx, rtv, width, height, ctime);
|
| /external/mesa3d/src/gallium/tests/unit/ |
| u_format_test.c | 84 for (i = 0; i < format_desc->block.height; ++i) { 106 for (i = 0; i < format_desc->block.height; ++i) { 128 for (i = 0; i < format_desc->block.height; ++i) { 149 for (i = 0; i < format_desc->block.height; ++i) { 171 for (i = 0; i < format_desc->block.height; ++i) { 192 for (i = 0; i < format_desc->block.height; ++i) { 212 for (i = 0; i < format_desc->block.height; ++i) { 242 format_desc->block.width, format_desc->block.height); 245 for (i = 0; i < format_desc->block.height; ++i) { 283 for (i = 0; i < format_desc->block.height; ++i) [all...] |
| /external/mesa3d/src/mesa/swrast/ |
| s_bitmap.c | 50 GLsizei width, GLsizei height, 77 for (row = 0; row < height; row++) { 79 bitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, row, 0); 126 if (count + width >= SWRAST_MAX_WIDTH || row + 1 == height) { 149 GLsizei width, GLsizei height, 175 for (row=0; row<height; row++, span.y++) { 177 bitmap, width, height, GL_COLOR_INDEX, GL_BITMAP, row, 0);
|
| /external/opencv3/modules/core/misc/java/test/ |
| RectTest.java | 78 assertEquals(0, r.height); 88 assertEquals(2, r.height); 98 assertEquals(10, rect.height); 110 assertEquals(1, r.height); 121 assertEquals(1, r.height); 131 assertEquals(0, r1.height); 139 assertEquals(5, r.height);
|
| /external/opencv3/modules/cudalegacy/src/ |
| image_pyramid.cpp | 87 Size szCurLayer(szLastLayer.width / 2, szLastLayer.height / 2); 89 if (szCurLayer.width == 0 || szCurLayer.height == 0) 105 CV_Assert( outRoi.width <= layer0_.cols && outRoi.height <= layer0_.rows && outRoi.width > 0 && outRoi.height > 0 ); 110 if (outRoi.width == layer0_.cols && outRoi.height == layer0_.rows) 126 if (outRoi.width == curLayer.cols && outRoi.height == curLayer.rows) 131 if (outRoi.width >= curLayer.cols && outRoi.height >= curLayer.rows)
|
| /external/opencv3/modules/stitching/perf/opencl/ |
| perf_warpers.cpp | 77 K.at<float>(1,1) = (float)srcSize.height; 78 K.at<float>(1,2) = (float)srcSize.height/2; 110 ellipse(src, Point(srcSize.width/2, srcSize.height/2), Size(srcSize.width/2, srcSize.height/2), 112 ellipse(src, Point(srcSize.width/2, srcSize.height/2), Size(srcSize.width/3, srcSize.height/3), 114 rectangle(src, Point(10, 10), Point(srcSize.width - 10, srcSize.height - 10), Scalar::all(128), 2);
|
| /external/pdfium/samples/ |
| pdfium_test.cc | 54 static bool CheckDimensions(int stride, int width, int height) { 55 if (stride < 0 || width < 0 || height < 0) 57 if (height > 0 && width > INT_MAX / height) 63 int stride, int width, int height) { 66 if (!CheckDimensions(stride, width, height)) 69 int out_len = width * height; 79 fprintf(fp, "P6\n# PDF test render\n%d %d\n255\n", width, height); 83 for (int h = 0; h < height; ++h) { 101 int stride, int width, int height) { 174 int height = static_cast<int>(FPDF_GetPageHeight(page)); local 353 int height = static_cast<int>(FPDF_GetPageHeight(page) * scale); local [all...] |
| /external/pdfium/xfa/src/fxbarcode/qrcode/ |
| BC_QRGridSampler.cpp | 37 int32_t height = image->GetHeight();
local 43 if (x < -1 || x > width || y < -1 || y > height) {
58 } else if (y == height) {
59 (*points)[offset + 1] = (FX_FLOAT)(height - 1);
67 if (x < -1 || x > width || y < -1 || y > height) {
82 } else if (y == height) {
83 (*points)[offset + 1] = (FX_FLOAT)(height - 1);
|
| /external/skia/gm/ |
| mixedtextblobs.cpp | 58 SkScalar yOffset = bounds.height(); 64 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 77 yOffset - bounds.height() * 0.5f); 78 yOffset += bounds.height(); 126 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 144 -(x * SkScalarFloorToScalar(bounds.height() + 147 canvas->translate(0, SkScalarFloorToScalar(bounds.height() + SkIntToScalar(25)));
|
| /external/sl4a/ScriptingLayerForAndroid/src/de/mud/terminal/ |
| VDUBuffer.java | 46 public int height, width; /* rows and columns */ field in class:VDUBuffer 106 * Create a new video display buffer with the passed width and height in characters. 110 * @param height 113 public VDUBuffer(int width, int height) { 115 setScreenSize(width, height, false); 169 if (l < height) { 379 (l < topMargin ? 0 : (l > bottomMargin ? (bottomMargin + 1 < height ? bottomMargin + 1 380 : height - 1) : topMargin)); 382 (l > bottomMargin ? height - 1 : (l < topMargin ? (topMargin > 0 ? topMargin - 1 : 0) 414 newScreenBase = maxBufSize - height - 1 [all...] |
| /frameworks/base/libs/hwui/utils/ |
| Blur.cpp | 95 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 99 for (int32_t y = 0; y < height; y ++) { 139 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 143 for (int32_t y = 0; y < height; y ++) { 151 if (y > radius && y < (height - radius)) { 166 if (validH > height - 1) { 167 validH = height - 1;
|
| /frameworks/base/services/core/java/com/android/server/ |
| AssetAtlasService.java | 154 // The comparator will sort the bitmap by width first, then by height 224 mBuffer = GraphicBuffer.create(config.width, config.height, 228 Atlas atlas = new Atlas(config.type, config.width, config.height, config.flags); 401 return r1.width * r1.height - r2.width * r2.height; 412 return new Configuration(result.type, result.width, result.height, result.count); 470 writer.write(String.valueOf(config.height)); 504 int height = readInt(reader, MIN_SIZE, MAX_SIZE); local 508 config = new Configuration(type, width, height, count, flags); 574 final int height; field in class:AssetAtlasService.Configuration 604 int height; field in class:AssetAtlasService.WorkerResult [all...] |
| /hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
| alloccommon.c | 47 int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) 57 if ((height & 0xf) != 0) 58 height += 16 - (height & 0xf); 65 if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height, VP8BORDERINPIXELS) < 0) 82 oci->mb_rows = height >> 4; 102 if (vp8_yv12_alloc_frame_buffer(&oci->post_proc_buffer, width, height, VP8BORDERINPIXELS) < 0)
|