/external/pixman/demos/ |
screen-test.c | 10 #define HEIGHT 40 12 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); 13 uint32_t *src2 = malloc (WIDTH * HEIGHT * 4); 14 uint32_t *src3 = malloc (WIDTH * HEIGHT * 4); 15 uint32_t *dest = malloc (3 * WIDTH * 2 * HEIGHT * 4); 20 for (i = 0; i < WIDTH * HEIGHT; ++i) 27 for (i = 0; i < 3 * WIDTH * 2 * HEIGHT; ++i) 32 simg1 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src1, WIDTH * 4); 33 simg2 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src2, WIDTH * 4); 34 simg3 = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src3, WIDTH * 4) [all...] |
convolution-test.c | 10 #define HEIGHT 200 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 15 uint32_t *mask = malloc (WIDTH * HEIGHT * 4); 16 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 28 for (i = 0; i < WIDTH * HEIGHT; ++i) 35 simg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, src, WIDTH * 4); 36 mimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, mask, WIDTH * 4); 37 dimg = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); 42 pixman_image_composite (PIXMAN_OP_OVER, simg, mimg, dimg, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
trap-test.c | 11 #define HEIGHT 200 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); 21 memset (mbits, 0, WIDTH * HEIGHT); 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); 32 mask_img = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, mbits, WIDTH); 34 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); 40 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
alpha-test.c | 10 #define HEIGHT 200 12 uint32_t *alpha = malloc (WIDTH * HEIGHT * 4); 13 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 14 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 50 for (i = 0; i < WIDTH * HEIGHT; ++i) 54 WIDTH, HEIGHT, 58 for (i = 0; i < WIDTH * HEIGHT; ++i) 62 WIDTH, HEIGHT, 66 for (i = 0; i < WIDTH * HEIGHT; ++i) 70 WIDTH, HEIGHT, [all...] |
linear-gradient.c | 5 #define HEIGHT 640 27 WIDTH, HEIGHT, 32 p2.y = HEIGHT << 16; 43 WIDTH, HEIGHT);
|
clip-test.c | 7 #define HEIGHT 200 12 uint32_t *pixels = malloc (WIDTH * HEIGHT * 4); 15 for (i = 0; i < WIDTH * HEIGHT; ++i) 19 WIDTH, HEIGHT, 37 pixman_int_to_fixed (HEIGHT) }; 71 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 82 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 88 printf ("w, h: %x\n", src[(HEIGHT - 1) * 100 + (WIDTH - 1)]);
|
checkerboard.c | 10 #define HEIGHT 400 24 WIDTH, HEIGHT, 28 WIDTH, HEIGHT, 31 for (i = 0; i < HEIGHT / TILE_SIZE; ++i) 36 double v = (double)(i + 1) / (HEIGHT / TILE_SIZE); 66 WIDTH, HEIGHT);
|
srgb-test.c | 49 #define HEIGHT 200 53 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 54 uint32_t *src1 = malloc (WIDTH * HEIGHT * 4); 58 WIDTH, HEIGHT, 62 WIDTH, HEIGHT, 66 for (y = 0; y < HEIGHT; y ++) 78 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
tri-test.c | 11 #define HEIGHT 200 25 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 28 for (i = 0; i < WIDTH * HEIGHT; ++i) 29 bits[i] = (i / HEIGHT) * 0x01010000; 32 dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4);
|
gradient-test.c | 10 #define HEIGHT 200 12 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 45 for (i = 0; i < WIDTH * HEIGHT; ++i) 49 WIDTH, HEIGHT, 79 0, 0, 0, 0, 0, 0, 10 * WIDTH, HEIGHT); 83 printf ("w, h: %x\n", dest[(HEIGHT - 1) * 100 + (WIDTH - 1)]);
|
clip-in.c | 14 #define HEIGHT 200 19 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 28 pixman_image_t *dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, 4 * WIDTH); 30 memset (bits, 0xff, WIDTH * HEIGHT * 4);
|
composite-test.c | 9 #define HEIGHT 80 94 uint32_t *dest = malloc (WIDTH * HEIGHT * 4); 95 uint32_t *src = malloc (WIDTH * HEIGHT * 4); 99 pixman_point_fixed_t p2 = { (WIDTH + 10) << 16, (HEIGHT - 10) << 16 }; 125 parrot = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, (uint32_t *)parrot_bits, WIDTH * 4); 130 WIDTH, HEIGHT, 149 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 151 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT); 153 WIDTH, HEIGHT, WIDTH * 4);
|
/external/pixman/test/ |
alpha-loop.c | 6 #define HEIGHT 200 16 alpha = make_random_bytes (WIDTH * HEIGHT); 17 src = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); 18 dest = (uint32_t *)make_random_bytes (WIDTH * HEIGHT * 4); 20 pixman_image_t *a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH); 21 pixman_image_t *d = pixman_image_create_bits (PIXMAN_a8r8g8b8, WIDTH, HEIGHT, dest, WIDTH * 4); 22 pixman_image_t *s = pixman_image_create_bits (PIXMAN_a2r10g10b10, WIDTH, HEIGHT, src, WIDTH * 4); 29 pixman_image_composite (PIXMAN_OP_SRC, s, NULL, d, 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
a1-trap-test.c | 11 #define HEIGHT 20 18 uint32_t *bits = malloc (WIDTH * HEIGHT * 4); 19 uint32_t *mbits = malloc (WIDTH * HEIGHT); 21 memset (mbits, 0, WIDTH * HEIGHT); 22 memset (bits, 0xff, WIDTH * HEIGHT * 4); 33 PIXMAN_a1, WIDTH, HEIGHT, mbits, WIDTH); 36 PIXMAN_a8r8g8b8, WIDTH, HEIGHT, bits, WIDTH * 4); 42 0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);
|
rotate-test.c | 5 #define HEIGHT 32 28 { v10, v11, HEIGHT * pixman_fixed_1 / 2 }, \ 64 uint32_t *bytes = malloc (WIDTH * HEIGHT * 4); 67 prng_randmemset (bytes, WIDTH * HEIGHT * 4, 0); 70 format, WIDTH, HEIGHT, bytes, WIDTH * 4); 94 0, 0, 0, 0, WIDTH / 2, HEIGHT / 2, 95 WIDTH, HEIGHT);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PorterDuffXfermodeTest.java | 32 private static final int HEIGHT = 100; 35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 37 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); 39 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888); 46 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); 47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); 48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); 49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); 55 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); 56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)) [all...] |
PathDashPathEffectTest.java | 37 private static final int HEIGHT = 100; 40 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 55 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); 63 for (int y = 0; y < HEIGHT; y++) { 75 p.moveTo(0, HEIGHT / 2); 76 p.lineTo(WIDTH, HEIGHT / 2);
|
SumPathEffectTest.java | 37 private static final int HEIGHT = 100; 40 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 42 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 46 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW); 67 for (int j = 0; j < HEIGHT; j++) {
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
Intents.java | 42 * Optional parameters to specify the width and height of the scanning rectangle in pixels. 47 public static final String HEIGHT = "SCAN_HEIGHT";
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CreateBitmap.java | 35 private static final int HEIGHT = 50; 39 int[] colors = new int[STRIDE * HEIGHT]; 40 for (int y = 0; y < HEIGHT; y++) { 43 int g = y * 255 / (HEIGHT - 1); 77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 85 mBitmaps[3] = Bitmap.createBitmap(WIDTH, HEIGHT, 87 mBitmaps[4] = Bitmap.createBitmap(WIDTH, HEIGHT, 89 mBitmaps[5] = Bitmap.createBitmap(WIDTH, HEIGHT, [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoCaptureVideoPermissionTest.java | 34 private static final int HEIGHT = 480; 48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 50 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, 71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 73 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, 92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 95 NAME, WIDTH, HEIGHT, DENSITY,
|
/external/skia/gm/ |
imageblur.cpp | 13 #define HEIGHT 500 29 return make_isize(WIDTH, HEIGHT); 43 int y = rand.nextULessThan(HEIGHT);
|
imagemagnifier.cpp | 13 #define HEIGHT 500 34 return make_isize(WIDTH, HEIGHT); 43 SkIntToScalar(HEIGHT / 2)), 51 int y = rand.nextULessThan(HEIGHT);
|
canvasstate.cpp | 25 HEIGHT = 150, 39 fSize.set(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT)); 53 fOutlineRect = SkRect::MakeXYWH(1, 1, WIDTH-2, HEIGHT-2); 54 fFillRect = SkRect::MakeXYWH(10, 10, WIDTH-20, HEIGHT-20); 63 return SkISize::Make(WIDTH*3, HEIGHT*4); 91 canvas->translate(SkIntToScalar(x*WIDTH), SkIntToScalar(y*HEIGHT)); 118 fRect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7); 127 return SkISize::Make(WIDTH, HEIGHT); 138 canvas->translate(0, 2*(fRect.height() + 10)); 143 canvas->translate(0, 2*(fRect.height() + 10)) [all...] |
/external/chromium_org/ui/webui/resources/css/ |
tree.css.js | 7 /** @const */ var HEIGHT = WIDTH / 2 + 2; 12 HEIGHT + MARGIN * 2); 20 ctx.lineTo(WIDTH / 2, HEIGHT);
|