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

1 2 3

  /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/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 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);
  /external/skia/gm/
imageblur.cpp 12 #define HEIGHT 500
28 return make_isize(WIDTH, HEIGHT);
41 int y = rand() % HEIGHT;
imagemagnifier.cpp 12 #define HEIGHT 500
33 return make_isize(WIDTH, HEIGHT);
42 SkIntToScalar(HEIGHT / 2)),
50 int y = rand() % HEIGHT;
morphology.cpp 12 #define HEIGHT 480
45 return make_isize(WIDTH, HEIGHT);
gammatext.cpp 47 CGContextRef cg = CGBitmapContextCreate(bm.getPixels(), bm.width(), bm.height(),
111 #define HEIGHT 480
125 return make_isize(1024, HEIGHT);
129 SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } };
140 SkRect r = { 0, 0, SkIntToScalar(1024), SkIntToScalar(HEIGHT) };
172 SkScalar stopy = SkIntToScalar(HEIGHT);
180 static_cast<float>(HEIGHT) - SkScalarToFloat(y),
lighting.cpp 12 #define HEIGHT 220
42 return make_isize(WIDTH, HEIGHT);
48 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height())));
61 for (int y = 0; y < HEIGHT; y += 16) {
colormatrix.cpp 13 #define HEIGHT 500
61 return make_isize(WIDTH, HEIGHT);
64 SkBitmap createSolidBitmap(int width, int height) {
66 bm.setConfig(SkBitmap::kARGB_8888_Config, width, height);
70 for (int y = 0; y < height; ++y) {
73 paint.setColor(SkColorSetARGB(255, x * 255 / width, y * 255 / height, 0));
82 SkBitmap createTransparentBitmap(int width, int height) {
84 bm.setConfig(SkBitmap::kARGB_8888_Config, width, height);
89 SkPoint pts[] = {{0, 0}, {SkIntToScalar(width), SkIntToScalar(height)}};
94 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(width), SkIntToScalar(height)), paint)
    [all...]
modecolorfilters.cpp 14 #define HEIGHT 1024
69 return make_isize(WIDTH, HEIGHT);
drawlooper.cpp 16 #define HEIGHT 200
  /packages/apps/Mms/src/com/android/mms/ui/
Divot.java 28 static final float HEIGHT = 16F;
  /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);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ResourcePreviewHelper.java 61 /** The height of the preview rendering */
62 private static final int HEIGHT = 100;
107 .createEmptyImage(parent.getDisplay(), WIDTH, HEIGHT));
110 gd.heightHint = HEIGHT;
133 image = ImageUtils.createColoredImage(WIDTH, HEIGHT, color);
154 int height = image.getHeight(); local
155 if (width > WIDTH || height > HEIGHT) {
157 double yScale = HEIGHT / (double) height;
    [all...]
  /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/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...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Images_ThumbnailsTest.java 134 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT };
140 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240));
147 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)));
236 values.put(Thumbnails.HEIGHT, 480);
252 assertEquals(480, c.getInt(c.getColumnIndex(Thumbnails.HEIGHT)));
261 values.put(Thumbnails.HEIGHT, 50);
  /development/apps/NinePatchLab/src/com/android/ninepatch/
NinePatchLab.java 130 final int HEIGHT = getHeight() - 2*MARGIN_Y;
133 final int drHeight = (HEIGHT - (N - 1) * gapSize) / N;

Completed in 535 milliseconds

1 2 3