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

1 2 3 4 5 6

  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffXfermodeTest.java 38 private static final int HEIGHT = 100;
42 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
44 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888);
46 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
53 canvas.drawBitmap(b2, 0, HEIGHT / 2, p);
54 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
55 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
56 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4));
62 canvas.drawBitmap(b2, 0, HEIGHT / 2, p);
63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4))
    [all...]
PathDashPathEffectTest.java 43 private static final int HEIGHT = 100;
47 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
57 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
62 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE);
70 for (int y = 0; y < HEIGHT; y++) {
82 p.moveTo(0, HEIGHT / 2);
83 p.lineTo(WIDTH, HEIGHT / 2);
SumPathEffectTest.java 44 private static final int HEIGHT = 100;
48 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
54 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW);
75 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...]
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,
MeasureText.java 33 private static final int HEIGHT = 50;
37 int[] colors = new int[STRIDE * HEIGHT];
38 for (int y = 0; y < HEIGHT; y++) {
41 int g = y * 255 / (HEIGHT - 1);
  /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
27 int y = rand.nextULessThan(HEIGHT);
34 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
37 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);
imageresizetiled.cpp 14 #define HEIGHT 480
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) {
28 for (SkScalar y = 0; y < HEIGHT; y += tile_size) {
imagemagnifier.cpp 17 #define HEIGHT 500
19 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
25 SkIntToScalar(HEIGHT / 2)),
33 int y = rand.nextULessThan(HEIGHT);
  /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
27 int y = rand.nextULessThan(HEIGHT);
34 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
37 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);
imageresizetiled.cpp 14 #define HEIGHT 480
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) {
28 for (SkScalar y = 0; y < HEIGHT; y += tile_size) {
imagemagnifier.cpp 17 #define HEIGHT 500
19 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
25 SkIntToScalar(HEIGHT / 2)),
33 int y = rand.nextULessThan(HEIGHT);
  /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 42 private static final int HEIGHT = 120;
43 private static final int[] COLOR = new int[WIDTH * HEIGHT];
45 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
107 assertEquals(HEIGHT, fm.bottom);
108 assertEquals(HEIGHT, fm.descent);

Completed in 2092 milliseconds

1 2 3 4 5 6