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

Commit 9894b250 authored by jorgegil@google.com's avatar jorgegil@google.com
Browse files

Add default minimal size to WMS proto

This change allows aspect ratio tests to determine
whether the minimal size restrictions are influcing
the aspect ratio requests.

Bug: 194520339
Test: builds
Change-Id: I873c567790c53e6442d0859f7fc5f9d6beb0f3fd
parent 55290e4d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ message RootWindowContainerProto {
    // know what activity types to check for when invoking splitscreen multi-window.
    optional bool is_home_recents_component = 6;
    repeated IdentifierProto pending_activities = 7 [deprecated=true];
    optional int32 default_min_size_resizable_task = 8;
}

message BarControllerProto {
+7 −1
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ import static com.android.server.wm.ActivityTaskSupervisor.PRESERVE_WINDOWS;
import static com.android.server.wm.ActivityTaskSupervisor.dumpHistoryList;
import static com.android.server.wm.ActivityTaskSupervisor.printThisActivity;
import static com.android.server.wm.KeyguardController.KEYGUARD_SLEEP_TOKEN_TAG;
import static com.android.server.wm.RootWindowContainerProto.DEFAULT_MIN_SIZE_RESIZABLE_TASK;
import static com.android.server.wm.RootWindowContainerProto.IS_HOME_RECENTS_COMPONENT;
import static com.android.server.wm.RootWindowContainerProto.KEYGUARD_CONTROLLER;
import static com.android.server.wm.RootWindowContainerProto.WINDOW_CONTAINER;
@@ -1253,6 +1254,11 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
        pw.println(mTopFocusedDisplayId);
    }

    void dumpDefaultMinSizeOfResizableTask(PrintWriter pw) {
        pw.print("  mDefaultMinSizeOfResizeableTaskDp=");
        pw.println(mDefaultMinSizeOfResizeableTaskDp);
    }

    void dumpLayoutNeededDisplayIds(PrintWriter pw) {
        if (!isLayoutNeeded()) {
            return;
@@ -1299,7 +1305,7 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
        mTaskSupervisor.getKeyguardController().dumpDebug(proto, KEYGUARD_CONTROLLER);
        proto.write(IS_HOME_RECENTS_COMPONENT,
                mTaskSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser));

        proto.write(DEFAULT_MIN_SIZE_RESIZABLE_TASK, mDefaultMinSizeOfResizeableTaskDp);
        proto.end(token);
    }

+1 −0
Original line number Diff line number Diff line
@@ -6331,6 +6331,7 @@ public class WindowManagerService extends IWindowManager.Stub
        pw.print("  mGlobalConfiguration="); pw.println(mRoot.getConfiguration());
        pw.print("  mHasPermanentDpad="); pw.println(mHasPermanentDpad);
        mRoot.dumpTopFocusedDisplayId(pw);
        mRoot.dumpDefaultMinSizeOfResizableTask(pw);
        mRoot.forAllDisplays(dc -> {
            final int displayId = dc.getDisplayId();
            final InsetsControlTarget imeLayeringTarget = dc.getImeTarget(IME_TARGET_LAYERING);