/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
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";
|
/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/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/skia/bench/ |
ReadPixBench.cpp | 44 SkBitmap bitmap; variable 46 bitmap.setInfo(SkImageInfo::MakeN32Premul(kWindowSize, kWindowSize)); 51 canvas->readPixels(&bitmap, x * offX, y * offY);
|
/external/skia/tests/ |
ARGBImageEncoderTest.cpp | 36 // A bitmap that should generate the above bytes: 37 SkBitmap bitmap; local 39 bitmap.allocPixels(SkImageInfo::Make(kWidth, kHeight, gColorTypes[ctIndex], 41 bitmap.eraseColor(SK_ColorBLUE); 43 SkCanvas canvas(bitmap); 51 // Transform the bitmap. 52 int bufferSize = bitmap.width() * bitmap.height() * 4; 56 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality));
|
ColorMatrixTest.cpp | 37 SkBitmap bitmap; local 38 bitmap.allocN32Pixels(1,1); 40 SkCanvas canvas(bitmap); 52 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)); 56 assert_color(reporter, SK_ColorGREEN, bitmap.getColor(0, 0)); 60 assert_color(reporter, SK_ColorRED, bitmap.getColor(0, 0)); 65 assert_color(reporter, SK_ColorWHITE, bitmap.getColor(0, 0)); 74 bitmap.eraseColor(SK_ColorTRANSPARENT); 78 assert_color(reporter, SkColorSetARGB(128, 255, 0, 64), bitmap.getColor(0, 0), 2); 83 assert_color(reporter, SK_ColorCYAN, bitmap.getColor(0, 0)) [all...] |
GrTextureMipMapInvalidationTest.cpp | 37 SkBitmap bitmap; local 38 GrWrapTextureInBitmap(tex, 256, 256, false, &bitmap); 48 surface->getCanvas()->drawBitmap(bitmap, 0, 0, &paint); 54 // Invalidating the contents of the bitmap should invalidate the mipmap, but not de-allocate 55 bitmap.notifyPixelsChanged();
|
PathOpsExtendedTest.h | 29 const SkPath& one, const SkPath& two, SkBitmap& bitmap); 33 SkBitmap bitmap; local 34 return comparePaths(reporter, filename, one, two, bitmap);
|
/external/skia/tools/ |
dump_record.cpp | 27 SkBitmap bitmap; local 28 bitmap.allocN32Pixels(w, h); 29 SkCanvas canvas(bitmap);
|
imgslice.cpp | 76 SkBitmap bitmap; local 79 codec->decode(&inputStream, &bitmap, kN32_SkColorType, SkImageDecoder::kDecodePixels_Mode); 86 top = bottom = SkTPin(FLAGS_row, 0, bitmap.height()-1); 87 FLAGS_min = left = SkTPin(FLAGS_min, 0, bitmap.width()-1); 88 FLAGS_max = right = SkTPin(FLAGS_max, left, bitmap.width()-1); 91 left = right = SkTPin(FLAGS_column, 0, bitmap.width()-1); 92 FLAGS_min = top = SkTPin(FLAGS_min, 0, bitmap.height()-1); 93 FLAGS_max = bottom = SkTPin(FLAGS_max, top, bitmap.height()-1); 114 SkColor c = bitmap.getColor(x, y); 122 SkColor c = bitmap.getColor(x, y) [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
desktop_frame_win.cc | 21 HBITMAP bitmap) 23 bitmap_(bitmap), 37 // Describe a device independent bitmap (DIB) that is the size of the desktop. 50 HBITMAP bitmap = CreateDIBSection(hdc, &bmi, DIB_RGB_COLORS, &data, local 52 if (!bitmap) { 60 shared_memory, bitmap);
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
NamedThreadFactory.java | 17 package com.android.bitmap;
|
Poolable.java | 17 package com.android.bitmap;
|
PooledCache.java | 17 package com.android.bitmap;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
BitmapWithMetadata.java | 20 import android.graphics.Bitmap; 24 * Encapsulates a Bitmap and some additional metadata. 28 public Bitmap bitmap; field in class:BitmapWithMetadata 31 public BitmapWithMetadata(Bitmap bitmap, int rotationDegrees) { 32 this.bitmap = bitmap;
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
AccountAvatarDrawable.java | 16 package com.android.mail.bitmap; 19 import android.graphics.Bitmap; 23 import com.android.bitmap.BitmapCache; 30 private static Bitmap DEFAULT_AVATAR = null;
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
ImageRecord.java | 23 import android.graphics.Bitmap; 40 private final Bitmap mBitmap; 42 private ImageRecord(Bitmap bitmap) { 43 mBitmap = Preconditions.checkNotNull(bitmap); 62 Bitmap bitmap = BitmapFactory.decodeByteArray(content, 0, content.length); local 63 if (bitmap == null) { 66 return new ImageRecord(bitmap); 78 public static NdefRecord newImageRecord(Bitmap bitmap) [all...] |
/cts/tests/tests/textureview/src/android/textureview/cts/ |
TextureViewSnapshotTestActivity.java | 19 import android.graphics.Bitmap; 80 Bitmap bitmap = mTexView.getBitmap(); local 81 Assert.assertNotNull(bitmap); 82 Assert.assertEquals(mTexView.getWidth(), bitmap.getWidth()); 83 Assert.assertEquals(mTexView.getHeight(), bitmap.getHeight()); 84 Assert.assertEquals(Color.RED, bitmap.getPixel(0, 0));
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtils.java | 21 import android.graphics.Bitmap; 51 // Create a bitmap 52 Bitmap bitmap = Bitmap.createBitmap(drawableWidth, drawableHeight, Bitmap.Config.ARGB_8888); local 53 // Create a canvas that wraps the bitmap 54 Canvas canvas = new Canvas(bitmap); 60 // And ask the drawable to draw itself to the canvas / bitmap 77 bitmap.getPixels(rowPixels, 0, drawableWidth, 0, row, drawableWidth, 1) [all...] |
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 24 import android.graphics.Bitmap; 61 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 62 assertNotNull(bitmap); 63 assertTrue(bitmap.getWidth() > 0); 64 assertTrue(bitmap.getHeight() > 0); 96 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length);
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 24 import android.graphics.Bitmap; 61 Bitmap bitmap = (Bitmap) resultData.getParcelableExtra("data"); local 62 assertNotNull(bitmap); 63 assertTrue(bitmap.getWidth() > 0); 64 assertTrue(bitmap.getHeight() > 0); 96 Bitmap b = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodIconSamplerActivity.java | 22 import android.graphics.Bitmap; 64 Bitmap bitmap = convertToBitmap(drawable); local 69 bitmap.compress(Bitmap.CompressFormat.PNG, 100, file); 98 private static Bitmap convertToBitmap(Drawable icon) { 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), local 103 Bitmap.Config.ARGB_8888) [all...] |
/cts/hostsidetests/theme/app/src/android/theme/app/ |
GenerateBitmapTask.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat; 31 * A task which gets the UI element to render to a bitmap and then saves that 40 private Bitmap mBitmap; 57 mBitmap = Bitmap.createBitmap(mView.getWidth(), mView.getHeight(), 58 Bitmap.Config.ARGB_8888); 66 final Bitmap bitmap = mBitmap; local 67 if (bitmap == null) { 82 success = bitmap.compress(CompressFormat.PNG, 100, stream) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SumPathEffectTest.java | 20 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config; 40 Bitmap bitmap = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); local 41 bitmap.eraseColor(Color.BLACK); 42 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 63 canvas = new Canvas(bitmap); 68 assertEquals(expected.getPixel(i, j), bitmap.getPixel(i, j)) [all...] |