| /developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /developers/build/prebuilts/gradle/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/ |
| Utils.java | 23 import android.graphics.Bitmap; 139 * Convert an asset into a bitmap object synchronously. Only call this 143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) { 155 // decode the stream into a bitmap 160 * Create a wearable asset from a bitmap. 162 public static Asset createAssetFromBitmap(Bitmap bitmap) { 163 if (bitmap != null) { 165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream) [all...] |
| /developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /developers/samples/android/wearable/wear/XYZTouristAttractions/Shared/src/main/java/com/example/android/xyztouristattractions/common/ |
| Utils.java | 23 import android.graphics.Bitmap; 139 * Convert an asset into a bitmap object synchronously. Only call this 143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) { 155 // decode the stream into a bitmap 160 * Create a wearable asset from a bitmap. 162 public static Asset createAssetFromBitmap(Bitmap bitmap) { 163 if (bitmap != null) { 165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream) [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| DensityActivity.java | 26 import android.graphics.Bitmap; 59 addLabelToRoot(root, "Prescaled bitmap in drawable"); 66 addLabelToRoot(root, "Autoscaled bitmap in drawable"); 88 addLabelToRoot(root, "Prescaled bitmap"); 95 addLabelToRoot(root, "Autoscaled bitmap"); 135 Bitmap bitmap; local 136 bitmap = loadAndPrintDpi(resource, scale); 140 final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap); 161 Bitmap bitmap local 185 Bitmap bitmap; local [all...] |
| /development/samples/HelloEffects/src/com/example/android/mediafx/ |
| HelloEffects.java | 20 import android.graphics.Bitmap; 74 // Load input bitmap 75 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), local 77 mImageWidth = bitmap.getWidth(); 78 mImageHeight = bitmap.getHeight(); 83 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 246 // if no effect is chosen, just render the original bitmap
|
| /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
| AlbumArtCache.java | 19 import android.graphics.Bitmap; 48 private final LruCache<String, Bitmap[]> mCache; 61 mCache = new LruCache<String, Bitmap[]>(maxSize) { 63 protected int sizeOf(String key, Bitmap[] value) { 70 public Bitmap getBigImage(String artUrl) { 71 Bitmap[] result = mCache.get(artUrl); 75 public Bitmap getIconImage(String artUrl) { 76 Bitmap[] result = mCache.get(artUrl); 83 // requests and bitmap rescales. For production-level apps, we recommend you use 85 Bitmap[] bitmap = mCache.get(artUrl) local 98 Bitmap bitmap = BitmapHelper.fetchAndRescaleBitmap(artUrl, local [all...] |
| /development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
| MediaEffectsFragment.java | 19 import android.graphics.Bitmap; 134 // Load input bitmap 135 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.puppy); local 136 mImageWidth = bitmap.getWidth(); 137 mImageHeight = bitmap.getHeight(); 142 GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0); 279 // if no effect is chosen, just render the original bitmap
|
| /development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/ |
| PdfRendererBasicFragment.java | 22 import android.graphics.Bitmap; 40 * pages. We use a {@link android.graphics.pdf.PdfRenderer} to render PDF pages as {@link android.graphics.Bitmap}s. 70 * {@link android.widget.ImageView} that shows a PDF page as a {@link android.graphics.Bitmap} 194 // Important: the destination bitmap must be ARGB (not RGB). 195 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), local 196 Bitmap.Config.ARGB_8888); 197 // Here, we render the page onto the Bitmap. 201 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY) [all...] |
| /development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/ |
| Utils.java | 23 import android.graphics.Bitmap; 139 * Convert an asset into a bitmap object synchronously. Only call this 143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) { 155 // decode the stream into a bitmap 160 * Create a wearable asset from a bitmap. 162 public static Asset createAssetFromBitmap(Bitmap bitmap) { 163 if (bitmap != null) { 165 bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream) [all...] |
| /development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
| PictureDetailsActivity.java | 22 import android.graphics.Bitmap; 80 Bitmap bitmap = BitmapUtils.getBitmap(getResources(), local 89 mBitmapDrawable = new BitmapDrawable(getResources(), bitmap);
|
| /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
| CustomArrayAdapter.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 104 Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), local 108 imgView.setImageBitmap(CustomArrayAdapter.getCroppedBitmap(bitmap)); 114 * Returns a circular cropped version of the bitmap passed in. 116 public static Bitmap getCroppedBitmap(Bitmap bitmap) { 117 Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight() [all...] |
| InsertionListView.java | 28 import android.graphics.Bitmap; 103 * Stores the starting bounds and the corresponding bitmap drawables of every 160 Bitmap bitmap = CustomArrayAdapter.getCroppedBitmap(BitmapFactory 163 copyImgView.setImageBitmap(bitmap); 318 /** Returns a bitmap drawable showing a screenshot of the view passed in. */ 320 Bitmap bitmap = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888) local [all...] |
| /device/linaro/bootloader/arm-trusted-firmware/drivers/arm/gic/v3/ |
| gicv3_main.c | 158 unsigned int bitmap = 0; local 186 bitmap = gicv3_secure_spis_configure_props( 201 bitmap |= CTLR_ENABLE_G1S_BIT; 210 bitmap |= CTLR_ENABLE_G0_BIT; 216 gicd_set_ctlr(gicv3_driver_data->gicd_base, bitmap, RWP_TRUE); [all...] |
| /external/ImageMagick/coders/ |
| emf.c | 567 Initialize the bitmap header info. 600 Initialize the bitmap to the image background color. 661 Gdiplus::Bitmap 662 *bitmap; 769 bitmap=new Gdiplus::Bitmap((INT) image->columns,(INT) image->rows, 771 graphics=Gdiplus::Graphics::FromImage(bitmap); 785 if (bitmap->LockBits(&rect,Gdiplus::ImageLockModeRead,PixelFormat32bppARGB, 788 delete bitmap; 816 bitmap->UnlockBits(&bitmap_data) 658 *bitmap; local 784 delete bitmap; local 813 delete bitmap; local [all...] |
| /external/e2fsprogs/e2fsck/ |
| pass5.c | 96 /* If bitmap is dirty from being fixed, checksum will be corrected */ 127 * Fixing one checksum will rewrite all of them. The bitmap 150 /* If bitmap is dirty from being fixed, checksum will be corrected */ 183 * Fixing one checksum will rewrite all of them. The bitmap 321 int actual, bitmap; local 330 "actual bitmap buffer"); 332 "bitmap block buffer"); 383 * Try to optimize pass5 by extracting a bitmap block 417 bitmap = actual; 419 bitmap = ext2fs_fast_test_block_bitmap2(fs->block_map, i) 574 int actual, bitmap; local [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...] |
| gen_bitmap64.c | 51 * new-style interfaces will support either type of bitmap, although 53 * new-style interface and the new-style bitmap are used. 55 * For example, the new bitmap interfaces will check the structure 56 * magic numbers and so will be able to detect old-stype bitmap. If 57 * they see an old-style bitmap, they will pass it to the gen_bitmap.c 67 * loop detections in pass 3, the bitmap will *always* be sparse, so 71 static void warn_bitmap(ext2fs_generic_bitmap bitmap, 75 if (bitmap->description) 76 com_err(0, bitmap->base_error_code+code, 77 "#%llu for %s", arg, bitmap->description) 96 ext2fs_generic_bitmap bitmap; local [all...] |
| /external/e2fsprogs/lib/support/ |
| quotaio_tree.c | 549 static int report_block(struct dquot *dquot, unsigned int blk, char *bitmap, 563 set_bit(bitmap, blk); 595 char *bitmap, 611 if (blk && !get_bit(bitmap, blk)) 612 entries += report_block(dquot, blk, bitmap, 621 bitmap, process_dquot, 645 char *bitmap; local 654 if (ext2fs_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) { 658 v2info->dqi_used_entries = report_tree(dquot, QT_TREEOFF, 0, bitmap, 660 v2info->dqi_data_blocks = find_set_bits(bitmap, info->dqi_blocks) [all...] |
| /external/f2fs-tools/fsck/ |
| quotaio_tree.c | 552 static int report_block(struct dquot *dquot, unsigned int blk, char *bitmap, 566 set_bit(bitmap, blk); 602 char *bitmap, int *entries, 623 if (!get_bit(bitmap, blk)) 624 *entries += report_block(dquot, blk, bitmap, 627 if (report_tree(dquot, blk, depth + 1, bitmap, entries, 654 char *bitmap = NULL; local 662 if (quota_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) 664 if (report_tree(dquot, QT_TREEOFF, 0, bitmap, &entries, process_dquot, 669 v2info->dqi_data_blocks = find_set_bits(bitmap, info->dqi_blocks) [all...] |
| /external/freetype/src/base/ |
| ftbitmap.c | 124 /* take care of bitmap flow */ 146 /* Enlarge `bitmap' horizontally and vertically by `xpixels' */ 151 FT_Bitmap* bitmap, 163 width = bitmap->width; 164 height = bitmap->rows; 165 pitch = (unsigned int)FT_ABS( bitmap->pitch ); 167 switch ( bitmap->pixel_mode ) 201 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 202 FT_Byte* end = bitmap->buffer + pitch; 227 if ( FT_QALLOC_MULT( buffer, bitmap->rows + ypixels, new_pitch ) 792 FT_Bitmap bitmap; local [all...] |
| /external/freetype/src/bdf/ |
| bdfdrivr.c | 784 FT_Bitmap* bitmap = &slot->bitmap; local 811 /* slot, bitmap => freetype, glyph => bdflib */ 814 bitmap->rows = glyph.bbx.height; 815 bitmap->width = glyph.bbx.width; 819 bitmap->pitch = (int)glyph.bpr; /* same as FT_Bitmap.pitch */ 821 /* note: we don't allocate a new array to hold the bitmap; */ 823 ft_glyphslot_set_bitmap( slot, glyph.bitmap ); 828 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 831 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY2 [all...] |
| /external/freetype/src/pcf/ |
| pcfdrivr.c | 494 FT_Bitmap* bitmap = &slot->bitmap; local 520 bitmap->rows = (unsigned int)( metric->ascent + 522 bitmap->width = (unsigned int)( metric->rightSideBearing - 524 bitmap->num_grays = 1; 525 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; 530 bitmap->pitch = (int)( ( bitmap->width + 7 ) >> 3 ); 534 bitmap->pitch = (int)( ( ( bitmap->width + 15 ) >> 4 ) << 1 ) [all...] |
| /external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/ |
| BitmapPreFillRunner.java | 3 import android.graphics.Bitmap; 12 import com.bumptech.glide.load.resource.bitmap.BitmapResource; 22 * A class that allocates {@link android.graphics.Bitmap Bitmaps} to make sure that the 26 * where a high percentage of {@link Bitmap} allocations trigger a stop the world GC. We try to detect whether or not a 85 * Attempts to allocate {@link android.graphics.Bitmap}s and returns {@code true} if there are more 86 * {@link android.graphics.Bitmap}s to allocate and {@code false} otherwise. 92 Bitmap bitmap = Bitmap.createBitmap(toAllocate.getWidth(), toAllocate.getHeight(), local 97 if (getFreeMemoryCacheBytes() >= Util.getBitmapByteSize(bitmap)) { [all...] |
| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| Downsampler.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 44 return "AT_LEAST.com.bumptech.glide.load.data.bitmap"; 61 return "AT_MOST.com.bumptech.glide.load.data.bitmap"; 76 return "NONE.com.bumptech.glide.load.data.bitmap"; 86 * Load the image for the given InputStream. If a recycled Bitmap whose dimensions exactly match those of the image 90 * Note - this method will throw an exception of a Bitmap with dimensions not matching 98 * @return A new bitmap containing the image from the given InputStream, or recycle if recycle is not null. 103 public Bitmap decode(InputStream is, BitmapPool pool, int outWidth, int outHeight, DecodeFormat decodeFormat) { 140 final Bitmap downsampled [all...] |