/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); 39 int x = rand() % WIDTH;
|
morphology.cpp | 11 #define WIDTH 640 45 return make_isize(WIDTH, HEIGHT);
|
/sdk/rule_api/src/com/android/ide/common/api/ |
IViewMetadata.java | 84 WIDTH, 106 return (this == BOTH || this == WIDTH ||
|
/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
|
/external/skia/src/gpu/ |
gr_hello_world.cpp | 26 bm.setConfig(SkBitmap::kARGB_8888_Config, WIDTH, HEIGHT);
|
/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 | 24 private static final int WIDTH = 10; 27 private static final int KEYBOARD_WIDTH = WIDTH * 10; 28 private static final int XPOS_L0 = WIDTH * 0 + WIDTH / 2; 29 private static final int XPOS_L1 = WIDTH * 1 + WIDTH / 2; 30 private static final int XPOS_L2 = WIDTH * 2 + WIDTH / 2; 31 private static final int XPOS_L3 = WIDTH * 3 + WIDTH / 2 [all...] |
MoreKeysKeyboardBuilderTests.java | 24 private static final int WIDTH = 10; 27 private static final int KEYBOARD_WIDTH = WIDTH * 10; 28 private static final int XPOS_L0 = WIDTH * 0 + WIDTH / 2; 29 private static final int XPOS_L1 = WIDTH * 1 + WIDTH / 2; 30 private static final int XPOS_L2 = WIDTH * 2 + WIDTH / 2; 31 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/skia/samplecode/ |
SamplePageFlip.cpp | 18 #define WIDTH 160 59 SkRect clipR = SkRect::MakeWH(SkIntToScalar(bm->width()), SkIntToScalar(bm->height())); 79 bounce(&x, &dx, WIDTH-OVALW); 109 fBitmaps[i].setConfig(gConfigs[i], WIDTH, HEIGHT); 110 SkFlipPixelRef* pr = new SkFlipPixelRef(gConfigs[i], WIDTH, HEIGHT); 144 x += SkIntToScalar(fBitmaps[i].width() + 20);
|
SampleHairline.cpp | 70 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { 74 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { 81 int right = bm.width() - margin + i; 89 #define WIDTH 620 98 generate_pts(pts, N, WIDTH, HEIGHT); 114 generate_pts(pts, N, WIDTH, HEIGHT); 137 generate_pts(pts, N, WIDTH, HEIGHT); 161 generate_pts(pts, N, WIDTH, HEIGHT); 217 canvas->drawBitmap(b1, SkIntToScalar(b0.width()), 0, NULL); 231 WIDTH + MARGIN*2 [all...] |
/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/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,
|