/cts/tests/tests/graphics/src/android/graphics/cts/ |
PorterDuffColorFilterTest.java | 41 int width = 100; local 43 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); 45 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); 48 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); 58 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); 59 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); 62 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); 71 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); 72 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); 73 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)) [all...] |
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...] |
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 341 int width = expected.getWidth(); local [all...] |
/dalvik/docs/ |
dalvik-bytecode.css | 9 border-top-width: 2px; 46 border-width: 1px; 75 border-width: 1px; 86 width: 12%; 93 width: 23%; 103 width: 28%; 108 width: 37%; 124 width: 20%; 130 width: 20%; 136 width: 60% [all...] |
dex-format.css | 4 border-top-width: 5px; 17 border-top-width: 2px; 57 border-width: 1px; 79 border-width: 1px; 98 border-width: 1px; 117 width: 8pt; 146 width: 15%; 151 width: 85%; 187 width: 31%; 193 width: 23% [all...] |
instruction-formats.css | 9 border-top-width: 2px; 47 border-width: 1px; 68 width: 10%; 73 width: 10%; 78 width: 80%; 112 width: 28%; 116 width: 5%; 120 width: 45%; 124 width: 22%;
|
/dalvik/docs/opcodes/ |
opcode.css | 9 border-top-width: 2px; 47 border-width: 1px; 76 border-width: 1px; 87 width: 12%; 94 width: 23%; 104 width: 28%; 109 width: 37%; 125 width: 20%; 131 width: 20%; 137 width: 60% [all...] |
/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...] |
/external/webkit/WebKitTools/mangleme/ |
tags.h | 17 { "APPLET", "CODEBASE", "CODE", "NAME", "ALIGN", "ALT", "HEIGHT", "WIDTH", "HSPACE", "VSPACE", "DOWNLOAD", "HEIGHT", "NAME", "TITLE", "onLoad", "STYLE", 0 }, 29 { "COLGROUP", "ALIGN", "VALIGN", "HALIGN", "WIDTH", "SPAN", "onLoad", "STYLE", 0 }, 31 { "EMBED", "SRC", "HEIGHT", "WIDTH", "UNITS", "NAME", "PALETTE", "onLoad", "STYLE", 0 }, 32 { "FIG", "SRC", "ALIGN", "HEIGHT", "WIDTH", "UNITS", "IMAGEMAP", "onLoad", "STYLE", 0 }, 40 { "HR", "SRC", "SIZE", "WIDTH", "ALIGN", "COLOR", "onLoad", "STYLE", 0 }, 42 { "IFRAME", "ALIGN", "FRAMEBORDER", "HEIGHT", "MARGINHEIGHT", "MARGINWIDTH", "NAME", "SCROLLING", "SRC", "ADDRESS", "WIDTH", "onLoad", "STYLE", 0 }, 43 { "IMG", "ALIGN", "ALT", "SRC", "BORDER", "DYNSRC", "HEIGHT", "HSPACE", "ISMAP", "LOOP", "LOWSRC", "START", "UNITS", "USEMAP", "WIDTH", "VSPACE", "onLoad", "STYLE", 0 }, 49 { "MARQUEE", "ALIGN", "BEHAVIOR", "BGCOLOR", "DIRECTION", "HEIGHT", "HSPACE", "LOOP", "SCROLLAMOUNT", "SCROLLDELAY", "WIDTH", "VSPACE", "onLoad", "STYLE", 0 }, 52 { "MULTICOL", "COLS", "GUTTER", "WIDTH", "onLoad", "STYLE", 0 }, 55 { "OVERLAY", "SRC", "X", "Y", "HEIGHT", "WIDTH", "UNITS", "IMAGEMAP", "onLoad", "STYLE", 0 }, [all...] |
/dalvik/dx/tests/003-magic-version-access/ |
run | 30 dx --debug --dump --width=100 class-version-45.0.txt 31 dx --debug --dump --width=100 class-version-45.65535.txt 32 dx --debug --dump --width=100 class-version-48.0.txt 33 dx --debug --dump --width=100 class-version-48.65535.txt 34 dx --debug --dump --width=100 class-version-49.0.txt 35 dx --debug --dump --width=100 class-version-49.1.txt 36 dx --debug --dump --width=100 class-version-49.65535.txt 37 dx --debug --dump --width=100 class-version-50.0.txt 46 dx --debug --dump --width=100 small-class.txt
|
/external/skia/src/core/ |
SkBitmap_scroll.cpp | 34 int width = this->width(); local 38 if ((dx | dy) == 0 || width <= 0 || height <= 0) { 49 r.set(0, 0, width, height); 93 width += dx; 96 width -= dx; 99 width <<= shift; // now width is the number of bytes to move per line 101 memmove(dst, src, width);
|
SkSpriteBlitter_ARGB32.cpp | 45 virtual void blitRect(int x, int y, int width, int height) { 46 SkASSERT(width > 0 && height > 0); 56 proc(dst, src, width, alpha); 106 int width = device.width(); local 107 if (width > fBufferSize) { 108 fBufferSize = width; 110 fBuffer = new SkPMColor[width]; 133 virtual void blitRect(int x, int y, int width, int height) { 134 SkASSERT(width > 0 && height > 0) [all...] |
/external/skia/src/images/ |
SkCreateRLEPixelRef.cpp | 46 ChunkRLEPixels(int width, int height, size_t chunkSize) 47 : SkBitmap::RLEPixels(width, height), fStorage(chunkSize) { 61 size_t maxPacked = SkPackBits::ComputeMaxSize8(src.width()); 70 (src.width(), src.height(), size)); 83 size_t packedSize = SkPackBits::Pack8(srcRow, src.width(), dstRow); 96 uint8_t* buffer = new uint8_t[src.width()]; 99 SkPackBits::Unpack8(buffer, 0, src.width(), rlePixels->packedAtY(y)); 100 int n = memcmp(buffer, srcRow, src.width()); 111 src.width(), src.height(), src.getSize(),
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/ |
IllegalFormatWidthExceptionTest.java | 32 int width = Integer.MAX_VALUE; local 34 width); 35 assertEquals(width, illegalFormatWidthException.getWidth()); 43 int width = 12345; local 45 width); 46 assertEquals(width, illegalFormatWidthException.getWidth()); 54 int width = 12345; local 56 width); 72 assertEquals("Width", initEx.getWidth(), desrEx.getWidth());
|
/packages/apps/Mms/src/com/android/mms/model/ |
RegionModel.java | 31 int width, int height) { 32 this(regionId, DEFAULT_FIT, left, top, width, height); 36 int width, int height) { 37 this(regionId, fit, left, top, width, height, null); 41 int width, int height, String bgColor) { 46 mWidth = width; 111 * @param width the mWidth to set 113 public void setWidth(int width) { 114 mWidth = width;
|
/bootable/recovery/minui/ |
mkfont.c | 12 n = gimp_image.width * gimp_image.height; 17 printf(" unsigned width;\n"); 23 printf(" .width = %d,\n .height = %d,\n .cwidth = %d,\n .cheight = %d,\n", gimp_image.width, gimp_image.height, 24 gimp_image.width / 96, gimp_image.height);
|
/external/webkit/WebCore/platform/ |
LengthSize.h | 34 LengthSize(Length width, Length height) 35 : m_width(width) 45 void setWidth(Length width) { m_width = width; } 46 Length width() const { return m_width; } function in struct:WebCore::LengthSize
|
/external/webkit/WebCore/platform/graphics/ |
FloatSize.h | 54 FloatSize(float width, float height) : m_width(width), m_height(height) { } 57 static FloatSize narrowPrecision(double width, double height); 59 float width() const { return m_width; } function in class:WebCore::FloatSize 62 void setWidth(float width) { m_width = width; } 96 a.setWidth(a.width() + b.width()); 103 a.setWidth(a.width() - b.width()); [all...] |
IntSize.h | 67 IntSize(int width, int height) : m_width(width), m_height(height) { } 69 int width() const { return m_width; } function in class:WebCore::IntSize 72 void setWidth(int width) { m_width = width; } 78 void expand(int width, int height) 80 m_width += width; 148 a.setWidth(a.width() + b.width()); 155 a.setWidth(a.width() - b.width()) [all...] |
/frameworks/base/include/media/stagefright/ |
ColorConverter.h | 36 size_t width, size_t height, 47 size_t width, size_t height, 52 size_t width, size_t height, 57 size_t width, size_t height, 62 size_t width, size_t height,
|
/external/clearsilver/imd/ |
imd.cs | 2 <TABLE cellspacing=0 cellpadding=0 border=0 WIDTH=1%> 4 <TD><IMG name="frame0" border=0 height=8 width=8 src="0.gif"></TD> 5 <TD><IMG name="frame1" border=0 height=8 width=<?cs var:image.width ?> src="1.gif"></TD> 6 <TD><IMG name="frame2" border=0 height=8 width=8 src="2.gif"></TD> 9 <TD><IMG name="frame3" border=0 height=<?cs var:image.height ?> width=8 src="3.gif"></TD> 10 <TD><a href="<?cs var:link ?>"><img border=0 width=<?cs var:image.width ?> height=<?cs var:image.height ?> src="<?cs var:CGI.PathInfo?>?image=<?cs var:url_escape(Album) ?>/<?cs var:url_escape(image) ?>&width=<?cs var:image.width ?>&height=<?cs var:image.height ?>"></a></TD [all...] |
/frameworks/base/graphics/java/android/graphics/ |
YuvImage.java | 28 * region by left, top, width and height. 56 * The width of the image. 71 * @param width The width of the YuvImage. 75 * padding and derives the row bytes by format and width itself. 76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { 87 if (width <= 0 || height <= 0) { 89 "width and height must large than 0"); 97 mStrides = calculateStrides(width, format) 215 int width = rect.width(); local [all...] |
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
BalloonHint.java | 133 * @param width The desired width of the balloon. The real width is 134 * determined by the desired width and balloon's measuring 136 * @param height The desired width of the balloon. The real width is 137 * determined by the desired width and balloon's measuring 141 boolean textBold, int textColor, int width, int height) { 143 setBalloonSize(width, height); 150 * @param width The desired width of the balloon. The real width i 428 int width = getWidth(); local 464 float width = mPaintLabel.measureText(rawLabel, 0, subLen); local [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 25 typedef void (*FromColorProc)(void* dst, const SkColor src[], int width,
28 static void FromColor_D32(void* dst, const SkColor src[], int width,
32 for (int i = 0; i < width; i++) {
37 static void FromColor_D565(void* dst, const SkColor src[], int width,
42 for (int stop = x + width; x < stop; x++) {
49 static void FromColor_D4444(void* dst, const SkColor src[], int width,
54 for (int stop = x + width; x < stop; x++) {
78 int x, int y, int width, int height,
95 proc(dst, src, width, x, y);
107 typedef void (*ToColorProc)(SkColor dst[], const void* src, int width,
337 const int width = p->readInt32(); local [all...] |
/packages/wallpapers/Basic/res/raw/ |
grass.rs | 41 float xpos = randf2(-State->width, State->width); 61 void drawNight(int width, int height) { 66 width, -32.0f, 0.0f, 68 width, 1024.0f - 32.0f, 0.0f, 74 void drawSunrise(int width, int height) { 76 drawRect(0.0f, 0.0f, width, height, 0.0f); 79 void drawNoon(int width, int height) { 81 drawRect(0.0f, 0.0f, width, height, 0.0f); 84 void drawSunset(int width, int height) [all...] |