/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
ImageTexture.h | 80 SkBitmap* bitmap() { return m_image; } function in class:WebCore::ImageTexture 83 static SkBitmap* convertBitmap(SkBitmap* bitmap); 85 static unsigned computeCRC(const SkBitmap* bitmap);
|
ImagesManager.cpp | 56 SkBitmap* bitmap = &imgRef->bitmap(); local 61 crc = ImageTexture::computeCRC(bitmap); 74 img = ImageTexture::convertBitmap(bitmap);
|
/external/webkit/Source/WebKit2/Shared/cg/ |
ShareableBitmapCG.cpp | 89 ShareableBitmap* bitmap = static_cast<ShareableBitmap*>(typelessBitmap); local 90 ASSERT_UNUSED(typelessData, bitmap->data() == typelessData); 91 bitmap->deref(); // Balanced by ref in createGraphicsContext. 96 ShareableBitmap* bitmap = static_cast<ShareableBitmap*>(typelessBitmap); local 97 ASSERT_UNUSED(typelessData, bitmap->data() == typelessData); 98 bitmap->deref(); // Balanced by ref in createCGImage.
|
/frameworks/base/core/jni/ |
android_view_PointerIcon.h | 48 SkBitmap bitmap; member in struct:android::PointerIcon 58 bitmap.reset(); 68 /* Loads the bitmap associated with a pointer icon. 73 /* Loads the bitmap associated with a pointer icon by style.
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 33 Bitmap bitmap1 = Bitmap.createBitmap( 34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565); 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); local 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight()) [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselViewUtilities.java | 9 import android.graphics.Bitmap; 16 * Debug utility to write the given bitmap to a file. 19 * @param bitmap the bitmap to write 23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { 31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Camera/src/com/android/camera/ |
Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 43 bitmap = retriever.getFrameAtTime(-1); 55 if (bitmap == null) return null; 57 // Scale down the bitmap if it is bigger than we need. 58 int width = bitmap.getWidth() [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 43 bitmap = retriever.getFrameAtTime(-1); 55 if (bitmap == null) return null; 57 // Scale down the bitmap if it is bigger than we need. 58 int width = bitmap.getWidth() [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
ResourceTexture.java | 20 import android.graphics.Bitmap; 25 // ResourceTexture is a texture whose Bitmap is decoded from a resource. 40 protected Bitmap onGetBitmap() { 42 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 48 protected void onFreeBitmap(Bitmap bitmap) { 50 bitmap.recycle();
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
PlanarYUVLuminanceSource.java | 21 import android.graphics.Bitmap; 109 public Bitmap renderCroppedGreyscaleBitmap() { 125 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 126 bitmap.setPixels(pixels, 0, width, 0, 0, width, height); 127 return bitmap;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
MediaMetadataRetrieverTest.java | 21 import android.graphics.Bitmap; 89 Bitmap bitmap = retriever.getFrameAtTime(-1); local 90 assertTrue(bitmap != null); 93 bitmap.compress(Bitmap.CompressFormat.JPEG, 75, stream); 96 Log.e(TAG, "Fails to convert the bitmap to a JPEG file for " + MediaNames.THUMBNAIL_METADATA_TEST_FILES[i]); 147 Bitmap bitmap = retriever.getFrameAtTime(-1); local 148 assertTrue(bitmap != null) [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
PhotoBitmapLoader.java | 22 import android.graphics.Bitmap; 32 * Loader for the bitmap of a photo. 36 private Bitmap mBitmap; 56 if (result.bitmap != null) { 57 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 60 // We got image bytes, but unable to decode to a Bitmap 75 Bitmap bitmap = result != null ? result.bitmap : null; local 79 if (bitmap != null) 175 public Bitmap bitmap; field in class:PhotoBitmapLoader.BitmapResult [all...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2ProviderTests.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 50 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 52 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DecodeUtils.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { 78 public static Bitmap decode(JobContext jc, byte[] bytes, Options options) { 82 public static Bitmap decode(JobContext jc, byte[] bytes, int offset, 100 public static Bitmap decodeThumbnail( 115 public static Bitmap decodeThumbnail( 149 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options); 163 * Decodes the bitmap from the given byte array if the image size is larger than the given 169 public static Bitmap decodeIfBigEnough(JobContext jc, byte[] data 258 Bitmap bitmap = decode(jc, data, offset, length, options); local 285 Bitmap bitmap = DecodeUtils.decode(jc, fileDescriptor, options); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
LightingColorFilterTest.java | 20 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 34 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 35 Canvas canvas = new Canvas(bitmap); 42 assertColor(Color.MAGENTA, bitmap.getPixel(0, 0)); 47 assertColor(Color.BLUE, bitmap.getPixel(0, 0)); 52 assertColor(Color.CYAN, bitmap.getPixel(0, 0)); 55 bitmap.eraseColor(Color.TRANSPARENT) [all...] |
NinePatchTest.java | 23 import android.graphics.Bitmap; 38 private Bitmap mBitmap; 71 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local 72 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk())); 78 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); 80 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local 138 Bitmap bitmap = local [all...] |
PictureTest.java | 24 import android.graphics.Bitmap; 47 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 48 canvas = new Canvas(bitmap); 51 checkBitmap(bitmap); 56 // create a new Canvas with a new bitmap 57 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ContactPhotoBinder.java | 23 import android.graphics.Bitmap; 78 // decoding the bitmap could be done in a worker thread too. 79 Bitmap bitmap = BitmapFactory.decodeStream(stream); local 80 d = new BitmapDrawable(mResources, bitmap);
|
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
RecyclingBitmapDrawable.java | 20 import android.graphics.Bitmap; 29 * {@link Bitmap#recycle() recycle()} will be called on this drawable's bitmap. 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { 41 super(res, bitmap); 99 Bitmap bitmap = getBitmap(); local 100 return bitmap != null && !bitmap.isRecycled() [all...] |
/external/skia/tests/ |
BitmapTransformerTest.cpp | 29 SkBitmap bitmap; local 39 bitmap.setConfig(unsupportedConfig, kWidth, kHeight); 40 SkBitmapTransformer transformer = SkBitmapTransformer(bitmap, supportedPixelFormat); 58 // A bitmap that should generate the above bytes: 59 bitmap.setConfig(supportedConfig, kWidth, kHeight); 60 REPORTER_ASSERT(fReporter, bitmap.allocPixels()); 61 bitmap.setIsOpaque(true); 62 bitmap.eraseColor(SK_ColorBLUE); 63 bitmap.lockPixels(); 69 REPORTER_ASSERT(fReporter, bitmap.getColor(x, y) == oldColor) [all...] |
/external/valgrind/main/drd/ |
pub_drd_bitmap.h | 26 * A bitmap is a data structure that contains information about which 53 struct bitmap; 68 /* Complete bitmap. */ 69 struct bitmap struct 80 struct bitmap* DRD_(bm_new)(void); 81 void DRD_(bm_delete)(struct bitmap* const bm); 82 void DRD_(bm_init)(struct bitmap* const bm); 83 void DRD_(bm_cleanup)(struct bitmap* const bm); 84 void DRD_(bm_access_range)(struct bitmap* const bm, 87 void DRD_(bm_access_range_load)(struct bitmap* const bm [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
GraphicsContextCairoWin.cpp | 46 HBITMAP bitmap = static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP)); local 48 BITMAP info; 49 if (!GetObject(bitmap, sizeof(info), &info)) 98 // Need to make a cairo_surface_t out of the bitmap's pixel buffer and then draw 134 OwnPtr<HBITMAP> bitmap = adoptPtr(static_cast<HBITMAP>(GetCurrentObject(hdc, OBJ_BITMAP))); 136 DIBPixelData pixelData(bitmap.get()); 141 // to zero. We need to manually set the bitmap to be fully opaque. 151 void GraphicsContext::drawWindowsBitmap(WindowsBitmap* bitmap, const IntPoint& point) 153 drawBitmapToContext(m_data, platformContext()->cr(), bitmap->windowsDIB(), IntSize(point.x(), bitmap->size().height() + point.y())) [all...] |
/external/webkit/Source/WebKit/chromium/tests/ |
TransparencyWinTest.cpp | 69 const SkBitmap& bitmap = context->platformContext()->canvas()->getTopDevice()->accessBitmap(false); local 70 return Color(*reinterpret_cast<const RGBA32*>(bitmap.getAddr32(x, y))); 77 SkBitmap& bitmap = const_cast<SkBitmap&>(context->platformContext()->canvas()->getTopDevice()->accessBitmap(false)); local 78 for (int y = 0; y < bitmap.height(); y++) { 79 uint32_t* row = bitmap.getAddr32(0, y); 80 for (int x = 0; x < bitmap.width(); x++) 88 SkBitmap& bitmap = const_cast<SkBitmap&>(context->platformContext()->canvas()->getTopDevice()->accessBitmap(false)); local 89 *bitmap.getAddr32(x, y) &= 0x00FFFFFF; 559 SkBitmap& bitmap = const_cast<SkBitmap&>(helper.context()->platformContext()->canvas()->getTopDevice()->accessBitmap(false)); local 560 *bitmap.getAddr32(2, 2) &= 0x00FFFFFF [all...] |
/frameworks/base/core/java/android/text/style/ |
ImageSpan.java | 20 import android.graphics.Bitmap; 37 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead. 40 public ImageSpan(Bitmap b) { 45 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead. 48 public ImageSpan(Bitmap b, int verticalAlignment) { 52 public ImageSpan(Context context, Bitmap b) { 60 public ImageSpan(Context context, Bitmap b, int verticalAlignment) { 134 Bitmap bitmap = null; local 138 bitmap = BitmapFactory.decodeStream(is) [all...] |
/frameworks/base/media/tests/omxjpegdecoder/ |
jpeg_decoder_bench.cpp | 53 SkBitmap* bitmap) { 58 // Decode the input stream and then use the bitmap. 59 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 63 printf("WidthxHeight: %dx%d\n", bitmap->width(), bitmap->height()); 70 SkBitmap* bitmap) { 75 // Decode the input stream and then use the bitmap. 76 if (!decoder->decode(stream, bitmap, prefConfig, decodeMode)) { 82 return storeBitmapToFile(bitmap, filename); 89 SkBitmap* bitmap = new SkBitmap local [all...] |