| /frameworks/base/graphics/java/android/graphics/ | 
| BitmapFactory.java | 31  * Creates Bitmap objects from various sources, including files, streams, 47          * reuse this bitmap when loading content. If the decode operation cannot
 48          * use this bitmap, the decode method will return <code>null</code> and
 50          * current implementation necessitates that the reused bitmap be of the
 52          * resource or as a stream). The {@link android.graphics.Bitmap.Config
 53          * configuration} of the reused bitmap will override the setting of
 56          * <p>You should still always use the returned Bitmap of the decode
 57          * method and not assume that reusing the bitmap worked, due to the
 60          * set in the Options structure is a way to see if the bitmap was reused,
 61          * but in all cases you should use the returned Bitmap to make sur
 [all...]
 | 
| /cts/tests/tests/graphics/src/android/graphics/cts/ | 
| BitmapTest.java | 26 import android.graphics.Bitmap; 32 import android.graphics.Bitmap.CompressFormat;
 33 import android.graphics.Bitmap.Config;
 45 @TestTargetClass(Bitmap.class)
 48     private Bitmap mBitmap;
 64         args = {android.graphics.Bitmap.CompressFormat.class, int.class, java.io.OutputStream.class}
 69         //abnormal case: the bitmap has been recycled
 106         args = {android.graphics.Bitmap.Config.class, boolean.class}
 111         //abnormal case: the bitmap has been recycled
 119         mBitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888)
 120  Bitmap bitmap = mBitmap.copy(Config.ARGB_8888, false);  local
 186  Bitmap bitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(),  local
 215  Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565);  local
 [all...]
 | 
| Bitmap_CompressFormatTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.CompressFormat;
 22 import android.graphics.Bitmap.Config;
 29 @TestTargetClass(Bitmap.CompressFormat.class)
 52             args = {android.graphics.Bitmap.CompressFormat.class, int.class,
 65         Bitmap b = Bitmap.createBitmap(10, 24, Config.ARGB_8888);
 
 | 
| Bitmap_ConfigTest.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.Config;
 25 @TestTargetClass(Bitmap.Config.class)
 55         assertNotNull(Bitmap.createBitmap(10, 24, Config.ALPHA_8));
 56         assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_4444));
 57         assertNotNull(Bitmap.createBitmap(10, 24, Config.ARGB_8888));
 58         assertNotNull(Bitmap.createBitmap(10, 24, Config.RGB_565));
 
 | 
