/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);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
PhotoBitmapLoader.java | 22 import android.graphics.Bitmap; 32 * Loader for the bitmap of a photo. 37 private Bitmap mBitmap; 58 if (result.bitmap != null) { 59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 62 // We got image bytes, but unable to decode to a Bitmap 77 Bitmap bitmap = result != null ? result.bitmap : null; local 81 if (bitmap != null) [all...] |
/packages/apps/Dialer/src/com/android/dialer/contactinfo/ |
ContactPhotoLoader.java | 20 import android.graphics.Bitmap; 57 * Create a contact photo icon bitmap appropriate for the ContactInfo. 59 public Bitmap loadPhotoIcon() { 84 Bitmap bitmap = MediaStore.Images.Media.getBitmap(mContext.getContentResolver(), local 87 RoundedBitmapDrawableFactory.create(mContext.getResources(), bitmap); 89 drawable.setCornerRadius(bitmap.getHeight() / 2); 112 private static Bitmap drawableToBitmap(Drawable drawable, int width, int height) { 113 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) local [all...] |
/art/runtime/gc/accounting/ |
heap_bitmap-inl.h | 30 for (const auto& bitmap : continuous_space_bitmaps_) { 31 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); 33 for (const auto& bitmap : large_object_bitmaps_) { 34 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); 39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 40 if (LIKELY(bitmap != nullptr)) 53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 68 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local 85 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
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/ApiDemos/src/com/example/android/apis/app/ |
PrintBitmap.java | 19 import android.graphics.Bitmap; 32 * This class demonstrates how to implement bitmap printing. 76 // Get the bitmap for the ImageView's drawable. 77 Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap(); local 79 // Print the bitmap. 80 printHelper.printBitmap("Print Bitmap", bitmap);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/graphics/ |
RoundedBitmapDrawableActivity.java | 20 import android.graphics.Bitmap; 44 // Create a bitmap and set it circular. 45 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), IMAGE_RES); local 46 mRoundedBitmapDrawable = RoundedBitmapDrawableFactory.create(getResources(), bitmap);
|
/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/freetype/src/raster/ |
ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 180 bitmap = &slot->bitmap; 183 /* release old bitmap buffer */ 186 FT_FREE( bitmap->buffer ); 191 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 193 bitmap->width = width; 194 bitmap->rows = height; 195 bitmap->pitch = (int)pitch [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 14 * is also responsible for returning the underlying {@link android.graphics.Bitmap} to the given
|
BitmapTransformation.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 12 * A simple {@link com.bumptech.glide.load.Transformation} for transforming {@link android.graphics.Bitmap}s that 20 * public Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { 25 * return Bitmap.createScaledBitmap(toTransform, outWidth, outHeight, true); 31 public abstract class BitmapTransformation implements Transformation<Bitmap> { 44 public final Resource<Bitmap> transform(Resource<Bitmap> resource, int outWidth, int outHeight) { 49 Bitmap toTransform = resource.get() [all...] |
CenterCrop.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 24 // Bitmap doesn't implement equals, so == and .equals are equivalent here. 27 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) { 28 final Bitmap toReuse = pool.get(outWidth, outHeight, toTransform.getConfig() != null 29 ? toTransform.getConfig() : Bitmap.Config.ARGB_8888); 30 Bitmap transformed = TransformationUtils.centerCrop(toReuse, toTransform, outWidth, outHeight); 39 return "CenterCrop.com.bumptech.glide.load.resource.bitmap";
|
FileDescriptorBitmapDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 19 * {@link android.graphics.Bitmap}s from {@link android.os.ParcelFileDescriptor} data. 21 public class FileDescriptorBitmapDataLoadProvider implements DataLoadProvider<ParcelFileDescriptor, Bitmap> { 22 private final ResourceDecoder<File, Bitmap> cacheDecoder; 28 cacheDecoder = new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(bitmapPool, decodeFormat)); 35 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 40 public ResourceDecoder<ParcelFileDescriptor, Bitmap> getSourceDecoder() { 50 public ResourceEncoder<Bitmap> getEncoder() {
|
GlideBitmapDrawableResource.java | 1 package com.bumptech.glide.load.resource.bitmap; 8 * A resource wrapper for {@link com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable}.
|
ImageVideoDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 18 * {@link android.os.ParcelFileDescriptor} as an {@link android.graphics.Bitmap}. 20 public class ImageVideoDataLoadProvider implements DataLoadProvider<ImageVideoWrapper, Bitmap> { 22 private final ResourceDecoder<File, Bitmap> cacheDecoder; 23 private final ResourceEncoder<Bitmap> encoder; 26 public ImageVideoDataLoadProvider(DataLoadProvider<InputStream, Bitmap> streamBitmapProvider, 27 DataLoadProvider<ParcelFileDescriptor, Bitmap> fileDescriptorBitmapProvider) { 37 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 42 public ResourceDecoder<ImageVideoWrapper, Bitmap> getSourceDecoder() [all...] |
StreamBitmapDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 19 * {@link android.graphics.Bitmap}s using {@link java.io.InputStream} data. 21 public class StreamBitmapDataLoadProvider implements DataLoadProvider<InputStream, Bitmap> { 25 private final FileToStreamDecoder<Bitmap> cacheDecoder; 31 cacheDecoder = new FileToStreamDecoder<Bitmap>(decoder); 35 public ResourceDecoder<File, Bitmap> getCacheDecoder() { 40 public ResourceDecoder<InputStream, Bitmap> getSourceDecoder() { 50 public ResourceEncoder<Bitmap> getEncoder() {
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifBitmapProvider.java | 4 import android.graphics.Bitmap; 17 public Bitmap obtain(int width, int height, Bitmap.Config config) { 22 public void release(Bitmap bitmap) { 23 if (!bitmapPool.put(bitmap)) { 24 bitmap.recycle();
|
GifFrameResourceDecoder.java | 3 import android.graphics.Bitmap; 9 import com.bumptech.glide.load.resource.bitmap.BitmapResource; 11 class GifFrameResourceDecoder implements ResourceDecoder<GifDecoder, Bitmap> { 19 public Resource<Bitmap> decode(GifDecoder source, int width, int height) { 20 Bitmap bitmap = source.getNextFrame(); local 21 return BitmapResource.obtain(bitmap, bitmapPool);
|
/external/opencv3/samples/winrt/FaceDetection/FaceDetection/ |
MainPage.xaml.cpp | 81 WriteableBitmap^ bitmap = ref new WriteableBitmap(image.cols, image.rows); local 84 IBuffer^ buffer = bitmap->PixelBuffer; 96 // Set the bitmap to the Image element 97 img1->Source = bitmap;
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
fpdf_parser_decode_embeddertest.cpp | 103 FPDF_BITMAP bitmap = RenderPage(page); local 104 FPDFBitmap_Destroy(bitmap); 113 FPDF_BITMAP bitmap = RenderPage(page); local 114 FPDFBitmap_Destroy(bitmap);
|
/external/pdfium/third_party/freetype/src/raster/ |
ftrend1.c | 98 /* convert a slot's glyph image into a bitmap */ 109 FT_Bitmap* bitmap; local 180 bitmap = &slot->bitmap; 183 /* release old bitmap buffer */ 186 FT_FREE( bitmap->buffer ); 191 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 193 bitmap->width = width; 194 bitmap->rows = height; 195 bitmap->pitch = (int)pitch [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);
|