shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java
public void setName(String name) {
    if (isJB()) {
      this.name = name;
    } else {
      ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
          di -> di.name = name);
    }
  }
public void setName(String name) {
    if (isJB()) {
      this.name = name;
    } else {
      ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
          di -> di.name = name);
    }
  }
public void setName ( String name ) { if ( isJB ( ) ) { this . name = name ; } else { ShadowDisplayManager . changeDisplay ( realObject . getDisplayId ( ) , di -> di . name = name ) ; } }
Changes the name for this display.

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