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

Commit 843108fd authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/30844355',...

Merge cherrypicks of ['googleplex-android-review.googlesource.com/30844355', 'googleplex-android-review.googlesource.com/30936811', 'googleplex-android-review.googlesource.com/30936970'] into 25Q1-release.

Change-Id: I0bfb98257048fabec73b91f35b6146a2977f8d38
parents 14709af4 c61db9b9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import android.view.WindowManagerGlobal;

import com.android.internal.annotations.GuardedBy;
import com.android.internal.annotations.VisibleForTesting;
import com.android.window.flags.Flags;

/**
 * Singleton controller to manage the attached {@link WindowTokenClient}s, and to dispatch
@@ -137,7 +138,9 @@ public class WindowTokenClientController {
            // is initialized later, the SystemUiContext will start reporting from
            // DisplayContent#registerSystemUiContext, and WindowTokenClientController can report
            // the Configuration to the correct client.
            if (Flags.trackSystemUiContextBeforeWms()) {
                recordWindowContextToken(client);
            }
            return false;
        }
        final WindowContextInfo info;
+11 −0
Original line number Diff line number Diff line
@@ -127,3 +127,14 @@ flag {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    namespace: "windowing_sdk"
    name: "track_system_ui_context_before_wms"
    description: "Keep track of SystemUiContext before WMS is initialized"
    bug: "384428048"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}
+8 −0
Original line number Diff line number Diff line
@@ -33,11 +33,15 @@ import android.app.ActivityThread;
import android.content.res.Configuration;
import android.os.IBinder;
import android.os.RemoteException;
import android.platform.test.annotations.EnableFlags;
import android.platform.test.annotations.Presubmit;
import android.platform.test.flag.junit.SetFlagsRule;
import android.view.IWindowManager;

import androidx.test.filters.SmallTest;

import com.android.window.flags.Flags;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -58,6 +62,9 @@ public class WindowTokenClientControllerTest {
    @Rule
    public final MockitoRule mockito = MockitoJUnit.rule();

    @Rule
    public SetFlagsRule setFlagsRule = new SetFlagsRule();

    @Mock
    private IWindowManager mWindowManagerService;
    @Mock
@@ -161,6 +168,7 @@ public class WindowTokenClientControllerTest {
        verify(mWindowManagerService).detachWindowContext(mWindowTokenClient);
    }

    @EnableFlags(Flags.FLAG_TRACK_SYSTEM_UI_CONTEXT_BEFORE_WMS)
    @Test
    public void testAttachToDisplayContent_keepTrackWithoutWMS() {
        // WMS is not initialized
+1 −1
Original line number Diff line number Diff line
@@ -679,7 +679,7 @@ flag {
flag {
    name: "volume_redesign"
    namespace: "systemui"
    description: "Enables Volume BC25 visuals update"
    description: "Enables Volume visuals update"
    bug: "368308908"
}