@Test public void shouldCreateScaledScreenShotOfActivityWithoutStatusBar() { ScrenShootedActivityShadow screnShootedActivityShadow = (ScrenShootedActivityShadow) shadowOf(activityToTestScreenshoot); int scaledWindowHeight = (int) (screnShootedActivityShadow.WINDOW_HEIGHT * FoggerConfig.getScreenshotScale()); int scaledWindowWidth = (int) (screnShootedActivityShadow.WINDOW_WIDTH * FoggerConfig.getScreenshotScale()); int scaledStatusBarHeight = extractScaledStatusBarScaledHeight(); Bitmap screenShot = screenShooter.createScreenShot(activityToTestScreenshoot); assertThat(screenShot.getHeight()).isEqualTo(scaledWindowHeight - scaledStatusBarHeight); assertThat(screenShot.getWidth()).isEqualTo(scaledWindowWidth); }
public Bitmap createScreenShot(View view) { return createViewScreenshot(view, false); }
ScreenShooter { public Bitmap createScreenShot(View view) { return createViewScreenshot(view, false); } }
ScreenShooter { public Bitmap createScreenShot(View view) { return createViewScreenshot(view, false); }  }
ScreenShooter { public Bitmap createScreenShot(View view) { return createViewScreenshot(view, false); }  Bitmap createScreenShot(View view); Bitmap createScreenShot(Activity activity); }
ScreenShooter { public Bitmap createScreenShot(View view) { return createViewScreenshot(view, false); }  Bitmap createScreenShot(View view); Bitmap createScreenShot(Activity activity);  }