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

1 2 3

  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffXfermodeTest.java 35 private static final int WIDTH = 100;
44 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
46 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888);
48 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
57 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
58 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4));
65 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
66 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
67 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4))
    [all...]
PathDashPathEffectTest.java 40 private static final int WIDTH = 100;
50 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
60 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
66 for (int i = 0; i <= WIDTH + SQUARE; i += ADVANCE) {
74 for (int x = 0; x < WIDTH; x++) {
86 p.lineTo(WIDTH, HEIGHT / 2);
SumPathEffectTest.java 40 private static final int WIDTH = 100;
49 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
51 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
55 path.addRect(10, 10, WIDTH - 10, HEIGHT - 10, Direction.CW);
75 for (int i = 0; i < WIDTH; i++) {
YuvImageTest.java 62 private static final int WIDTH = 256;
103 int width = 100; local
105 byte[] yuv = new byte[width * height * 2];
111 image = new YuvImage(yuv, mFormats[i], width, height, null);
123 expected = new int[] {width, width};
125 expected = new int[] {width * 2};
129 image = new YuvImage(yuv, mFormats[i], width, height, null);
141 // abnormal case: width is non-positive
144 fail("not catching illegal width");
232 int width = mTestBitmaps[0].getWidth(); local
270 int width = bitmap.getWidth(); local
390 int width = expected.getWidth(); local
    [all...]
  /sdk/rule_api/src/com/android/ide/common/api/
IViewMetadata.java 72 WIDTH,
94 return (this == BOTH || this == WIDTH ||
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
MiniKeyboardBuilderTests.java 25 private static final int WIDTH = 10;
28 private static final int KEYBOARD_WIDTH = WIDTH * 10;
29 private static final int XPOS_L0 = WIDTH * 0;
30 private static final int XPOS_L1 = WIDTH * 1;
31 private static final int XPOS_L2 = WIDTH * 2;
32 private static final int XPOS_M0 = WIDTH * 5;
33 private static final int XPOS_R3 = WIDTH * 6;
34 private static final int XPOS_R2 = WIDTH * 7;
35 private static final int XPOS_R1 = WIDTH * 8;
36 private static final int XPOS_R0 = WIDTH * 9
    [all...]
  /cts/tests/src/android/media/cts/
MediaStubActivity.java 26 public static final int WIDTH = 320;
38 lp.width = WIDTH;
42 mHolder.setFixedSize(WIDTH, HEIGHT);
47 lp2.width = WIDTH;
51 mHolder2.setFixedSize(WIDTH, HEIGHT);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 34 private static final int WIDTH = 50;
36 private static final int STRIDE = 64; // must be >= WIDTH
41 for (int x = 0; x < WIDTH; x++) {
42 int r = x * 255 / (WIDTH - 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...]
BitmapMesh.java 36 private static final int WIDTH = 20;
38 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1);
65 for (int x = 0; x <= WIDTH; x++) {
66 float fx = w * x / WIDTH;
81 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,
PurgeableBitmapView.java 45 private static final int WIDTH = 150;
47 private static final int STRIDE = 320; // must be >= WIDTH
59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
70 for (int x = 0; x < WIDTH; x++) {
71 int r = x * 255 / (WIDTH - 1);
105 canvas.drawText(String.valueOf(mDecodingCount), WIDTH / 2 - 20,
MeasureText.java 32 private static final int WIDTH = 50;
34 private static final int STRIDE = 64; // must be >= WIDTH
39 for (int x = 0; x < WIDTH; x++) {
40 int r = x * 255 / (WIDTH - 1);
ScaleToFit.java 59 private static final int WIDTH = 52;
61 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT);
104 canvas.translate(mSrcR.width() + 15, 0);
113 canvas.translate(mDstR.width() + 8, 0);
  /external/webrtc/src/modules/audio_processing/ns/main/source/
defines.h 28 #define WIDTH (float)0.01
43 #define WIDTH_PR_MAP (float)4.0 // width parameter in sigmoid map for prior model
  /external/skia/gpu/src/
gr_hello_world.cpp 19 bm.setConfig(SkBitmap::kARGB_8888_Config, WIDTH, HEIGHT);
  /packages/apps/Mms/src/com/android/mms/ui/
Divot.java 14 static final float WIDTH = 6F;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ResourcePreviewHelper.java 56 * The width of the preview rendering
60 private static final int WIDTH = 100;
107 .createEmptyImage(parent.getDisplay(), WIDTH, HEIGHT));
109 gd.widthHint = WIDTH;
133 image = ImageUtils.createColoredImage(WIDTH, HEIGHT, color);
153 int width = image.getWidth(); local
155 if (width > WIDTH || height > HEIGHT) {
156 double xScale = WIDTH / (double) width;
    [all...]
  /external/skia/samplecode/
SamplePageFlip.cpp 11 #define WIDTH 200
64 // SkDebugf("----- dirty [%d %d %d %d]\n", dirty.getBounds().fLeft, dirty.getBounds().fTop, dirty.getBounds().width(), dirty.getBounds().height());
70 bounce(&x, &dx, WIDTH-OVALW);
110 fBitmaps[i].setConfig(gConfigs[i], WIDTH, HEIGHT);
111 SkFlipPixelRef* pr = new SkFlipPixelRef(gConfigs[i], WIDTH, HEIGHT);
145 x += SkIntToScalar(fBitmaps[i].width() + 20);
SampleHairline.cpp 63 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) {
67 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) {
74 int right = bm.width() - margin + i;
82 #define WIDTH 620
91 generate_pts(pts, N, WIDTH, HEIGHT);
107 generate_pts(pts, N, WIDTH, HEIGHT);
130 generate_pts(pts, N, WIDTH, HEIGHT);
154 generate_pts(pts, N, WIDTH, HEIGHT);
210 canvas->drawBitmap(b1, SkIntToScalar(b0.width()), 0, NULL);
224 WIDTH + MARGIN*2
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 38 private static final int WIDTH = 80;
40 private static final int[] COLOR = new int[WIDTH * HEIGHT];
42 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Images_ThumbnailsTest.java 160 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT };
165 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.WIDTH)) >= Math.min(src.getWidth(), 240));
172 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.WIDTH)));
203 values.put(Thumbnails.WIDTH, 320);
219 assertEquals(320, c.getInt(c.getColumnIndex(Thumbnails.WIDTH)));
228 values.put(Thumbnails.WIDTH, 50);
  /external/srec/portable/src/
