From aa918566f5f46ffa8ae0f2c01cc10c95b7b1e1ff Mon Sep 17 00:00:00 2001 From: Shan Huang Date: Fri, 21 Feb 2025 17:23:00 -0800 Subject: Replace @RequiresFlagsDisabled with @DisableFlags For some unknown reason the former was unsuccessful in skipping the test when the flag is enabled. Bug: 370555223 Flag: com.android.systemui.notification_shade_blur Test: atest NotificationShadeDepthControllerTest Change-Id: Iff9a3a23f6fa1788157dcbbbcb5b5a275de6159f --- .../android/systemui/statusbar/NotificationShadeDepthControllerTest.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt b/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt index c10fd5e18fc5..326d8ffd3c7c 100644 --- a/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt +++ b/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/NotificationShadeDepthControllerTest.kt @@ -19,7 +19,6 @@ package com.android.systemui.statusbar import android.os.IBinder import android.platform.test.annotations.DisableFlags import android.platform.test.annotations.EnableFlags -import android.platform.test.annotations.RequiresFlagsDisabled import android.testing.TestableLooper.RunWithLooper import android.view.Choreographer import android.view.View @@ -360,7 +359,7 @@ class NotificationShadeDepthControllerTest : SysuiTestCase() { } @Test - @RequiresFlagsDisabled(Flags.FLAG_NOTIFICATION_SHADE_BLUR) + @DisableFlags(Flags.FLAG_NOTIFICATION_SHADE_BLUR) fun updateBlurCallback_setsOpaque_whenScrim() { scrimVisibilityCaptor.value.accept(ScrimController.OPAQUE) notificationShadeDepthController.updateBlurCallback.doFrame(0) -- cgit v1.2.3-59-g8ed1b