Loading services/core/java/com/android/server/wm/DisplayPolicy.java +1 −2 Original line number Diff line number Diff line Loading @@ -2853,8 +2853,7 @@ public class DisplayPolicy { @VisibleForTesting int updateLightNavigationBarLw(int appearance, WindowState navColorWin) { if (navColorWin == null || navColorWin.isDimming() || !isLightBarAllowed(navColorWin, Type.navigationBars())) { if (navColorWin == null || !isLightBarAllowed(navColorWin, Type.navigationBars())) { // Clear the light flag while not allowed. appearance &= ~APPEARANCE_LIGHT_NAVIGATION_BARS; return appearance; Loading services/tests/wmtests/src/com/android/server/wm/DisplayPolicyTests.java +0 −5 Original line number Diff line number Diff line Loading @@ -189,11 +189,6 @@ public class DisplayPolicyTests extends WindowTestsBase { assertEquals(0, displayPolicy.updateLightNavigationBarLw(APPEARANCE_LIGHT_NAVIGATION_BARS, null)); // Dimming window clears APPEARANCE_LIGHT_NAVIGATION_BARS. assertEquals(0, displayPolicy.updateLightNavigationBarLw(0, dimming)); assertEquals(0, displayPolicy.updateLightNavigationBarLw( APPEARANCE_LIGHT_NAVIGATION_BARS, dimming)); // Control window overrides APPEARANCE_LIGHT_NAVIGATION_BARS flag. assertEquals(0, displayPolicy.updateLightNavigationBarLw(0, opaqueDarkNavBar)); assertEquals(0, displayPolicy.updateLightNavigationBarLw( Loading Loading
services/core/java/com/android/server/wm/DisplayPolicy.java +1 −2 Original line number Diff line number Diff line Loading @@ -2853,8 +2853,7 @@ public class DisplayPolicy { @VisibleForTesting int updateLightNavigationBarLw(int appearance, WindowState navColorWin) { if (navColorWin == null || navColorWin.isDimming() || !isLightBarAllowed(navColorWin, Type.navigationBars())) { if (navColorWin == null || !isLightBarAllowed(navColorWin, Type.navigationBars())) { // Clear the light flag while not allowed. appearance &= ~APPEARANCE_LIGHT_NAVIGATION_BARS; return appearance; Loading
services/tests/wmtests/src/com/android/server/wm/DisplayPolicyTests.java +0 −5 Original line number Diff line number Diff line Loading @@ -189,11 +189,6 @@ public class DisplayPolicyTests extends WindowTestsBase { assertEquals(0, displayPolicy.updateLightNavigationBarLw(APPEARANCE_LIGHT_NAVIGATION_BARS, null)); // Dimming window clears APPEARANCE_LIGHT_NAVIGATION_BARS. assertEquals(0, displayPolicy.updateLightNavigationBarLw(0, dimming)); assertEquals(0, displayPolicy.updateLightNavigationBarLw( APPEARANCE_LIGHT_NAVIGATION_BARS, dimming)); // Control window overrides APPEARANCE_LIGHT_NAVIGATION_BARS flag. assertEquals(0, displayPolicy.updateLightNavigationBarLw(0, opaqueDarkNavBar)); assertEquals(0, displayPolicy.updateLightNavigationBarLw( Loading