/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 224 SkBitmap bitmap;
local 226 bitmap.setConfig(config, width, height);
228 jbyteArray buff = GraphicsJNI::allocateJavaPixelRef(env, &bitmap, NULL);
235 0, 0, width, height, bitmap);
238 return GraphicsJNI::createBitmap(env, new SkBitmap(bitmap), buff, isMutable, NULL);
253 static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) {
256 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap);
260 delete bitmap;
263 static void Bitmap_recycle(JNIEnv* env, jobject, SkBitmap* bitmap) {
266 android::uirenderer::Caches::getInstance().resourceCache.recycle(bitmap);
371 SkBitmap* bitmap = new SkBitmap; local [all...] |
BitmapFactory.cpp | 96 static SkPixelRef* installPixelRef(SkBitmap* bitmap, SkStream* stream, 100 if (bitmap->getSize() >= 32 * 1024) { 101 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 103 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 106 bitmap->setPixelRef(pr)->unref(); 107 pr->isOpaque(bitmap); 157 SkBitmap* bitmap; local 159 bitmap = new SkBitmap; 162 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap with sampleSize != 1"); 164 bitmap = (SkBitmap *) env->GetIntField(javaBitmap, gBitmap_nativeBitmapFieldID) 270 jobject bitmap = NULL; local [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
BitmapDrawable.java | 21 import android.graphics.Bitmap; 39 * A Drawable that wraps a bitmap and can be tiled, stretched, or aligned. You can create a 41 * a {@link android.graphics.Bitmap} object. 42 * <p>It can be defined in an XML file with the <code><bitmap></code> element. For more 46 * Also see the {@link android.graphics.Bitmap} class, which handles the management and 47 * transformation of raw bitmap graphics, and should be used when drawing to a 63 private Bitmap mBitmap; 82 mBitmapState = new BitmapState((Bitmap) null); 91 mBitmapState = new BitmapState((Bitmap) null); 96 * Create drawable from a bitmap, not dealing with density 367 Bitmap bitmap = mBitmap; local 446 final Bitmap bitmap = BitmapFactory.decodeResource(r, id); local [all...] |
/frameworks/base/libs/hwui/ |
ShapeCache.h | 356 * Generates the texture from a bitmap into the specified texture structure. 358 void generateTexture(SkBitmap& bitmap, Texture* texture); 511 // Don't even try to cache a bitmap that's bigger than the cache 526 SkBitmap bitmap; local 527 bitmap.setConfig(SkBitmap::kA8_Config, width, height); 528 bitmap.allocPixels(); 529 bitmap.eraseColor(0); 543 SkCanvas canvas(bitmap); 547 generateTexture(bitmap, texture); 570 void ShapeCache<Entry>::generateTexture(SkBitmap& bitmap, Texture* texture) [all...] |
/frameworks/base/sax/tests/saxtests/src/android/sax/ |
SafeSaxTest.java | 19 import android.graphics.Bitmap; 529 public Bitmap bitmap; // cached bitmap of the thumbnail field in class:SafeSaxTest.YouTubeVideo
|
/frameworks/base/services/input/ |
SpriteController.h | 61 inline SpriteIcon(const SkBitmap& bitmap, float hotSpotX, float hotSpotY) : 62 bitmap(bitmap), hotSpotX(hotSpotX), hotSpotY(hotSpotY) { } 64 SkBitmap bitmap; member in struct:android::SpriteIcon 70 bitmap.copyTo(&bitmapCopy, SkBitmap::kARGB_8888_Config); 75 bitmap.reset(); 81 return !bitmap.isNull() && !bitmap.empty(); 104 /* Sets the bitmap that is drawn by the sprite. 105 * The sprite retains a copy of the bitmap for subsequent rendering. * [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Bitmap_Delegate.java | 25 import android.graphics.Bitmap.Config; 40 * Delegate implementing the native methods of android.graphics.Bitmap 42 * Through the layoutlib_create tool, the original native methods of Bitmap have been replaced 47 * it and the original Bitmap class. 72 public static Bitmap_Delegate getDelegate(Bitmap bitmap) { 73 return sManager.getDelegate(bitmap.mNativeBitmap); 77 * Returns the native delegate associated to a given an int referencing a {@link Bitmap} object. 84 * Creates and returns a {@link Bitmap} initialized with the given file content. 86 * @param input the file from which to read the bitmap conten 430 Bitmap_Delegate bitmap = sManager.getDelegate(nativeBitmap); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalImage.java | 29 import android.graphics.Bitmap; 153 public Job<Bitmap> requestImage(int type) { 167 public Bitmap onDecodeOriginal(JobContext jc, int type) { 169 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 184 Bitmap bitmap = DecodeUtils.requestDecodeIfBigEnough( local 186 if (bitmap != null) return bitmap;
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetDatabaseHelper.java | 27 import android.graphics.Bitmap; 169 * Store the given bitmap in this database for the given appWidgetId. 171 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { 176 int size = bitmap.getWidth() * bitmap.getHeight() * 4; 178 bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); 231 * Remove any bitmap associated with the given appWidgetId.
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
UploadedTexture.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 29 // UploadedTextures use a Bitmap for the content of the texture. 31 // Subclasses should implement onGetBitmap() to provide the Bitmap and 32 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap 47 private static HashMap<BorderKey, Bitmap> sBorderLines = 48 new HashMap<BorderKey, Bitmap>(); 59 protected Bitmap mBitmap; 107 private static Bitmap getBorderLine( 113 Bitmap bitmap = sBorderLines.get(key) local 118 sBorderLines.put(key.clone(), bitmap); local 184 Bitmap bitmap = getBitmap(); local 209 Bitmap bitmap = getBitmap(); local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 23 import android.graphics.Bitmap; 66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 77 return Bitmap.createBitmap(icon, 85 // Icon is too small, render to a larger bitmap 91 * Returns a bitmap suitable for the all apps view. 93 static Bitmap createIconBitmap(Drawable icon, Context context) { 107 // Ensure the bitmap has a density. 109 Bitmap bitmap = bitmapDrawable.getBitmap() local 138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
ProjectPickerAdapter.java | 21 import android.graphics.Bitmap; 60 private LruCache<String, Bitmap> mPreviewBitmapCache; 77 mPreviewBitmapCache = new LruCache<String, Bitmap>(15); 138 Bitmap thumbnail; 164 * Draws transparent black bottom overlay with movie title and duration on the bitmap. 166 public void drawBottomOverlay(Bitmap bitmap, String title, String duration) { 168 final Canvas canvas = new Canvas(bitmap); 172 final int left = 0, top = bitmap.getHeight() - mOverlayHeight, 173 right = bitmap.getWidth(), bottom = bitmap.getHeight() 211 final Bitmap bitmap = Bitmap.createBitmap(mItemWidth, mItemHeight, local 280 final Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
ImageUtils.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 65 * Resize a bitmap to the specified width and height. 72 * @return The resized bitmap 74 public static Bitmap scaleImage(String filename, int width, int height, int match) 83 final Bitmap srcBitmap; 92 // Create the bitmap from file. 105 // Create the canvas bitmap. 106 final Bitmap bitmap = Bitmap.createBitmap(Math.round(scaledWidth) local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
CropImage.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.CompressFormat; 26 import android.graphics.Bitmap.Config; 138 // mBitmap is the unrotated bitmap we pass in to mCropView for detect faces. 140 private Bitmap mBitmap; 143 private Bitmap mBitmapInIntent; 148 private Future<Bitmap> mLoadBitmapTask; 179 onBitmapAvailable((Bitmap) message.obj); 252 Bitmap cropped = null; 298 private boolean setAsWallpaper(JobContext jc, Bitmap wallpaper) 694 Bitmap bitmap; local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 26 import android.graphics.Bitmap; 32 import android.graphics.Bitmap.CompressFormat; 33 import android.graphics.Bitmap.Config; 45 @TestTargetClass(Bitmap.class) 48 private Bitmap mBitmap; 64 args = {android.graphics.Bitmap.CompressFormat.class, int.class, java.io.OutputStream.class} 69 //abnormal case: the bitmap has been recycled 106 args = {android.graphics.Bitmap.Config.class, boolean.class} 111 //abnormal case: the bitmap has been recycled 119 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888) 120 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local 186 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local 215 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local [all...] |
YuvImageTest.java | 25 import android.graphics.Bitmap; 64 private Bitmap[] mTestBitmaps = new Bitmap[1]; 179 // <ImageFormat, Bitmap, HasPaddings, Rect> 257 Bitmap dst = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 262 Bitmap src = BitmapFactory.decodeResource(res, R.drawable.testimage); 267 // Generate YuvImage based on the content in bitmap. If paddings > 0, the 268 // strides of YuvImage are calculated by adding paddings to bitmap.getWidth() [all...] |
/dalvik/vm/alloc/ |
Copying.cpp | 147 static size_t sumHeapBitmap(const HeapBitmap *bitmap); 562 * Performs a shallow copy of the allocation bitmap into the given 677 HeapBitmap *bitmap; local 680 bitmap = &heapSource->allocBits; 681 if (!dvmHeapBitmapCoversAddress(bitmap, addr)) { 684 return dvmHeapBitmapIsObjectBitSet(bitmap, addr); 833 static size_t sumHeapBitmap(const HeapBitmap *bitmap) 836 for (size_t i = 0; i < bitmap->bitsLen >> 2; ++i) { 837 sum += CLZ(bitmap->bits[i]); [all...] |
/external/chromium/chrome/browser/autocomplete/ |
autocomplete_popup_view_gtk.cc | 489 const SkBitmap* bitmap = model_->GetIconIfExtensionMatch(match); local 490 if (bitmap) { 491 if (!ContainsKey(pixbufs_, bitmap)) 492 pixbufs_[bitmap] = gfx::GdkPixbufFromSkBitmap(bitmap); 493 return pixbufs_[bitmap];
|
/external/chromium/chrome/browser/themes/ |
theme_service.cc | 226 SkBitmap* bitmap = NULL; local 229 bitmap = theme_pack_->GetBitmapNamed(id); 231 if (!bitmap) 232 bitmap = rb_.GetBitmapNamed(id); 234 return bitmap;
|
/external/chromium/chrome/browser/ui/gtk/tabs/ |
tab_renderer_gtk.h | 245 // the bitmap in CachedBitmap when we remove it from |cached_bitmaps_|. We 250 SkBitmap* bitmap; member in struct:TabRendererGtk::CachedBitmap
|
/external/chromium/net/disk_cache/ |
disk_format.h | 165 // Bitmap to track used blocks on a block-file. 173 // where did we find the last entry of that type (to avoid searching the bitmap 243 // The SparseHeader will be followed by a bitmap, as described by this 247 uint32 bitmap[32]; // Bitmap representation of known children (if this member in struct:disk_cache::SparseData
|
/external/qemu/block/ |
vpc.c | 255 // unused in the bitmap. We get away with setting all bits in the block 256 // bitmap each time we write to a new block. This might cause Virtual PC to 260 uint8_t bitmap[s->bitmap_size]; local 263 memset(bitmap, 0xff, s->bitmap_size); 264 bdrv_pwrite_sync(bs->file, bitmap_offset, bitmap, s->bitmap_size); 280 // Scary! Bitmap is stored as big endian 32bit entries, 334 uint8_t bitmap[s->bitmap_size]; local 347 // Initialize the block's bitmap 348 memset(bitmap, 0xff, s->bitmap_size); 349 bdrv_pwrite_sync(bs->file, s->free_data_block_offset, bitmap, [all...] |
/external/qemu/ |
kvm-all.c | 289 * kvm_physical_sync_dirty_bitmap - Grab dirty bitmap from kernel space 290 * This function updates qemu's dirty bitmap using cpu_physical_memory_set_dirty(). 334 unsigned long *bitmap = (unsigned long *)d.dirty_bitmap; local 336 unsigned word = nr / (sizeof(*bitmap) * 8); 337 unsigned bit = nr % (sizeof(*bitmap) * 8); 339 if ((bitmap[word] >> bit) & 1) {
|
/external/skia/gm/ |
gmmain.cpp | 79 static void force_all_opaque(const SkBitmap& bitmap) { 80 SkAutoLockPixels lock(bitmap); 81 for (int y = 0; y < bitmap.height(); y++) { 82 for (int x = 0; x < bitmap.width(); x++) { 83 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); 88 static bool write_bitmap(const SkString& path, const SkBitmap& bitmap) { 90 bitmap.copyTo(©, SkBitmap::kARGB_8888_Config); 194 SkBitmap* bitmap) { 195 bitmap->setConfig(gRec.fConfig, size.width(), size.height()); 196 bitmap->allocPixels() 361 SkBitmap bitmap; local 388 SkBitmap bitmap; local 406 SkBitmap bitmap; local [all...] |
/external/skia/src/images/ |
SkImageDecoder_libjpeg.cpp | 83 virtual bool onDecodeRegion(SkBitmap* bitmap, SkIRect rect); 599 SkBitmap *bitmap = new SkBitmap; local 600 SkAutoTDelete<SkBitmap> adb(bitmap); 612 bitmap->setConfig(config, cinfo->output_width, height); 613 bitmap->setIsOpaque(true); 614 if (!this->allocPixelRef(bitmap, NULL)) { 615 return return_false(*cinfo, *bitmap, "allocPixelRef"); 617 SkAutoLockPixels alp(*bitmap); 618 JSAMPLE* rowptr = (JSAMPLE*)bitmap->getPixels(); 619 INT32 const bpr = bitmap->rowBytes() [all...] |