HomeSort by relevance Sort by last modified time
    Searched refs:WIDTH (Results 1 - 25 of 39) 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
337 int width = expected.getWidth(); local
    [all...]
NinePatchTest.java 48 private final int WIDTH = 80;
50 private final int[] COLOR = new int[WIDTH * HEIGTH];
155 int width = expected.getWidth(); local
158 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);
  /frameworks/base/awt/java/awt/image/
ImageObserver.java 35 * The Constant WIDTH indicates that the width of the image is available.
37 public static final int WIDTH = 1;
40 * The Constant HEIGHT indicates that the width of the image is available.
88 * WIDTH.
93 * @param width
94 * the width.
99 public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height);
CropImageFilter.java 37 private final int X, Y, WIDTH, HEIGHT;
48 * the width of rectangular area.
55 WIDTH = w;
69 String prop = "x=" + X + "; y=" + Y + "; width=" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
70 WIDTH + "; height=" + HEIGHT; //$NON-NLS-1$
87 if (x + w < X || X + WIDTH < x || y + h < Y || Y + HEIGHT < y) {
95 endX = X + WIDTH;
107 destWidth = WIDTH;
141 if (x + w < X || X + WIDTH < x || y + h < Y || Y + HEIGHT < y) {
149 endX = X + WIDTH;
    [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/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);
  /dalvik/libcore/awt-kernel/src/main/java/java/awt/font/
TextAttribute.java 112 /** The Constant JUSTIFICATION_indicates the full requested width. */
271 /** The WIDTH text attribute. */
272 public static final TextAttribute WIDTH = new TextAttribute("width"); //$NON-NLS-1$
276 * predefined width.
282 * a semi condensed width.
287 * The Constant WIDTH_REGULAR indicates the standard width.
292 * The Constant WIDTH_SEMI_EXTENDED indicates semi extended width.
297 * The Constant WIDTH_EXTENDED indicates extended width.
  /cts/tests/tests/content/src/android/content/res/cts/
ConfigTest.java 44 WIDTH,
124 case WIDTH:
280 config.setProperty(Properties.WIDTH, 320);
425 * touchscreen, hidden, keyboard, navigation, width-height
521 config.setProperty(Properties.WIDTH, 57);
531 config.setProperty(Properties.WIDTH, 400);
  /frameworks/base/awt/org/apache/harmony/awt/gl/image/
OffscreenImage.java 61 int width; field in class:OffscreenImage
71 width = -1;
104 if((imageState & ImageObserver.WIDTH) == 0){
107 if((imageState & ImageObserver.WIDTH) == 0) {
111 return width;
142 width = -1;
148 imageUpdate(this, ImageObserver.PROPERTIES, 0, 0, width, height);
227 imageUpdate(this, ImageObserver.SOMEBITS, 0, 0, width, height);
314 imageUpdate(this, ImageObserver.SOMEBITS, 0, 0, width, height);
317 public void setDimensions(int width, int height)
    [all...]
  /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)'}

Completed in 4791 milliseconds

1 2