/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/ |
TextCardView.java | 18 import android.graphics.Bitmap; 47 Bitmap bitmap = BitmapFactory local 49 RoundedBitmapDrawable drawable = RoundedBitmapDrawableFactory.create(getContext().getResources(), bitmap); 52 Math.max(bitmap.getWidth(), bitmap.getHeight()) / 2.0f);
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
BitmapUtils.java | 24 import android.graphics.Bitmap; 52 static HashMap<Integer, Bitmap> sBitmapResourceMap = new HashMap<Integer, Bitmap>(); 63 Bitmap bitmap = getBitmap(resources, resourceId); local 64 Bitmap thumbnail = getThumbnail(bitmap, 200); 72 * Utility method to get bitmap from cache or, if not there, load it 75 static Bitmap getBitmap(Resources resources, int resourceId) { 76 Bitmap bitmap = sBitmapResourceMap.get(resourceId) local [all...] |
/external/freetype/src/base/ |
ftglyph.c | 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_Init( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); 117 FT_Bitmap_Done( library, &glyph->bitmap ); 129 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width << 6 ); 131 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows << 6 ) 516 FT_BitmapGlyph bitmap = NULL; local [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
VideoBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 13 * An {@link com.bumptech.glide.load.resource.bitmap.BitmapDecoder} that can decode a thumbnail frame 14 * {@link Bitmap} from a {@link android.os.ParcelFileDescriptor} containing a video. 31 public Bitmap decode(ParcelFileDescriptor resource, BitmapPool bitmapPool, int outWidth, int outHeight, 36 Bitmap result = mediaMetadataRetriever.getFrameAtTime(); 44 return "VideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap";
|
/external/libvncserver/test/ |
cursortest.c | 145 char bitmap[]= local 179 c=rfbMakeXCursor(w,h,bitmap,bitmap); 200 char bitmap[]= local 217 /* c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); */ 218 c=rfbMakeXCursor(w,h,bitmap,bitmap);
|
/external/pdfium/third_party/freetype/src/base/ |
ftglyph.c | 80 glyph->bitmap = slot->bitmap; 85 FT_Bitmap_Init( &glyph->bitmap ); 86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); 106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); 117 FT_Bitmap_Done( library, &glyph->bitmap ); 129 cbox->xMax = cbox->xMin + (FT_Pos)( glyph->bitmap.width << 6 ); 131 cbox->yMin = cbox->yMax - (FT_Pos)( glyph->bitmap.rows << 6 ) 516 FT_BitmapGlyph bitmap = NULL; local [all...] |
/external/pdfium/xfa/src/fxbarcode/ |
BC_BufferedImageLuminanceSource.cpp | 31 CFX_DIBitmap* bitmap = NULL;
local 41 bitmap = new CFX_DIBitmap;
42 bitmap->Create(pImageCodec->GetWidth(), pImageCodec->GetHeight(), FXDIB_Argb);
43 bitmap->Clear(FXARGB_MAKE(0xFF, 0xFF, 0xFF, 0xFF));
53 status = pImageCodec->StartDecode(bitmap, 0, 0, bitmap->GetWidth(),
54 bitmap->GetHeight(), 0, FALSE);
73 return bitmap;
81 if (bitmap) {
82 delete bitmap;
[all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapFactory.java | 4 import android.graphics.Bitmap; 28 public static Bitmap decodeResource(Resources res, int id) { 29 Bitmap bitmap = create("resource:" + getResourceName(id)); local 30 shadowOf(bitmap).setLoadedFromResourceId(id); 31 return bitmap; 35 public static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options) { 36 Bitmap bitmap = create("resource:" + getResourceName(id), options); local 37 shadowOf(bitmap).setLoadedFromResourceId(id) 70 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
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...] |
ImageViewTest.java | 4 import android.graphics.Bitmap; 34 Bitmap bitmap = BitmapFactory.decodeResource(resources, local 37 imageView.setImageBitmap(bitmap); 43 assertEquals("Bitmap for resource:drawable/an_image", 49 assertEquals("Bitmap for resource:drawable/an_image at (15,20)", 58 assertEquals("Bitmap for resource:drawable/an_image at (15,20)", 62 assertEquals("Bitmap for resource:drawable/an_image at (15,20)", 66 assertEquals("Bitmap for resource:drawable/an_image at (30,40)",
|
/external/skia/src/core/ |
SkPictureImageGenerator.cpp | 72 SkBitmap bitmap; local 73 if (!bitmap.installPixels(info, pixels, rowBytes)) { 77 bitmap.eraseColor(SK_ColorTRANSPARENT); 78 SkCanvas canvas(bitmap, SkSurfaceProps(0, kUnknown_SkPixelGeometry)); 110 SkBitmap bitmap; local 111 if (!bitmap.installPixels(scaledPixels)) { 115 bitmap.eraseColor(SK_ColorTRANSPARENT); 116 SkCanvas canvas(bitmap, SkSurfaceProps(0, kUnknown_SkPixelGeometry));
|
/external/skia/tests/ |
PathOpsThreadedCommon.h | 76 SkBitmap bitmap; local 77 fState.fBitmap = &bitmap;
|
/frameworks/base/core/jni/android/graphics/ |
BitmapRegionDecoder.cpp | 151 // Recycle a bitmap if possible. 152 android::Bitmap* recycledBitmap = nullptr; 157 ALOGW("Warning: Reusing an immutable bitmap as an image decoder target."); 168 // We are required to match the color type of the recycled bitmap. 178 SkBitmap bitmap; local 179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) { 185 env->SetIntField(options, gOptions_widthFieldID, bitmap.width()); 186 env->SetIntField(options, gOptions_heightFieldID, bitmap.height()); 194 // If we may have reused a bitmap, we need to indicate that the pixels have changed. 229 "(JIIIILandroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", [all...] |
/frameworks/base/services/core/jni/ |
com_android_server_AssetAtlasService.cpp | 67 SkBitmap bitmap; local 68 GraphicsJNI::getSkBitmap(env, bitmapHandle, &bitmap); 69 SkAutoLockPixels alp(bitmap); 71 // The goal of this method is to copy the bitmap into the GraphicBuffer 160 // Upload the content of the bitmap in the GraphicBuffer 161 glPixelStorei(GL_UNPACK_ALIGNMENT, bitmap.bytesPerPixel()); 162 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, bitmap.width(), bitmap.height(), 163 GL_RGBA, GL_UNSIGNED_BYTE, bitmap.getPixels()); 208 { "nUploadAtlas", "(Landroid/view/GraphicBuffer;Landroid/graphics/Bitmap;)Z" [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
BitmapsActivity.java | 21 import android.graphics.Bitmap; 56 private final Bitmap mBitmap1; 57 private final Bitmap mBitmap2; 66 Log.d("Bitmap", "mBitmap1.isMutable() = " + mBitmap1.isMutable()); 67 Log.d("Bitmap", "mBitmap2.isMutable() = " + mBitmap2.isMutable()); 71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); local 72 Log.d("Bitmap", "bitmap.isMutable() = " + bitmap.isMutable()) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
Exif.java | 17 package com.android.bitmap.util;
|
RectUtils.java | 17 package com.android.bitmap.util;
|
/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...] |
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
ImageLoaderTest.java | 19 import android.graphics.Bitmap; 53 Bitmap bitmap = Bitmap.createBitmap(1, 1, null); local 55 when(mImageCache.getBitmap(anyString())).thenReturn(bitmap); 57 Assert.assertSame(bitmap, ic.getBitmap());
|
ImageRequestTest.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config; 44 // bitmap creator survives as-is, and provideWidthAndHeightHints puts 130 Response<Bitmap> response = request.parseNetworkResponse(networkResponse); 133 Bitmap bitmap = response.result; local 134 assertNotNull(bitmap); 135 assertEquals(expectedWidth, bitmap.getWidth()); 136 assertEquals(expectedHeight, bitmap.getHeight()); 168 int.class, int.class, Bitmap.Config.class, Response.ErrorListener.class)) [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/state/ |
StateSavingPicture.java | 30 import android.graphics.Bitmap; 69 * a small sized image is returned as a Bitmap object in the extra 98 /** Inline the bitmap into capture intent result */ 99 final Bitmap bitmap = CameraUtil.makeBitmap( local 103 new Intent("inline-data").putExtra("data", bitmap)));
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageGetter.java | 24 import android.graphics.Bitmap; 32 * into memory and post a callback to display the resulting bitmap. 34 * Then proceed to load the full image bitmap. Three things can 44 * a callback to the UI thread to actually show the bitmap. 49 * bitmap on the floor. 53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, 104 final RotateBitmap bitmap, 111 mCB.imageLoaded(position, offset, bitmap, isThumb); 112 } else if (bitmap != null) { 113 bitmap.recycle() [all...] |
PhotoAppWidgetConfigure.java | 24 import android.graphics.Bitmap; 78 Bitmap bitmap = (Bitmap) data.getParcelableExtra("data"); local 81 if (helper.setPhoto(mAppWidgetId, bitmap)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ActionImage.java | 19 import android.graphics.Bitmap; 43 public Job<Bitmap> requestImage(int type) { 52 private class BitmapJob implements Job<Bitmap> { 60 public Bitmap run(JobContext jc) { 62 Bitmap bitmap = BitmapFactory.decodeResource(mApplication.getResources(), local 66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true) [all...] |
ImageCacheRequest.java | 19 import android.graphics.Bitmap; 28 abstract class ImageCacheRequest implements Job<Bitmap> { 53 public Bitmap run(JobContext jc) { 62 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 63 Bitmap bitmap; local 65 bitmap = DecodeUtils.decodeUsingPool(jc, 68 bitmap = DecodeUtils.decodeUsingPool(jc, 71 if (bitmap == null && !jc.isCancelled()) { 74 return bitmap; 79 Bitmap bitmap = onDecodeOriginal(jc, mType); local [all...] |