/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 17 package com.android.bitmap.drawable; 32 import com.android.bitmap.BitmapCache; 105 Bitmap bitmap = placeholder.getBitmap(); 107 mRect.set(0, 0, bitmap.getWidth(), bitmap.getHeight()); 108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); 119 * Call this method with a given bitmap to draw it onto the given canvas, masked by a circular 122 protected void onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, argument 124 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); 128 * Call this method with a given bitmap t 131 onDrawCircularBitmap(final Bitmap bitmap, final Canvas canvas, final Rect src, final Rect dst, final float alpha) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | MovieImpl.cpp | 68 const SkBitmap& Movie::bitmap() function in class:Movie
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | BitmapAllocationTestUtils.h | 31 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) { 32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); local 34 bitmap->getSkBitmap(&skBitmap); 36 return bitmap; 40 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) { 50 std::function<void(SkBitmap& bitmap)> setup);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SkiaCanvasTests.cpp | 96 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(info); local 98 bitmap->getSkBitmap(&skBitmap); 109 adobeSkCanvas.drawBitmap(*bitmap, 0, 0, nullptr); 142 sk_sp<Bitmap> bitmap = Bitmap::allocateHeapBitmap(info); local 144 bitmap->getSkBitmap(&skBitmap);
|
H A D | RecordingCanvasTests.cpp | 281 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(25, 25)); 297 canvas.drawBitmap(*bitmap, 0, 0, nullptr); 747 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(100, 100)); 748 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) { 749 canvas.drawBitmap(*bitmap, 0, 0, nullptr); 756 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local 757 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanvas& canvas) { 760 bitmap->getSkBitmap(&skBitmap); 774 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(100, 100); local 775 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [&bitmap](RecordingCanva [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | MediaNotificationProcessorTest.java | 105 private TestableColorizer(Bitmap bitmap) { argument 106 mBitmap = bitmap;
|
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/ |
H A D | FrameSequenceTest.java | 38 Bitmap bitmap = 40 mBitmaps.add(bitmap); 41 return bitmap; 45 public void releaseBitmap(Bitmap bitmap) { argument 46 if (!mBitmaps.contains(bitmap)) throw new IllegalStateException(); 47 mBitmaps.remove(bitmap); 48 bitmap.recycle();
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ResourceRequestKey.java | 17 package com.android.bitmap;
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | BitmapUtils.java | 17 package com.android.bitmap.util;
|
H A D | Exif.java | 17 package com.android.bitmap.util;
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | CircularImageView.java | 74 Bitmap bitmap = bitmapDrawable.getBitmap(); 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. 92 * @param source The source bound of the bitmap 95 drawBitmapWithCircleOnCanvas(Bitmap bitmap, Canvas canvas, RectF source, RectF dest) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
H A D | PhotoBitmapLoader.java | 32 * Loader for the bitmap of a photo. 58 if (result.bitmap != null) { 59 result.bitmap.setDensity(DisplayMetrics.DENSITY_MEDIUM); 77 Bitmap bitmap = result != null ? result.bitmap : null; 81 if (bitmap != null) { 82 onReleaseResources(bitmap); 87 mBitmap = bitmap; 98 if (oldBitmap != null && oldBitmap != bitmap && !oldBitmap.isRecycled()) { 113 result.bitmap 168 onReleaseResources(Bitmap bitmap) argument [all...] |
H A D | PhotoBitmapLoaderInterface.java | 19 public Bitmap bitmap; field in class:PhotoBitmapLoaderInterface.BitmapResult 25 * the underlying bitmap is null). 36 // Don't create a new drawable if there's no bitmap. PhotoViewFragment regards 39 if (bitmap == null) { 43 return new BitmapDrawable(resources, bitmap);
|
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MediaStoreSaver.java | 35 public static final String save(Bitmap bitmap, argument 59 bitmap.compress(format, 100, fOut);
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | MediaStoreSaver.java | 35 public static final String save(Bitmap bitmap, argument 59 bitmap.compress(format, 100, fOut);
|
/frameworks/support/compat/tests/java/android/support/v4/graphics/drawable/ |
H A D | IconCompatTest.java | 49 private void verifyClippedCircle(Bitmap bitmap, int fillColor, int size) { argument 50 assertEquals(size, bitmap.getHeight()); 51 assertEquals(bitmap.getWidth(), bitmap.getHeight()); 52 assertEquals(fillColor, bitmap.getPixel(size / 2, size / 2)); 54 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, 0)); 55 assertEquals(Color.TRANSPARENT, bitmap.getPixel(0, size - 1)); 56 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, 0)); 57 assertEquals(Color.TRANSPARENT, bitmap.getPixel(size - 1, size - 1)); 70 Bitmap bitmap [all...] |
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 29 protected RoundedBitmapDrawable21(Resources res, Bitmap bitmap) { argument 30 super(res, bitmap);
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
H A D | ImageLoader.java | 41 void onImageLoaded(Bitmap bitmap); argument 70 protected void onPostExecute(Bitmap bitmap) { 71 imageView.setImageBitmap(bitmap); 73 if (bitmap != null) { 75 CACHE.put(id, bitmap); 78 listener.onImageLoaded(bitmap);
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | PicassoBackgroundManagerTarget.java | 35 @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) { argument 36 this.mBackgroundManager.setBitmap(bitmap);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/ |
H A D | ImageLoader.java | 41 void onImageLoaded(Bitmap bitmap); argument 70 protected void onPostExecute(Bitmap bitmap) { 71 imageView.setImageBitmap(bitmap); 73 if (bitmap != null) { 75 CACHE.put(id, bitmap); 78 listener.onImageLoaded(bitmap);
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/ |
H A D | PicassoBackgroundManagerTarget.java | 35 @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) { argument 36 this.mBackgroundManager.setBitmap(bitmap);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 41 // Size of the smaller bitmap we're actually going to scan. 51 * Checks whether a bitmap is grayscale. Grayscale here means "very close to a perfect 54 * Instead of scanning every pixel in the bitmap, we first resize the bitmap to no more than 58 public boolean isGrayscale(Bitmap bitmap) { argument 59 int height = bitmap.getHeight(); 60 int width = bitmap.getWidth(); 78 mTempCompactBitmapCanvas.drawBitmap(bitmap, mTempMatrix, mTempCompactBitmapPaint); 79 bitmap = mTempCompactBitmap; 85 bitmap [all...] |
/frameworks/base/graphics/java/android/view/ |
H A D | PixelCopy.java | 68 * The destination isn't a valid copy target. If the destination is a bitmap 69 * this can occur if the bitmap is too large for the hardware to copy to. 93 * The contents of the source will be scaled to fit exactly inside the bitmap. 95 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer 100 * match the width, height, and format of this bitmap. 114 * The contents of the source will be scaled to fit exactly inside the bitmap. 116 * to fit the the bitmap's {@link Bitmap.Config}. The most recently queued buffer 124 * match the width, height, and format of this bitmap. 140 * The contents of the source will be scaled to fit exactly inside the bitmap. 142 * to fit the the bitmap' 276 validateBitmapDest(Bitmap bitmap) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | TextureCache.cpp | 95 bool TextureCache::canMakeTextureFromBitmap(Bitmap* bitmap) { argument 96 if (bitmap->width() > mMaxTextureSize || bitmap->height() > mMaxTextureSize) { 98 bitmap->width(), bitmap->height(), mMaxTextureSize, mMaxTextureSize); 104 Texture* TextureCache::createTexture(Bitmap* bitmap) { argument 106 texture->bitmapSize = bitmap->rowBytes() * bitmap->height(); 107 texture->generation = bitmap->getGenerationID(); 108 texture->upload(*bitmap); 114 getCachedTexture(Bitmap* bitmap) argument 168 prefetchAndMarkInUse(void* ownerToken, Bitmap* bitmap) argument 176 prefetch(Bitmap* bitmap) argument 180 get(Bitmap* bitmap) argument [all...] |
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaOpenGLReadback.cpp | 35 int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) { 66 SkAutoLockPixels alp(*bitmap); 94 if (bitmap->width() != skiaSrcRect.width() 95 || bitmap->height() != skiaSrcRect.height()) { 97 grContext.get(), SkBudgeted::kYes, bitmap->info()); 101 SkRect::MakeWH(bitmap->width(), bitmap->height()), &paint); 106 if (image->readPixels(bitmap->info(), bitmap->getPixels(), bitmap 34 copyImageInto(EGLImageKHR eglImage, const Matrix4& imgTransform, int imgWidth, int imgHeight, const Rect& srcRect, SkBitmap* bitmap) argument [all...] |