code: public static Bitmap decodeStream(InputStream stream, boolean closeStream) {
          return AsyncBitmapTexture.decodeStream(stream,
                  AsyncBitmapTexture.glMaxTextureSize,
                  AsyncBitmapTexture.glMaxTextureSize, true, null, closeStream);
      }
docs: An internal method, public only so that GVRContext can make cross-package
  calls.
  
  A synchronous (blocking) wrapper around
  {@link android.graphics.BitmapFactory#decodeStream(InputStream)
  BitmapFactory.decodeStream} that uses an
  {@link android.graphics.BitmapFactory.Options} <code>inTempStorage</code>
  decode buffer. On low memory, returns half (quarter, eighth, ...) size
  images.
  <p>
  If {@code stream} is a {@link FileInputStream} and is at offset 0 (zero),
  uses
  {@link android.graphics.BitmapFactory#decodeFileDescriptor(FileDescriptor)
  BitmapFactory.decodeFileDescriptor()} instead of
  {@link android.graphics.BitmapFactory#decodeStream(InputStream)
  BitmapFactory.decodeStream()}.
  
  @param stream
  Bitmap stream
  @param closeStream
  If {@code true}, closes {@code stream}
  @return Bitmap, or null if cannot be decoded into a bitmap