/external/libvncserver/examples/ |
camera.c | 46 #define WIDTH 640 89 for(i=0;i<WIDTH;++i) { 90 buffer[(j*WIDTH+i)*BPP+0]=(i+j)*128/(WIDTH+HEIGHT); /* red */ 91 buffer[(j*WIDTH+i)*BPP+1]=i*128/WIDTH; /* green */ 92 buffer[(j*WIDTH+i)*BPP+2]=j*256/HEIGHT; /* blue */ 94 buffer[j*WIDTH*BPP+0]=0xff; 95 buffer[j*WIDTH*BPP+1]=0xff; 96 buffer[j*WIDTH*BPP+2]=0xff [all...] |
/external/skia/gm/ |
imagealphathreshold.cpp | 13 #define WIDTH 500 21 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); 23 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); 25 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); 27 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); 32 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); 33 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); 59 return SkISize::Make(WIDTH, HEIGHT) [all...] |
imagemagnifier.cpp | 12 #define WIDTH 500 15 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { 20 SkIntToScalar(WIDTH / 2), 27 int x = rand.nextULessThan(WIDTH);
|
imageblur.cpp | 12 #define WIDTH 500 27 int x = rand.nextULessThan(WIDTH); 36 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { 39 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) {
|
imageresizetiled.cpp | 12 #define WIDTH 640 17 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { 28 for (SkScalar x = 0; x < WIDTH; x += tile_size) {
|
complexclip_blur_tiled.cpp | 13 #define WIDTH 512 29 return SkISize::Make(WIDTH, HEIGHT); 53 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT);
|
imageblur2.cpp | 14 #define WIDTH 500 45 return SkISize::Make(WIDTH, HEIGHT); 51 SkScalar dx = WIDTH / sigmaCount;
|
/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";
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoCaptureVideoPermissionTest.java | 33 private static final int WIDTH = 720; 48 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 50 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, 71 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 73 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, 92 ImageReader reader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBX_8888, 1); 95 NAME, WIDTH, HEIGHT, DENSITY,
|
/external/skia/bench/ |
TileImageFilterBench.cpp | 14 #define WIDTH 512 42 SkRect::MakeWH(WIDTH, HEIGHT), 49 for (int x = 0; x < WIDTH; x += fTileSize) { 53 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); 58 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint);
|
/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 | 35 private static final int WIDTH = 20; 37 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1); 64 for (int x = 0; x <= WIDTH; x++) { 65 float fx = w * x / WIDTH; 80 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,
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
GlRectDrawerTest.java | 40 private static final int WIDTH = 16; 56 private static void assertEquals(int width, int height, ByteBuffer actual, ByteBuffer expected) { 59 assertEquals(actual.remaining(), width * height * 3); 60 assertEquals(expected.remaining(), width * height * 3); 62 for (int x = 0; x < width; ++x) { 70 fail("ByteBuffers of size " + width + "x" + height + " not equal at position " 100 eglBase.createPbufferSurface(WIDTH, HEIGHT); 104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); 112 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH, 118 drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT) [all...] |
/external/webrtc/webrtc/modules/audio_processing/ns/ |
defines.h | 25 #define WIDTH (float)0.01 39 #define WIDTH_PR_MAP (float)4.0 // width parameter in sigmoid map for prior model
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
AppCompatVectorDrawableIntegrationTest.java | 42 private static final int WIDTH = 64; 44 private static final int LEFT_CENTER_X = WIDTH / 4; 45 private static final int RIGHT_CENTER_X = WIDTH * 3 / 4; 54 mBitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); 65 vectorDrawable.setBounds(0, 0, WIDTH, HEIGHT);
|
/external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/ |
non_linear_svms.cpp | 30 const int WIDTH = 512, HEIGHT = 512; 31 Mat I = Mat::zeros(HEIGHT, WIDTH, CV_8UC3); 47 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(0.4 * WIDTH)); 56 rng.fill(c, RNG::UNIFORM, Scalar(0.6*WIDTH), Scalar(WIDTH)); 68 rng.fill(c, RNG::UNIFORM, Scalar(0.4*WIDTH), Scalar(0.6*WIDTH));
|
/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...] |
MoreKeysKeyboardBuilderAutoOrderTests.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...] |
MoreKeysKeyboardBuilderMaxOrderTests.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...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
TileTest.java | 33 static final int WIDTH = 15;
35 static final int TILES_PER_LAYER = WIDTH * HEIGHT;
47 cam.position.set(WIDTH * 32 / 2, HEIGHT * 32 / 2, 0);
59 for (int x = 0; x < WIDTH; x++) {
|