Lines Matching refs:Options

19 import static android.graphics.BitmapFactory.Options.validate;
42 public static class Options {
44 * Create a default Options object, which if left unchanged will give
47 public Options() {
53 * If set, decode methods that take the Options object will attempt to
66 * set in the Options structure will indicate if the bitmap was reused,
219 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)},
240 * {@link BitmapFactory#decodeResource(Resources, int, android.graphics.BitmapFactory.Options)},
329 * android.graphics.BitmapFactory.Options)} or {@link #decodeFile(String,
330 * android.graphics.BitmapFactory.Options)}.</p>
438 static void validate(Options opts) {
468 * @param opts null-ok; Options that control downsampling and whether the
473 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
475 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
479 public static Bitmap decodeFile(String pathName, Options opts) {
517 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
519 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
525 @Nullable InputStream is, @Nullable Rect pad, @Nullable Options opts) {
528 opts = new Options();
553 * @param opts null-ok; Options that control downsampling and whether the
558 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
560 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
564 public static Bitmap decodeResource(Resources res, int id, Options opts) {
595 * Synonym for {@link #decodeResource(Resources, int, android.graphics.BitmapFactory.Options)}
596 * with null Options.
613 * @param opts null-ok; Options that control downsampling and whether the
618 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
620 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
624 public static Bitmap decodeByteArray(byte[] data, int offset, int length, Options opts) {
661 * Set the newly decoded bitmap's density based on the Options.
663 private static void setDensityFromOptions(Bitmap outputBitmap, Options opts) {
697 * @param opts null-ok; Options that control downsampling and whether the
702 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
704 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
715 @Nullable Options opts) {
751 @Nullable Rect outPadding, @Nullable Options opts) {
783 * @param opts null-ok; Options that control downsampling and whether the
786 * @throws IllegalArgumentException if {@link BitmapFactory.Options#inPreferredConfig}
788 * and {@link BitmapFactory.Options#inMutable} is set, if the specified color space
792 public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) {
835 Rect padding, Options opts);
837 Rect padding, Options opts);
838 private static native Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, Options opts);
840 int length, Options opts);