/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterDownsample.java | 19 import android.graphics.Bitmap; 50 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 52 return bitmap; 54 int w = bitmap.getWidth(); 55 int h = bitmap.getHeight(); 64 // scale preview to same size as the resulting bitmap from a "save" 70 return bitmap; 72 Bitmap ret = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true) [all...] |
ImageFilterFx.java | 20 import android.graphics.Bitmap; 27 private Bitmap mFxBitmap = null; 49 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h,Bitmap fxBitmap, int fxw, int fxh); 52 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 54 return bitmap; 57 int w = bitmap.getWidth() [all...] |
ImageFilterStraighten.java | 19 import android.graphics.Bitmap; 25 private final Bitmap.Config mConfig = Bitmap.Config.ARGB_8888; 61 public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { 66 Bitmap temp = bitmap.copy(mConfig, true); 69 Rect bounds = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FastBitmapDrawable.java | 19 import android.graphics.Bitmap; 28 private Bitmap mBitmap; 34 FastBitmapDrawable(Bitmap b) { 48 // Draw the bitmap into the bounding rect 96 public void setBitmap(Bitmap b) { 106 public Bitmap getBitmap() {
|
Utilities.java | 23 import android.graphics.Bitmap; 66 * Returns a bitmap suitable for the all apps view. Used to convert pre-ICS 70 static Bitmap createIconBitmap(Bitmap icon, Context context) { 77 return Bitmap.createBitmap(icon, 85 // Icon is too small, render to a larger bitmap 92 * Returns a bitmap suitable for the all apps view. 94 static Bitmap createIconBitmap(Drawable icon, Context context) { 108 // Ensure the bitmap has a density. 110 Bitmap bitmap = bitmapDrawable.getBitmap() local 138 final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight, local [all...] |
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
RecyclingBitmapDrawable.java | 20 import android.graphics.Bitmap; 29 * {@link Bitmap#recycle() recycle()} will be called on this drawable's bitmap. 40 public RecyclingBitmapDrawable(Resources res, Bitmap bitmap) { 41 super(res, bitmap); 99 Bitmap bitmap = getBitmap(); local 100 return bitmap != null && !bitmap.isRecycled() [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
CompareActivity.java | 25 import android.graphics.Bitmap; 39 protected Bitmap mSoftwareBitmap; 40 protected Bitmap mHardwareBitmap; 67 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 68 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 83 mSoftwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 84 mHardwareBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselViewUtilities.java | 9 import android.graphics.Bitmap; 16 * Debug utility to write the given bitmap to a file. 19 * @param bitmap the bitmap to write 23 public static boolean writeBitmapToFile(Context context, Bitmap bitmap, String filename) { 31 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideViewInterface.java | 22 import android.graphics.Bitmap; 29 void setImage(String name, Bitmap bitmap); 34 void setVideoThumbnail(String name, Bitmap bitmap);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PhotoProcessorTest.java | 19 import android.graphics.Bitmap; 40 final Bitmap sourceBitmap = ((BitmapDrawable) source).getBitmap(); 42 final Bitmap normalized = PhotoProcessor.getNormalizedBitmap(sourceBitmap, 50, false);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ComposePathEffectTest.java | 19 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 53 Bitmap actual = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); 59 Bitmap expected = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
|
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...] |
BitmapShaderTest.java | 19 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 39 Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888); 50 // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions 51 Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2, 66 * bitmap. 68 private void checkTile(Bitmap bitmap, int tileX, int tileY) [all...] |
PorterDuffColorFilterTest.java | 18 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 34 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); 36 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); 39 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888);
|
PorterDuffXfermodeTest.java | 19 import android.graphics.Bitmap; 25 import android.graphics.Bitmap.Config; 35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); 37 Bitmap b1 = Bitmap.createBitmap(WIDTH / 2, HEIGHT, Config.ARGB_8888); 39 Bitmap b2 = Bitmap.createBitmap(WIDTH, HEIGHT / 2, Config.ARGB_8888);
|
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/ |
HelloCompute.java | 22 import android.graphics.Bitmap; 28 private Bitmap mBitmapIn; 29 private Bitmap mBitmapOut; 42 mBitmapOut = Bitmap.createBitmap(mBitmapIn.getWidth(), mBitmapIn.getHeight(), 71 private Bitmap loadBitmap(int resource) { 73 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
|
/frameworks/base/core/java/android/os/ |
IUserManager.aidl | 24 import android.graphics.Bitmap; 33 void setUserIcon(int userHandle, in Bitmap icon); 34 Bitmap getUserIcon(int userHandle);
|
/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...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Patterns.java | 33 private static Bitmap makeBitmap1() { 34 Bitmap bm = Bitmap.createBitmap(40, 40, Bitmap.Config.RGB_565); 43 private static Bitmap makeBitmap2() { 44 Bitmap bm = Bitmap.createBitmap(64, 64, Bitmap.Config.ARGB_8888);
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
DirectoryEntry.java | 20 import android.graphics.Bitmap; 41 public Bitmap getBitmap(Resources res) {
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
ImageCache.java | 20 import android.graphics.Bitmap; 30 * This class holds our bitmap caches (memory and disk). 34 private LruCache<String, Bitmap> mMemoryCache; 83 mMemoryCache = new LruCache<String, Bitmap>(memCacheSize) { 86 * for a bitmap cache 89 protected int sizeOf(String key, Bitmap bitmap) { 90 final int bitmapSize = getBitmapSize(bitmap) / 1024; 97 * Adds a bitmap to both memory and disk cache. 98 * @param data Unique identifier for the bitmap to stor [all...] |
/external/chromium/net/disk_cache/ |
bitmap.cc | 5 #include "net/disk_cache/bitmap.h" 43 Bitmap::Bitmap(int num_bits, bool clear_bits) 54 Bitmap::Bitmap(uint32* map, int num_bits, int num_words) 63 Bitmap::~Bitmap() { 68 void Bitmap::Resize(int num_bits, bool clear_bits) { 92 void Bitmap::Set(int index, bool value) { 103 bool Bitmap::Get(int index) const [all...] |
/external/jmonkeyengine/engine/src/android/com/jme3/texture/plugins/ |
AndroidImageLoader.java | 3 import android.graphics.Bitmap; 14 Bitmap bitmap = imageInfo.getBitmap(); local 16 Image image = new Image(imageInfo.getFormat(), bitmap.getWidth(), bitmap.getHeight(), null);
|
/frameworks/base/core/java/android/webkit/ |
WebIconDatabase.java | 20 import android.graphics.Bitmap; 48 public void onReceivedIcon(String url, Bitmap icon); 74 * Request the Bitmap representing the icon for the given page
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapShader.java | 20 * Shader used to draw a bitmap as a texture. The bitmap can be repeated or 29 public final Bitmap mBitmap; 32 * Call this to create a new shader that will draw with a bitmap. 34 * @param bitmap The bitmap to use inside the shader 35 * @param tileX The tiling mode for x to draw the bitmap in. 36 * @param tileY The tiling mode for y to draw the bitmap in. 38 public BitmapShader(Bitmap bitmap, TileMode tileX, TileMode tileY) [all...] |