@Test public void requiresComputeInSampleSize() { assertThat(requiresInSampleSize(null)).isFalse(); final BitmapFactory.Options defaultOptions = new BitmapFactory.Options(); assertThat(requiresInSampleSize(defaultOptions)).isFalse(); final BitmapFactory.Options justBounds = new BitmapFactory.Options(); justBounds.inJustDecodeBounds = true; assertThat(requiresInSampleSize(justBounds)).isTrue(); }
static boolean requiresInSampleSize(BitmapFactory.Options options) { return options != null && options.inJustDecodeBounds; }
RequestHandler { static boolean requiresInSampleSize(BitmapFactory.Options options) { return options != null && options.inJustDecodeBounds; } }
RequestHandler { static boolean requiresInSampleSize(BitmapFactory.Options options) { return options != null && options.inJustDecodeBounds; }  }
RequestHandler { static boolean requiresInSampleSize(BitmapFactory.Options options) { return options != null && options.inJustDecodeBounds; }  abstract boolean canHandleRequest(Request data); @Nullable abstract Result load(Request request, int networkPolicy); }
RequestHandler { static boolean requiresInSampleSize(BitmapFactory.Options options) { return options != null && options.inJustDecodeBounds; }  abstract boolean canHandleRequest(Request data); @Nullable abstract Result load(Request request, int networkPolicy);  }