HomeSort by relevance Sort by last modified time
    Searched defs:BitmapFactory (Results 1 - 25 of 60) sorted by null

1 2 3

  /development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/
ImageResizer.java 23 import android.graphics.BitmapFactory;
119 final BitmapFactory.Options options = new BitmapFactory.Options();
121 BitmapFactory.decodeResource(res, resId, options);
133 return BitmapFactory.decodeResource(res, resId, options);
150 final BitmapFactory.Options options = new BitmapFactory.Options();
152 BitmapFactory.decodeFile(filename, options);
164 return BitmapFactory.decodeFile(filename, options);
181 final BitmapFactory.Options options = new BitmapFactory.Options()
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactory_OptionsTest.java 18 import android.graphics.BitmapFactory;
23 new BitmapFactory.Options();
27 BitmapFactory.Options option = new BitmapFactory.Options();
BitmapFactoryTest.java 24 import android.graphics.BitmapFactory;
29 import android.graphics.BitmapFactory.Options;
47 private BitmapFactory.Options mOpt1;
49 private BitmapFactory.Options mOpt2;
70 // Configurations for BitmapFactory.Options
98 mOpt1 = new BitmapFactory.Options();
100 mOpt2 = new BitmapFactory.Options();
106 // new the BitmapFactory instance
107 new BitmapFactory();
111 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java 20 import android.graphics.BitmapFactory;
33 final BitmapFactory.Options options = new BitmapFactory.Options();
37 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
74 final BitmapFactory.Options options;
78 options = new BitmapFactory.Options();
81 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DecodeUtils.java 22 import android.graphics.BitmapFactory;
23 import android.graphics.BitmapFactory.Options;
66 BitmapFactory.decodeFileDescriptor(fd, null, options));
74 BitmapFactory.decodeFileDescriptor(fd, null, options);
88 BitmapFactory.decodeByteArray(bytes, offset, length, options));
96 BitmapFactory.decodeByteArray(bytes, offset, length, options);
121 BitmapFactory.decodeFileDescriptor(fd, null, options);
149 Bitmap result = BitmapFactory.decodeFileDescriptor(fd, null, options);
175 BitmapFactory.decodeByteArray(data, 0, data.length, options);
186 BitmapFactory.decodeByteArray(data, 0, data.length, options))
    [all...]
  /developers/samples/android/ui/notifications/BasicNotifications/BasicNotificationsSample/src/main/java/com/example/android/basicnotifications/
MainActivity.java 7 import android.graphics.BitmapFactory;
74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));
  /development/samples/browseable/BasicNotifications/src/com.example.android.basicnotifications/
MainActivity.java 7 import android.graphics.BitmapFactory;
74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));
  /external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/
