/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
AssetUtils.java | 20 import android.graphics.Bitmap; 58 public static Bitmap loadBitmapAsset(Context context, String asset) { 60 Bitmap bitmap = null; local 64 bitmap = BitmapFactory.decodeStream(is); 77 return bitmap;
|
/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/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
RecyclingBitmapDrawable.java | 20 import android.graphics.Bitmap; 29 * {@link android.graphics.Bitmap#recycle() recycle()} will be called on this drawable's bitmap. 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { 41 super(res, bitmap); 105 Bitmap bitmap = getBitmap(); local 106 return bitmap != null && !bitmap.isRecycled() [all...] |
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
AssetUtils.java | 20 import android.graphics.Bitmap; 58 public static Bitmap loadBitmapAsset(Context context, String asset) { 60 Bitmap bitmap = null; local 64 bitmap = BitmapFactory.decodeStream(is); 77 return bitmap;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
ImageVideoBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 20 public class ImageVideoBitmapDecoder implements ResourceDecoder<ImageVideoWrapper, Bitmap> { 22 private final ResourceDecoder<InputStream, Bitmap> streamDecoder; 23 private final ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder; 25 public ImageVideoBitmapDecoder(ResourceDecoder<InputStream, Bitmap> streamDecoder, 26 ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder) { 34 public Resource<Bitmap> decode(ImageVideoWrapper source, int width, int height) throws IOException { 35 Resource<Bitmap> result = null; 58 return "ImageVideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap"; [all...] |
/external/skia/experimental/PdfViewer/src/ |
SkPdfDiffEncoder.cpp | 38 // Only attempt to write if the dump bitmap and canvas are non NULL. They are set by 51 SkBitmap bitmap; local 52 if (gDumpBitmap->copyTo(&bitmap, SkBitmap::kARGB_8888_Config)) { 54 SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (bitmap))); 120 SkImageEncoder::EncodeFile(out.c_str(), bitmap, SkImageEncoder::kPNG_Type, 100);
|
/external/skia/gm/ |
resizeimagefilter.cpp | 90 SkBitmap bitmap; local 91 bitmap.allocN32Pixels(16, 16); 92 bitmap.eraseARGB(0x00, 0x00, 0x00, 0x00); 94 SkBitmapDevice bitmapDevice(bitmap); 104 SkAutoTUnref<SkBitmapSource> source(SkBitmapSource::Create(bitmap, inRect, outRect));
|
/external/skia/samplecode/ |
SampleAARects.cpp | 16 SkBitmap bitmap; local 17 bitmap.allocN32Pixels(n, n); 18 bitmap.eraseColor(SK_ColorGREEN); 20 SkCanvas canvas(bitmap); 34 return bitmap;
|
/external/skia/tests/ |
JpegTest.cpp | 450 // Check to see that the resulting bitmap is nice 461 SkBitmap bitmap; local 464 SkDecodingImageGenerator::Create(stream, opts), &bitmap); 471 SkPixelRef* pixelRef = bitmap.pixelRef();
|
PathOpsBuilderTest.cpp | 77 SkBitmap bitmap; local 78 int pixelDiff = comparePaths(reporter, __FUNCTION__, opCompare, result, bitmap); 103 SkBitmap bitmap; local 104 int pixelDiff = comparePaths(reporter, __FUNCTION__, path, path2, bitmap);
|
PathOpsThreadedCommon.h | 77 SkBitmap bitmap; variable 78 fState.fBitmap = &bitmap;
|
/external/valgrind/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...] |
/frameworks/base/core/java/android/text/style/ |
ImageSpan.java | 21 import android.graphics.Bitmap; 38 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead. 41 public ImageSpan(Bitmap b) { 46 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int) instead. 49 public ImageSpan(Bitmap b, int verticalAlignment) { 53 public ImageSpan(Context context, Bitmap b) { 61 public ImageSpan(Context context, Bitmap b, int verticalAlignment) { 135 Bitmap bitmap = null; local 139 bitmap = BitmapFactory.decodeStream(is) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
ExposureFilterTest.java | 20 import android.graphics.Bitmap; 52 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 53 image.setBitmap(bitmap);
|
/frameworks/minikin/libs/minikin/ |
MinikinFontFreeType.cpp | 87 FT_Bitmap &bitmap = mTypeface->glyph->bitmap; local 88 result->buffer = bitmap.buffer; 89 result->width = bitmap.width; 90 result->height = bitmap.rows;
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
BitmapUtils.java | 17 package com.android.bitmap.util;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 43 * bitmap. 51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 115 public static Bitmap resizeBitmapByScale( 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 119 if (width == bitmap.getWidth( 184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local 207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 43 * bitmap. 51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 115 public static Bitmap resizeBitmapByScale( 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 119 if (width == bitmap.getWidth( 184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local 207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DetailsHelper.java | 19 import android.graphics.Bitmap; 85 Bitmap bitmap = BitmapFactory.decodeFile(path); local 86 if (bitmap == null) return; 87 listener.onResolutionAvailable(bitmap.getWidth(), bitmap.getHeight());
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
SparseArrayBitmapPool.java | 19 import android.graphics.Bitmap; 26 * Bitmap pool backed by a sparse array indexing linked lists of bitmaps 41 Bitmap bitmap; field in class:SparseArrayBitmapPool.Node 92 mStore.put(n.bitmap.getWidth(), n.nextInBucket); 120 mSizeBytes -= n.bitmap.getByteCount(); 121 if (recycleBitmap) n.bitmap.recycle(); 122 n.bitmap = null; 141 * @return Bitmap from the pool with the desired height/width or null if none available. 143 public synchronized Bitmap get(int width, int height) [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 25 import android.graphics.Bitmap; 66 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 67 assertNotNull(bitmap); 68 assertTrue(bitmap.getWidth() > 0); 69 assertTrue(bitmap.getHeight() > 0); 101 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length); 119 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data") local [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
ImageRequest.java | 19 import android.graphics.Bitmap; 37 * Base class that serves an image request for resolving, retrieving and decoding bitmap resources. 88 protected Bitmap getBitmapForResource() throws IOException { 120 final Bitmap loadedBitmap = loadBitmapInternal(); 122 throw new RuntimeException("failed decoding bitmap"); 136 protected Bitmap loadBitmapInternal() throws IOException { 141 // If the ImageRequest has a Bitmap object rather than a stream, there's little to do here 143 final Bitmap bitmap = getBitmapForResource(); local 144 if (bitmap != null && unknownSize) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
ImagePersistTask.java | 20 import android.graphics.Bitmap; 75 Bitmap bitmap = null; local 76 Bitmap clippedBitmap = null; 96 bitmap = BitmapFactory.decodeByteArray(mBytes, 0, mBytes.length); 100 Assert.equals(mWidth, bitmap.getHeight()); 101 Assert.equals(mHeight, bitmap.getWidth()); 105 Assert.equals(mWidth, bitmap.getWidth()); 106 Assert.equals(mHeight, bitmap.getHeight()); 110 final int offsetTop = (bitmap.getHeight() - clippedHeight) / 2 [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 23 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.CompressFormat; 30 import android.graphics.Bitmap.Config; 43 private Bitmap mBitmap; 64 //abnormal case: the bitmap has been recycled 101 //abnormal case: the bitmap has been recycled 109 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); 110 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local 111 WidgetTestUtils.assertEquals(mBitmap, bitmap); 164 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local 183 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local 547 Bitmap bitmap = Bitmap.createBitmap(10, 10, fromConfig); local 819 Bitmap bitmap = Bitmap.createBitmap(1, 1, config); local 837 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 857 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 883 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 895 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local [all...] |
/art/runtime/gc/accounting/ |
remembered_set.cc | 130 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); local 136 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, obj_visitor);
|