| /external/replicaisland/src/com/replica/replicaisland/ |
| FadeDrawableComponent.java | 114 DrawableBitmap bitmap = factory.allocateDrawableBitmap(); local 115 bitmap.resize((int)mTexture.width, (int)mTexture.height); 117 bitmap.setWidth((int)parentObject.width); 118 bitmap.setHeight((int)parentObject.height); 119 bitmap.setOpacity(opacity); 120 bitmap.setTexture(mTexture); 121 mRenderComponent.setDrawable(bitmap);
|
| /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
| BitmapTest.java | 3 import android.graphics.Bitmap; 4 import android.graphics.Bitmap.Config; 24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); 25 shadowOf(originalBitmap).appendDescription("Original bitmap"); 26 Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, 100, 200, false); 27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); 34 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888) local 40 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 55 Bitmap bitmap = Bitmap.createBitmap(100, 200, Config.ARGB_8888); local 126 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local 135 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
| /external/skia/experimental/Intersection/ |
| EdgeWalkerQuadralaterals_Test.cpp | 11 static SkBitmap bitmap; variable 25 testSimplify(path, true, out, bitmap); 40 testSimplify(path, true, out, bitmap); 55 testSimplify(path, true, out, bitmap); 70 testSimplify(path, true, out, bitmap); 85 testSimplify(path, true, out, bitmap); 100 testSimplify(path, true, out, bitmap);
|
| EdgeWalker_Test.h | 15 extern int comparePaths(const SkPath& one, const SkPath& two, SkBitmap& bitmap); 24 SkBitmap& bitmap); 47 SkBitmap bitmap; member in struct:State4
|
| /external/skia/experimental/pixman/ |
| junk.cpp | 29 SkBitmap* bitmap = new SkBitmap; local 30 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); 31 bitmap->allocPixels(); 33 int p_stride = bitmap->rowBytes(); 34 uint32_t *p_bits = bitmap->getAddr32(0, 0); 44 return (void*) bitmap; 88 SkBitmap* bitmap = (SkBitmap*) pixbuf_from_argb32 (pixman_image_get_data (copy), local 91 canvas->drawBitmap(*bitmap, 0, 0); 92 delete bitmap;
|
| /external/skia/gm/ |
| bitmappremul.cpp | 14 * This GM checks that bitmap pixels are unpremultiplied before being exported 18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations. 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { 26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, 28 bitmap->eraseColor(SK_ColorWHITE); 32 SkBitmap bitmap; local 33 init_bitmap(kN32_SkColorType, &bitmap); 36 uint32_t* dst = bitmap.getAddr32(0, y); 45 return bitmap; 49 SkBitmap bitmap; local 66 SkBitmap bitmap; local 85 SkBitmap bitmap; local [all...] |
| extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { 20 bitmap->allocN32Pixels(W, H); 22 SkCanvas canvas(*bitmap); 44 SkBitmap bitmap; variable 45 create_bitmap(&bitmap); variable 46 int x = bitmap.width() / 2; 47 int y = bitmap.height() / 2; 51 canvas->drawBitmap(bitmap, 0, 0); 56 // Draw the bottom right fourth of the bitmap over the top left 58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)) [all...] |
| /external/skia/samplecode/ |
| SampleWritePixels.cpp | 19 static void create_bitmap(SkBitmap* bitmap) { 22 bitmap->allocN32Pixels(W, H); 24 SkCanvas canvas(*bitmap); 47 SkBitmap bitmap; local 48 create_bitmap(&bitmap); 49 int x = bitmap.width() / 2; 50 int y = bitmap.height() / 2; 53 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); 57 canvas->writePixels(bitmap, 0, 0);
|
| /external/skia/src/image/ |
| SkImage_Codec.cpp | 68 SkBitmap bitmap; local 69 if (!SkImageDecoder::DecodeMemory(data->bytes(), data->size(), &bitmap, kUnknown_SkColorType, 74 return SkNEW_ARGS(SkImage_Codec, (data, bitmap.width(), bitmap.height()));
|
| /external/skia/src/images/ |
| SkMovie.cpp | 69 const SkBitmap& SkMovie::bitmap() function in class:SkMovie
|
| /external/skia/src/utils/ |
| SkPDFRasterizer.cpp | 52 SkBitmap bitmap; local 53 if (!bitmap.allocPixels(SkImageInfo::MakeN32Premul(width, height))) { 56 bitmap.eraseColor(SK_ColorWHITE); 57 SkPMColor* bitmapPixels = (SkPMColor*)bitmap.getPixels(); 76 output->swap(bitmap);
|
| /external/skia/tests/ |
| PathOpsOpLoopThreadedTest.cpp | 87 SkBitmap bitmap; local 88 state.fBitmap = &bitmap;
|
| ScaledImageCache.cpp | 18 SkBitmap bitmap; local 19 SkAssertResult(bitmap.allocN32Pixels(kBitmapSize, kBitmapSize)); 25 canvas->drawBitmapRect(bitmap,
|
| TextureCompressionTest.cpp | 22 SkBitmap bitmap; local 29 bool setInfoSuccess = bitmap.setInfo(info); 32 bool allocPixelsSuccess = bitmap.allocPixels(info); 34 bitmap.unlockPixels(); 37 SkAutoDataUnref latcData(SkTextureCompressor::CompressBitmapToFormat(bitmap, kLATCFormat)); 42 * Make sure that we properly fail when we don't have the correct bitmap type. 46 SkBitmap bitmap; local 53 bool setInfoSuccess = bitmap.setInfo(info); 56 bool allocPixelsSuccess = bitmap.allocPixels(info); 58 bitmap.unlockPixels() 69 SkBitmap bitmap; 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) { 51 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), local 52 Bitmap.Config.ARGB_8888); 53 icon.draw(new Canvas(bitmap)); 54 return bitmap;
|
| /frameworks/base/core/jni/ |
| android_view_PointerIcon.h | 48 SkBitmap bitmap; member in struct:android::PointerIcon 58 bitmap.reset(); 68 /* Loads the bitmap associated with a pointer icon. 73 /* Loads the bitmap associated with a pointer icon by style.
|
| /frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
| BitmapFactoryTest.java | 33 Bitmap bitmap1 = Bitmap.createBitmap( 34 new int[] { Color.BLUE }, 1, 1, Bitmap.Config.RGB_565); 36 bitmap1.compress(Bitmap.CompressFormat.PNG, 100, out); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd); local 42 assertNotNull("BitmapFactory returned null", bitmap); 43 assertEquals("Bitmap width", 1, bitmap.getWidth()); 44 assertEquals("Bitmap height", 1, bitmap.getHeight()) [all...] |
| /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
| AvgBrightnessFilterTest.java | 20 import android.graphics.Bitmap; 47 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 48 image.setBitmap(bitmap);
|
| ContrastRatioFilterTest.java | 27 import android.graphics.Bitmap; 55 Bitmap bitmap = BitmapFactory.decodeStream(assetMgr.open("0002_000390.jpg")); local 56 image.setBitmap(bitmap);
|
| /frameworks/opt/bitmap/src/com/android/bitmap/ |
| RequestKey.java | 17 package com.android.bitmap;
|
| ResourceRequestKey.java | 17 package com.android.bitmap;
|
| /frameworks/opt/bitmap/src/com/android/bitmap/util/ |
| Trace.java | 17 package com.android.bitmap.util;
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
| PhotoBitmapLoaderInterface.java | 4 import android.graphics.Bitmap; 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);
|
| /packages/apps/Camera/src/com/android/camera/ |
| Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 43 bitmap = retriever.getFrameAtTime(-1); 55 if (bitmap == null) return null; 57 // Scale down the bitmap if it is bigger than we need. 58 int width = bitmap.getWidth() [all...] |
| /packages/apps/Camera2/src/com/android/camera/ |
| Thumbnail.java | 19 import android.graphics.Bitmap; 25 public static Bitmap createVideoThumbnailBitmap(FileDescriptor fd, int targetWidth) { 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 35 Bitmap bitmap = null; local 43 bitmap = retriever.getFrameAtTime(-1); 55 if (bitmap == null) return null; 57 // Scale down the bitmap if it is bigger than we need. 58 int width = bitmap.getWidth() [all...] |