MirageRequest { public MirageRequest inSampleSize(int sampleSize) { BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inSampleSize = sampleSize; return options(opts, null); } MirageRequest(); void recycle(); @Nullable Uri uri(); MirageRequest uri(Uri uri); MirageRequest lifecycle(Lifecycle lifecycle); @Nullable Lifecycle lifecycle(); MirageRequest provider(BitmapProvider provider); BitmapProvider provider(); MirageRequest mirage(Mirage mirage); boolean isSkipWritingMemoryCache(); MirageRequest skipWritingMemoryCache(boolean skip); boolean isSkipReadingMemoryCache(); MirageRequest skipReadingMemoryCache(boolean skip); int diskCacheStrategy(); MirageRequest diskCacheStrategy(@DiskCacheStrategy.Enforce int strategy); boolean isSkipReadingDiskCache(); MirageRequest skipReadingDiskCache(boolean skip); KeyMaker keyMaker(); MirageRequest keyMaker(KeyMaker keyMaker); MirageRequest resize(int width, int height); MirageRequest resize(int width, int height, int strategy); MirageRequest options(BitmapFactory.Options options, Rect outPadding); MirageRequest options(BitmapFactory.Options options); MirageRequest inSampleSize(int sampleSize); MirageRequest dynamicResample(int resizeTargetDimen, boolean isUndershootSizes); MirageRequest dynamicResample(int resizeTargetDimen); boolean isInSampleSizeDynamic(); int getResizeTargetDimen(); boolean isResizeSampleUndershoot(); BitmapFactory.Options options(); Rect outPadding(); MirageRequest executor(Executor executor); Executor executor(); MirageRequest urlFactory(UrlFactory urlFactory); UrlFactory urlFactory(); MirageRequest memoryCache(MemoryCache<String, Bitmap> memoryCache); MemoryCache<String, Bitmap> memoryCache(); MirageRequest diskCache(DiskCache diskCache); DiskCache diskCache(); Target target(); T into(T target); ImageViewTarget into(ImageView imageView); TextViewTarget into(TextView textView); MirageTask go(); Bitmap goSync(); MirageTask<Void, Void, Bitmap> createGoTask(); void executeGoTask(MirageTask<Void, Void, Bitmap> task); MirageTask downloadOnly(); File downloadOnlySync(); List<BitmapProcessor> getProcessors(); MirageRequest addProcessor(BitmapProcessor processor); String getSourceKey(); String getResultKey(); boolean isRequestShouldSaveSource();  }
@Test public void testInSampleSize() { MirageRequest request = new MirageRequest(); request.inSampleSize(4); Assert.assertEquals(4, request.options().inSampleSize); }