/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterRS.java | 19 import android.graphics.Bitmap; 50 protected void update(Bitmap bitmap) { 51 getOutPixelsAllocation().copyTo(bitmap); 111 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 112 if (bitmap == null || bitmap.getWidth() == 0 || bitmap.getHeight() == 0) 187 Bitmap bitmap = BitmapFactory.decodeResource( local 199 Bitmap bitmap = BitmapFactory.decodeResource( local 217 Bitmap bitmap = BitmapFactory.decodeResource( local [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
BitmapDumper.java | 18 import android.graphics.Bitmap; 70 * drawing. The third file saved is a bitmap that is returned from the given visualizer's 74 public static void dumpBitmaps(Bitmap idealBitmap, Bitmap testedBitmap, String testName, 76 Bitmap visualizerBitmap; 85 visualizerBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 87 Bitmap croppedBitmap = Bitmap.createBitmap(testedBitmap, 0, 0, width, height); 94 public static void dumpBitmap(Bitmap bitmap, String testName, String className) [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
CircularImageView.java | 4 import android.graphics.Bitmap; 74 Bitmap bitmap = bitmapDrawable.getBitmap(); local 75 if (bitmap == null) { 79 source.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 83 drawBitmapWithCircleOnCanvas(bitmap, canvas, source, destination); 87 * Given the source bitmap and a canvas, draws the bitmap through a circular 90 * @param bitmap The source bitmap to draw [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
BitmapPool.java | 20 import android.graphics.Bitmap; 33 * Class for creating / loading / reusing bitmaps. This class allow the user to create a new bitmap, 34 * reuse an bitmap from the pool and to return a bitmap for future reuse. The pool of bitmaps 69 final Bitmap[] mBitmaps; 73 mBitmaps = new Bitmap[maxPoolSize]; 82 * to reclaimBitmap(Bitmap) will result in recycling the bitmap. 83 * @param name Name of the bitmap pool and only used for logging. Can not be null. 136 * @return A bitmap in the pool with the specified dimensions or null if no bitmap with th [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PaintFlagsDrawFilterTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 50 Bitmap bitmapWithoutFilter = drawText(null); 53 Bitmap bitmapWithFilter = drawText(filter); 55 Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter); 59 private Bitmap drawText(PaintFlagsDrawFilter filter) { 65 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); 73 private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter) [all...] |
EmbossMaskFilterTest.java | 22 import android.graphics.Bitmap; 23 import android.graphics.Bitmap.Config; 61 Bitmap bitmap = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); local 62 bitmap.eraseColor(Color.BLACK); 64 Canvas c = new Canvas(bitmap); 72 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); 73 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
BitmapUtil.java | 19 import android.graphics.Bitmap; 79 * Decodes the bitmap with the given sample size 81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { 104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId); 105 Bitmap rotated = Bitmap.createBitmap( 106 original.getWidth(), original.getHeight(), Bitmap.Config.ARGB_8888); 117 * Given an input bitmap, scales it to the given width/height and makes it round. 119 * @param input {@link Bitmap} to scale and crop 122 * @return output bitmap scaled to the target width/height and cropped to an oval. Th 173 final Bitmap bitmap = local [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
IconTest.java | 19 import android.graphics.Bitmap; 45 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); 46 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); 47 final Bitmap bm3 = ((BitmapDrawable) getContext().getDrawable(R.drawable.landscape)) 63 final Bitmap test1 = Bitmap.createBitmap(draw1.getIntrinsicWidth() [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
PoolableImageCache.java | 18 import android.graphics.Bitmap; 34 * A media cache that holds image resources, which doubles as a bitmap pool that allows the 40 /** Encapsulates bitmap pool representation of the image cache */ 52 * Creates a new BitmapFactory.Options for using the self-contained bitmap pool. 81 * Returns a representation of the image cache as a reusable bitmap pool. 88 * A bitmap pool representation built on top of the image cache. It treats the image resources 89 * stored in the image cache as a self-contained bitmap pool and is able to create or 90 * reclaim bitmap resource as needed. 113 * A sparse array from bitmap size to a list of image cache entries that match the 114 * given size. This map is used to quickly retrieve a usable bitmap to be reused by a 394 final Bitmap bitmap = imageResource.getBitmap(); local [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ImageDownloader.java | 24 import android.graphics.Bitmap; 62 private final static HashMap<String, Bitmap> sHardBitmapCache = 63 new LinkedHashMap<String, Bitmap>(HARD_CACHE_CAPACITY / 2, 0.75f, true) { 66 protected boolean removeEldestEntry(Map.Entry<String, Bitmap> eldest) { 69 sSoftBitmapCache.put(eldest.getKey(), new SoftReference<Bitmap>(eldest.getValue())); 77 // Soft cache for bitmap kicked out of hard cache 78 private final static ConcurrentHashMap<String, SoftReference<Bitmap>> sSoftBitmapCache = 79 new ConcurrentHashMap<String, SoftReference<Bitmap>>(HARD_CACHE_CAPACITY / 2); 92 * otherwise. A null bitmap will be associated to the ImageView if an error occurs. 111 Bitmap bitmap = getBitmapFromCache(url) local 206 final Bitmap bitmap = sHardBitmapCache.get(url); local 219 final Bitmap bitmap = bitmapReference.get(); local 278 final Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
DrawableDownloader.java | 22 import android.graphics.Bitmap; 42 * and LRUCache removes the refcount, the underlying bitmap will be used for decoding new bitmap. 44 * If the URI does not point to a bitmap (e.g. point to a drawable xml, we won't cache it and we 66 // 1/4 of max memory is used for bitmap mem cache 69 // hard limit for bitmap mem cache in MB 73 * bitmap cache item structure saved in LruCache 85 // get bitmap from the list 141 public abstract void onBitmapRetrieved(Drawable bitmap); 166 private static String getBucketKey(String baseKey, Bitmap.Config bitmapConfig) 220 Drawable bitmap = null; local 249 Drawable bitmap = null; local 282 final Drawable bitmap = hasAccountImageUri ? null : getBitmapFromMemCache(options); local [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Logo/ |
Logo.uni | 2 // The default logo bitmap picture shown on setup screen, which is corresponding to gEfiDefaultBmpLogoGuid.
4 // This module provides the default logo bitmap picture shown on setup screen, which corresponds to gEfiDefaultBmpLogoGuid.
18 #string STR_MODULE_ABSTRACT #language en-US "Provides the default logo bitmap picture shown on setup screen, which corresponds to gEfiDefaultBmpLogoGuid"
20 #string STR_MODULE_DESCRIPTION #language en-US "This module provides the default logo bitmap picture shown on setup screen, which corresponds to gEfiDefaultBmpLogoGuid."
|
/external/e2fsprogs/tests/f_overfsblks/ |
expect.1 | 1 ext2fs_check_desc: Corrupt group descriptor: bad block for inode bitmap 5 Group 0's inode bitmap at 3 conflicts with some other fs block. 8 Relocating group 0's inode bitmap from 3 to 4... 13 Inode bitmap differences: -(12--21)
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
MemoryCategory.java | 8 * Tells Glide's memory cache and bitmap pool to use at most half of their initial maximum size. 12 * Tells Glide's memory cache and bitmap pool to use at most their initial maximum size. 16 * Tells Glide's memory cache and bitmap pool to use at most one and a half times their initial maximum size. 27 * Returns the multiplier that should be applied to the initial maximum size of Glide's memory cache and bitmap
|
/external/linux-kselftest/tools/testing/selftests/lib/ |
Makefile | 6 TEST_PROGS := printf.sh bitmap.sh
|
/external/skia/tools/ |
picture_utils.cpp | 23 void force_all_opaque(const SkBitmap& bitmap) { 24 SkASSERT(kN32_SkColorType == bitmap.colorType()); 25 if (kN32_SkColorType == bitmap.colorType()) { 29 SkAutoLockPixels lock(bitmap); 30 for (int y = 0; y < bitmap.height(); y++) { 31 for (int x = 0; x < bitmap.width(); x++) { 32 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT); 53 void setup_bitmap(SkBitmap* bitmap, int width, int height) { 54 bitmap->allocN32Pixels(width, height); 55 bitmap->eraseColor(SK_ColorTRANSPARENT) [all...] |
/frameworks/base/libs/hwui/ |
TextureCache.h | 34 class Bitmap; 78 * acquired for the bitmap, false otherwise. If a Texture was acquired it is 81 bool prefetchAndMarkInUse(void* ownerToken, Bitmap* bitmap); 85 * acquired for the bitmap, false otherwise. Does not mark the Texture 88 bool prefetch(Bitmap* bitmap); 91 * Returns the texture associated with the specified bitmap from within the cache. 94 Texture* get(Bitmap* bitmap); [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
PlaybackSeekAsyncDataProvider.java | 19 import android.graphics.Bitmap; 39 // mCache is for the bitmap requested by user 40 final LruCache<Integer, Bitmap> mCache; 41 // mPrefetchCache is for the bitmap not requested by user but prefetched by heuristic 44 final LruCache<Integer, Bitmap> mPrefetchCache; 52 protected abstract Bitmap doInBackground(Object task, int index, long position); 54 class LoadBitmapTask extends AsyncTask<Object, Object, Bitmap> { 65 protected Bitmap doInBackground(Object[] params) { 71 protected void onPostExecute(Bitmap bitmap) { 105 Bitmap bitmap = mCache.get(key); local [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/event/ |
EventFastPictureBitmapAvailable.java | 21 import android.graphics.Bitmap; 24 private final Bitmap mThumbnailBitmap; 26 public EventFastPictureBitmapAvailable(Bitmap thumbnailBitmap) { 30 public Bitmap getThumbnailBitmap() {
|
EventPictureDecoded.java | 21 import android.graphics.Bitmap; 24 private final Bitmap mPictureBitmap; 27 public EventPictureDecoded(Bitmap pictureBitmap, byte[] pictureData) { 32 public Bitmap getPictureBitmap() {
|
/packages/apps/Car/LatinIME/res/drawable/ |
ic_globe_tint.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
/packages/apps/DeskClock/res/drawable/ |
ic_alarm_off_24dp.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
ic_reset_24dp.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
ic_snooze_24dp.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
ic_start_24dp.xml | 2 <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|