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

1 2 3 4

  /cts/tests/tests/graphics/src/android/graphics/cts/
PorterDuffXfermodeTest.java 31 private static final int WIDTH = 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);
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));
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4));
57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4));
58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4))
    [all...]
SumPathEffectTest.java 36 private static final int WIDTH = 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);
66 for (int i = 0; i < WIDTH; i++) {
PathDashPathEffectTest.java 36 private static final int WIDTH = 100;
40 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
50 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888);
56 for (int i = 0; i <= WIDTH + SQUARE; i += ADVANCE) {
64 for (int x = 0; x < WIDTH; x++) {
76 p.lineTo(WIDTH, HEIGHT / 2);
YuvImageTest.java 57 private static final int WIDTH = 256;
93 int width = 100; local
95 byte[] yuv = new byte[width * height * 2];
101 image = new YuvImage(yuv, mFormats[i], width, height, null);
113 expected = new int[] {width, width};
115 expected = new int[] {width * 2};
119 image = new YuvImage(yuv, mFormats[i], width, height, null);
131 // abnormal case: width is non-positive
134 fail("not catching illegal width");
200 int width = mTestBitmaps[0].getWidth(); local
233 int width = bitmap.getWidth(); local
353 int width = expected.getWidth(); 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.
46 public static final String WIDTH = "SCAN_WIDTH";
  /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/skia/gm/
imageblur.cpp 11 #define WIDTH 500
28 return make_isize(WIDTH, HEIGHT);
40 int x = rand() % WIDTH;
imagemagnifier.cpp 11 #define WIDTH 500
33 return make_isize(WIDTH, HEIGHT);
41 SkIntToScalar(WIDTH / 2),
49 int x = rand() % WIDTH;
morphology.cpp 11 #define WIDTH 640
45 return make_isize(WIDTH, HEIGHT);
lighting.cpp 11 #define WIDTH 330
42 return make_isize(WIDTH, HEIGHT);
48 SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height())));
62 for (int x = 0; x < WIDTH; x += 16) {
  /external/webrtc/src/modules/audio_processing/ns/
defines.h 28 #define WIDTH (float)0.01
43 #define WIDTH_PR_MAP (float)4.0 // width parameter in sigmoid map for prior model
  /packages/apps/Mms/src/com/android/mms/ui/
Divot.java 27 static final float WIDTH = 6F;
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
MoreKeysKeyboardBuilderFixedOrderTests.java 26 private static final int WIDTH = 10;
29 private static final int KEYBOARD_WIDTH = WIDTH * 10;
30 private static final int XPOS_L0 = WIDTH * 0 + WIDTH / 2;
31 private static final int XPOS_L1 = WIDTH * 1 + WIDTH / 2;
32 private static final int XPOS_L2 = WIDTH * 2 + WIDTH / 2;
33 private static final int XPOS_L3 = WIDTH * 3 + WIDTH / 2
    [all...]
MoreKeysKeyboardBuilderTests.java 26 private static final int WIDTH = 10;
29 private static final int KEYBOARD_WIDTH = WIDTH * 10;
30 private static final int XPOS_L0 = WIDTH * 0 + WIDTH / 2;
31 private static final int XPOS_L1 = WIDTH * 1 + WIDTH / 2;
32 private static final int XPOS_L2 = WIDTH * 2 + WIDTH / 2;
33 private static final int XPOS_L3 = WIDTH * 3 + WIDTH / 2
    [all...]
  /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...]
  /cts/tests/tests/text/src/android/text/style/cts/
IconMarginSpanTest.java 32 private static final int WIDTH = 80;
34 private static final int[] COLOR = new int[WIDTH * HEIGHT];
36 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565);
  /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/dialogs/
ResizableDialog.java 41 private static final String WIDTH = "width";
76 int width = Math.min(displayBounds.width, Math.max(oldBounds.width, defaultSize.x)); local
78 return new Point(width, height);
109 int maxX = windowBounds.x + windowBounds.width - initialSize.x;
126 int x = windowBounds.x + (windowBounds.width - initialSize.x) / 2;
144 settings.getInt(WIDTH),
158 settings.put(WIDTH, bounds.width)
    [all...]
  /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/bcprov/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");
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Images_ThumbnailsTest.java 134 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT };
139 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.WIDTH)) >= Math.min(src.getWidth(), 240));
146 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.WIDTH)));
237 values.put(Thumbnails.WIDTH, 320);
253 assertEquals(320, c.getInt(c.getColumnIndex(Thumbnails.WIDTH)));
262 values.put(Thumbnails.WIDTH, 50);

Completed in 495 milliseconds

1 2 3 4