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

1 2 3 4

  /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++) {
YuvImageTest.java 58 private static final int HEIGHT = 128;
94 int height = 100; local
95 byte[] yuv = new byte[width * height * 2];
101 image = new YuvImage(yuv, mFormats[i], width, height, null);
119 image = new YuvImage(yuv, mFormats[i], width, height, null);
133 image = new YuvImage(yuv, format, -1, height, null);
139 // abnormal case: height is non-positive
142 fail("not catching illegal height");
149 image = new YuvImage(null, format, width, height, null);
158 generateTestBitmaps(WIDTH, HEIGHT);
201 int height = mTestBitmaps[0].getHeight(); local
234 int height = bitmap.getHeight(); local
354 int height = expected.getHeight(); local
    [all...]
  /external/chromium_org/third_party/skia/gm/
imagealphathreshold.cpp 13 #define HEIGHT 500
37 return SkISize::Make(WIDTH, HEIGHT);
42 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
43 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f);
62 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2),
65 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2),
68 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2),
71 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2)
    [all...]
imagemagnifier.cpp 13 #define HEIGHT 500
34 return SkISize::Make(WIDTH, HEIGHT);
43 SkIntToScalar(HEIGHT / 2)),
52 int y = rand.nextULessThan(HEIGHT);
imageblur.cpp 13 #define HEIGHT 500
35 return SkISize::Make(WIDTH, HEIGHT);
50 int y = rand.nextULessThan(HEIGHT);
imageblur2.cpp 15 #define HEIGHT 500
48 return SkISize::Make(WIDTH, HEIGHT);
55 SkScalar dy = HEIGHT / sigmaCount;
imageresizetiled.cpp 13 #define HEIGHT 480
32 return SkISize::Make(WIDTH, HEIGHT);
45 for (SkScalar y = 0; y < HEIGHT; y += tile_size) {
imageblurtiled.cpp 13 #define HEIGHT 480
29 return SkISize::Make(WIDTH, HEIGHT);
morphology.cpp 12 #define HEIGHT 560
44 return SkISize::Make(WIDTH, HEIGHT);
51 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.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 37 private static final int HEIGHT = 20;
38 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1);
63 for (int y = 0; y <= HEIGHT; y++) {
64 float fy = h * y / HEIGHT;
81 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);
ScaleToFit.java 60 private static final int HEIGHT = 52;
61 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT);
115 canvas.drawText(sFitLabels[j], 0, HEIGHT*2/3, mLabelPaint);
  /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/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);
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 33 private static final int HEIGHT = 120;
34 private static final int[] COLOR = new int[WIDTH * HEIGHT];
36 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
93 assertEquals(HEIGHT, fm.bottom);
94 assertEquals(HEIGHT, fm.descent);
  /external/chromium_org/ui/file_manager/file_manager/foreground/js/
tree.css.js 22 var HEIGHT = WIDTH / 2 + 2;
39 HEIGHT + MARGIN * 2);
48 ctx.lineTo(WIDTH / 2, HEIGHT);
  /cts/tests/tests/net/src/android/net/cts/
UrlQuerySanitizerTest.java 31 private static final String TEST_URL = "http://example.com/?name=Joe+User&age=20&height=175";
42 private static final String HEIGHT = "height";
80 assertTrue(uqs.hasParameter(HEIGHT));
85 assertEquals(EXPECTED_HEIGHT, uqs.getValue(HEIGHT));
93 assertTrue(urlSet.contains(HEIGHT));
105 assertEquals(HEIGHT, pvp.mParameter);
109 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT + 1);
112 assertEquals(EXPECTED_HEIGHT + 1, uqs.getValue(HEIGHT));
116 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT)
    [all...]
  /external/chromium_org/third_party/skia/tests/
CanvasStateTest.cpp 62 const int HEIGHT = 400;
67 SkIntToScalar((HEIGHT-(2*SPACER)) / 7));
99 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT,
132 canvas.translate(0, 2*(rect.height() + SPACER));
150 const int HEIGHT = 400;
153 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4);
200 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT);
240 canvas.translate(0, SkIntToScalar(2*(layerRect.height() + (SPACER))));
241 localRegion.translate(0, 2*(layerRect.height() + SPACER));
307 const int HEIGHT = 100
    [all...]
  /external/chromium_org/third_party/skia/samplecode/
SampleHairline.cpp 70 int bottom = bm.height() - i - 1;
75 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) {
79 if (!check_zeros(bm.getAddr32(right, 0), bm.height(),
88 #define HEIGHT 460
96 generate_pts(pts, N, WIDTH, HEIGHT);
112 generate_pts(pts, N, WIDTH, HEIGHT);
135 generate_pts(pts, N, WIDTH, HEIGHT);
159 generate_pts(pts, N, WIDTH, HEIGHT);
228 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2);
232 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT),
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/
clear.c 19 static const int HEIGHT = 300;
71 templat.height0 = HEIGHT;
96 fb.height = HEIGHT;
  /external/mesa3d/src/gallium/tests/graw/
clear.c 19 static const int HEIGHT = 300;
71 templat.height0 = HEIGHT;
96 fb.height = HEIGHT;

Completed in 437 milliseconds

1 2 3 4