/cts/tests/tests/graphics/src/android/graphics/cts/ |
PorterDuffXfermodeTest.java | 36 private static final int HEIGHT = 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); 55 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); 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)); 64 canvas.drawBitmap(b2, 0, HEIGHT / 2, p); 65 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)) [all...] |
PathDashPathEffectTest.java | 41 private static final int HEIGHT = 100; 50 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 60 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 65 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); 73 for (int y = 0; y < HEIGHT; y++) { 85 p.moveTo(0, HEIGHT / 2); 86 p.lineTo(WIDTH, HEIGHT / 2);
|
SumPathEffectTest.java | 41 private static final int HEIGHT = 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); 76 for (int j = 0; j < HEIGHT; j++) {
|
YuvImageTest.java | 63 private static final int HEIGHT = 128; 104 int height = 100; local 105 byte[] yuv = new byte[width * height * 2]; 111 image = new YuvImage(yuv, mFormats[i], width, height, null); 129 image = new YuvImage(yuv, mFormats[i], width, height, null); 143 image = new YuvImage(yuv, format, -1, height, null); 149 // abnormal case: height is non-positive 152 fail("not catching illegal height"); 159 image = new YuvImage(null, format, width, height, null); 173 generateTestBitmaps(WIDTH, HEIGHT); 233 int height = mTestBitmaps[0].getHeight(); local 271 int height = bitmap.getHeight(); local 391 int height = expected.getHeight(); local [all...] |
/sdk/rule_api/src/com/android/ide/common/api/ |
IViewMetadata.java | 74 HEIGHT, 107 return (this == BOTH || this == HEIGHT ||
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CreateBitmap.java | 35 private static final int HEIGHT = 50; 39 int[] colors = new int[STRIDE * HEIGHT]; 40 for (int y = 0; y < HEIGHT; y++) { 43 int g = y * 255 / (HEIGHT - 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...] |
PurgeableBitmapView.java | 46 private static final int HEIGHT = 450; 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 68 int[] colors = new int[STRIDE * HEIGHT]; 69 for (int y = 0; y < HEIGHT; y++) { 72 int g = y * 255 / (HEIGHT - 1); 106 HEIGHT / 2, mPaint);
|
BitmapMesh.java | 37 private static final int HEIGHT = 20; 38 private static final int COUNT = (WIDTH + 1) * (HEIGHT + 1); 63 for (int y = 0; y <= HEIGHT; y++) { 64 float fy = h * y / HEIGHT; 81 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,
|
MeasureText.java | 33 private static final int HEIGHT = 50; 37 int[] colors = new int[STRIDE * HEIGHT]; 38 for (int y = 0; y < HEIGHT; y++) { 41 int g = y * 255 / (HEIGHT - 1);
|
ScaleToFit.java | 60 private static final int HEIGHT = 52; 61 private final RectF mDstR = new RectF(0, 0, WIDTH, HEIGHT); 115 canvas.drawText(sFitLabels[j], 0, HEIGHT*2/3, mLabelPaint);
|
/cts/tests/src/android/media/cts/ |
MediaStubActivity.java | 27 public static final int HEIGHT = 240; 39 lp.height = HEIGHT; 42 mHolder.setFixedSize(WIDTH, HEIGHT); 48 lp2.height = HEIGHT; 51 mHolder2.setFixedSize(WIDTH, HEIGHT);
|
/external/skia/gpu/src/ |
gr_hello_world.cpp | 19 bm.setConfig(SkBitmap::kARGB_8888_Config, WIDTH, HEIGHT);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
Divot.java | 15 static final float HEIGHT = 16F;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
MiniKeyboardBuilderTests.java | 26 private static final int HEIGHT = 10; 46 params = new MiniKeyboardParams(10, MAX_COLUMNS + 1, WIDTH, HEIGHT, WIDTH * 2, 62 HEIGHT, XPOS_M0, KEYBOARD_WIDTH); 75 HEIGHT, XPOS_L0, KEYBOARD_WIDTH); 88 HEIGHT, XPOS_L1, KEYBOARD_WIDTH); 101 HEIGHT, XPOS_L2, KEYBOARD_WIDTH); 114 HEIGHT, XPOS_R0, KEYBOARD_WIDTH); 127 HEIGHT, XPOS_R1, KEYBOARD_WIDTH); 140 HEIGHT, XPOS_R2, KEYBOARD_WIDTH); 153 HEIGHT, XPOS_M0, KEYBOARD_WIDTH) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/ |
ResourcePreviewHelper.java | 61 /** The height of the preview rendering */ 62 private static final int HEIGHT = 100; 107 .createEmptyImage(parent.getDisplay(), WIDTH, HEIGHT)); 110 gd.heightHint = HEIGHT; 133 image = ImageUtils.createColoredImage(WIDTH, HEIGHT, color); 154 int height = image.getHeight(); local 155 if (width > WIDTH || height > HEIGHT) { 157 double yScale = HEIGHT / (double) height; [all...] |
/cts/tests/tests/text/src/android/text/style/cts/ |
IconMarginSpanTest.java | 39 private static final int HEIGHT = 120; 40 private static final int[] COLOR = new int[WIDTH * HEIGHT]; 42 Bitmap.createBitmap(COLOR, WIDTH, HEIGHT, Bitmap.Config.RGB_565); 144 assertEquals(HEIGHT, fm.bottom); 145 assertEquals(HEIGHT, fm.descent);
|
/external/skia/samplecode/ |
SamplePageFlip.cpp | 12 #define HEIGHT 200 64 // SkDebugf("----- dirty [%d %d %d %d]\n", dirty.getBounds().fLeft, dirty.getBounds().fTop, dirty.getBounds().width(), dirty.getBounds().height()); 71 bounce(&y, &dy, HEIGHT-OVALH); 110 fBitmaps[i].setConfig(gConfigs[i], WIDTH, HEIGHT); 111 SkFlipPixelRef* pr = new SkFlipPixelRef(gConfigs[i], WIDTH, HEIGHT);
|
SampleHairline.cpp | 66 int bottom = bm.height() - i - 1; 71 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), rb >> 2)) { 75 if (!check_zeros(bm.getAddr32(right, 0), bm.height(), rb >> 2)) { 83 #define HEIGHT 460 91 generate_pts(pts, N, WIDTH, HEIGHT); 107 generate_pts(pts, N, WIDTH, HEIGHT); 130 generate_pts(pts, N, WIDTH, HEIGHT); 154 generate_pts(pts, N, WIDTH, HEIGHT); 225 HEIGHT + MARGIN*2); 230 bm2.setConfig(SkBitmap::kARGB_8888_Config, WIDTH, HEIGHT, [all...] |
SampleDrawLooper.cpp | 10 #define HEIGHT 200
|
/cts/tests/tests/net/src/android/net/cts/ |
UrlQuerySanitizerTest.java | 36 private static final String TEST_URL = "http://example.com/?name=Joe+User&age=20&height=175"; 47 private static final String HEIGHT = "height"; 252 assertTrue(uqs.hasParameter(HEIGHT)); 257 assertEquals(EXPECTED_HEIGHT, uqs.getValue(HEIGHT)); 265 assertTrue(urlSet.contains(HEIGHT)); 277 assertEquals(HEIGHT, pvp.mParameter); 281 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT + 1); 284 assertEquals(EXPECTED_HEIGHT + 1, uqs.getValue(HEIGHT)); 288 uqs.addSanitizedEntry(HEIGHT, EXPECTED_HEIGHT) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Images_ThumbnailsTest.java | 160 String[] sizeProjection = new String[] { Thumbnails.WIDTH, Thumbnails.HEIGHT }; 166 assertTrue(c.getLong(c.getColumnIndex(Thumbnails.HEIGHT)) >= Math.min(src.getHeight(), 240)); 173 assertEquals(50, c.getLong(c.getColumnIndex(Thumbnails.HEIGHT))); 202 values.put(Thumbnails.HEIGHT, 480); 218 assertEquals(480, c.getInt(c.getColumnIndex(Thumbnails.HEIGHT))); 227 values.put(Thumbnails.HEIGHT, 50);
|
/development/apps/NinePatchLab/src/com/android/ninepatch/ |
NinePatchLab.java | 130 final int HEIGHT = getHeight() - 2*MARGIN_Y; 133 final int drHeight = (HEIGHT - (N - 1) * gapSize) / N;
|
/external/skia/src/utils/unix/ |
SkOSWindow_Unix.cpp | 22 const int HEIGHT = 500; 44 0, 0, WIDTH, HEIGHT, 0, fVi->depth, 51 0, 0, WIDTH, HEIGHT, 0, 0, 0); 56 this->resize(WIDTH, HEIGHT); 104 this->resize(evt.xconfigure.width, evt.xconfigure.height); 175 glViewport(0, 0, SkScalarRound(this->width()), SkScalarRound(this->height())); 240 image.height = bitmap.height(); 258 int height = bitmap.height(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
StreamItemPhotoEntry.java | 38 int height, int width, int fileSize) { 43 mHeight = height; 55 mHeight = getInt(cursor, PhotoFiles.HEIGHT, -1);
|
/external/collada/include/1.4/dom/ |
domCapsule.h | 41 virtual COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::HEIGHT; } 177 * Gets the height element. 178 * @return a daeSmartRef to the height element.
|