/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/ |
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...] |
/external/e2fsprogs/e2fsck/ |
pass5.c | 203 int actual, bitmap; local 218 "actual bitmap buffer"); 220 "bitmap block buffer"); 276 * Try to optimize pass5 by extracting a bitmap block 336 bitmap = 0; 347 bitmap = 1; 355 * When the compare data blocks in block bitmap 375 bitmap = 1; 380 bitmap = actual; 382 bitmap = ext2fs_fast_test_block_bitmap2(fs->block_map, i) 542 int actual, bitmap; local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
gen_bitmap.c | 2 * gen_bitmap.c --- Generic (32-bit) bitmap routines 36 char * bitmap; member in struct:ext2fs_struct_generic_bitmap 55 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 59 if (bitmap->description) 60 com_err(0, bitmap->base_error_code+code, 61 "#%lu for %s", arg, bitmap->description); 63 com_err(0, bitmap->base_error_code + code, "#%lu", arg); 67 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) 69 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) | 81 ext2fs_generic_bitmap bitmap; local [all...] |
gen_bitmap64.c | 50 * new-style interfaces will support either type of bitmap, although 52 * new-style interface and the new-style bitmap are used. 54 * For example, the new bitmap interfaces will check the structure 55 * magic numbers and so will be able to detect old-stype bitmap. If 56 * they see an old-style bitmap, they will pass it to the gen_bitmap.c 66 * loop detections in pass 3, the bitmap will *always* be sparse, so 70 static void warn_bitmap(ext2fs_generic_bitmap bitmap, 74 if (bitmap->description) 75 com_err(0, bitmap->base_error_code+code, 76 "#%llu for %s", arg, bitmap->description) 95 ext2fs_generic_bitmap bitmap; local [all...] |
/external/e2fsprogs/lib/quota/ |
quotaio_tree.c | 542 static int report_block(struct dquot *dquot, uint blk, char *bitmap, 556 set_bit(bitmap, blk); 587 static int report_tree(struct dquot *dquot, uint blk, int depth, char *bitmap, 603 if (blk && !get_bit(bitmap, blk)) 604 entries += report_block(dquot, blk, bitmap, 613 bitmap, process_dquot, 636 char *bitmap; local 645 if (ext2fs_get_memzero((info->dqi_blocks + 7) >> 3, &bitmap)) { 649 v2info->dqi_used_entries = report_tree(dquot, QT_TREEOFF, 0, bitmap, 651 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 = bitmap->pitch; 169 switch ( bitmap->pixel_mode ) 203 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 204 FT_Byte* end = bitmap->buffer + pitch; 229 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) 768 FT_Bitmap bitmap; local [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...] |
TransformationUtils.java | 1 package com.bumptech.glide.load.resource.bitmap; 4 import android.graphics.Bitmap; 27 * A potentially expensive operation to crop the given Bitmap so that it fills the given dimensions. This operation 28 * is significantly less expensive in terms of memory if a mutable Bitmap with the given dimensions is passed in 31 * @param recycled A mutable Bitmap with dimensions width and height that we can load the cropped portion of toCrop 33 * @param toCrop The Bitmap to resize. 34 * @param width The width in pixels of the final Bitmap. 35 * @param height The height in pixels of the final Bitmap. 36 * @return The resized Bitmap (will be recycled if recycled is not null). 38 public static Bitmap centerCrop(Bitmap recycled, Bitmap toCrop, int width, int height) [all...] |
/external/iputils/ |
ping_common.h | 100 bitmap_t bitmap[MAX_DUP_CHK / (sizeof(bitmap_t) * 8)]; member in struct:rcvd_table 106 #define A(bit) (rcvd_tbl.bitmap[(bit) >> BITMAP_SHIFT]) /* identify word in array */
|
/external/mesa3d/src/mesa/state_tracker/ |
st_program.h | 50 GLuint bitmap:1; /**< glBitmap variant? */ member in struct:st_fp_variant_key
|
/external/opencv3/3rdparty/openexr/IlmImf/ |
ImfPizCompressor.cpp | 78 unsigned char bitmap[BITMAP_SIZE], 83 bitmap[i] = 0; 86 bitmap[data[i] >> 3] |= (1 << (data[i] & 7)); 88 bitmap[0] &= ~1; // zero is not explicitly stored in 89 // the bitmap; we assume that the 96 if (bitmap[i]) 108 forwardLutFromBitmap (const unsigned char bitmap[BITMAP_SIZE], 115 if ((i == 0) || (bitmap[i >> 3] & (1 << (i & 7)))) 122 } // i.e. number of ones in bitmap minus 1 126 reverseLutFromBitmap (const unsigned char bitmap[BITMAP_SIZE] 423 AutoArray <unsigned char, BITMAP_SIZE> bitmap; local 547 AutoArray <unsigned char, BITMAP_SIZE> bitmap; local [all...] |
/external/pdfium/core/src/fxge/ge/ |
fx_ge_device.cpp | 245 CFX_DIBitmap bitmap, Backdrop; local 246 if (!CreateCompatibleBitmap(&bitmap, FXSYS_round(rect.Width() * fScaleX), 250 if (bitmap.HasAlpha()) { 251 bitmap.Clear(0); 252 Backdrop.Copy(&bitmap); 254 if (!m_pDeviceDriver->GetDIBits(&bitmap, rect.left, rect.top, NULL)) { 257 Backdrop.Copy(&bitmap); 260 bitmap_device.Attach(&bitmap, 0, FALSE, &Backdrop, TRUE); 274 return m_pDeviceDriver->SetDIBits(&bitmap, 0, &src_rect, rect.left, 304 CFX_DIBitmap bitmap; local [all...] |
/external/pdfium/testing/ |
embedder_test.cpp | 249 FPDF_BITMAP bitmap = FPDFBitmap_Create(width, height, alpha); local 251 FPDFBitmap_FillRect(bitmap, 0, 0, width, height, fill_color); 252 FPDF_RenderPageBitmap(bitmap, page, 0, 0, width, height, 0, 0); 253 FPDF_FFLDraw(form_handle_, bitmap, page, 0, 0, width, height, 0, 0); 254 return bitmap;
|
/external/pdfium/third_party/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 = bitmap->pitch; 169 switch ( bitmap->pixel_mode ) 203 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 ); 204 FT_Byte* end = bitmap->buffer + pitch; 229 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) 768 FT_Bitmap bitmap; local [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmap.java | 3 import android.graphics.Bitmap; 15 @Implements(Bitmap.class) 17 @RealObject private Bitmap realBitmap; 21 private Bitmap.Config config; 28 public boolean compress(Bitmap.CompressFormat format, int quality, OutputStream stream) { 39 public static Bitmap createBitmap(int width, int height, Bitmap.Config config) { 40 Bitmap scaledBitmap = Robolectric.newInstanceOf(Bitmap.class); 42 shadowBitmap.appendDescription("Bitmap (" + width + " x " + height + ")") 119 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
ShadowDrawable.java | 4 import android.graphics.Bitmap; 44 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 62 BitmapDrawable drawable = new BitmapDrawable(Robolectric.newInstanceOf(Bitmap.class)); 68 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 69 shadowOf(bitmap).setLoadedFromResourceId(resourceId); 70 BitmapDrawable drawable = new BitmapDrawable(bitmap);
|
/external/selinux/libsepol/src/ |
mls.c | 557 ebitmap_t bitmap; local 579 ebitmap_init(&bitmap); 592 rc = ebitmap_set_bit(&bitmap, 599 c->range.level[l].cat = bitmap;
|
/external/skia/bench/ |
BitmapBench.cpp | 76 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache 97 fName.set("bitmap"); 144 const SkBitmap& bitmap = fBitmap; variable 145 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2); 146 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2); 153 bitmap.notifyPixelsChanged(); 155 canvas->drawBitmap(bitmap, x, y, &paint);
|
/external/skia/fuzz/ |
fuzz.cpp | 108 static void dump_png(SkBitmap bitmap) { 110 SkImageEncoder::EncodeFile(FLAGS_dump[0], bitmap, SkImageEncoder::kPNG_Type, 100); 150 SkBitmap bitmap; local 155 if (!bitmap.tryAllocPixels(decodeInfo, &zeroFactory, colorTable.get())) { 163 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options, 188 void* dst = bitmap.getAddr(0, 0); 189 size_t rowBytes = bitmap.rowBytes(); 202 void* dstPtr = bitmap.getAddr(0, dstY); 206 codec->getScanlines(dstPtr, 1, bitmap.rowBytes()) 367 SkBitmap bitmap; local [all...] |
/external/skia/gm/ |
image_pict.cpp | 305 SkBitmap bitmap; local 306 cache->lockAsBitmap(&bitmap, nullptr); 307 canvas->drawBitmap(bitmap, x, y);
|
/external/skia/samplecode/ |
SampleColorFilter.cpp | 89 SkBitmap bitmap; local 90 bitmap.allocN32Pixels(n, n); 91 bitmap.eraseColor(SK_ColorTRANSPARENT); 93 SkCanvas canvas(bitmap); 109 return bitmap;
|
SamplePath.cpp | 78 SkBitmap bitmap; local 79 bitmap.allocN32Pixels(300, 200); 81 SkCanvas canvas(bitmap);
|
SampleRegion.cpp | 23 SkBitmap bitmap; local 24 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2)); 25 bitmap.eraseColor(SK_ColorTRANSPARENT); 36 SkCanvas c(bitmap); 46 canvas->drawBitmap(bitmap, 0, 0, nullptr); 51 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, nullptr);
|
/external/skia/src/core/ |
SkBitmapDevice.cpp | 70 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) 72 , fBitmap(bitmap) { 73 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr)); 80 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps) 82 , fBitmap(bitmap) { 83 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr)); 94 SkBitmap bitmap; local 97 if (!bitmap.setInfo(info)) { 101 // If this bitmap is opaque, we don't have any sensible default color, 103 if (!bitmap.tryAllocPixels(info)) [all...] |