BitmapHelper.java 9 import android.graphics.BitmapFactory;
36 final BitmapFactory.Options options = new BitmapFactory.Options();
38 BitmapFactory.decodeResource(res, resId, options);
43 return BitmapFactory.decodeResource(res, resId, options);
47 private static int calculateInSampleSize(BitmapFactory.Options options,
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 21 import android.graphics.BitmapFactory;
44 BitmapFactory.Options o = new BitmapFactory.Options();
46 BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length, o);
55 return BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length, o);
57 // BitmapFactory throws an exception rather than returning null
61 return BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length);
76 BitmapFactory.Options o = new BitmapFactory.Options();
78 BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length, o)
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
EvenMoreAsserts.java 20 import android.graphics.BitmapFactory;
102 BitmapFactory.Options o = new BitmapFactory.Options();
104 BitmapFactory.decodeByteArray(imageData, 0, imageData.length, o);
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 24 import android.graphics.BitmapFactory;
111 BitmapFactory.Options options = new BitmapFactory.Options();
114 BitmapFactory.decodeFileDescriptor(fd, null, options);
125 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options);
252 * of 8 because BitmapFactory only honors sample size this way.
253 * For example, BitmapFactory downsamples an image by 2 even though the
256 private static int computeSampleSize(BitmapFactory.Options options,
274 private static int computeInitialSampleSize(BitmapFactory.Options options,
305 * Clients are allowed to pass their own BitmapFactory.Options used for bitmap decoding.
    [all...]
  /frameworks/base/core/java/android/app/backup/
WallpaperBackupHelper.java 21 import android.graphics.BitmapFactory;
126 BitmapFactory.Options options = new BitmapFactory.Options();
128 BitmapFactory.decodeFile(STAGE_FILE, options);
  /frameworks/base/media/java/android/media/videoeditor/
TransitionAlpha.java 20 import android.graphics.BitmapFactory;
98 final BitmapFactory.Options dbo = new BitmapFactory.Options();
102 BitmapFactory.decodeFile(maskFilename, dbo);
124 Bitmap imageBitmap = BitmapFactory.decodeFile(maskFilename);
  /frameworks/ex/carousel/test/src/com/android/carouseltest/
MusicDemoActivity.java 26 import android.graphics.BitmapFactory;
71 return BitmapFactory.decodeResource(getResources(),
93 mView.setDefaultBitmap(BitmapFactory.decodeResource(res, R.drawable.wait));
94 mView.setLoadingBitmap(BitmapFactory.decodeResource(res, R.drawable.blank_album));
95 mView.setBackgroundBitmap(BitmapFactory.decodeResource(res, R.drawable.background));
  /frameworks/volley/src/com/android/volley/toolbox/
ImageRequest.java 28 import android.graphics.BitmapFactory;
139 BitmapFactory.Options decodeOptions = new BitmapFactory.Options();
143 bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions);
147 BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions);
164 BitmapFactory.decodeByteArray(data, 0, data.length, decodeOptions);
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 20 import android.graphics.BitmapFactory;
86 photo.setImageBitmap(BitmapFactory.decodeByteArray(
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
BitmapUtil.java 19 import android.graphics.BitmapFactory;
46 final BitmapFactory.Options opts = new BitmapFactory.Options();
48 BitmapFactory.decodeByteArray(src, 0, src.length, opts);
54 return BitmapFactory.decodeByteArray(src, 0, src.length, opts);
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 35 public class BitmapFactory {
68 * <h3>Usage with BitmapFactory</h3>
71 * mutable bitmap can be reused by {@link BitmapFactory} to decode any
105 * effects to a Bitmap loaded through BitmapFactory.
176 * {@link BitmapFactory#decodeResource(Resources, int)},
177 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)},
178 * and {@link BitmapFactory#decodeResourceStream}
197 * {@link BitmapFactory#decodeResource(Resources, int)},
198 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)}
    [all...]
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
GraphicsPerformanceTests.java 23 import android.graphics.BitmapFactory;
145 BitmapFactory.decodeResource(mResources, R.drawable.test16x12);
146 BitmapFactory.decodeResource(mResources, R.drawable.test32x24);
147 BitmapFactory.decodeResource(mResources, R.drawable.test64x48);
148 BitmapFactory.decodeResource(mResources, R.drawable.test128x96);
149 BitmapFactory.decodeResource(mResources, R.drawable.test256x192);
150 BitmapFactory.decodeResource(mResources, R.drawable.test320x240);
  /packages/apps/Browser/src/com/android/browser/
WallpaperHandler.java 24 import android.graphics.BitmapFactory;
45 // This should be large enough for BitmapFactory to decode the header so
101 BitmapFactory.Options options = new BitmapFactory.Options();
105 BitmapFactory.decodeStream(
126 // BitmapFactory read more than we could buffer
131 Bitmap scaledWallpaper = BitmapFactory.decodeStream(inputstream,
  /packages/apps/Camera2/src/com/android/camera/
MediaSaveService.java 23 import android.graphics.BitmapFactory;
176 BitmapFactory.Options options = new BitmapFactory.Options();
178 BitmapFactory.decodeByteArray(data, 0, data.length, options);
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
PhotoProcessor.java 19 import android.graphics.BitmapFactory;
134 this(BitmapFactory.decodeByteArray(originalBytes, 0, originalBytes.length),
171 this(BitmapFactory.decodeByteArray(originalBytes, 0, originalBytes.length),
  /frameworks/base/core/java/android/provider/
DocumentsContract.java 30 import android.graphics.BitmapFactory;
710 final BitmapFactory.Options opts = new BitmapFactory.Options();
713 BitmapFactory.decodeStream(is, null, opts);
715 BitmapFactory.decodeFileDescriptor(fd, null, opts);
725 bitmap = BitmapFactory.decodeStream(is, null, opts);
732 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts);
    [all...]
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageLoader.java 22 import android.graphics.BitmapFactory;
102 mLoadingBitmap = BitmapFactory.decodeResource(mResources, resId);
362 final BitmapFactory.Options options = new BitmapFactory.Options();
364 BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options);
371 return BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options);
375 * Calculate an inSampleSize for use in a {@link BitmapFactory.Options} object when decoding
376 * bitmaps using the decode* methods from {@link BitmapFactory}. This implementation calculates
388 public static int calculateInSampleSize(BitmapFactory.Options options,
  /packages/apps/Camera2/src/com/android/camera/ui/
ZoomView.java 21 import android.graphics.BitmapFactory;
105 BitmapFactory.Options options = new BitmapFactory.Options();
237 BitmapFactory.Options option = new BitmapFactory.Options();
240 BitmapFactory.decodeStream(is, null, option);

Completed in 624 milliseconds

1 2 3