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

1 2

  /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");
220 int width = bitmap.getWidth(); local
341 int width = expected.getWidth(); local
    [all...]
NinePatchTest.java 47 private final int WIDTH = 80;
49 private final int[] COLOR = new int[WIDTH * HEIGTH];
154 int width = expected.getWidth(); local
157 for (int i = 0; i < width; i++) {
  /cts/tests/src/android/media/cts/
MediaStubActivity.java 26 public static final int WIDTH = 320;
37 lp.width = WIDTH;
41 mHolder.setFixedSize(WIDTH, HEIGHT);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 38 private static final int WIDTH = 50;
40 private static final int STRIDE = 64; // must be >= WIDTH
45 for (int x = 0; x < WIDTH; x++) {
46 int r = x * 255 / (WIDTH - 1);
81 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
83 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
85 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
89 mBitmaps[3] = Bitmap.createBitmap(WIDTH, HEIGHT,
91 mBitmaps[4] = Bitmap.createBitmap(WIDTH, HEIGHT,
93 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 36 private static final int WIDTH = 50;
38 private static final int STRIDE = 64; // must be >= WIDTH
43 for (int x = 0; x < WIDTH; x++) {
44 int r = x * 255 / (WIDTH - 1);
ScaleToFit.java 60 private static final int WIDTH = 52;
62 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT);
106 canvas.translate(mSrcR.width() + 15, 0);
115 canvas.translate(mDstR.width() + 8, 0);
  /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/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;
  /packages/apps/Browser/src/com/android/browser/widget/
BookmarkWidgetService.java 68 private static final int WIDTH = 306;
335 mRenderer.render(urls, WIDTH, HEIGHT, this);
371 res.mBitmap = Bitmap.createScaledBitmap(orig, WIDTH, HEIGHT, true);
  /libcore/luni/src/main/java/java/awt/font/
TextAttribute.java 106 /** The Constant JUSTIFICATION_indicates the full requested width. */
297 /** The WIDTH text attribute. */
298 public static final TextAttribute WIDTH = new TextAttribute("width");
302 * predefined width.
308 * a semi condensed width.
313 * The Constant WIDTH_REGULAR indicates the standard width.
318 * The Constant WIDTH_SEMI_EXTENDED indicates semi extended width.
323 * The Constant WIDTH_EXTENDED indicates extended width.
  /cts/tests/tests/content/src/android/content/res/cts/
ConfigTest.java 44 WIDTH,
125 case WIDTH:
283 config.setProperty(Properties.WIDTH, 320);
498 * touchscreen, hidden, keyboard, navigation, width-height
594 config.setProperty(Properties.WIDTH, 57);
604 config.setProperty(Properties.WIDTH, 400);
  /packages/providers/MediaProvider/src/com/android/providers/media/
MediaThumbRequest.java 124 values.put(Images.Thumbnails.WIDTH, thumbnail.getWidth());
  /external/v8/test/mjsunit/third_party/
string-trim.js 69 {s : '\u200B', t : 'ZERO WIDTH SPACE (category Cf)'}
  /external/clearsilver/imd/
imd.cs 2 <TABLE cellspacing=0 cellpadding=0 border=0 WIDTH=1%>
4 <TD><IMG name="frame0" border=0 height=8 width=8 src="0.gif"></TD>
5 <TD><IMG name="frame1" border=0 height=8 width=<?cs var:image.width ?> src="1.gif"></TD>
6 <TD><IMG name="frame2" border=0 height=8 width=8 src="2.gif"></TD>
9 <TD><IMG name="frame3" border=0 height=<?cs var:image.height ?> width=8 src="3.gif"></TD>
10 <TD><a href="<?cs var:link ?>"><img border=0 width=<?cs var:image.width ?> height=<?cs var:image.height ?> src="<?cs var:CGI.PathInfo?>?image=<?cs var:url_escape(Album) ?>/<?cs var:url_escape(image) ?>&width=<?cs var:image.width ?>&height=<?cs var:image.height ?>"></a></TD
    [all...]
  /frameworks/base/core/java/android/provider/
MediaStore.java 565 float width, float height,
570 float scaleX = width / source.getWidth();
584 values.put(Images.Thumbnails.WIDTH, thumb.getWidth());
    [all...]
  /cts/tools/signature-tools/lib/
stringtemplate.jar 

Completed in 759 milliseconds

1 2