/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapTest.java | 3 import android.graphics.Bitmap; 4 import android.graphics.Bitmap.Config; 24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); 25 shadowOf(originalBitmap).appendDescription("Original bitmap"); 26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); 27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); 34 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888) local 40 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 55 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
BitmapFactoryTest.java | 3 import android.graphics.Bitmap; 22 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image); local 23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); 24 assertEquals(100, bitmap.getWidth()); 25 assertEquals(100, bitmap.getHeight()); 31 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, opts); local 32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()) 41 Bitmap bitmap = BitmapFactory.decodeFile("\/some\/file.jpg"); local 50 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 60 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image); local 71 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, opts); local 83 Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an_image, options); local 91 Bitmap bitmap = BitmapFactory.decodeFile("\/some\/file.jpg"); local 111 Bitmap bitmap = MediaStore.Images.Media.getBitmap(Robolectric.application.getContentResolver(), Uri.parse("content:\/path")); local 122 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local [all...] |
/frameworks/support/compat/java/android/support/v4/graphics/ |
BitmapCompat.java | 19 import android.graphics.Bitmap; 23 * Helper for accessing features in {@link android.graphics.Bitmap} 28 public boolean hasMipMap(Bitmap bitmap) { 32 public void setHasMipMap(Bitmap bitmap, boolean hasMipMap) { 35 public int getAllocationByteCount(Bitmap bitmap) { 36 return bitmap.getByteCount(); 43 public boolean hasMipMap(Bitmap bitmap) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.CompressFormat; 28 import android.graphics.Bitmap.Config; 70 private Bitmap mBitmap; 115 mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); 116 Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false); local 117 WidgetTestUtils.assertEquals(mBitmap, bitmap); 127 Bitmap srcBitmap = Bitmap.createBitmap(1, 1, src) 184 Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), local 204 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); local 387 Bitmap bitmap; local 417 Bitmap bitmap; local 438 Bitmap bitmap = Bitmap.createBitmap(10, 10, Config.ARGB_8888); local 697 Bitmap bitmap = Bitmap.createBitmap(10, 10, fromConfig); local 984 Bitmap bitmap = Bitmap.createBitmap(1, 1, config); local 1004 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1025 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1052 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1065 Bitmap bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); local 1292 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1298 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1314 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1320 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1326 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1332 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1338 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1344 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1350 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, HARDWARE_OPTIONS); local 1356 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, HARDWARE_OPTIONS); local 1372 Bitmap bitmap = Bitmap.createBitmap(10, 20, Config.RGB_565); local 1443 Bitmap bitmap = Bitmap.createBitmap(10, 20, Config.RGB_565); local [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
AttributeStrategy.java | 3 import android.graphics.Bitmap; 8 * A strategy for reusing bitmaps that requires any returned bitmap's dimensions to exactly match those request. 12 private final GroupedLinkedMap<Key, Bitmap> groupedMap = new GroupedLinkedMap<Key, Bitmap>(); 14 public void put(Bitmap bitmap) { 15 final Key key = keyPool.get(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig()); 17 groupedMap.put(key, bitmap); [all...] |
BitmapPoolAdapter.java | 3 import android.graphics.Bitmap; 7 * {@link android.graphics.Bitmap Bitmap}s added to it and always returns {@code null} from get. 21 public boolean put(Bitmap bitmap) { 26 public Bitmap get(int width, int height, Bitmap.Config config) { 31 public Bitmap getDirty(int width, int height, Bitmap.Config config) {
|
/external/openssh/ |
bitmap.h | 24 struct bitmap; 26 /* Allocate a new bitmap. Returns NULL on allocation failure. */ 27 struct bitmap *bitmap_new(void); 29 /* Free a bitmap */ 30 void bitmap_free(struct bitmap *b); 32 /* Zero an existing bitmap */ 33 void bitmap_zero(struct bitmap *b); 35 /* Test whether a bit is set in a bitmap. */ 36 int bitmap_test_bit(struct bitmap *b, u_int n); 38 /* Set a bit in a bitmap. Returns 0 on success or -1 on error * [all...] |
/external/skia/gm/ |
overdrawcolorfilter.cpp | 12 static inline void set_bitmap(SkBitmap* bitmap, uint8_t alpha) { 13 for (int y = 0; y < bitmap->height(); y++) { 14 for (int x = 0; x < bitmap->width(); x++) { 15 uint8_t* addr = bitmap->getAddr8(x, y); 20 bitmap->notifyPixelsChanged(); 46 SkBitmap bitmap; variable 47 bitmap.allocPixels(info); 48 set_bitmap(&bitmap, 0); 49 canvas->drawBitmap(bitmap, 0, 0, &paint); 50 set_bitmap(&bitmap, 1) [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLUtils.java | 19 import android.graphics.Bitmap; 36 * return the internal format as defined by OpenGL ES of the supplied bitmap. 37 * @param bitmap 38 * @return the internal format of the bitmap. 40 public static int getInternalFormat(Bitmap bitmap) { 41 if (bitmap == null) { 42 throw new NullPointerException("getInternalFormat can't be used with a null Bitmap"); 44 if (bitmap.isRecycled()) { 45 throw new IllegalArgumentException("bitmap is recycled") [all...] |
/external/e2fsprogs/lib/ext2fs/ |
gen_bitmap.c | 2 * gen_bitmap.c --- Generic (32-bit) bitmap routines 37 char * bitmap; member in struct:ext2fs_struct_generic_bitmap 56 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 60 if (bitmap->description) 61 com_err(0, bitmap->base_error_code+code, 62 "#%lu for %s", arg, bitmap->description); 64 com_err(0, bitmap->base_error_code + code, "#%lu", arg); 68 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) 70 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) | 82 ext2fs_generic_bitmap bitmap; local [all...] |
bitops.h | 2 * bitops.h --- Bitmap frobbing code. The byte swapping routines are 44 * EXT2FS bitmap manipulation routines. 55 extern void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 67 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 68 extern int ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 70 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 72 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 73 extern int ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, 75 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 77 extern void ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, [all...] |
/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();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterNegative.java | 3 import android.graphics.Bitmap; 26 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h); 34 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 35 int w = bitmap.getWidth(); 36 int h = bitmap.getHeight(); 37 nativeApplyFilter(bitmap, w, h); 38 return bitmap; [all...] |
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
BitmapTexture.java | 19 import android.graphics.Bitmap; 23 // BitmapTexture is a texture whose content is specified by a fixed Bitmap. 25 // The texture does not own the Bitmap. The user should make sure the Bitmap 27 // does not free the Bitmap. 29 protected Bitmap mContentBitmap; 31 public BitmapTexture(Bitmap bitmap) { 33 Utils.assertTrue(bitmap != null && !bitmap.isRecycled()) [all...] |
/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...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
BitmapEncoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 14 * An {@link com.bumptech.glide.load.ResourceEncoder} that writes {@link android.graphics.Bitmap}s to 18 * {@link android.graphics.Bitmap}s that return true from {@link android.graphics.Bitmap#hasAlpha()}} are written 19 * using {@link android.graphics.Bitmap.CompressFormat#PNG} to preserve alpha and all other bitmaps are written 20 * using {@link android.graphics.Bitmap.CompressFormat#JPEG}. 23 * @see android.graphics.Bitmap#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream) 25 public class BitmapEncoder implements ResourceEncoder<Bitmap> { 42 final Bitmap bitmap = resource.get(); local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapShader.java | 22 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 31 public Bitmap mBitmap; 37 * Call this to create a new shader that will draw with a bitmap. 39 * @param bitmap The bitmap to use inside the shader 40 * @param tileX The tiling mode for x to draw the bitmap in. 41 * @param tileY The tiling mode for y to draw the bitmap in. 43 public BitmapShader(@NonNull Bitmap bitmap, @NonNull TileMode tileX, @NonNull TileMode tileY) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
BitmapCache.java | 19 import android.graphics.Bitmap; 31 private HashMap<Long, ArrayList<WeakReference<Bitmap>>> 32 mBitmapCache = new HashMap<Long, ArrayList<WeakReference<Bitmap>>>(); 55 Bitmap bitmap; field in class:BitmapCache.BitmapTracking 61 private void track(Bitmap bitmap, int type) { 64 if (tracking.bitmap == bitmap) { 65 Log.e(LOGTAG, "giving a bitmap already given!!!") 125 Bitmap bitmap = buffer.getBitmap(); local 185 Bitmap bitmap = null; local 207 Bitmap bitmap = getBitmap(source.getWidth(), source.getHeight(), type); local [all...] |
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/ |
IconCompatTest.java | 25 import android.graphics.Bitmap; 49 private void verifyClippedCircle(Bitmap bitmap, int fillColor, int size) { 50 assertEquals(size, bitmap.getHeight()); 51 assertEquals(bitmap.getWidth(), bitmap.getHeight()); 52 assertEquals(fillColor, bitmap.getPixel(size / 2, size / 2)); 54 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, 0)); 55 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, size - 1)); 56 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, 0)) 70 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); local 81 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); local 91 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); local 104 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); local 121 Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); local [all...] |
/external/pdfium/core/fpdfapi/render/ |
fpdf_render_loadimage_embeddertest.cpp | 16 FPDF_BITMAP bitmap = RenderPage(page); local 17 CompareBitmap(bitmap, 612, 792, "a14d7ee573c1b2456d7bf6b7762823cf"); 18 FPDFBitmap_Destroy(bitmap); 27 FPDF_BITMAP bitmap = RenderPage(page); local 28 CompareBitmap(bitmap, 24, 24, "dc0ea1b743c2edb22c597cadc8537f7b"); 29 FPDFBitmap_Destroy(bitmap); 38 FPDF_BITMAP bitmap = RenderPage(page); local 39 CompareBitmap(bitmap, 749, 749, "b9e75190cdc5edf0069a408744ca07dc"); 40 FPDFBitmap_Destroy(bitmap);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
CanvasTexture.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 24 // The subclasses should override onDraw() to draw on the bitmap. 37 protected Bitmap onGetBitmap() { 38 Bitmap bitmap = Bitmap.createBitmap(mWidth, mHeight, mConfig); local 39 mCanvas = new Canvas(bitmap); 40 onDraw(mCanvas, bitmap); 41 return bitmap; [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
BitmapSerializeUtils.java | 19 import android.graphics.Bitmap; 24 * use case of having the same bitmap on both ends and just 38 * Reads a bitmap pixels from a file descriptor. 40 * @param bitmap A bitmap whose pixels to populate. 43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { 44 nativeReadBitmapPixels(bitmap, source.getFd()); 48 * Writes a bitmap pixels to a file descriptor. 50 * @param bitmap The bitmap [all...] |
/art/runtime/gc/accounting/ |
heap_bitmap.cc | 30 CHECK(it != continuous_space_bitmaps_.end()) << " continuous space bitmap " << old_bitmap 38 CHECK(it != large_object_bitmaps_.end()) << " large object bitmap " << old_bitmap 43 void HeapBitmap::AddContinuousSpaceBitmap(accounting::ContinuousSpaceBitmap* bitmap) { 44 DCHECK(bitmap != nullptr); 45 // Check that there is no bitmap overlap. 47 CHECK(bitmap->HeapBegin() >= cur_bitmap->HeapLimit() || 48 bitmap->HeapLimit() <= cur_bitmap->HeapBegin()) 49 << "Bitmap " << bitmap->Dump() << " overlaps with existing bitmap " [all...] |
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
UriBitmap.java | 18 import android.graphics.Bitmap; 30 private final Bitmap mBitmap; 34 private UriBitmap(Bitmap bitmap, Uri uri, File tempFile) { 35 mBitmap = bitmap; 40 public Bitmap getBitmap() { 49 * @return an instance encapsulating a sample {@link Bitmap} and a {@link Uri} pointing to it 52 Bitmap bitmap = generateSampleBitmap(); local 54 Uri uri = bitmapToUri(bitmap, tempFile) 59 Bitmap bitmap = Bitmap.createBitmap(15, 15, Bitmap.Config.ARGB_8888); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
BitmapTileProvider.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 30 private final Bitmap[] mMipmaps; 37 public BitmapTileProvider(Bitmap bitmap, int maxBackupSize) { 38 mImageWidth = bitmap.getWidth(); 39 mImageHeight = bitmap.getHeight(); 40 ArrayList<Bitmap> list = new ArrayList<Bitmap>(); 41 list.add(bitmap); [all...] |