/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterFx.java | 20 import android.graphics.Bitmap; 27 private Bitmap mFxBitmap = null; 54 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, 55 Bitmap fxBitmap, int fxw, int fxh, 59 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 61 return bitmap; 64 int w = bitmap.getWidth() [all...] |
ImageFilterBwFilter.java | 21 import android.graphics.Bitmap; 45 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, int r, int g, int b); 48 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 50 return bitmap; 52 int w = bitmap.getWidth(); 53 int h = bitmap.getHeight(); 61 nativeApplyFilter(bitmap, w, h, r, g, b) [all...] |
ImageFilterHue.java | 22 import android.graphics.Bitmap; 47 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float []matrix); 50 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 52 return bitmap; 54 int w = bitmap.getWidth(); 55 int h = bitmap.getHeight(); 60 nativeApplyFilter(bitmap, w, h, cmatrix.getMatrix()) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
Buffer.java | 19 import android.graphics.Bitmap; 29 private Bitmap mBitmap; 34 public Buffer(Bitmap bitmap) { 36 if (bitmap != null) { 38 mBitmap = cache.getBitmapCopy(bitmap, BitmapCache.PREVIEW_CACHE); 48 public boolean isSameSize(Bitmap bitmap) { 49 if (mBitmap == null || bitmap == null) { 52 if (mBitmap.getWidth() == bitmap.getWidth( [all...] |
CachingPipeline.java | 21 import android.graphics.Bitmap; 44 private static final Bitmap.Config BITMAP_CONFIG = Bitmap.Config.ARGB_8888; 49 private volatile Bitmap mOriginalBitmap = null; 50 private volatile Bitmap mResizedOriginalBitmap = null; 101 mOriginalBitmap = null; // just a reference to the bitmap in ImageLoader 177 public void setOriginal(Bitmap bitmap) { 178 mOriginalBitmap = bitmap; 179 Log.v(LOGTAG,"setOriginal, size " + bitmap.getWidth() + " x " + bitmap.getHeight()) 222 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 247 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 269 Bitmap bitmap = MasterImage.getImage().getOriginalBitmapHighres(); local 301 Bitmap bitmap = request.getBitmap(); local [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...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/ |
DecodeFormat.java | 6 * Options for setting the value of {@link android.graphics.Bitmap#getConfig()} for {@link android.graphics.Bitmap}s 7 * returned by a {@link com.bumptech.glide.load.resource.bitmap.BitmapDecoder}. 11 * {@link com.bumptech.glide.load.resource.bitmap.BitmapDecoder}s support setting formats and certain images may 18 * All bitmaps returned by the {@link com.bumptech.glide.load.resource.bitmap.BitmapDecoder} should return 19 * {@link android.graphics.Bitmap.Config#ARGB_8888} for {@link android.graphics.Bitmap#getConfig()}. 25 * return {@link android.graphics.Bitmap.Config#ARGB_8888} for {@link android.graphics.Bitmap#getConfig()}. Bitmaps 27 * {@link android.graphics.Bitmap.Config#RGB_565} for {@link android.graphics.Bitmap#getConfig()} [all...] |
/frameworks/base/libs/hwui/hwui/ |
Bitmap.cpp | 16 #include "Bitmap.h" 53 typedef sk_sp<Bitmap> (*AllocPixeRef)(size_t allocSize, const SkImageInfo& info, size_t rowBytes, 56 static sk_sp<Bitmap> allocateBitmap(SkBitmap* bitmap, SkColorTable* ctable, AllocPixeRef alloc) { 57 const SkImageInfo& info = bitmap->info(); 59 LOG_ALWAYS_FATAL("unknown bitmap configuration"); 65 // we must respect the rowBytes value already set on the bitmap instead of 67 const size_t rowBytes = bitmap->rowBytes(); 68 if (!computeAllocationSize(rowBytes, bitmap->height(), &size)) { 74 wrapper->getSkBitmap(bitmap); 246 SkBitmap bitmap; local [all...] |
Bitmap.h | 45 class ANDROID_API Bitmap : public SkPixelRef { 47 static sk_sp<Bitmap> allocateHeapBitmap(SkBitmap* bitmap, SkColorTable* ctable); 48 static sk_sp<Bitmap> allocateHeapBitmap(const SkImageInfo& info); 50 static sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& bitmap); 52 static sk_sp<Bitmap> allocateAshmemBitmap(SkBitmap* bitmap, SkColorTable* ctable); 53 static sk_sp<Bitmap> allocateAshmemBitmap(size_t allocSize, const SkImageInfo& info, 56 static sk_sp<Bitmap> createFrom(sp<GraphicBuffer> graphicBuffer) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ComposeShaderTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config; 54 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); local 55 Canvas canvas = new Canvas(bitmap); 65 int pixel = bitmap.getPixel(x, y); 81 Bitmap redBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); 83 Bitmap cyanBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888) 93 Bitmap bitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); local 122 Bitmap bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888); local [all...] |
PictureTest.java | 23 import android.graphics.Bitmap; 80 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 81 Canvas drawDest = new Canvas(bitmap); 97 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) local 129 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local [all...] |
NinePatchTest.java | 26 import android.graphics.Bitmap; 53 private Bitmap mBitmap; 106 Bitmap bitmap = Bitmap.createBitmap(COLOR, 10, 10, Bitmap.Config.ARGB_4444); local 107 assertFalse(NinePatch.isNinePatchChunk(bitmap.getNinePatchChunk())); 113 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); 115 Bitmap bitmap = Bitmap.createBitmap(expected.getWidth(), expected.getHeight() local 174 Bitmap bitmap = local [all...] |
/external/jemalloc/include/jemalloc/internal/ |
bitmap.h | 4 /* Maximum bitmap bit count is 2^LG_BITMAP_MAXBITS. */ 19 * Do some analysis on how big the bitmap is before we use a tree. For a brute 71 # error "Unsupported bitmap size" 95 /* Logical number of bits in bitmap (stored at bottom level). */ 118 void bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo); 126 bool bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo); 127 bool bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 128 void bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 129 size_t bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo); 130 void bitmap_unset(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
Utilities.java | 23 import android.graphics.Bitmap; 66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 77 return Bitmap.createBitmap(icon, 85 // Icon is too small, render to a larger bitmap 92 * Returns a bitmap suitable for the all apps view. 94 static Bitmap createIconBitmap(Drawable icon, Context context) { 108 // Ensure the bitmap has a density. 110 Bitmap bitmap = bitmapDrawable.getBitmap() local 138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/rdtypes/ANY/ |
NXT.py | 26 @ivar bitmap: the type bitmap 27 @type bitmap: string 30 __slots__ = ['next', 'bitmap'] 32 def __init__(self, rdclass, rdtype, next, bitmap): 35 self.bitmap = bitmap 40 for i in xrange(0, len(self.bitmap)): 41 byte = ord(self.bitmap[i]) 51 bitmap = ['\x00', '\x00', '\x00', '\x00' [all...] |
/external/skia/gm/ |
bitmappremul.cpp | 14 * This GM checks that bitmap pixels are unpremultiplied before being exported 18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations. 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { 26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, 28 bitmap->eraseColor(SK_ColorWHITE); 32 SkBitmap bitmap; local 33 init_bitmap(kN32_SkColorType, &bitmap); 36 uint32_t* dst = bitmap.getAddr32(0, y); 45 return bitmap; 49 SkBitmap bitmap; local 66 SkBitmap bitmap; local 85 SkBitmap bitmap; local [all...] |
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 1 #define LOG_TAG "Bitmap" 2 #include "Bitmap.h" 28 #include <hwui/Bitmap.h> 51 BitmapWrapper(Bitmap* bitmap) 52 : mBitmap(bitmap) { } 68 Bitmap& bitmap() { function in class:android::BitmapWrapper 74 LOG_ALWAYS_FATAL_IF(!valid(), "Error, cannot access an invalid/free'd bitmap here!"); 137 sk_sp<Bitmap> mBitmap 169 namespace bitmap { namespace in namespace:android 731 SkBitmap bitmap; local 830 auto bitmap = allocator.getStorageObjAndReset(); local 841 auto bitmap = allocator.getStorageObjAndReset(); local 850 auto bitmap = Bitmap_copyAshmemImpl(env, src, dstCT); local 859 auto bitmap = Bitmap_copyAshmemImpl(env, src, dstCT); local 1183 SkBitmap bitmap; local 1356 SkBitmap bitmap; local 1388 SkBitmap bitmap; local 1436 SkBitmap bitmap; local 1466 SkBitmap bitmap; local 1474 SkBitmap bitmap; local 1489 SkBitmap bitmap; local 1605 sk_sp<Bitmap> bitmap = Bitmap::createFrom(buffer); local [all...] |
/external/e2fsprogs/tests/m_bigjournal/ |
expect.1 | 53 Block bitmap at 673 (+673), Inode bitmap at 757 (+757) 61 Block bitmap at 674 (bg #0 + 674), Inode bitmap at 758 (bg #0 + 758) 67 Block bitmap at 675 (bg #0 + 675), Inode bitmap at 759 (bg #0 + 759) 75 Block bitmap at 676 (bg #0 + 676), Inode bitmap at 760 (bg #0 + 760) 81 Block bitmap at 677 (bg #0 + 677), Inode bitmap at 761 (bg #0 + 761 [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Thumbnail.java | 22 import android.graphics.Bitmap; 51 private Bitmap mBitmap; 59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { 61 mBitmap = rotateImage(bitmap, orientation); 62 if (mBitmap == null) throw new IllegalArgumentException("null bitmap"); 69 public Bitmap getBitmap() { 81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) 129 Bitmap bitmap = null; local 252 Bitmap bitmap = BitmapFactory.decodeByteArray(jpeg, 0, jpeg.length, options); local 265 Bitmap bitmap = null; local [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/ |
GifBitmapWrapper.java | 3 import android.graphics.Bitmap; 9 * A wrapper that contains either an {@link android.graphics.Bitmap} resource or an 14 private final Resource<Bitmap> bitmapResource; 16 public GifBitmapWrapper(Resource<Bitmap> bitmapResource, Resource<GifDrawable> gifResource) { 18 throw new IllegalArgumentException("Can only contain either a bitmap resource or a gif resource, not both"); 21 throw new IllegalArgumentException("Must contain either a bitmap resource or a gif resource"); 39 * Returns the wrapped {@link android.graphics.Bitmap} resource if it exists, or null. 41 public Resource<Bitmap> getBitmapResource() {
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
RGBZ.java | 21 import android.graphics.Bitmap; 41 private Bitmap bitmap; field in class:RGBZ 42 private Bitmap preview; 43 private Bitmap depthBitmap; 61 bitmap = setAlphaChannel(preview, depthBitmap); 80 bitmap = setAlphaChannel(preview, depthBitmap); 85 public RGBZ(Bitmap image, DepthImage depthImage) { 89 bitmap = setAlphaChannel(preview, depthBitmap); 96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
BitmapWithMetadata.java | 20 import android.graphics.Bitmap; 24 * Encapsulates a Bitmap and some additional metadata. 28 public Bitmap bitmap; field in class:BitmapWithMetadata 31 public BitmapWithMetadata(Bitmap bitmap, int rotationDegrees) { 32 this.bitmap = bitmap;
|
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/ |
Utils.java | 19 import android.graphics.Bitmap; 28 public static Bitmap snapshot(DisplayMetrics metrics, Drawable drawable) { 31 Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888); local 32 Canvas canvas = new Canvas(bitmap); 35 return bitmap;
|
/external/e2fsprogs/lib/ext2fs/ |
bmap64.h | 2 * bmap64.h --- 64-bit bitmap structure 70 void (*free_bmap)(ext2fs_generic_bitmap bitmap); 73 errcode_t (*resize_bmap)(ext2fs_generic_bitmap bitmap, 77 int (*mark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg); 78 int (*unmark_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg); 79 int (*test_bmap)(ext2fs_generic_bitmap bitmap, __u64 arg); 80 void (*mark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg, 82 void (*unmark_bmap_extent)(ext2fs_generic_bitmap bitmap, __u64 arg, 84 int (*test_clear_bmap_extent)(ext2fs_generic_bitmap bitmap, 86 errcode_t (*set_bmap_range)(ext2fs_generic_bitmap bitmap, [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
UploadedTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 29 // UploadedTextures use a Bitmap for the content of the texture. 31 // Subclasses should implement onGetBitmap() to provide the Bitmap and 32 // implement onFreeBitmap(mBitmap) which will be called when the Bitmap 47 private static HashMap<BorderKey, Bitmap> sBorderLines = 48 new HashMap<BorderKey, Bitmap>(); 62 protected Bitmap mBitmap; 118 private static Bitmap getBorderLine( 124 Bitmap bitmap = sBorderLines.get(key) local 129 sBorderLines.put(key.clone(), bitmap); local 193 Bitmap bitmap = getBitmap(); local 212 Bitmap bitmap = getBitmap(); local [all...] |