code: public void setRealHeight(int height) {
      if (isJB()) {
        this.realHeight = height;
      } else {
        ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
            di -> di.logicalHeight = height);
      }
    }
docs: Changes the simulated physical height for this display.
  
  Any registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be
  notified of the change.
  
  @param height the new height in pixels