/frameworks/base/core/tests/coretests/src/android/graphics/ |
GraphicsPerformanceTests.java | 141 BitmapFactory.decodeResource(mResources, R.drawable.test16x12); 142 BitmapFactory.decodeResource(mResources, R.drawable.test32x24); 143 BitmapFactory.decodeResource(mResources, R.drawable.test64x48); 144 BitmapFactory.decodeResource(mResources, R.drawable.test128x96); 145 BitmapFactory.decodeResource(mResources, R.drawable.test256x192); 146 BitmapFactory.decodeResource(mResources, R.drawable.test320x240);
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 19 import static android.graphics.BitmapFactory.Options.validate; 37 public class BitmapFactory { 69 * <h3>Usage with BitmapFactory</h3> 72 * mutable bitmap can be reused by {@link BitmapFactory} to decode any 106 * effects to a Bitmap loaded through BitmapFactory. 216 * {@link BitmapFactory#decodeResource(Resources, int)}, 217 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)}, 218 * and {@link BitmapFactory#decodeResourceStream} 237 * {@link BitmapFactory#decodeResource(Resources, int)}, [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
MediaSaverImpl.java | 21 import android.graphics.BitmapFactory; 175 BitmapFactory.Options options = new BitmapFactory.Options(); 177 BitmapFactory.decodeByteArray(data, 0, data.length, options);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
BitmapUtil.java | 20 import android.graphics.BitmapFactory; 41 final BitmapFactory.Options options = new BitmapFactory.Options(); 45 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); 82 final BitmapFactory.Options options; 86 options = new BitmapFactory.Options(); 89 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); 104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
ImageRequest.java | 20 import android.graphics.BitmapFactory; 152 final BitmapFactory.Options options = PoolableImageCache.getBitmapOptionsForPool( 160 BitmapFactory.decodeStream(inputStream, null, options); 184 // BitmapFactory.decodeStream() reads the header portion of the bitmap stream and leave 201 return BitmapFactory.decodeStream(inputStream, null, options);
|
/packages/apps/TV/src/com/android/tv/util/ |
BitmapUtils.java | 23 import android.graphics.BitmapFactory; 105 BitmapFactory.Options options = new BitmapFactory.Options(); 107 BitmapFactory.decodeStream(inputStream, null, options); 129 Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null, options); 155 private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, 207 * @see android.graphics.BitmapFactory.Options#inSampleSize 216 * See {@link android.graphics.BitmapFactory.Options#inSampleSize} 230 * @see android.graphics.BitmapFactory.Options#inSampleSize
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
BitmapUtil.java | 19 import android.graphics.BitmapFactory; 50 final BitmapFactory.Options opts = new BitmapFactory.Options(); 52 BitmapFactory.decodeByteArray(src, 0, src.length, opts); 58 return BitmapFactory.decodeByteArray(src, 0, src.length, opts);
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
InputStreamProvider.java | 6 import android.graphics.BitmapFactory; 55 BitmapFactory.Options options = new BitmapFactory.Options(); 57 BitmapFactory.decodeStream(is, null, options); 120 BitmapFactory.Options options = new BitmapFactory.Options(); 133 BitmapFactory.Options options = new BitmapFactory.Options(); 137 fullSize = 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),
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/ |
CallCard.java | 21 import android.graphics.BitmapFactory; 87 BitmapFactory.decodeResource(getResources(), R.drawable.phone), true); 146 BitmapFactory.decodeResource(getResources(), R.drawable.phone_active), true); 190 BitmapFactory.decodeResource(getResources(), R.drawable.phone), true);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodPresentMediaDialog.java | 37 import android.graphics.BitmapFactory; 91 private int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight){ 147 BitmapFactory.Options options = new BitmapFactory.Options(); 149 BitmapFactory.decodeStream(input, null, options); 161 scaled = BitmapFactory.decodeStream(input, null, options);
|
/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/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
BitmapWorkerTask.java | 26 import android.graphics.BitmapFactory; 155 BitmapFactory.Options bitmapOptions = null; 159 // The value that BitmapFactory uses (1024) is too small for detecting bounds 161 bitmapOptions = new BitmapFactory.Options(); 168 BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions); 185 Bitmap bitmap = BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions);
|
DrawableLoader.java | 26 import android.graphics.BitmapFactory; 180 BitmapFactory.Options bitmapOptions = null; 184 // The value that BitmapFactory uses (1024) is too small for detecting bounds 186 bitmapOptions = new BitmapFactory.Options(); 193 BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions); 237 bitmap = BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions); 243 bitmap = BitmapFactory.decodeStream(bufferedStream, null, bitmapOptions);
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
SnapshotDialogFragment.java | 10 import android.graphics.BitmapFactory; 68 BitmapFactory.Options opts = new BitmapFactory.Options(); 70 BitmapFactory.decodeByteArray(jpegImage, 0, 81 Bitmap img = BitmapFactory.decodeByteArray(jpegImage, 0,
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapColorSpaceTest.java | 29 import android.graphics.BitmapFactory; 151 Bitmap b = BitmapFactory.decodeResource(mResources, R.drawable.robot); 170 Bitmap b = BitmapFactory.decodeStream(in); 192 Bitmap b = BitmapFactory.decodeStream(in); 214 BitmapFactory.Options opts = new BitmapFactory.Options(); 217 Bitmap b = BitmapFactory.decodeStream(in, null, opts); 238 BitmapFactory.Options opts = new BitmapFactory.Options(); 243 bitmap1 = BitmapFactory.decodeStream(in, null, opts) [all...] |
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationPresets.java | 21 import android.graphics.BitmapFactory; 81 builder.setLargeIcon(BitmapFactory.decodeResource( 209 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 414 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 423 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 493 .setBackground(BitmapFactory.decodeResource(context.getResources(),
|
/developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationPresets.java | 21 import android.graphics.BitmapFactory; 81 builder.setLargeIcon(BitmapFactory.decodeResource( 209 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 414 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 423 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 493 .setBackground(BitmapFactory.decodeResource(context.getResources(),
|
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
NotificationPresets.java | 21 import android.graphics.BitmapFactory; 81 builder.setLargeIcon(BitmapFactory.decodeResource( 209 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 414 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 423 style.bigPicture(BitmapFactory.decodeResource(context.getResources(), 493 .setBackground(BitmapFactory.decodeResource(context.getResources(),
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
DecodeTask.java | 20 import android.graphics.BitmapFactory; 56 private final BitmapFactory.Options mOpts = new BitmapFactory.Options(); 213 BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); 215 BitmapFactory.decodeStream(in, null, mOpts); 491 result = BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); 493 result = BitmapFactory.decodeStream(in, null, mOpts);
|
/frameworks/base/core/java/android/provider/ |
DocumentsContract.java | 36 import android.graphics.BitmapFactory; [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
Adapters.java | 25 import android.graphics.BitmapFactory; [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Util.java | 28 import android.graphics.BitmapFactory; 171 * of 8 because BitmapFactory only honors sample size this way. 172 * For example, BitmapFactory downsamples an image by 2 even though the 175 public static int computeSampleSize(BitmapFactory.Options options, 193 private static int computeInitialSampleSize(BitmapFactory.Options options, 220 BitmapFactory.Options options = new BitmapFactory.Options(); 222 BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length, 234 return BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length,
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
DatabaseMessages.java | 25 import android.graphics.BitmapFactory; 697 final BitmapFactory.Options opt = new BitmapFactory.Options(); 699 BitmapFactory.decodeStream(is, null, opt); 704 // BitmapFactory couldn't figure out the image type. That's got to be a bad [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
ImageUtils.java | 23 import android.graphics.BitmapFactory; 185 * Based on the input bitmap bounds given by BitmapFactory.Options, compute the required 187 * @param options a BitmapFactory.Options instance containing the bounds info of the bitmap 193 final BitmapFactory.Options options, final int reqWidth, final int reqHeight) { 408 private final BitmapFactory.Options mOptions; 455 mOptions = new BitmapFactory.Options(); 574 BitmapFactory.decodeStream(inputStream, null, mOptions); 686 mDecoded = BitmapFactory.decodeStream(inputStream, null, mOptions); [all...] |