code: public void setFlags(int flags) {
      reflector(_Display_.class, realObject).setFlags(flags);
  
      if (!isJB()) {
        ShadowDisplayManager.changeDisplay(realObject.getDisplayId(),
            di -> di.flags = flags);
      }
    }
docs: Changes the flags for this display.
  
  Any registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be
  notified of the change.