Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6d5a274 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove enabled flag cache_window_style

Bug: 410457222
Flag: EXEMPT flag removal
Test: CtsWindowManagerDeviceWindow
Change-Id: If9fb5a0ee1dccd59bef9afb392e523175113bb7d
parent a21b506c
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -29,17 +29,6 @@ flag {
  }
}

flag {
  name: "cache_window_style"
  namespace: "windowing_frontend"
  description: "Cache common window styles"
  bug: "350394503"
  is_fixed_read_only: true
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "respect_hierarchy_surface_visibility"
  namespace: "windowing_frontend"
+0 −11
Original line number Diff line number Diff line
@@ -5619,11 +5619,6 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {

    @Nullable
    ActivityRecord.WindowStyle getWindowStyle(String packageName, int theme, int userId) {
        if (!com.android.window.flags.Flags.cacheWindowStyle()) {
            final AttributeCache.Entry ent = AttributeCache.instance().get(packageName,
                    theme, com.android.internal.R.styleable.Window, userId);
            return ent != null ? new ActivityRecord.WindowStyle(ent.array) : null;
        }
        return mWindowStyleCache.get(packageName, theme, userId);
    }

@@ -7435,12 +7430,6 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {

        @Override
        public boolean isNoDisplay(String packageName, int theme, int userId) {
            if (!com.android.window.flags.Flags.cacheWindowStyle()) {
                final AttributeCache.Entry ent = AttributeCache.instance()
                        .get(packageName, theme, R.styleable.Window, userId);
                return ent != null
                        && ent.array.getBoolean(R.styleable.Window_windowNoDisplay, false);
            }
            final ActivityRecord.WindowStyle style = getWindowStyle(packageName, theme, userId);
            return style != null && style.noDisplay();
        }