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

1 2 3

  /development/samples/training/bitmapfun/src/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...]
  /packages/apps/Gallery2/src/com/android/photos/data/
BitmapDecoder.java 20 import android.graphics.BitmapFactory;
46 private static final Pool<BitmapFactory.Options> sOptions =
47 new SynchronizedPool<BitmapFactory.Options>(POOL_SIZE);
50 BitmapFactory.Options opts = getOptions();
57 BitmapFactory.decodeStream(in, null, opts);
63 Bitmap decodedBitmap = BitmapFactory.decodeStream(in, null, opts);
82 BitmapFactory.Options opts = getOptions();
85 BitmapFactory.decodeFile(in, opts);
90 Bitmap decodedBitmap = BitmapFactory.decodeFile(in, opts);
104 private static BitmapFactory.Options getOptions()
    [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
82 mOpt1 = new BitmapFactory.Options();
84 mOpt2 = new BitmapFactory.Options();
90 // new the BitmapFactory instance
91 new BitmapFactory();
95 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/BasicNotifications/src/main/java/com/example/android/basicnotifications/
MainActivity.java 7 import android.graphics.BitmapFactory;
74 builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher));
  /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));
TaskSwitcherActivity.java 40 import android.graphics.BitmapFactory;
213 mView.setDefaultBitmap(BitmapFactory.decodeResource(res, R.drawable.wait));
214 mView.setLoadingBitmap(BitmapFactory.decodeResource(res, R.drawable.wait));
  /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(
  /frameworks/base/graphics/java/android/graphics/
BitmapFactory.java 35 public class BitmapFactory {
74 * effects to a Bitmap loaded through BitmapFactory.
125 * {@link BitmapFactory#decodeResource(Resources, int)},
126 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)},
127 * and {@link BitmapFactory#decodeResourceStream}
146 * {@link BitmapFactory#decodeResource(Resources, int)},
147 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)},
148 * and {@link BitmapFactory#decodeResourceStream
    [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/Gallery2/src/com/android/gallery3d/filtershow/crop/
CropLoader.java 25 import android.graphics.BitmapFactory;
123 BitmapFactory.Options options = new BitmapFactory.Options();
125 BitmapFactory.decodeStream(is, null, options);
135 options = new BitmapFactory.Options();
156 return BitmapFactory.decodeStream(is, null, options);
182 BitmapFactory.Options options = new BitmapFactory.Options();
185 return BitmapFactory.decodeStream(is, null, 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),
  /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/Mms/src/com/android/mms/ui/
UriImage.java 31 import android.graphics.BitmapFactory;
183 BitmapFactory.Options opt = new BitmapFactory.Options();
185 BitmapFactory.decodeStream(input, null, opt);
285 BitmapFactory.Options options = new BitmapFactory.Options();
296 b = BitmapFactory.decodeStream(input, null, options);
  /packages/apps/VideoEditor/src/com/android/videoeditor/util/
ImageUtils.java 28 import android.graphics.BitmapFactory;
76 final BitmapFactory.Options dbo = new BitmapFactory.Options();
78 BitmapFactory.decodeFile(filename, dbo);
85 final BitmapFactory.Options options = new BitmapFactory.Options();
100 srcBitmap = BitmapFactory.decodeFile(filename, options);
176 BitmapFactory.Options opt = new BitmapFactory.Options();
178 BitmapFactory.decodeFile(inputFilename, opt)
    [all...]
  /pdk/apps/TestingCamera/src/com/android/testingcamera/
SnapshotDialogFragment.java 8 import android.graphics.BitmapFactory;
66 BitmapFactory.Options opts = new BitmapFactory.Options();
68 BitmapFactory.decodeByteArray(jpegImage, 0,
79 Bitmap img = BitmapFactory.decodeByteArray(jpegImage, 0,

Completed in 568 milliseconds

1 2 3