private void saveTiling(
      MetadataRecorder.ScreenshotMetadataRecorder recorder, RecordBuilderImpl recordBuilder)
      throws IOException {
    Tiling tiling = recordBuilder.getTiling();
    for (int i = 0; i < tiling.getWidth(); i++) {
      for (int j = 0; j < tiling.getHeight(); j++) {
        File file = new File(mDir, generateTileName(recordBuilder.getName(), i, j));

        recorder
            .withAbsoluteFileName(file.getAbsolutePath())
            .withRelativeFileName(getRelativePath(file, mDir));
      }
    }
  }
Add the given record to the album. This is called by RecordBuilderImpl#record() and so is an
internal detail.
core/src/main/java/com/facebook/testing/screenshot/internal/AlbumImpl.java