HomeSort by relevance Sort by last modified time
    Searched refs:HEIGHT (Results 1 - 25 of 271) sorted by null

1 2 3 4 5 6 7 8 91011

  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffXfermodeTest.java 37 private static final int HEIGHT = 100;
41 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
43 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888);
45 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
52 canvas.drawBitmap(b2, 0, HEIGHT / 2, p);
53 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
54 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
55 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4));
61 canvas.drawBitmap(b2, 0, HEIGHT / 2, p);
62 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4))
    [all...]
PathDashPathEffectTest.java 42 private static final int HEIGHT = 100;
46 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
56 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
61 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE);
69 for (int y = 0; y < HEIGHT; y++) {
81 p.moveTo(0, HEIGHT / 2);
82 p.lineTo(WIDTH, HEIGHT / 2);
SumPathEffectTest.java 43 private static final int HEIGHT = 100;
47 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
49 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
53 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW);
74 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";
  /external/libvncserver/examples/
camera.c 47 #define HEIGHT 480
88 for(j=0;j<HEIGHT;++j) {
90 buffer[(j*WIDTH+i)*BPP+0]=(i+j)*128/(WIDTH+HEIGHT); /* red */
92 buffer[(j*WIDTH+i)*BPP+2]=j*256/HEIGHT; /* blue */
106 line = now.tv_usec / (1000000/HEIGHT);
107 if (line>HEIGHT) line=HEIGHT-1;
117 fprintf(stderr,"%03d/%03d Picture (%03d fps)\r", line, HEIGHT, fps);
135 rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,WIDTH,HEIGHT,8,3,BPP);
139 server->frameBuffer=(char*)malloc(WIDTH*HEIGHT*BPP)
    [all...]
  /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...]
PurgeableBitmapView.java 46 private static final int HEIGHT = 450;
59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
68 int[] colors = new int[STRIDE * HEIGHT];
69 for (int y = 0; y < HEIGHT; y++) {
72 int g = y * 255 / (HEIGHT - 1);
106 HEIGHT / 2, mPaint);
BitmapMesh.java 36 private static final int HEIGHT = 20;
37 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1);
62 for (int y = 0; y <= HEIGHT; y++) {
63 float fy = h * y / HEIGHT;
80 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,
  /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/
imagealphathreshold.cpp 18 #define HEIGHT 500
23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
62 return SkISize::Make(WIDTH, HEIGHT);
    [all...]
imageblur.cpp 14 #define HEIGHT 500
28 int y = rand.nextULessThan(HEIGHT);
36 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
39 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
complexclip_blur_tiled.cpp 16 #define HEIGHT 512
31 return SkISize::Make(WIDTH, HEIGHT);
48 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT);
imageblur2.cpp 16 #define HEIGHT 500
46 return SkISize::Make(WIDTH, HEIGHT);
53 SkScalar dy = HEIGHT / sigmaCount;
imageresizetiled.cpp 14 #define HEIGHT 480
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) {
26 for (SkScalar y = 0; y < HEIGHT; y += tile_size) {
  /external/skqp/gm/
imagealphathreshold.cpp 18 #define HEIGHT 500
23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint);
27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint);
34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
62 return SkISize::Make(WIDTH, HEIGHT);
    [all...]
imageblur.cpp 14 #define HEIGHT 500
28 int y = rand.nextULessThan(HEIGHT);
36 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
39 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
complexclip_blur_tiled.cpp 16 #define HEIGHT 512
31 return SkISize::Make(WIDTH, HEIGHT);
48 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT);
imageblur2.cpp 16 #define HEIGHT 500
46 return SkISize::Make(WIDTH, HEIGHT);
53 SkScalar dy = HEIGHT / sigmaCount;
imageresizetiled.cpp 14 #define HEIGHT 480
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) {
26 for (SkScalar y = 0; y < HEIGHT; y += tile_size) {
  /external/skia/bench/
TileImageFilterBench.cpp 15 #define HEIGHT 512
41 SkRect::MakeWH(WIDTH, HEIGHT),
46 for (int y = 0; y < HEIGHT; y += fTileSize) {
51 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint);
56 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint);
  /external/skqp/bench/
TileImageFilterBench.cpp 15 #define HEIGHT 512
41 SkRect::MakeWH(WIDTH, HEIGHT),
46 for (int y = 0; y < HEIGHT; y += fTileSize) {
51 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint);
56 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint);
  /external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
GlRectDrawerTest.java 41 private static final int HEIGHT = 16;
56 private static void assertEquals(int width, int height, ByteBuffer actual, ByteBuffer expected) {
59 assertEquals(actual.remaining(), width * height * 3); external variable declarations
60 assertEquals(expected.remaining(), width * height * 3); external variable declarations
61 for (int y = 0; y < height; ++y) {
70 fail("ByteBuffers of size " + width + "x" + height + " not equal at position "
100 eglBase.createPbufferSurface(WIDTH, HEIGHT);
104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3);
113 HEIGHT, 0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, rgbPlane);
118 drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT);
    [all...]
  /external/python/cpython2/Demo/tkinter/guido/
brownian.py 10 HEIGHT = 300
22 y = random.gauss(HEIGHT/2.0, SIGMA)
37 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
brownian2.py 9 HEIGHT = 300
22 y = random.gauss(HEIGHT/2.0, SIGMA)
42 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 41 private static final int HEIGHT = 120;
42 private static final int[] COLOR = new int[WIDTH * HEIGHT];
44 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
106 assertEquals(HEIGHT, fm.bottom);
107 assertEquals(HEIGHT, fm.descent);

Completed in 1178 milliseconds

1 2 3 4 5 6 7 8 91011