code: public void setName(String name) {
      if (isJB()) {
        this.name = name;
      } else {
        ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
            di -> di.name = name);
      }
    }
docs: Changes the name for this display.
  
  Any registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be
  notified of the change.