/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 20 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 49 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 50 Canvas canvas = new Canvas(bitmap); 57 // check the color at the center of bitmap 58 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 68 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
OvalShapeTest.java | 20 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 44 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Config.ARGB_8888); local 45 Canvas canvas = new Canvas(bitmap); 52 // check the color at the center of bitmap 53 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 62 if (bitmap.getPixel(i, i) == TEST_COLOR_2) {
|
/external/skia/include/effects/ |
SkBitmapSource.h | 16 explicit SkBitmapSource(const SkBitmap& bitmap);
|
/external/skia/src/image/ |
SkImage_Codec.cpp | 58 SkBitmap bitmap; local 59 if (!SkImageDecoder::DecodeMemory(data->bytes(), data->size(), &bitmap, 65 return SkNEW_ARGS(SkImage_Codec, (data, bitmap.width(), bitmap.height()));
|
/external/skia/src/ports/ |
SkImageDecoder_WIC.cpp | 93 //Get the size of the bitmap. 100 //Exit early if we're only looking for the bitmap bounds. 119 piBitmapSourceOriginal.get() //Input bitmap to convert 136 //Copy the pixels into the bitmap. 197 const SkBitmap* bitmap; local 200 bitmap = &bitmapOrig; 205 bitmap = &bitmapCopy; 209 if (!bitmap->isOpaque()) { 210 SkAutoLockPixels alp(*bitmap); 212 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap->getPixels()) [all...] |
SkFontHost_FreeType_common.cpp | 59 static void copyFT2LCD16(const SkGlyph& glyph, const FT_Bitmap& bitmap, 63 SkASSERT(3 * glyph.fHeight == bitmap.rows); 65 SkASSERT(glyph.fHeight == bitmap.rows); 71 const uint8_t* src = bitmap.buffer; 73 switch (bitmap.pixel_mode) { 80 src += bitmap.pitch; 89 src += bitmap.pitch; 93 SkASSERT(lcdIsVert || (glyph.fWidth * 3 == bitmap.width)); 97 const uint8_t* srcG = srcR + bitmap.pitch; 98 const uint8_t* srcB = srcG + bitmap.pitch [all...] |
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
InspectorCanvas.h | 43 InspectorCanvas(SkBounder* bounder, SkPicture* picture, SkBitmap& bitmap) 44 : SkCanvas(bitmap) 59 virtual void commonDrawBitmap(const SkBitmap& bitmap, 63 virtual void drawBitmapRectToRect(const SkBitmap& bitmap,
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
DIBPixelData.cpp | 34 DIBPixelData::DIBPixelData(HBITMAP bitmap) 36 initialize(bitmap); 39 void DIBPixelData::initialize(HBITMAP bitmap) 41 BITMAP bmpInfo; 42 GetObject(bitmap, sizeof(bmpInfo), &bmpInfo);
|
/external/webkit/Source/WebKit/chromium/public/ |
WebImage.h | 52 // A container for an ARGB bitmap. 87 WebImage(const SkBitmap& bitmap) : m_bitmap(bitmap) { } 89 WebImage& operator=(const SkBitmap& bitmap) 91 m_bitmap = bitmap;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapShaderTest.java | 19 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 39 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); 50 // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions 51 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, 66 * bitmap. 68 private void checkTile(Bitmap bitmap, int tileX, int tileY) [all...] |
BlurMaskFilterTest.java | 19 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 42 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); 62 private void checkQuadrants(int color, Bitmap bitmap, int x, int y, int alphaTolerance) { 63 int right = bitmap.getWidth() - 1; 64 int bottom = bitmap.getHeight() - 1; 66 checkColor(color, bitmap.getPixel(x, y), alphaTolerance); 67 checkColor(color, bitmap.getPixel(right - x, y), alphaTolerance) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
DebugSystem.java | 68 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 69 if (bitmap != null) { 71 bitmap.resize((int)texture.width, (int)texture.height); 73 bitmap.setWidth((int)width); 74 bitmap.setHeight((int)height); 75 bitmap.setTexture(texture); 78 render.scheduleForDraw(bitmap, mWorkVector, SortConstants.HUD, true);
|
/external/skia/legacy/src/core/ |
SkBitmapSampler.cpp | 57 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) *bitmap.getAddr32(x, y) 63 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) SkPixel16ToPixel32(*bitmap.getAddr16(x, y)) 67 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) bitmap.getIndex8Color(x, y) 94 const SkBitmap* bitmap = &fBitmap; local 105 p00 = bitmap->getAddr32(tmpx, tmpy); 108 p01 = bitmap->getAddr32(tmpx1, tmpy); 111 p10 = bitmap->getAddr32(tmpx, tmpy1) 142 const SkBitmap* bitmap = &fBitmap; local 188 const SkBitmap* bitmap = &fBitmap; local 256 const SkBitmap* bitmap = &fBitmap; local [all...] |
/external/skia/src/core/ |
SkBitmapSampler.cpp | 57 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) *bitmap.getAddr32(x, y) 63 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) SkPixel16ToPixel32(*bitmap.getAddr16(x, y)) 67 #define BITMAP_PIXEL_TO_PMCOLOR(bitmap, x, y) bitmap.getIndex8Color(x, y) 94 const SkBitmap* bitmap = &fBitmap; local 105 p00 = bitmap->getAddr32(tmpx, tmpy); 108 p01 = bitmap->getAddr32(tmpx1, tmpy); 111 p10 = bitmap->getAddr32(tmpx, tmpy1) 142 const SkBitmap* bitmap = &fBitmap; local 188 const SkBitmap* bitmap = &fBitmap; local 257 const SkBitmap* bitmap = &fBitmap; local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
ItemInfo.java | 21 import android.graphics.Bitmap; 156 static byte[] flattenBitmap(Bitmap bitmap) { 159 int size = bitmap.getWidth() * bitmap.getHeight() * 4; 162 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 172 static void writeBitmap(ContentValues values, Bitmap bitmap) { 173 if (bitmap != null) [all...] |
/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
bitmap.h | 27 /* Fundamental storage type for bitmap. */ 40 /* Number of bits in each actual element of a bitmap. */ 51 /* Bitmap set element. We use a linked list to hold only the bits that 71 /* Head of bitmap linked list. gengtype ignores ifdefs, but for 72 statistics we need to add a bitmap descriptor pointer. As it is 87 extern bitmap_element bitmap_zero_bits; /* Zero bitmap element */ 88 extern bitmap_obstack bitmap_default_obstack; /* Default bitmap obstack */ 90 /* Clear a bitmap by freeing up the linked list. */ 91 extern void bitmap_clear (bitmap); 93 /* Copy a bitmap to another bitmap. * [all...] |
/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
bitmap.h | 27 /* Fundamental storage type for bitmap. */ 40 /* Number of bits in each actual element of a bitmap. */ 51 /* Bitmap set element. We use a linked list to hold only the bits that 71 /* Head of bitmap linked list. gengtype ignores ifdefs, but for 72 statistics we need to add a bitmap descriptor pointer. As it is 87 extern bitmap_element bitmap_zero_bits; /* Zero bitmap element */ 88 extern bitmap_obstack bitmap_default_obstack; /* Default bitmap obstack */ 90 /* Clear a bitmap by freeing up the linked list. */ 91 extern void bitmap_clear (bitmap); 93 /* Copy a bitmap to another bitmap. * [all...] |
/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/ |
bitmap.h | 27 /* Fundamental storage type for bitmap. */ 40 /* Number of bits in each actual element of a bitmap. */ 51 /* Bitmap set element. We use a linked list to hold only the bits that 71 /* Head of bitmap linked list. gengtype ignores ifdefs, but for 72 statistics we need to add a bitmap descriptor pointer. As it is 87 extern bitmap_element bitmap_zero_bits; /* Zero bitmap element */ 88 extern bitmap_obstack bitmap_default_obstack; /* Default bitmap obstack */ 90 /* Clear a bitmap by freeing up the linked list. */ 91 extern void bitmap_clear (bitmap); 93 /* Copy a bitmap to another bitmap. * [all...] |
/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/ |
bitmap.h | 27 /* Fundamental storage type for bitmap. */ 40 /* Number of bits in each actual element of a bitmap. */ 51 /* Bitmap set element. We use a linked list to hold only the bits that 71 /* Head of bitmap linked list. gengtype ignores ifdefs, but for 72 statistics we need to add a bitmap descriptor pointer. As it is 87 extern bitmap_element bitmap_zero_bits; /* Zero bitmap element */ 88 extern bitmap_obstack bitmap_default_obstack; /* Default bitmap obstack */ 90 /* Clear a bitmap by freeing up the linked list. */ 91 extern void bitmap_clear (bitmap); 93 /* Copy a bitmap to another bitmap. * [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
BasicSlideEditorView.java | 23 import android.graphics.Bitmap; 98 public void setImage(String name, Bitmap bitmap) { 100 if (null == bitmap) { 101 bitmap = BitmapFactory.decodeResource(getResources(), 104 mImageView.setImageBitmap(bitmap); 133 Bitmap bitmap = VideoAttachmentView.createVideoThumbnail(mContext, video); local 134 if (null == bitmap) { 135 bitmap = BitmapFactory.decodeResource(getResources() [all...] |
ImageAttachmentView.java | 23 import android.graphics.Bitmap; 69 public void setImage(String name, Bitmap bitmap) { 71 if (null == bitmap) { 72 bitmap = BitmapFactory.decodeResource(getResources(), 75 mImageView.setImageBitmap(bitmap); 106 public void setVideoThumbnail(String name, Bitmap bitmap) {
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
TextureViewSnapshotTestActivity.java | 19 import android.graphics.Bitmap; 80 Bitmap bitmap = mTexView.getBitmap(); local 81 Assert.assertNotNull(bitmap); 82 Assert.assertEquals(mTexView.getWidth(), bitmap.getWidth()); 83 Assert.assertEquals(mTexView.getHeight(), bitmap.getHeight()); 84 Assert.assertEquals(Color.RED, bitmap.getPixel(0, 0));
|
/external/chromium/chrome/browser/tab_contents/ |
thumbnail_generator_unittest.cc | 58 // Indicates what bitmap should be sent with the paint message. _OTHER will 85 params.bitmap = transport_dib_->id(); 91 TransportType ClassifyFirstPixel(const SkBitmap& bitmap) { 92 // Returns the color of the first pixel of the bitmap. The bitmap must be 94 SkAutoLockPixels lock(bitmap); 95 uint32 pixel = *bitmap.getAddr32(0, 0); 186 SkBitmap bitmap; local 187 EXPECT_DOUBLE_EQ(1.0, ThumbnailGenerator::CalculateBoringScore(&bitmap)); 197 SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false) local 213 SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false); local 223 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false); local 239 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false); local 255 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false); local 271 const SkBitmap bitmap = canvas.getTopPlatformDevice().accessBitmap(false); local [all...] |
/external/skia/tests/ |
BitmapFactoryTest.cpp | 48 SkAutoTDelete<SkBitmap> bitmap(create_bitmap()); 49 SkASSERT(bitmap.get() != NULL); 51 SkAutoDataUnref encodedBitmap(create_data_from_bitmap(*bitmap.get())); 62 assert_bounds_equal(reporter, *bitmap.get(), bitmapFromFactory); 71 assert_bounds_equal(reporter, *bitmap.get(), boundedBitmap);
|
/frameworks/base/media/java/android/media/ |
FaceDetector.java | 19 import android.graphics.Bitmap; 27 * {@link android.graphics.Bitmap} graphic object. 33 * of a face in a bitmap. 125 * Finds all the faces found in a given {@link android.graphics.Bitmap}. 127 * face found. The bitmap must be in 565 format (for now). 129 * @param bitmap the {@link android.graphics.Bitmap} graphic to be analyzed 134 * @throws IllegalArgumentException if the Bitmap dimensions don't match 139 public int findFaces(Bitmap bitmap, Face[] faces [all...] |