/external/skia/emoji/ |
EmojiFont.cpp | 66 encoded data and length. The bitmap field is initialized to 0, and is not 99 /* Return the bitmap associated with the local index, or NULL if none is 100 available. Note that this will try to cache the bitmap the first time it 105 SkBitmap* bitmap = NULL; local 107 bitmap = rec->fBitmap; 108 if (NULL == bitmap) { 109 bitmap = new SkBitmap; 110 if (!SkImageDecoder::DecodeMemory(rec->fData, rec->fSize, bitmap)) { 111 delete bitmap; 117 rec->fBitmap = bitmap; 170 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local 190 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local [all...] |
/external/skia/include/images/ |
SkFlipPixelRef.h | 49 // Helper to copy pixels from srcAddr to the dst bitmap, clipped to clip. 82 const SkBitmap& bitmap() const { return fBitmap; } function in class:SkAutoFlipUpdate
|
/external/skia/legacy/emoji/ |
EmojiFont.cpp | 65 encoded data and length. The bitmap field is initialized to 0, and is not 98 /* Return the bitmap associated with the local index, or NULL if none is 99 available. Note that this will try to cache the bitmap the first time it 104 SkBitmap* bitmap = NULL; local 106 bitmap = rec->fBitmap; 107 if (NULL == bitmap) { 108 bitmap = new SkBitmap; 109 if (!SkImageDecoder::DecodeMemory(rec->fData, rec->fSize, bitmap)) { 110 delete bitmap; 116 rec->fBitmap = bitmap; 169 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local 189 const SkBitmap* bitmap = get_bitmap(glyphID - kGlyphBase); local [all...] |
/external/skia/legacy/include/images/ |
SkFlipPixelRef.h | 48 // Helper to copy pixels from srcAddr to the dst bitmap, clipped to clip. 92 const SkBitmap& bitmap() const { return fBitmap; } function in class:SkAutoFlipUpdate
|
/external/skia/src/gpu/ |
SkGr.cpp | 14 based bitmap. [palette (colortable) + indices]. 24 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { 25 SkASSERT(SkBitmap::kIndex8_Config == bitmap.config()); 27 SkAutoLockPixels apl(bitmap); 28 if (!bitmap.readyToDraw()) { 29 SkDEBUGFAIL("bitmap not ready to draw!"); 33 SkColorTable* ctable = bitmap.getColorTable(); 42 if (bitmap.width() == bitmap.rowBytes()) { 43 memcpy(dst, bitmap.getPixels(), bitmap.getSize()) 99 const SkBitmap* bitmap = &origBitmap; local [all...] |
/external/skia/tests/ |
ChecksumTest.cpp | 110 // Fill in bitmap with test data. 111 void CreateTestBitmap(SkBitmap &bitmap, SkBitmap::Config config, int width, int height, 113 bitmap.setConfig(config, width, height); 114 REPORTER_ASSERT(fReporter, bitmap.allocPixels()); 115 bitmap.setIsOpaque(true); 116 bitmap.eraseColor(color); 161 SkBitmap bitmap; local 163 CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 333, 555, SK_ColorBLUE); 165 SkBitmapChecksummer::Compute64(bitmap) == 0x18f9df68b1b02f38ULL); 167 CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 555, 333, SK_ColorBLUE) [all...] |
/external/smack/src/org/xbill/DNS/ |
NXTRecord.java | 22 private BitSet bitmap; field in class:NXTRecord 34 * @param bitmap The set of type for which records exist at this name 37 NXTRecord(Name name, int dclass, long ttl, Name next, BitSet bitmap) { 40 this.bitmap = bitmap; 46 bitmap = new BitSet(); 52 bitmap.set(i * 8 + j); 59 bitmap = new BitSet(); 67 bitmap.set(typecode); 77 int length = bitmap.length() [all...] |
/external/webkit/Source/WebCore/platform/chromium/ |
PasteboardChromium.cpp | 134 NativeImagePtr bitmap = image->nativeImageForCurrentFrame(); local 135 if (!bitmap) 153 PlatformBridge::clipboardWriteImage(bitmap, url, title);
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
CanvasLayer.cpp | 80 m_bitmap = layer.bitmap(); 86 m_bitmap = layer.bitmap(); 158 SkBitmapRef* CanvasLayer::bitmap() const function in class:WebCore::CanvasLayer 191 SkBitmap& bitmap = m_bitmap->bitmap(); 195 canvas->drawBitmapRect(bitmap, 0, dst, 0);
|
CanvasTexture.cpp | 139 const SkBitmap& bitmap = canvas->getDevice()->accessBitmap(false); local 140 if (!GLUtils::updateSharedSurfaceTextureWithBitmap(anw, bitmap))
|
PictureLayerContent.cpp | 64 SkBitmap bitmap; 65 bitmap.setConfig(SkBitmap::kARGB_8888_Config, 69 InspectorCanvas checker(&inspectorBounder, m_picture, bitmap); 156 const SkBitmap& bitmap = canvas->getDevice()->accessBitmap(true); local 157 bitmap.lockPixels(); 159 // pass picture, matrix, clip, and bitmap 161 bitmap.width(), bitmap.height(), bitmap.getConfig(), 162 bitmap.rowBytes(), bitmap.getPixels()) [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
GraphicsContextWin.cpp | 46 static void fillWithClearColor(HBITMAP bitmap) 48 BITMAP bmpInfo; 49 GetObject(bitmap, sizeof(bmpInfo), &bmpInfo); 102 // FIXME: Should a bitmap be created also when a shadow is set? 107 // Create a bitmap DC in which to draw. 111 HBITMAP bitmap = ::CreateDIBSection(NULL, &bitmapInfo, DIB_RGB_COLORS, &pixels, 0, 0); local 112 if (!bitmap) 116 ::SelectObject(bitmapDC, bitmap); 120 fillWithClearColor(bitmap); 125 // Apply a translation to our context so that the drawing done will be at (0,0) of the bitmap [all...] |
/external/webkit/Source/WebCore/platform/graphics/wx/ |
ImageWx.cpp | 42 #include <wx/bitmap.h> 103 wxGraphicsBitmap* bitmap = frameAtIndex(m_currentFrame); local 106 wxBitmap* bitmap = frameAtIndex(m_currentFrame); local 110 if (!bitmap) // If it's too early we won't have an image yet. 137 gc->DrawBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height()); 139 gc->DrawGraphicsBitmap(*bitmap, adjustedDestRect.x(), adjustedDestRect.y(), adjustedDestRect.width(), adjustedDestRect.height()); 149 wxImage img = bitmap->ConvertToImage(); 151 bitmap = new wxBitmap(img); 155 ASSERT(bitmap->GetRefData()); 156 mydc.SelectObject(*bitmap); 186 wxGraphicsBitmap* bitmap = nativeImageForCurrentFrame(); local [all...] |
/frameworks/base/core/jni/ |
android_view_PointerIcon.cpp | 80 SkBitmap* bitmap = GraphicsJNI::getNativeBitmap(env, bitmapObj); local 81 if (bitmap) { 82 outPointerIcon->bitmap = *bitmap; // use a shared pixel ref 129 "mBitmap", "Landroid/graphics/Bitmap;");
|
/frameworks/base/libs/hwui/ |
ResourceCache.cpp | 313 SkBitmap* bitmap = (SkBitmap*) resource; local 315 Caches::getInstance().textureCache.removeDeferred(bitmap); 317 delete bitmap;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
BitmapsActivity.java | 21 import android.graphics.Bitmap; 56 private final Bitmap mBitmap1; 57 private final Bitmap mBitmap2; 66 Log.d("Bitmap", "mBitmap1.isMutable() = " + mBitmap1.isMutable()); 67 Log.d("Bitmap", "mBitmap2.isMutable() = " + mBitmap2.isMutable()); 71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); local 72 Log.d("Bitmap", "bitmap.isMutable() = " + bitmap.isMutable()) [all...] |
/frameworks/volley/tests/src/com/android/volley/toolbox/ |
ImageRequestTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 65 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); 68 Bitmap bitmap = response.result; local 69 assertNotNull(bitmap); 70 assertEquals(expectedWidth, bitmap.getWidth()); 71 assertEquals(expectedHeight, bitmap.getHeight());
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailPhotoSetter.java | 21 import android.graphics.Bitmap; 42 Bitmap bitmap = setCompressedImage(contactData.getPhotoBinaryData()); local 43 return setupClickListener(context, contactData, bitmap, expandPhotoOnClick); 50 private final Bitmap mPhotoBitmap; 54 public PhotoClickListener(Context context, Contact contactData, Bitmap photoBitmap, 89 // Cache the bitmap directly, so the activity can pull it from the 99 private OnClickListener setupClickListener(Context context, Contact contactData, Bitmap bitmap, 105 context, contactData, bitmap, getCompressedImage(), expandPhotoOnClick) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageGetter.java | 24 import android.graphics.Bitmap; 32 * into memory and post a callback to display the resulting bitmap. 34 * Then proceed to load the full image bitmap. Three things can 44 * a callback to the UI thread to actually show the bitmap. 49 * bitmap on the floor. 53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, 104 final RotateBitmap bitmap, 111 mCB.imageLoaded(position, offset, bitmap, isThumb); 112 } else if (bitmap != null) { 113 bitmap.recycle() [all...] |
PhotoAppWidgetConfigure.java | 24 import android.graphics.Bitmap; 78 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local 81 if (helper.setPhoto(mAppWidgetId, bitmap)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ActionImage.java | 19 import android.graphics.Bitmap; 43 public Job<Bitmap> requestImage(int type) { 52 private class BitmapJob implements Job<Bitmap> { 60 public Bitmap run(JobContext jc) { 62 Bitmap bitmap = BitmapFactory.decodeResource(mApplication.getResources(), local 66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true) [all...] |
ImageCacheRequest.java | 19 import android.graphics.Bitmap; 28 abstract class ImageCacheRequest implements Job<Bitmap> { 51 public Bitmap run(JobContext jc) { 60 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 61 Bitmap bitmap; local 63 bitmap = DecodeUtils.decodeUsingPool(jc, 66 bitmap = DecodeUtils.decodeUsingPool(jc, 69 if (bitmap == null && !jc.isCancelled()) { 72 return bitmap; 77 Bitmap bitmap = onDecodeOriginal(jc, mType); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
IconUtilities.java | 20 import android.graphics.Bitmap; 36 public static Bitmap getFXBitmap(Resources res, int id) { 37 Bitmap ret; 47 public static Bitmap loadBitmap(Resources res, int resource) { 50 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 51 Bitmap bitmap = BitmapFactory.decodeResource( local 55 return bitmap; 58 public static Bitmap applyFX(Bitmap bitmap, final Bitmap fxBitmap) [all...] |
ImageFilterDownsample.java | 19 import android.graphics.Bitmap; 50 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 52 return bitmap; 54 int w = bitmap.getWidth(); 55 int h = bitmap.getHeight(); 64 // scale preview to same size as the resulting bitmap from a "save" 70 return bitmap; 72 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetUtils.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 47 public static Bitmap createWidgetBitmap(MediaItem image) { 48 Bitmap bitmap = image.requestImage(MediaItem.TYPE_THUMBNAIL) local 50 if (bitmap == null) { 54 return createWidgetBitmap(bitmap, image.getRotation()); 57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation) [all...] |