| /packages/apps/Gallery/src/com/android/camera/ | 
| PhotoAppWidgetProvider.java | 29 import android.graphics.Bitmap; 77         Bitmap bitmap = helper.getPhoto(appWidgetId);  local
 78         if (bitmap != null) {
 81             views.setImageViewBitmap(R.id.photo, bitmap);
 120          * Store the given bitmap in this database for the given appWidgetId.
 122         public boolean setPhoto(int appWidgetId, Bitmap bitmap) {
 128                 int size = bitmap.getWidth() * bitmap.getHeight() * 4
 166  Bitmap bitmap = null;  local
 [all...]
 | 
| CropImage.java | 28 import android.graphics.Bitmap; 63     private Bitmap.CompressFormat mOutputFormat =
 64             Bitmap.CompressFormat.JPEG; // only used with mSaveUri
 84     private Bitmap mBitmap;
 115                     mOutputFormat = Bitmap.CompressFormat.valueOf(
 121             mBitmap = (Bitmap) extras.getParcelable("data");
 141                 // TODO when saving the resulting bitmap use the
 185                 final Bitmap b = (mImage != null)
 215         // bitmap doesn't have to be read into memory
 223         Bitmap croppedImage
 [all...]
 | 
| /packages/apps/Gallery2/src/com/android/gallery3d/data/ | 
| UriImage.java | 27 import android.graphics.Bitmap; 28 import android.graphics.Bitmap.Config;
 80     public Job<Bitmap> requestImage(int type) {
 191     private class BitmapJob implements Job<Bitmap> {
 198         public Bitmap run(JobContext jc) {
 203             Bitmap bitmap = DecodeUtils.requestDecode(jc,  local
 205             if (jc.isCancelled() || bitmap == null) {
 210                 bitmap = BitmapUtils.resizeDownAndCropCenter(bitmap,
 [all...]
 | 
| LocalVideo.java | 29 import android.graphics.Bitmap; 76     private static Bitmap sOverlay;
 142     public Job<Bitmap> requestImage(int type) {
 156         public Bitmap onDecodeOriginal(JobContext jc, int type) {
 157             Bitmap bitmap = BitmapUtils.createVideoThumbnail(mLocalFilePath);  local
 158             if (bitmap == null || jc.isCancelled()) return null;
 159             return bitmap;
 
 | 
| /frameworks/base/core/java/android/app/ | 
| LauncherActivity.java | 25 import android.graphics.Bitmap; 300                     final Bitmap.Config c = icon.getOpacity() != PixelFormat.OPAQUE ?
 301                                 Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565;
 302                     final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c);
 319                     final Bitmap.Config c = Bitmap.Config.ARGB_8888;
 320                     final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c)
 [all...]
 | 
| /cts/tests/tests/graphics/src/android/graphics/cts/ | 
| BitmapRegionDecoderTest.java | 20 import android.graphics.Bitmap; 21 import android.graphics.Bitmap.Config;
 200                     Bitmap wholeImage = BitmapFactory.decodeStream(is2, null, opts);
 230                     Bitmap wholeImage = BitmapFactory.decodeByteArray(imageData,
 261                     Bitmap wholeImage = BitmapFactory.decodeFile(filepath, opts);
 325             Options opts, int mseMargin, Bitmap wholeImage) {
 331         Bitmap actual;
 332         Bitmap expected;
 352     private Bitmap cropBitmap(Bitmap wholeImage, Rect rect)
 [all...]
 | 
| /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ | 
| Bridge.java | 39 import android.graphics.Bitmap; 97     private final static Map<Object, Map<String, SoftReference<Bitmap>>> sProjectBitmapCache =
 98         new HashMap<Object, Map<String, SoftReference<Bitmap>>>();
 102     private final static Map<String, SoftReference<Bitmap>> sFrameworkBitmapCache =
 103         new HashMap<String, SoftReference<Bitmap>>();
 508      * Returns the bitmap for a specific path, from a specific project cache, or from the
 510      * @param value the path of the bitmap
 512      * @return the cached Bitmap or null if not found.
 514     public static Bitmap getCachedBitmap(String value, Object projectKey) {
 516             Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey)
 [all...]
 | 
| /development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ | 
| AccelerometerPlayActivity.java | 21 import android.graphics.Bitmap; 128         private Bitmap mBitmap;
 129         private Bitmap mWood;
 356             Bitmap ball = BitmapFactory.decodeResource(getResources(), R.drawable.ball);
 359             mBitmap = Bitmap.createScaledBitmap(ball, dstWidth, dstHeight, true);
 363             opts.inPreferredConfig = Bitmap.Config.RGB_565;
 370             // the bitmap
 438             final Bitmap bitmap = mBitmap;  local
 449                 canvas.drawBitmap(bitmap, x, y, null)
 [all...]
 | 
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ | 
| DensityActivity.java | 26 import android.graphics.Bitmap; 59         addLabelToRoot(root, "Prescaled bitmap in drawable");
 66         addLabelToRoot(root, "Autoscaled bitmap in drawable");
 88         addLabelToRoot(root, "Prescaled bitmap");
 95         addLabelToRoot(root, "Autoscaled bitmap");
 135         Bitmap bitmap;  local
 136         bitmap = loadAndPrintDpi(resource, scale);
 140         final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
 161         Bitmap bitmap  local
 185  Bitmap bitmap;  local
 [all...]
 | 
| ShapeDrawable1.java | 52             Bitmap bm = Bitmap.createBitmap(pixels, 2, 2, 53                                             Bitmap.Config.ARGB_8888);
 
 | 
| /frameworks/base/telephony/java/com/android/internal/telephony/ | 
| IccUtils.java | 21 import android.graphics.Bitmap; 386      * Convert a TS 131.102 image instance of code scheme '11' into Bitmap
 389      * @return The bitmap
 391     public static Bitmap parseToBnW(byte[] data, int length){
 414         return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
 426      * a TS 131.102 image instance of code scheme '11' into color Bitmap
 431      * @return The color bitmap
 433     public static Bitmap parseToRGB(byte[] data, int length,
 457         return Bitmap.createBitmap(resultArray, width, height
 [all...]
 | 
| /frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ | 
| DpiTestActivity.java | 24 import android.graphics.Bitmap; 89         addLabelToRoot(root, "Prescaled bitmap in drawable");
 96         addLabelToRoot(root, "Autoscaled bitmap in drawable");
 118         addLabelToRoot(root, "Prescaled bitmap");
 125         addLabelToRoot(root, "Autoscaled bitmap");
 165         Bitmap bitmap;  local
 166         bitmap = loadAndPrintDpi(resource, scale);
 170         final BitmapDrawable d = new BitmapDrawable(getResources(), bitmap);
 191         Bitmap bitmap  local
 215  Bitmap bitmap;  local
 [all...]
 | 
| /packages/apps/Email/src/com/android/email/provider/ | 
| AttachmentProvider.java | 34 import android.graphics.Bitmap; 194                         Bitmap thumbnail = createThumbnail(type, in);
 198                         thumbnail = Bitmap.createScaledBitmap(thumbnail, width, height, true);
 200                         thumbnail.compress(Bitmap.CompressFormat.PNG, 100, out);
 307     private Bitmap createThumbnail(String type, InputStream data) {
 314     private Bitmap createImageThumbnail(InputStream data) {
 316             Bitmap bitmap = BitmapFactory.decodeStream(data);  local
 317             return bitmap;
 
 | 
| /frameworks/base/core/java/android/provider/ | 
| MediaStore.java | 28 import android.graphics.Bitmap; 165      * If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap
 448         private static Bitmap getMiniThumbFromFile(Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) {
 449             Bitmap bitmap = null;  local
 456                 bitmap = BitmapFactory.decodeFileDescriptor(
 467             return bitmap;
 503          * @param options this is only used for MINI_KIND when decoding the Bitmap
 506          * @return Bitmap bitmap of specified thumbnail kin
 510  Bitmap bitmap = null;  local
 706  Bitmap bitmap = BitmapFactory.decodeStream(input);  local
 [all...]
 | 
| /cts/tests/tests/renderscript/src/android/renderscript/cts/ | 
| AllocationTest.java | 21 import android.graphics.Bitmap; 189     void helperCreateFromBitmap(Bitmap B,
 211         Bitmap B = Bitmap.createBitmap(bDimX, bDimY, Bitmap.Config.ARGB_8888);
 228             Bitmap badB = Bitmap.createBitmap(47, 8, Bitmap.Config.ARGB_8888);
 237             Bitmap badB = Bitmap.createBitmap(48, 4, Bitmap.Config.ARGB_8888)
 [all...]
 | 
| /frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ | 
| RgbPlayerActivity.java | 38 import android.graphics.Bitmap; 70         private Bitmap mBitmap;
 132             mBitmap = Bitmap.createBitmap(mWidth, mHeight,
 134                                           ? Bitmap.Config.RGB_565
 135                                           : Bitmap.Config.ARGB_8888);
 
 | 
| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ | 
| PathsActivity.java | 21 import android.graphics.Bitmap; 41         private final Bitmap mBitmap1;
 49         private final Bitmap mBitmap;
 100             mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8);
 
 | 
| /packages/apps/Email/tests/src/com/android/email/activity/ | 
| ContactStatusLoaderTest.java | 25 import android.graphics.Bitmap; 164         Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);  local
 166         bitmap.compress(Bitmap.CompressFormat.JPEG, 50, out);
 
 | 
| /packages/providers/MediaProvider/src/com/android/providers/media/ | 
| MediaThumbRequest.java | 29 import android.graphics.Bitmap; 108     Uri updateDatabase(Bitmap thumbnail) {
 172         Bitmap bitmap = null;
 176                 bitmap = ThumbnailUtils.createVideoThumbnail(mPath,
 179                 bitmap = ThumbnailUtils.createImageThumbnail(mPath,
 182             if (bitmap == null) {
 187             Uri uri = updateDatabase(bitmap);
 190                 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, thumbOut)
 [all...]
 | 
| /system/media/mca/filterfw/java/android/filterfw/core/ | 
| SerializedFrame.java | 25 import android.graphics.Bitmap; 242     public void setBitmap(Bitmap bitmap) {
 244         setGenericObjectValue(bitmap);
 248     public Bitmap getBitmap() {
 250         return (result instanceof Bitmap) ? (Bitmap)result : null;
 
 | 
| /packages/apps/Launcher2/src/com/android/launcher2/ | 
| AppsCustomizePagedView.java | 32 import android.graphics.Bitmap; 33 import android.graphics.Bitmap.Config;
 82     AsyncTaskPageData(int p, ArrayList<Object> l, ArrayList<Bitmap> si, AsyncTaskCallback bgR,
 87         generatedImages = new ArrayList<Bitmap>();
 96         generatedImages = new ArrayList<Bitmap>();
 106                 for (Bitmap b : sourceImages) {
 114                 for (Bitmap b : generatedImages) {
 123     ArrayList<Bitmap> sourceImages;
 124     ArrayList<Bitmap> generatedImages;
 546         Bitmap preview
 [all...]
 | 
| /development/samples/JetBoy/src/com/example/android/jetboy/ | 
| JetBoyView.java | 25 import android.graphics.Bitmap; 63     private Bitmap mTitleBG;
 65     private Bitmap mTitleBG2;
 168         private Bitmap mBackgroundImageFar;
 171         private Bitmap mBackgroundImageNear;
 183         private Bitmap[] mShipFlying = new Bitmap[4];
 186         private Bitmap[] mBeam = new Bitmap[4];
 189         private Bitmap[] mAsteroids = new Bitmap[12]
 [all...]
 | 
| /development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ | 
| RemoteControlClientCompat.java | 20 import android.graphics.Bitmap; 161                             int.class, Bitmap.class);
 207          * @param key the identifier of the bitmap to set. The only valid value is
 209          * @param bitmap The bitmap for the artwork, or null if there isn't any.
 213          * @see android.graphics.Bitmap
 215         public MetadataEditorCompat putBitmap(int key, Bitmap bitmap) {
 218                     mPutBitmapMethod.invoke(mActualMetadataEditor, key, bitmap);
 
 | 
| /frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ | 
| GlobalScreenshot.java | 32 import android.graphics.Bitmap; 66     Bitmap image;
 119         Bitmap rawIcon = Bitmap.createScaledBitmap(data.image, iconWidth, iconHeight, true);
 120         Bitmap croppedIcon = Bitmap.createBitmap(rawIcon, (iconWidth - data.iconSize) / 2,
 153         Bitmap image = params[0].image;
 169             image.compress(Bitmap.CompressFormat.PNG, 100, out);
 247     private Bitmap mScreenBitmap;
 372             Bitmap ss = Bitmap.createBitmap(mDisplayMetrics.widthPixels
 [all...]
 | 
| /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ | 
| ShirtPocket.java | 25 import android.graphics.Bitmap; 143             Bitmap icon = mClipping.getIcon();
 164                 final Bitmap icon = clip.getIcon();
 212                     final Bitmap icon = clip.getIcon();
 
 |