pcrc.c 31 #define WIDTH 32
75 #define WIDTH 16
76 #define TOPBIT (1 << (WIDTH - 1))
136 byte = (unsigned char)((remainder >> (WIDTH - 8)) ^ *p++);
139 byte = (unsigned char)(((remainder >> (WIDTH - 8)) ^(*p >> 8)) & 0xFF);
141 byte = (unsigned char)(((remainder >> (WIDTH - 8)) ^(*p++ & 0xFF)) & 0xFF);
  /external/bouncycastle/src/main/java/org/bouncycastle/math/ec/
WTauNafMultiplier.java 64 BigInteger tw = Tnaf.getTw(mu, Tnaf.WIDTH);
66 byte[]u = Tnaf.tauAdicWNaf(mu, lambda, Tnaf.WIDTH,
  /external/emma/core/java12/com/vladium/emma/report/html/doc/
Attribute.java 32 public static final Attribute WIDTH = new AttributeImpl ("WIDTH");
HTMLTable.java 32 public HTMLTable (final String width, final String border, final String cellpadding, final String cellspacing)
38 if (width != null) attrs.set (Attribute.WIDTH, width);
  /development/apps/NinePatchLab/src/com/android/ninepatch/
NinePatchLab.java 129 final int WIDTH = getWidth() - 2*MARGIN_X;
134 final int drWidth = WIDTH;

Completed in 574 milliseconds

1 2 3