shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java
@Deprecated
  @Implementation
  protected int getPixelFormat() {
    return pixelFormat == null
        ? directlyOn(realObject, Display.class).getPixelFormat()
        : pixelFormat;
  }
@Deprecated
  @Implementation
  protected int getPixelFormat() {
    return pixelFormat == null
        ? directlyOn(realObject, Display.class).getPixelFormat()
        : pixelFormat;
  }
If {@link #setPixelFormat(int)} has been called, this method will return the specified value.

@deprecated This behavior is deprecated and will be removed in Robolectric 3.7.