| /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
| ImageVideoBitmapDecoder.java | 1 package com.bumptech.glide.load.resource.bitmap; 3 import android.graphics.Bitmap; 20 public class ImageVideoBitmapDecoder implements ResourceDecoder<ImageVideoWrapper, Bitmap> { 22 private final ResourceDecoder<InputStream, Bitmap> streamDecoder; 23 private final ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder; 25 public ImageVideoBitmapDecoder(ResourceDecoder<InputStream, Bitmap> streamDecoder, 26 ResourceDecoder<ParcelFileDescriptor, Bitmap> fileDescriptorDecoder) { 34 public Resource<Bitmap> decode(ImageVideoWrapper source, int width, int height) throws IOException { 35 Resource<Bitmap> result = null; 58 return "ImageVideoBitmapDecoder.com.bumptech.glide.load.resource.bitmap"; [all...] |
| /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
| ShadowBitmapDrawable.java | 6 import android.graphics.Bitmap; 28 * Draws the contained bitmap onto the canvas at 0,0 with a default {@code Paint} 41 Bitmap bitmap = realBitmapDrawable.getBitmap(); local 42 BitmapDrawable real = ReflectionHelpers.callConstructor(BitmapDrawable.class, ClassParameter.from(Bitmap.class, bitmap)); 57 * your tests assert that the bitmap is correct without having to actually load the bitmap.
|
| /external/skia/bench/ |
| ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.allocPixels(SkImageInfo::MakeN32Premul(kWindowSize, kWindowSize)); 51 canvas->readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(),
|
| /external/skia/gm/ |
| bitmapshader.cpp | 71 // draw the shader with a bitmap mask 82 // clear the shader, colorized by a solid color with a bitmap mask 111 SkBitmap bitmap; local 122 bitmap.setInfo(SkImageInfo::MakeA8(bitmapW, bitmapH), bitmapW); 127 bitmap.setPixels(pixels); 129 paint.setShader(SkShader::MakeBitmapShader(bitmap,
|
| /external/skia/samplecode/ |
| SampleAARects.cpp | 15 SkBitmap bitmap; local 16 bitmap.allocN32Pixels(n, n); 17 bitmap.eraseColor(SK_ColorGREEN); 19 SkCanvas canvas(bitmap); 33 return bitmap;
|
| /external/skia/src/gpu/effects/ |
| GrRectBlurEffect.h | 37 SkBitmap bitmap; local 38 if (!bitmap.tryAllocPixels(ii)) { 42 SkBlurMask::ComputeBlurProfile(bitmap.getAddr8(0, 0), profileSize, sigma); 43 bitmap.setImmutable(); 45 sk_sp<SkImage> image = SkImage::MakeFromBitmap(bitmap);
|
| /external/skia/tests/ |
| PathOpsThreadedCommon.h | 84 SkBitmap bitmap; local 85 fState.fBitmap = &bitmap;
|
| /external/skqp/bench/ |
| ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.allocPixels(SkImageInfo::MakeN32Premul(kWindowSize, kWindowSize)); 51 canvas->readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(),
|
| /external/skqp/gm/ |
| bitmapshader.cpp | 71 // draw the shader with a bitmap mask 82 // clear the shader, colorized by a solid color with a bitmap mask 111 SkBitmap bitmap; local 122 bitmap.setInfo(SkImageInfo::MakeA8(bitmapW, bitmapH), bitmapW); 127 bitmap.setPixels(pixels); 129 paint.setShader(SkShader::MakeBitmapShader(bitmap,
|
| deferredtextureimage.cpp | 56 SkBitmap bitmap; local 57 if (!GetResourceAsBitmap(resourceName, &bitmap)) { 61 sk_sp<SkImage> decodedImage = SkImage::MakeFromBitmap(bitmap); 179 SkBitmap bitmap; local 180 if (!GetResourceAsBitmap("images/mandrill_512.png", &bitmap)) { 184 sk_sp<SkImage> decodedImage = SkImage::MakeFromBitmap(bitmap); 210 SkBitmap bitmap; local 211 if (!GetResourceAsBitmap("images/color_wheel.gif", &bitmap)) { 215 sk_sp<SkImage> decodedImage = SkImage::MakeFromBitmap(bitmap);
|
| /external/skqp/samplecode/ |
| SampleAARects.cpp | 15 SkBitmap bitmap; local 16 bitmap.allocN32Pixels(n, n); 17 bitmap.eraseColor(SK_ColorGREEN); 19 SkCanvas canvas(bitmap); 33 return bitmap;
|
| /external/skqp/tests/ |
| PathOpsThreadedCommon.h | 84 SkBitmap bitmap; local 85 fState.fBitmap = &bitmap;
|
| /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...] |
| /frameworks/base/core/java/android/text/style/ |
| ImageSpan.java | 23 import android.graphics.Bitmap; 37 * <li>{@link Bitmap} - see {@link #ImageSpan(Context, Bitmap)} and 38 * {@link #ImageSpan(Context, Bitmap, int)} 71 * @deprecated Use {@link #ImageSpan(Context, Bitmap)} instead. 74 public ImageSpan(@NonNull Bitmap b) { 79 * @deprecated Use {@link #ImageSpan(Context, Bitmap, int)} instead. 82 public ImageSpan(@NonNull Bitmap b, int verticalAlignment) { 87 * Constructs an {@link ImageSpan} from a {@link Context} and a {@link Bitmap} with the default 90 * @param context context used to create a drawable from {@param bitmap} based on the displa 231 Bitmap bitmap = null; local [all...] |
| /frameworks/base/core/java/com/android/internal/util/ |
| UserIcons.java | 20 import android.graphics.Bitmap; 45 * Converts a given drawable to a bitmap. 47 public static Bitmap convertToBitmap(Drawable icon) { 53 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); local 54 Canvas canvas = new Canvas(bitmap); 57 return bitmap;
|
| /frameworks/base/core/java/com/android/internal/widget/ |
| LocalImageResolver.java | 22 import android.graphics.Bitmap; 57 Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions); local 59 return new BitmapDrawable(context.getResources(), bitmap);
|
| /frameworks/base/libs/hwui/tests/unit/ |
| RecordingCanvasTests.cpp | 277 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(25, 25)); 293 canvas.drawBitmap(*bitmap, 0, 0, nullptr); 743 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(100, 100)); 746 [&bitmap](RecordingCanvas& canvas) { canvas.drawBitmap(*bitmap, 0, 0, nullptr); }); 752 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local 754 100, 100, [&bitmap](RecordingCanvas& canvas) 771 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local [all...] |
| SkiaCanvasTests.cpp | 87 sk_sp<Bitmap> adobeBitmap = Bitmap::allocateHeapBitmap(adobeInfo); 93 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(info); local 95 bitmap->getSkBitmap(&skBitmap); 105 adobeSkCanvas.drawBitmap(*bitmap, 0, 0, nullptr); 124 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(info) local [all...] |
| /frameworks/base/services/core/java/com/android/server/wm/ |
| TaskSnapshotLoader.java | 24 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 79 final Bitmap bitmap = BitmapFactory.decodeFile(bitmapFile.getPath(), options); local 80 if (bitmap == null) { 81 Slog.w(TAG, "Failed to load bitmap: " + bitmapFile.getPath()); 84 final GraphicBuffer buffer = bitmap.createGraphicBufferHandle(); 86 Slog.w(TAG, "Failed to retrieve gralloc buffer for bitmap: "
|
| /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
| ExposureFilterTest.java | 20 import android.graphics.Bitmap; 52 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 53 image.setBitmap(bitmap);
|
| /frameworks/opt/bitmap/src/com/android/bitmap/util/ |
| BitmapUtils.java | 17 package com.android.bitmap.util;
|
| /frameworks/support/compat/src/androidTest/java/androidx/core/view/ |
| PointerIconCompatTest.java | 23 import android.graphics.Bitmap; 106 Bitmap bitmap = Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888); local 107 ViewCompat.setPointerIcon(mView, PointerIconCompat.create(bitmap, 0, 0));
|
| /packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
| IconFactory.java | 21 import android.graphics.Bitmap; 117 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 118 return Icon.createWithAdaptiveBitmap(bitmap); 132 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local 133 drawable = createCircularDrawable(bitmap); 142 private Drawable createCircularDrawable(@NonNull Bitmap bitmap) { 144 RoundedBitmapDrawableFactory.create(context.getResources(), bitmap); [all...] |
| /packages/apps/TV/src/com/android/tv/dvr/ui/ |
| ChangeImageTransformWithScaledParent.java | 20 import android.graphics.Bitmap; 67 Bitmap bitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); local 68 if (bitmap.getWidth() < imageView.getWidth() 69 && bitmap.getHeight() < imageView.getHeight()) {
|
| /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
| BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 43 * bitmap. 51 * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED. 115 public static Bitmap resizeBitmapByScale( 116 Bitmap bitmap, float scale, boolean recycle) { 117 int width = Math.round(bitmap.getWidth() * scale); 118 int height = Math.round(bitmap.getHeight() * scale); 119 if (width == bitmap.getWidth( 184 Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true); local 207 Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); local [all...] |