/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
ResourceTexture.java | 20 import android.graphics.Bitmap; 25 // ResourceTexture is a texture whose Bitmap is decoded from a resource. 40 protected Bitmap onGetBitmap() { 42 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 48 protected void onFreeBitmap(Bitmap bitmap) { 50 bitmap.recycle();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
HolographicViewHelper.java | 21 import android.graphics.Bitmap; 46 Bitmap original = createOriginalImage(v, mTempCanvas); 47 Bitmap outline = createPressImage(v, mTempCanvas); 72 private Bitmap createOriginalImage(ImageView v, Canvas canvas) { 74 final Bitmap b = Bitmap.createBitmap( 75 d.getIntrinsicWidth(), d.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); 88 * Responsibility for the bitmap is transferred to the caller. 90 private Bitmap createPressImage(ImageView v, Canvas canvas) { 92 final Bitmap b = Bitmap.createBitmap [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PixelXorXfermodeTest.java | 19 import android.graphics.Bitmap; 24 import android.graphics.Bitmap.Config; 32 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888); 34 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888); 37 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888);
|
PaintFlagsDrawFilterTest.java | 20 import android.graphics.Bitmap; 26 import android.graphics.Bitmap.Config; 47 Bitmap bitmapWithoutFilter = drawText(null); 50 Bitmap bitmapWithFilter = drawText(filter); 52 Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter); 56 private Bitmap drawText(PaintFlagsDrawFilter filter) { 62 Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888); 70 private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter) [all...] |
PictureTest.java | 24 import android.graphics.Bitmap; 47 Bitmap bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888); local 48 canvas = new Canvas(bitmap); 51 checkBitmap(bitmap); 56 // create a new Canvas with a new bitmap 57 bitmap = Bitmap.createBitmap(TEST_WIDTH, TEST_HEIGHT, Bitmap.Config.ARGB_8888) [all...] |
Bitmap_CompressFormatTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.CompressFormat; 22 import android.graphics.Bitmap.Config; 42 Bitmap b = Bitmap.createBitmap(10, 24, Config.ARGB_8888);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 19 import android.graphics.Bitmap; 36 * @param iconWidth width of the icon bitmap. 37 * @param iconHeight height of the icon bitmap. 39 * @return an icon bitmap with the dimensions iconWidth:iconHeight. 41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, 51 throw new IllegalArgumentException("Bitmap with dimension 0 used as input"); 54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight, 55 Bitmap.Config.ARGB_8888) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetUtils.java | 21 import android.graphics.Bitmap; 22 import android.graphics.Bitmap.Config; 47 public static Bitmap createWidgetBitmap(MediaItem image) { 48 Bitmap bitmap = image.requestImage(MediaItem.TYPE_THUMBNAIL) local 50 if (bitmap == null) { 54 return createWidgetBitmap(bitmap, image.getRotation()); 57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation) [all...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/ |
BitmapEditor.java | 20 import android.graphics.Bitmap; 29 imageView.setImageBitmap((Bitmap) value);
|
/external/chromium/net/disk_cache/ |
bitmap.h | 14 class Bitmap { 16 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} 19 // false, the bitmap bits will not be initialized. 20 Bitmap(int num_bits, bool clear_bits); 22 // Constructs a Bitmap with the actual storage provided by the caller. |map| 24 // bits in the bitmap, and |num_words| is the size of |map| in 32-bit words. 25 Bitmap(uint32* map, int num_bits, int num_words); 27 ~Bitmap(); 29 // Resizes the bitmap. 36 // Returns the number of bits in the bitmap [all...] |
/frameworks/base/media/java/android/media/ |
IRemoteControlDisplay.aidl | 21 import android.graphics.Bitmap; 86 void setArtwork(int generationId, in Bitmap artwork); 91 void setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork);
|
/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/Gallery/src/com/android/camera/ |
RotateBitmap.java | 19 import android.graphics.Bitmap; 24 private Bitmap mBitmap; 27 public RotateBitmap(Bitmap bitmap) { 28 mBitmap = bitmap; 32 public RotateBitmap(Bitmap bitmap, int rotation) { 33 mBitmap = bitmap; 45 public Bitmap getBitmap() { 49 public void setBitmap(Bitmap bitmap) [all...] |
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
MockImage.java | 3 import android.graphics.Bitmap; 27 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels) { 31 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 36 public Bitmap fullSizeBitmap(int minSideLength, int maxNumberOfPixels, 93 public Bitmap miniThumbBitmap() { 104 public Bitmap thumbBitmap(boolean rotateAsNeeded) {
|
/packages/apps/Gallery2/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/Gallery2/src/com/android/photos/ |
BitmapRegionTileSource.java | 19 import android.graphics.Bitmap; 57 public Bitmap getTile(int level, int x, int y, Bitmap bitmap) { 63 if (bitmap == null) { 64 bitmap = Bitmap.createBitmap(tileSize, tileSize, Bitmap.Config.ARGB_8888); 68 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 71 options.inBitmap = bitmap; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterGeometry.java | 19 import android.graphics.Bitmap; 32 private final Bitmap.Config mConfig = Bitmap.Config.ARGB_8888; 54 native protected void nativeApplyFilterFlip(Bitmap src, int srcWidth, int srcHeight, 55 Bitmap dst, int dstWidth, int dstHeight, int flip); 57 native protected void nativeApplyFilterRotate(Bitmap src, int srcWidth, int srcHeight, 58 Bitmap dst, int dstWidth, int dstHeight, int rotate); 60 native protected void nativeApplyFilterCrop(Bitmap src, int srcWidth, int srcHeight, 61 Bitmap dst, int dstWidth, int dstHeight, int offsetWidth, int offsetHeight); 63 native protected void nativeApplyFilterStraighten(Bitmap src, int srcWidth, int srcHeight [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 18 import android.graphics.Bitmap; 34 * Class that converts a bitmap (or byte array representing a bitmap) into a display 109 private final Bitmap mOriginal; 110 private Bitmap mDisplayPhoto; 111 private Bitmap mThumbnailPhoto; 114 * Initializes a photo processor for the given bitmap. 115 * @param original The bitmap to process. 118 * @throws IOException If bitmap decoding or scaling fails. 120 public PhotoProcessor(Bitmap original, int maxDisplayPhotoDim, int maxThumbnailPhotoDim [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PurgeableBitmapView.java | 20 import android.graphics.Bitmap; 34 * PurgeableBitmapView decodes an encoded bitstream to a Bitmap each time update() 35 * is invoked(), and its onDraw() draws the Bitmap and a number to screen. 41 private Bitmap mBitmap; 43 private final Bitmap[] mBitmapArray = new Bitmap [mArraySize]; 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 60 Bitmap.Config.ARGB_8888); 61 bitstream = generateBitstream(src, Bitmap.CompressFormat.JPEG, 80) [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
BitmapDecoder.java | 18 import android.graphics.Bitmap; 19 import android.graphics.Bitmap.Config; 36 * to decode a bitmap from GalleryBitmapPool. The bitmap may be returned 37 * directly to GalleryBitmapPool or use the put method here when the bitmap is 49 public static Bitmap decode(InputStream in) { 61 Bitmap reuseBitmap = pool.get(opts.outWidth, opts.outHeight); 63 Bitmap decodedBitmap = BitmapFactory.decodeStream(in, null, opts); 69 Log.e(TAG, "Could not decode stream to bitmap", e); 77 public static Bitmap decode(File in) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 32 * Creates Bitmap objects from various sources, including files, streams, 50 * reuse this bitmap when loading content. If the decode operation cannot 51 * use this bitmap, the decode method will return <code>null</code> and 53 * necessitates that the reused bitmap be mutable and of the same size as the 55 * a resource or as a stream). The {@link android.graphics.Bitmap.Config 56 * configuration} of the reused bitmap will override the setting of 57 * {@link #inPreferredConfig}, if set. The reused bitmap will continue to 59 * in an immutable bitmap. 61 * <p>You should still always use the returned Bitmap of the decode 62 * method and not assume that reusing the bitmap worked, due to th [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
ThumbnailManager.java | 26 import android.graphics.Bitmap; 27 import android.graphics.Bitmap.Config; 71 private final SimpleCache<Uri, Bitmap> mThumbnailCache; 74 private static Bitmap mEmptyImageBitmap; 75 private static Bitmap mEmptyVideoBitmap; 87 mThumbnailCache = new SimpleCache<Uri, Bitmap>(8, 16, 0.75f, true); 129 final Bitmap thumbnail = DEBUG_DISABLE_CACHE ? null : mThumbnailCache.get(uri); 250 Bitmap bitmap = null; local 252 bitmap = getBitmap(mIsVideo) 331 Bitmap bitmap = requestDecode(data.mData, local 338 Bitmap bitmap; local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapFactory.java | 4 import android.graphics.Bitmap; 28 public static Bitmap decodeResource(Resources res, int id) { 29 Bitmap bitmap = create("resource:" + getResourceName(id)); local 30 shadowOf(bitmap).setLoadedFromResourceId(id); 31 return bitmap; 35 public static Bitmap decodeResource(Resources res, int id, BitmapFactory.Options options) { 36 Bitmap bitmap = create("resource:" + getResourceName(id), options); local 37 shadowOf(bitmap).setLoadedFromResourceId(id) 70 Bitmap bitmap = Robolectric.newInstanceOf(Bitmap.class); local [all...] |
/frameworks/base/core/java/android/emoji/ |
EmojiFactory.java | 19 import android.graphics.Bitmap; 36 // HashMap for caching Bitmap object. In order not to make a cache object 60 private Map<Integer, WeakReference<Bitmap>> mCache; 74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>(); 91 * Returns Bitmap object corresponding to the AndroidPua. 93 * Note that each Bitmap is cached by this class, which means that, if you modify a 94 * Bitmap object (using setPos() method), all same emoji Bitmap will be modified. 98 * @return Bitmap object when this factory knows the Bitmap relevant to the codepoint [all...] |
/packages/apps/Phone/src/com/android/phone/ |
BitmapUtils.java | 19 import android.graphics.Bitmap; 55 * Creates a blurred version of the given Bitmap. 57 * @param bitmap the input bitmap, presumably a 96x96 pixel contact 60 public static Bitmap createBlurredBitmap(Bitmap bitmap) { 63 if (bitmap == null) { 64 Log.w(TAG, "createBlurredBitmap: null bitmap"); 68 if (DBG) log("- input bitmap: " + bitmap.getWidth() + " x " + bitmap.getHeight()) [all...] |