/packages/apps/Gallery2/tests_camera/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 24 import android.graphics.Bitmap; 61 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 62 assertNotNull(bitmap); 63 assertTrue(bitmap.getWidth() > 0); 64 assertTrue(bitmap.getHeight() > 0); 96 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SumPathEffectTest.java | 20 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 40 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); local 41 bitmap.eraseColor(Color.BLACK); 42 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 63 canvas = new Canvas(bitmap); 68 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)) [all...] |
Canvas_VertexModeTest.java | 18 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 45 Bitmap bitmap = Bitmap.createBitmap(10, 27, Config.RGB_565); local 46 Canvas c = new Canvas(bitmap);
|
ShaderTest.java | 19 import android.graphics.Bitmap; 34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565); local 36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
FileProviderExample.java | 20 import android.graphics.Bitmap; 65 final Bitmap bitmap = Bitmap.createBitmap( local 66 view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); 67 final Canvas canvas = new Canvas(bitmap); 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/dalvik/vm/alloc/ |
MarkSweep.h | 43 HeapBitmap *bitmap; member in struct:GcMarkContext
|
Verify.cpp | 38 * Visitor applied to each bitmap element to search for things that 72 HeapBitmap *bitmap = dvmHeapSourceGetLiveBits(); local 75 dvmHeapBitmapWalk(bitmap, dumpReferencesCallback, arg); 119 * Helper function to call dvmVerifyObject from a bitmap walker. 127 * Verifies the object references in a heap bitmap. Assumes the VM is 130 void dvmVerifyBitmap(const HeapBitmap *bitmap) 132 dvmHeapBitmapWalk(bitmap, verifyBitmapCallback, NULL);
|
/development/samples/devbytes/animation/KeyframeAnimation/src/com/example/android/keyframeanimation/ |
KeyframeAnimation.java | 20 import android.graphics.Bitmap; 75 Bitmap bitmap = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888); local 76 Canvas canvas = new Canvas(bitmap); 82 return new BitmapDrawable(getResources(), bitmap);
|
/development/samples/devbytes/animation/PictureViewer/src/com/example/android/pictureviewer/ |
PictureViewer.java | 20 import android.graphics.Bitmap; 64 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 66 drawables[i] = new BitmapDrawable(getResources(), bitmap);
|
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/ |
BitmapScaling.java | 20 import android.graphics.Bitmap; 29 * bitmap. Sub-sampling can speed up load times and reduce the need for large bitmaps 30 * in memory if your target bitmap size is much smaller, although it's good to understand 31 * that you can't get specific Bitmap sizes, but rather power-of-two reductions in sizes. 46 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 48 originalImageView.setImageBitmap(bitmap); 51 addScaledImageView(bitmap, i, container); 55 private void addScaledImageView(Bitmap original, int sampleSize, LinearLayout container) { 58 // load time by simply reading less pixels for every pixel value in the final bitmap [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_browser_actions_api.cc | 52 SkBitmap bitmap; local 54 IPC::ReadParam(&bitmap_pickle, &iter, &bitmap)); 55 browser_action_->SetIcon(tab_id_, bitmap);
|
/external/chromium/chrome/common/ |
common_param_traits_unittest.cc | 76 // Tests bitmap serialization. 77 TEST(IPCMessageTest, Bitmap) { 78 SkBitmap bitmap; local 80 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 5); 81 bitmap.allocPixels(); 82 memset(bitmap.getPixels(), 'A', bitmap.getSize()); 85 IPC::ParamTraits<SkBitmap>::Write(&msg, bitmap); 91 EXPECT_EQ(bitmap.config(), output.config()); 92 EXPECT_EQ(bitmap.width(), output.width()) [all...] |
/external/chromium/chrome/common/extensions/ |
extension_action_unittest.cc | 28 SkBitmap bitmap; local 30 bitmap = decoder.Decode(data, file_contents.length()); 32 return bitmap;
|
/external/freetype/src/raster/ |
ftrend1.c | 97 /* convert a slot's glyph image into a bitmap */ 108 FT_Bitmap* bitmap; local 186 bitmap = &slot->bitmap; 189 /* release old bitmap buffer */ 192 FT_FREE( bitmap->buffer ); 201 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; 202 bitmap->num_grays = 256; 207 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 210 bitmap->width = width [all...] |
/external/oprofile/libdb/ |
db_debug.c | 21 unsigned char * bitmap = malloc(data->descr->current_size); local 22 memset(bitmap, '\0', data->descr->current_size); 29 if (bitmap[index]) 32 bitmap[index] = 1; 41 memset(bitmap, '\0', data->descr->current_size); 46 if (bitmap[index]) 49 bitmap[index] = 1; 59 bitmap[index] = 1; 64 free(bitmap); 73 unsigned char * bitmap = malloc(max + 1) local [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
FadeDrawableComponent.java | 114 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 115 bitmap.resize((int)mTexture.width, (int)mTexture.height); 117 bitmap.setWidth((int)parentObject.width); 118 bitmap.setHeight((int)parentObject.height); 119 bitmap.setOpacity(opacity); 120 bitmap.setTexture(mTexture); 121 mRenderComponent.setDrawable(bitmap);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapTest.java | 3 import android.graphics.Bitmap; 4 import android.graphics.Bitmap.Config; 24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); 25 shadowOf(originalBitmap).appendDescription("Original bitmap"); 26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); 27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); 34 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888) local 40 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 55 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/external/skia/bench/ |
ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.setConfig(SkBitmap::kARGB_8888_Config, kWindowSize, kWindowSize); 50 canvas->readPixels(&bitmap, x * offX, y * offY);
|
/external/skia/gm/ |
extractbitmap.cpp | 16 static void create_bitmap(SkBitmap* bitmap) { 19 bitmap->setConfig(SkBitmap::kARGB_8888_Config, W, H); 20 bitmap->allocPixels(); 22 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; variable 45 create_bitmap(&bitmap); variable 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 51 canvas->drawBitmap(bitmap, 0, 0); 56 // Draw the bottom right fourth of the bitmap over the top lef [all...] |
/external/skia/legacy/src/images/ |
SkMovie.cpp | 69 const SkBitmap& SkMovie::bitmap() function in class:SkMovie
|
/external/skia/src/images/ |
SkMovie.cpp | 71 const SkBitmap& SkMovie::bitmap() function in class:SkMovie
|
/external/skia/tools/ |
skhello.cpp | 53 SkBitmap bitmap; local 54 bitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h); 55 bitmap.allocPixels(); 57 SkCanvas canvas(bitmap); 65 bool success = SkImageEncoder::EncodeFile(path.c_str(), bitmap,
|
skimage_main.cpp | 15 static bool decodeFile(SkBitmap* bitmap, const char srcPath[]) { 31 if (!codec->decode(&stream, bitmap, SkBitmap::kARGB_8888_Config, 88 SkBitmap bitmap; local 89 if (decodeFile(&bitmap, argv[i])) { 94 SkImageEncoder::EncodeFile(outPath.c_str(), bitmap, 97 SkDebugf(" decoded %s [%d %d]\n", argv[i], bitmap.width(), 98 bitmap.height());
|
/external/webkit/Source/WebCore/platform/brew/ |
ScreenBrew.cpp | 52 RefPtr<IBitmap> bitmap = adoptRef(IDisplay_GetDestination(display)); local 55 IBitmap_GetInfo(bitmap.get(), &bitmapInfo, sizeof(AEEBitmapInfo));
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
SkBitmapRef.h | 41 const SkBitmap& bitmap() const { return fBitmap; } function in class:SkBitmapRef 42 SkBitmap& bitmap() { return fBitmap; } function in class:SkBitmapRef
|