| PaintFlagsDrawFilterTest.java | 23 import android.graphics.Bitmap; 29 import android.graphics.Bitmap.Config;
 56         Bitmap bitmapWithoutFilter = drawText(null);
 59         Bitmap bitmapWithFilter = drawText(filter);
 61         Bitmap combined = delta(bitmapWithoutFilter, bitmapWithFilter);
 65     private Bitmap drawText(PaintFlagsDrawFilter filter) {
 71         Bitmap b = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
 79     private Bitmap delta(Bitmap bitmapWithoutFilter, Bitmap bitmapWithFilter)
 [all...]
 | 
| BitmapShaderTest.java | 22 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config;
 45         args = {Bitmap.class, TileMode.class, TileMode.class}
 48         Bitmap tile = Bitmap.createBitmap(TILE_WIDTH, TILE_HEIGHT, Config.ARGB_8888);
 59         // create a bitmap that fits (NUM_TILES - 0.5) tiles in both directions
 60         Bitmap b = Bitmap.createBitmap(NUM_TILES * TILE_WIDTH - TILE_WIDTH / 2,
 75      * bitmap.
 77     private void checkTile(Bitmap bitmap, int tileX, int tileY)
 [all...]
 | 
| ComposePathEffectTest.java | 22 import android.graphics.Bitmap; 30 import android.graphics.Bitmap.Config;
 62         Bitmap actual = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
 68         Bitmap expected = Bitmap.createBitmap(BITMAP_WIDTH, BITMAP_HEIGHT, Config.ARGB_8888);
 
 | 
| /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ | 
| BitmapUtils.java | 19 import android.graphics.Bitmap; 20 import android.graphics.Bitmap.CompressFormat;
 43      * bitmap.
 51      * generates a smaller bitmap, unless minSideLength = UNCONSTRAINED.
 115     public static Bitmap resizeDownToPixels(
 116             Bitmap bitmap, int targetPixels, boolean recycle) {
 117         int width = bitmap.getWidth();
 118         int height = bitmap.getHeight();
 121         if (scale >= 1.0f) return bitmap;
 222  Bitmap bitmap = Bitmap.createBitmap(source, 0, 0, w, h, m, true);  local
 245  Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);  local
 [all...]
 | 
| /frameworks/base/opengl/java/android/opengl/ | 
| GLUtils.java | 19 import android.graphics.Bitmap; 44      * return the internal format as defined by OpenGL ES of the supplied bitmap.
 45      * @param bitmap
 46      * @return the internal format of the bitmap.
 48     public static int getInternalFormat(Bitmap bitmap) {
 49         if (bitmap == null) {
 50             throw new NullPointerException("getInternalFormat can't be used with a null Bitmap");
 52         if (bitmap.isRecycled()) {
 53             throw new IllegalArgumentException("bitmap is recycled")
 [all...]
 | 
| /packages/apps/Gallery2/src/com/android/gallery3d/ui/ | 
| ResourceTexture.java | 22 import android.graphics.Bitmap; 25 // ResourceTexture is a texture whose Bitmap is decoded from a resource.
 39     protected Bitmap onGetBitmap() {
 41         options.inPreferredConfig = Bitmap.Config.ARGB_8888;
 47     protected void onFreeBitmap(Bitmap bitmap) {
 49             bitmap.recycle();
 
 | 
| DrawableTexture.java | 19 import android.graphics.Bitmap; 34     protected void onDraw(Canvas canvas, Bitmap backing) {
 
 | 
| /packages/apps/Gallery2/src/com/android/gallery3d/gadget/ | 
| WidgetUtils.java | 25 import android.graphics.Bitmap; 28 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...]
 | 
| /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; 49     void setArtwork(int generationId, in Bitmap artwork);
 54     void setAllMetadata(int generationId, in Bundle metadata, in Bitmap artwork);
 
 | 
| /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) {
 
 | 
| /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...]
 | 
| /frameworks/base/core/java/android/emoji/ | 
| EmojiFactory.java | 19 import android.graphics.Bitmap; 36     // HashMap for caching Bitmap object. In order not to make an 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...]
 | 
| /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ | 
| LoadScreennailTask.java | 20 import android.graphics.Bitmap; 31 public class LoadScreennailTask extends AsyncTask<Uri, Void, Bitmap> {
 38         void onComplete(Bitmap result);
 56     protected Bitmap doInBackground(Uri... params) {
 64     protected void onPostExecute(Bitmap result) {
 
 | 
| /packages/apps/Launcher2/src/com/android/launcher2/ | 
| FastBitmapDrawable.java | 19 import android.graphics.Bitmap; 28     private Bitmap mBitmap;
 34     FastBitmapDrawable(Bitmap b) {
 95     public void setBitmap(Bitmap b) {
 105     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
 91      * Returns a bitmap suitable for the all apps view.
 93     static Bitmap createIconBitmap(Drawable icon, Context context) {
 107                 // Ensure the bitmap has a density.
 109                 Bitmap bitmap = bitmapDrawable.getBitmap()  local
 138  final Bitmap bitmap = Bitmap.createBitmap(textureWidth, textureHeight,  local
 [all...]
 | 
| HolographicViewHelper.java | 21 import android.graphics.Bitmap; 45             Bitmap outline = createPressImage(v, mTempCanvas);
 68      * Responsibility for the bitmap is transferred to the caller.
 70     private Bitmap createPressImage(ImageView v, Canvas canvas) {
 72         final Bitmap b = Bitmap.createBitmap(
 73                 v.getWidth() + padding, v.getHeight() + padding, Bitmap.Config.ARGB_8888);
 
 | 
| /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);
 
 | 
| /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(),
 69     private Bitmap loadBitmap(int resource) {
 71         options.inPreferredConfig = Bitmap.Config.ARGB_8888;
 
 |