/frameworks/support/v7/palette/tests/java/android/support/v7/graphics/ |
BucketTests.java | 26 import android.graphics.Bitmap; 44 final Bitmap sample = loadSampleBitmap(); 73 final Bitmap sample = loadSampleBitmap(); 83 final Bitmap sample = loadSampleBitmap(); 93 final Bitmap sample = loadSampleBitmap(); 104 final Bitmap bitmap = Bitmap.createBitmap(1000, 1, Bitmap.Config.ARGB_8888); local 106 Palette.Builder b = new Palette.Builder(bitmap); 113 final Bitmap bitmap = Bitmap.createBitmap(1, 1000, Bitmap.Config.ARGB_8888); local 122 final Bitmap bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); local 137 final Bitmap bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); local 154 final Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); local [all...] |
/external/skia/src/gpu/ |
GrBitmapTextureMaker.cpp | 19 GrBitmapTextureMaker::GrBitmapTextureMaker(GrContext* context, const SkBitmap& bitmap) 20 : INHERITED(context, bitmap.width(), bitmap.height(), bmp_is_alpha_only(bitmap)) 21 , fBitmap(bitmap) { 22 if (!bitmap.isVolatile()) { 23 SkIPoint origin = bitmap.pixelRefOrigin(); 24 SkIRect subset = SkIRect::MakeXYWH(origin.fX, origin.fY, bitmap.width(), 25 bitmap.height()); 26 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
RotateBitmap.java | 19 import android.graphics.Bitmap; 24 private Bitmap mBitmap; 27 public RotateBitmap(Bitmap bitmap) { 28 mBitmap = bitmap; 32 public RotateBitmap(Bitmap bitmap, int rotation) { 33 mBitmap = bitmap; 45 public Bitmap getBitmap() { 49 public void setBitmap(Bitmap bitmap) [all...] |
/art/runtime/gc/accounting/ |
bitmap.cc | 17 #include "bitmap-inl.h" 30 Bitmap* Bitmap::CreateFromMemMap(MemMap* mem_map, size_t num_bits) { 32 return new Bitmap(mem_map, num_bits); 35 Bitmap::Bitmap(MemMap* mem_map, size_t bitmap_size) 42 Bitmap::~Bitmap() { 46 MemMap* Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) { 54 LOG(ERROR) << "Failed to allocate bitmap " << name << ": " << error_msg [all...] |
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
AlbumArtCache.java | 19 import android.graphics.Bitmap; 41 public abstract void onFetched(String artUrl, Bitmap bigImage, Bitmap iconImage); 65 private final LruCache<String, Bitmap[]> mCache; 78 mCache = new LruCache<String, Bitmap[]>(maxSize) { 80 protected int sizeOf(String key, Bitmap[] value) { 87 public Bitmap getBigImage(String artUrl) { 88 Bitmap[] result = mCache.get(artUrl); 92 public Bitmap getIconImage(String artUrl) { 93 Bitmap[] result = mCache.get(artUrl) 102 Bitmap[] bitmap = mCache.get(artUrl); local 115 Bitmap bitmap = fetchAndRescaleBitmap(artUrl, MAX_ART_WIDTH, MAX_ART_HEIGHT); local [all...] |
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
AlbumArtCache.java | 19 import android.graphics.Bitmap; 41 public abstract void onFetched(String artUrl, Bitmap bigImage, Bitmap iconImage); 65 private final LruCache<String, Bitmap[]> mCache; 78 mCache = new LruCache<String, Bitmap[]>(maxSize) { 80 protected int sizeOf(String key, Bitmap[] value) { 87 public Bitmap getBigImage(String artUrl) { 88 Bitmap[] result = mCache.get(artUrl); 92 public Bitmap getIconImage(String artUrl) { 93 Bitmap[] result = mCache.get(artUrl) 102 Bitmap[] bitmap = mCache.get(artUrl); local 115 Bitmap bitmap = fetchAndRescaleBitmap(artUrl, MAX_ART_WIDTH, MAX_ART_HEIGHT); local [all...] |
/development/samples/RenderScript/HelloCompute/ |
_index.html | 1 <p>A Renderscript compute sample that filters a bitmap. No Renderscript graphics APIs are used
|
/external/e2fsprogs/lib/ext2fs/ |
tst_bitmaps_cmd.ct | 9 request dump_inode_bitmap_cmd, "Dump the inode bitmap", 12 request dump_block_bitmap_cmd, "Dump the block bitmap", 30 request do_zerob, "Clear block bitmap", 48 request do_zeroi, "Clear inode bitmap",
|
/external/e2fsprogs/tests/f_bad_bmap_csum/ |
expect.1 | 9 Inode bitmap differences: Group 0 inode bitmap does not match checksum. 11 Block bitmap differences: Group 0 block bitmap does not match checksum.
|
/external/e2fsprogs/tests/m_desc_size_128/ |
expect.1 | 52 Block bitmap at 274 (+273), Inode bitmap at 275 (+274) 60 Block bitmap at 1298 (+273), Inode bitmap at 1299 (+274) 66 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 74 Block bitmap at 3346 (+273), Inode bitmap at 3347 (+274) 80 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1 [all...] |
/external/e2fsprogs/tests/m_meta_bg/ |
expect.1 | 49 Block bitmap at 3 (+2), Inode bitmap at 4 (+3) 56 Block bitmap at 1027 (+2), Inode bitmap at 1028 (+3) 62 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 69 Block bitmap at 3074 (+1), Inode bitmap at 3075 (+2) 75 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1 [all...] |
/external/e2fsprogs/tests/m_raid_opt/ |
expect.1 | 52 Block bitmap at 294 (+293), Inode bitmap at 295 (+294) 60 Block bitmap at 1331 (+306), Inode bitmap at 1332 (+307) 66 Block bitmap at 2107 (+58), Inode bitmap at 2108 (+59) 74 Block bitmap at 3405 (+332), Inode bitmap at 3406 (+333) 80 Block bitmap at 4181 (+84), Inode bitmap at 4182 (+85 [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
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() {
|
FileDescriptorBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 16 * An {@link com.bumptech.glide.load.ResourceDecoder} for decoding {@link android.graphics.Bitmap}s from 19 public class FileDescriptorBitmapDecoder implements ResourceDecoder<ParcelFileDescriptor, Bitmap> { 44 public Resource<Bitmap> decode(ParcelFileDescriptor source, int width, int height) throws IOException { 45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); local 46 return BitmapResource.obtain(bitmap, bitmapPool); 51 return "FileDescriptorBitmapDecoder.com.bumptech.glide.load.data.bitmap";
|
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/transcode/ |
BitmapBytesTranscoder.java | 3 import android.graphics.Bitmap; 12 * {@link android.graphics.Bitmap}s into byte arrays using 13 * {@link android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream)}. 15 public class BitmapBytesTranscoder implements ResourceTranscoder<Bitmap, byte[]> { 16 private final Bitmap.CompressFormat compressFormat; 20 this(Bitmap.CompressFormat.JPEG, 100); 23 public BitmapBytesTranscoder(Bitmap.CompressFormat compressFormat, int quality) { 29 public Resource<byte[]> transcode(Resource<Bitmap> toTranscode) {
|
/external/skia/samplecode/ |
SampleWritePixels.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { 20 bitmap->allocN32Pixels(W, H); 22 SkCanvas canvas(*bitmap); 45 SkBitmap bitmap; local 46 create_bitmap(&bitmap); 47 int x = bitmap.width() / 2; 48 int y = bitmap.height() / 2; 51 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 55 canvas->writePixels(bitmap, 0, 0);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
FaceSquareFilterTest.java | 21 import android.graphics.Bitmap; 62 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("XZZ019.jpg")); local 63 image.setBitmap(bitmap); 79 int[] pixels = new int[bitmap.getByteCount()]; 80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), 81 bitmap.getHeight()); 87 int top = (faceRect.top+HEIGHT_OFFSET)*bitmap.getHeight()/FACE_X_RANGE [all...] |
/packages/apps/Car/Overview/src/com/android/car/overview/utils/ |
BitmapUtils.java | 18 import android.graphics.Bitmap; 29 * Apply saturation to a bitmap 31 public static Bitmap applySaturation(Bitmap bitmap, float saturation) { 32 Bitmap mutableBitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true); 40 canvas.drawBitmap(bitmap, 0, 0, paint);
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
ScaledBitmapInfoTest.java | 3 import android.graphics.Bitmap; 14 private static final Bitmap B80x100 = Bitmap.createBitmap(80, 100, Bitmap.Config.RGB_565); 15 private static final Bitmap B960x1440 = Bitmap.createBitmap(960, 1440, Bitmap.Config.RGB_565); 50 assertEquals(actual.id + " width", expectedWidth, actual.bitmap.getWidth()); 51 assertEquals(actual.id + " height", expectedHeight, actual.bitmap.getHeight());
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapFactory.java | 4 import android.graphics.Bitmap; 28 public static Bitmap decodeResource(Resources res, int id) { 29 Bitmap bitmap = create("resource:" + getResourceName(id)); local 30 shadowOf(bitmap).setLoadedFromResourceId(id); 31 return bitmap; 35 public static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options) { 36 Bitmap bitmap = create("resource:" + getResourceName(id), options); local 37 shadowOf(bitmap).setLoadedFromResourceId(id) 70 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
BitmapTest.java | 28 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); 29 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); 30 Bitmap bm3 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_4444); 56 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
ImageLoader.java | 19 import android.graphics.Bitmap; 41 void onImageLoaded(Bitmap bitmap); 48 final Bitmap cachedValue = CACHE.get(id); 59 new AsyncTask<Void, Void, Bitmap>() { 61 protected Bitmap doInBackground(Void... params) { 70 protected void onPostExecute(Bitmap bitmap) { 71 imageView.setImageBitmap(bitmap); 73 if (bitmap != null) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterDownsample.java | 19 import android.graphics.Bitmap; 53 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 55 return bitmap; 57 int w = bitmap.getWidth(); 58 int h = bitmap.getHeight(); 67 // scale preview to same size as the resulting bitmap from a "save" 73 return bitmap; 75 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true) [all...] |