/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
PictureDetailsActivity.java | 22 import android.graphics.Bitmap; 80 Bitmap bitmap = BitmapUtils.getBitmap(getResources(), local 89 mBitmapDrawable = new BitmapDrawable(getResources(), bitmap);
|
/external/chromium/chrome/browser/ |
content_setting_bubble_model.h | 37 SkBitmap bitmap; member in struct:ContentSettingBubbleModel::PopupItem
|
favicon_helper_unittest.cc | 34 SkBitmap bitmap; local 35 FillDataToBitmap(w, h, &bitmap); 36 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, output); 384 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty()); 469 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty()); 540 EXPECT_FALSE(helper.GetEntry()->favicon().bitmap().empty());
|
/external/chromium/chrome/browser/ui/views/autocomplete/ |
autocomplete_result_view.cc | 235 const SkBitmap* bitmap = model_->GetIconIfExtensionMatch(model_index_); local 236 if (bitmap) 237 return bitmap;
|
/external/chromium/chrome/common/extensions/ |
extension_unpacker.cc | 58 SkBitmap bitmap = decoder.Decode(data, file_contents.length()); local 59 Sk64 bitmap_size = bitmap.getSize64(); 62 return bitmap;
|
/external/chromium/webkit/glue/media/ |
video_renderer_impl.cc | 185 // 2. Paint the bitmap to canvas. 209 const SkBitmap& bitmap = canvas->getDevice()->accessBitmap(true); local 240 uint8* dest_rect_pointer = static_cast<uint8*>(bitmap.getPixels()) + 241 local_dest_irect.fTop * bitmap.rowBytes() + 282 bitmap.lockPixels(); 296 bitmap.rowBytes(), 300 bitmap.unlockPixels();
|
/external/e2fsprogs/lib/ext2fs/ |
gen_bitmap.c | 2 * gen_bitmap.c --- Generic (32-bit) bitmap routines 36 char * bitmap; member in struct:ext2fs_struct_generic_bitmap 45 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 49 if (bitmap->description) 50 com_err(0, bitmap->base_error_code+code, 51 "#%lu for %s", arg, bitmap->description); 53 com_err(0, bitmap->base_error_code + code, "#%lu", arg); 57 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) 59 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) | 71 ext2fs_generic_bitmap bitmap; local [all...] |
/external/freetype/src/base/ |
ftbitmap.c | 99 FT_Bitmap* bitmap, 111 width = bitmap->width; 112 height = bitmap->rows; 113 pitch = bitmap->pitch; 117 switch ( bitmap->pixel_mode ) 151 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 152 FT_Byte* end = bitmap->buffer + pitch; 176 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) ) 179 if ( bitmap->pitch > 0 ) 184 for ( i = 0; i < bitmap->rows; i++ 626 FT_Bitmap bitmap; local [all...] |
/external/libsepol/src/ |
mls.c | 557 ebitmap_t bitmap; local 579 ebitmap_init(&bitmap); 592 rc = ebitmap_set_bit(&bitmap, 599 c->range.level[l].cat = bitmap;
|
/external/qemu/android/camera/ |
camera-capture-windows.c | 60 /* DC for frame bitmap manipulation. Null indicates that frames are not 63 /* Bitmap info for the frames obtained from the video capture driver. */ 65 /* Bitmap info to use for GetDIBits calls. We can't really use bitmap info 69 * which causes GetDIBits to fail. Second, the bitmap that represents a frame 71 * bitmap info that capture driver has returned. Sometimes the captured bitmap 73 * address these issues we need to have another bitmap info, that can be used 82 /* If != 0, frame bitmap is "top-down". If 0, frame bitmap is "bottom-up". * 295 BITMAP bitmap; local [all...] |
/external/qemu/block/ |
bochs.c | 52 uint32_t bitmap; // bitmap size member in struct:bochs_header_v1::__anon13144::__anon13145 72 uint32_t bitmap; // bitmap size member in struct:bochs_header::__anon13146::__anon13147 148 s->bitmap_blocks = 1 + (le32_to_cpu(bochs.extra.redolog.bitmap) - 1) / 512; 176 /* read in bitmap for current extent */
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmap.java | 3 import android.graphics.Bitmap; 15 @Implements(Bitmap.class) 17 @RealObject private Bitmap realBitmap; 21 private Bitmap.Config config; 28 public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) { 39 public static Bitmap createBitmap(int width, int height, Bitmap.Config config) { 40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); 42 shadowBitmap.appendDescription("Bitmap (" + width + " x " + height + ")") 119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
ShadowDrawable.java | 4 import android.graphics.Bitmap; 44 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 62 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 68 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 69 shadowOf(bitmap).setLoadedFromResourceId(resourceId); 70 BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
/external/skia/bench/ |
BitmapBench.cpp | 103 bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 141 fName.set("bitmap"); 165 const SkBitmap& bitmap = fBitmap; local 166 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 167 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 174 bitmap.notifyPixelsChanged(); 176 canvas->drawBitmap(bitmap, x, y, &paint);
|
/external/skia/legacy/src/core/ |
SkDevice.cpp | 16 SkDevice::SkDevice(const SkBitmap& bitmap) : fBitmap(bitmap) { 80 const SkBitmap& bitmap = this->onAccessBitmap(&fBitmap); local 82 bitmap.notifyPixelsChanged(); 84 return bitmap; 98 const SkBitmap& SkDevice::onAccessBitmap(SkBitmap* bitmap) {return *bitmap;} 116 bool SkDevice::readPixels(SkBitmap* bitmap, int x, int y, 118 if (SkBitmap::kARGB_8888_Config != bitmap->config() || 119 NULL != bitmap->getTexture()) [all...] |
/external/skia/legacy/src/views/ |
SkWidgets.cpp | 506 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 508 if (bitmap) 509 *bitmap = fBitmap; 513 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 515 if (bitmap) 517 fBitmap = *bitmap; 524 SkBitmap bitmap; local 526 if (SkImageDecoder::DecodeFile(path, &bitmap)) 528 this->setBitmap(&bitmap, true); 529 bitmap.setOwnsPixels(false) [all...] |
/external/skia/src/views/ |
SkWidgets.cpp | 506 bool SkBitmapView::getBitmap(SkBitmap* bitmap) const 508 if (bitmap) 509 *bitmap = fBitmap; 513 void SkBitmapView::setBitmap(const SkBitmap* bitmap, bool viewOwnsPixels) 515 if (bitmap) 517 fBitmap = *bitmap; 524 SkBitmap bitmap; local 526 if (SkImageDecoder::DecodeFile(path, &bitmap)) 528 this->setBitmap(&bitmap, true); 529 bitmap.setOwnsPixels(false) [all...] |
/external/skia/tools/ |
render_pictures_main.cpp | 39 " [--device bitmap" 103 " --device bitmap" 107 ": Use the corresponding device. Default is bitmap.\n"); 109 " bitmap, Render to a bitmap.\n"); 193 SkBitmap* bitmap = NULL; local 197 validate || writeWholeImage ? &bitmap : NULL, clones); 199 if (!success || ((validate || writeWholeImage) && bitmap == NULL)) { 201 SkDELETE(bitmap); 213 SkDELETE(bitmap); [all...] |
/external/v8/src/ |
spaces-inl.h | 40 // Bitmap 42 void Bitmap::Clear(MemoryChunk* chunk) { 43 Bitmap* bitmap = chunk->markbits(); local 44 for (int i = 0; i < bitmap->CellsCount(); i++) bitmap->cells()[i] = 0;
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
VideoLayerManager.cpp | 79 SkBitmap bitmap; local 80 bitmap.setConfig(SkBitmap::kARGB_8888_Config, rect.width(), rect.height()); 81 bitmap.allocPixels(); 82 bitmap.eraseColor(0); 84 SkCanvas canvas(bitmap); 91 GLUtils::createTextureWithBitmap(texture, bitmap); 92 bitmap.reset();
|
/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
TransferQueue.h | 52 // While in the queue, the Tile can be re-used, the updated bitmap 82 , bitmap(0) 88 // Bitmap will be created lazily, need to delete them at dtor. 89 delete bitmap; 99 SkBitmap* bitmap; member in class:WebCore::TileTransferData 116 // insert the bitmap into the queue, mark the tile dirty if failing 118 SkBitmap& bitmap); 122 SkBitmap& bitmap); 148 SkBitmap& bitmap);
|
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
TransparencyWin.cpp | 123 // This bitmap will be empty if you don't specify needReferenceBuffer to the 134 // The destination bitmap we're drawing into. 254 // coordinate space of our bitmap. 414 SkBitmap* bitmap = const_cast<SkBitmap*>( local 420 // Fix up our bitmap, making it contain only the pixels which changed 423 SkAutoLockPixels lock(*bitmap); 424 for (int y = 0; y < bitmap->height(); y++) { 426 uint32_t* dest = bitmap->getAddr32(0, y); 427 for (int x = 0; x < bitmap->width(); x++) { 457 // Note that we need to specify the source layer subset, since the bitmap 469 const SkBitmap& bitmap = m_layerBuffer->context()->platformContext()->canvas()->getTopDevice()->accessBitmap(true); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/haiku/ |
ImageBufferHaiku.cpp | 47 // Always keep the bitmap locked, we are the only client. 64 // Remove the view from the bitmap, keeping it from being free'd twice. 361 BBitmap* bitmap = const_cast<BBitmap*>(&m_data.m_bitmap); local 362 // BBitmapStream doesn't take "const Bitmap*"... 363 BBitmapStream bitmapStream(bitmap); 366 bitmapStream.DetachBitmap(&bitmap); 370 bitmapStream.DetachBitmap(&bitmap);
|
/external/webkit/Source/WebCore/platform/graphics/skia/ |
ImageBufferSkia.cpp | 109 return BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), true); 136 RefPtr<Image> image = BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), context == m_context); 143 RefPtr<Image> image = BitmapImageSingleFrameSkia::create(*m_data.m_platformContext.bitmap(), context == m_context); 149 const SkBitmap& bitmap = *context()->platformContext()->bitmap(); local 150 if (bitmap.isNull()) 153 ASSERT(bitmap.config() == SkBitmap::kARGB_8888_Config); 154 SkAutoLockPixels bitmapLock(bitmap); 156 uint32_t* srcRow = bitmap.getAddr32(0, y); 244 // bytes from the bitmap format to RGBA 378 SkBitmap bitmap = device->accessBitmap(false); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontCGWin.cpp | 162 OwnPtr<GraphicsContext::WindowsBitmap> bitmap; local 176 bitmap.set(graphicsContext->createWindowsBitmap(textRect.size())); 177 memset(bitmap->buffer(), 255, bitmap->bufferLength()); 178 hdc = bitmap->hdc(); 285 UInt8* buffer = bitmap->buffer(); 286 unsigned bufferLength = bitmap->bufferLength(); 295 graphicsContext->drawWindowsBitmap(bitmap.get(), textRect.location());
|