HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 26 - 50 of 1029) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
FileDescriptorBitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
16 * An {@link com.bumptech.glide.load.ResourceDecoder} for decoding {@link android.graphics.Bitmap}s from
19 public class FileDescriptorBitmapDecoder implements ResourceDecoder<ParcelFileDescriptor, Bitmap> {
44 public Resource<Bitmap> decode(ParcelFileDescriptor source, int width, int height) throws IOException {
45 Bitmap bitmap = bitmapDecoder.decode(source, bitmapPool, width, height, decodeFormat); local
46 return BitmapResource.obtain(bitmap, bitmapPool);
51 return "FileDescriptorBitmapDecoder.com.bumptech.glide.load.data.bitmap";
StreamBitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
16 * {@link com.bumptech.glide.load.resource.bitmap.Downsampler} to decode an {@link android.graphics.Bitmap} from an
19 public class StreamBitmapDecoder implements ResourceDecoder<InputStream, Bitmap> {
20 private static final String ID = "StreamBitmapDecoder.com.bumptech.glide.load.resource.bitmap";
49 public Resource<Bitmap> decode(InputStream source, int width, int height) {
50 Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat); local
51 return BitmapResource.obtain(bitmap, bitmapPool)
    [all...]
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...]
BitmapDecoder.java 1 package com.bumptech.glide.load.resource.bitmap;
3 import android.graphics.Bitmap;
9 * A bitmap decoder for a given resource type.
11 * @param <T> The type of resource this decoder can decode a {@link Bitmap} from.
15 * Returns a decoded bitmap for a given resource and target dimensions.
18 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or
19 * obtained from the pool other than the bitmap returned by this method should be returned to the
21 * @param outWidth The target width for the returned bitmap (need not match exactly).
22 * @param outHeight The target height for the returned bitmap (need not match exactly).
23 * @param decodeFormat The desired configuration for the returned bitmap
    [all...]
FitCenter.java 1 package com.bumptech.glide.load.resource.bitmap;
4 import android.graphics.Bitmap;
23 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
29 return "FitCenter.com.bumptech.glide.load.resource.bitmap";
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
ImageEncoder.java 26 import android.graphics.Bitmap;
27 import android.graphics.Bitmap.CompressFormat;
55 Bitmap bitmap = input.getBitmap(); local
56 bitmap.compress(CompressFormat.JPEG, mQuality, mOutputStream);
  /packages/apps/Dialer/java/com/android/dialer/callcomposer/
CopyAndResizeImageWorker.java 21 import android.graphics.Bitmap;
22 import android.graphics.Bitmap.CompressFormat;
69 Bitmap bitmap = BitmapFactory.decodeStream(inputStream); local
70 bitmap = BitmapResizer.resizeForEnrichedCalling(bitmap, exifToDegrees(rotation));
75 bitmap.compress(CompressFormat.JPEG, 80, outputStream);
  /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...]
  /cts/tests/tests/view/src/android/view/cts/util/
DrawingUtils.java 19 import android.graphics.Bitmap;
34 * offscreen bitmap and checks each pixel to match the expected color. The expected color
45 // Create a bitmap that matches the size of our view
46 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); local
47 // Create a canvas that wraps the bitmap
48 final Canvas canvas = new Canvas(bitmap);
49 // And ask the view to draw itself to the canvas / 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/Messaging/src/com/android/messaging/datamodel/media/
VideoThumbnailRequest.java 21 import android.graphics.Bitmap;
59 protected Bitmap getBitmapForResource() throws IOException {
61 Bitmap bitmap = null; local
64 bitmap = Thumbnails.getThumbnail(cr, mediaId, Thumbnails.MICRO_KIND, null);
69 bitmap = retriever.getFrameAtTime();
74 if (bitmap != null) {
75 mDescriptor.updateSourceDimensions(bitmap.getWidth(), bitmap.getHeight());
77 return bitmap;
    [all...]
  /cts/tests/tests/security/src/android/security/cts/
DecodeTest.java 19 import android.graphics.Bitmap;
38 Bitmap bitmap = BitmapFactory.decodeStream(exploitImage); local
39 assertNull(bitmap);
51 Bitmap bitmap = BitmapFactory.decodeStream(exploitImage); local
52 assertNull(bitmap);
SkiaICORecursiveDecodingTest.java 19 import android.graphics.Bitmap;
51 Bitmap bitmap = BitmapFactory.decodeStream(exploitImage); local
  /external/jemalloc/test/unit/
bitmap.c 15 "Bitmap size is smaller than expected");
30 bitmap_t *bitmap = (bitmap_t *)malloc( local
32 bitmap_init(bitmap, &binfo);
35 assert_false(bitmap_get(bitmap, &binfo, j),
38 free(bitmap);
53 bitmap_t *bitmap = (bitmap_t *)malloc( local
55 bitmap_init(bitmap, &binfo);
58 bitmap_set(bitmap, &binfo, j);
59 assert_true(bitmap_full(bitmap, &binfo),
61 free(bitmap);
76 bitmap_t *bitmap = (bitmap_t *)malloc( local
105 bitmap_t *bitmap = (bitmap_t *)malloc( local
    [all...]
  /external/pdfium/core/fpdfapi/parser/
fpdf_parser_decode_embeddertest.cpp 96 FPDF_BITMAP bitmap = RenderPage(page); local
97 CompareBitmap(bitmap, 612, 792, "1940568c9ba33bac5d0b1ee9558c76b3");
98 FPDFBitmap_Destroy(bitmap);
107 FPDF_BITMAP bitmap = RenderPage(page); local
108 CompareBitmap(bitmap, 612, 792, "1940568c9ba33bac5d0b1ee9558c76b3");
109 FPDFBitmap_Destroy(bitmap);
118 FPDF_BITMAP bitmap = RenderPage(page); local
126 CompareBitmap(bitmap, 200, 200, kExpectedMd5sum);
127 FPDFBitmap_Destroy(bitmap);
  /external/pdfium/testing/libfuzzer/
pdf_jpx_fuzzer.cc 46 auto bitmap = pdfium::MakeRetain<CFX_DIBitmap>(); local
47 if (!bitmap->Create(width, height, format))
54 g_module.Decode(decoder.get(), bitmap->GetBuffer(), bitmap->GetPitch(),
xfa_codec_fuzzer.h 50 auto bitmap = pdfium::MakeRetain<CFX_DIBitmap>(); local
51 bitmap->Create(decoder->GetWidth(), decoder->GetHeight(), FXDIB_Argb);
58 status = decoder->StartDecode(bitmap, 0, 0, bitmap->GetWidth(),
59 bitmap->GetHeight());
  /external/replicaisland/src/com/replica/replicaisland/
DebugSystem.java 68 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local
69 if (bitmap != null) {
71 bitmap.resize((int)texture.width, (int)texture.height);
73 bitmap.setWidth((int)width);
74 bitmap.setHeight((int)height);
75 bitmap.setTexture(texture);
78 render.scheduleForDraw(bitmap, mWorkVector, SortConstants.HUD, true);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowImageViewTest.java 7 import android.graphics.Bitmap;
23 Bitmap bitmap = BitmapFactory.decodeResource(resources, R.drawable.an_image); local
25 imageView.setImageBitmap(bitmap);
  /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...]
  /external/skia/tests/
PictureShaderTest.cpp 21 SkBitmap bitmap; local
22 bitmap.allocN32Pixels(1,1);
24 SkCanvas canvas(bitmap);
31 REPORTER_ASSERT(reporter, *bitmap.getAddr32(0,0) == SK_ColorGREEN);
41 REPORTER_ASSERT(reporter, *bitmap.getAddr32(0,0) == SK_ColorGREEN);
  /external/skia/tools/
dump_record.cpp 28 SkBitmap bitmap; local
29 bitmap.allocN32Pixels(w, h);
30 SkCanvas canvas(bitmap);
imgslice.cpp 77 SkBitmap bitmap; local
78 if (!image->asLegacyBitmap(&bitmap, SkImage::kRW_LegacyBitmapMode)) {
80 SkDebugf("Couldn't create bitmap for: %s.\n", FLAGS_image[0]);
90 top = bottom = SkTPin(FLAGS_row, 0, bitmap.height()-1);
91 FLAGS_min = left = SkTPin(FLAGS_min, 0, bitmap.width()-1);
92 FLAGS_max = right = SkTPin(FLAGS_max, left, bitmap.width()-1);
95 left = right = SkTPin(FLAGS_column, 0, bitmap.width()-1);
96 FLAGS_min = top = SkTPin(FLAGS_min, 0, bitmap.height()-1);
97 FLAGS_max = bottom = SkTPin(FLAGS_max, top, bitmap.height()-1);
118 SkColor c = bitmap.getColor(x, y)
    [all...]
  /external/skqp/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...]
  /external/skqp/tests/
PictureShaderTest.cpp 21 SkBitmap bitmap; local
22 bitmap.allocN32Pixels(1,1);
24 SkCanvas canvas(bitmap);
31 REPORTER_ASSERT(reporter, *bitmap.getAddr32(0,0) == SK_ColorGREEN);
41 REPORTER_ASSERT(reporter, *bitmap.getAddr32(0,0) == SK_ColorGREEN);

Completed in 340 milliseconds

12 3 4 5 6 7 8 91011>>