public void setRealWidth(int width) {
    if (isJB()) {
      this.realWidth = width;
    } else {
      ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
          di -> di.logicalWidth = width);
    }
  }
public void setRealWidth(int width) {
    if (isJB()) {
      this.realWidth = width;
    } else {
      ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
          di -> di.logicalWidth = width);
    }
  }
public void setRealWidth ( int width ) { if ( isJB ( ) ) { this . realWidth = width ; } else { ShadowDisplayManager . changeDisplay ( realObject . getDisplayId ( ) , di -> di . logicalWidth = width ) ; } }
Changes the simulated physical width for this display.

Any registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be
notified of the change.

@param width the new width in pixels
Changes the simulated physical width for this display .