Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModelTest.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -607,7 +607,7 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) shadeTestUtil.setQsExpansion(0.0f) shadeTestUtil.setQsExpansion(0.0f) fakeKeyguardRepository.setKeyguardShowing(false) fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) runCurrent() runCurrent() assertThat(animationsEnabled).isTrue() assertThat(animationsEnabled).isTrue() Loading @@ -620,7 +620,7 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) shadeTestUtil.setQsExpansion(0.0f) shadeTestUtil.setQsExpansion(0.0f) fakeKeyguardRepository.setKeyguardShowing(true) fakeKeyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) runCurrent() runCurrent() assertThat(animationsEnabled).isFalse() assertThat(animationsEnabled).isFalse() Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModel.kt +6 −7 Original line number Original line Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dump.DumpManager import com.android.systemui.dump.DumpManager import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.statusbar.domain.interactor.RemoteInputInteractor import com.android.systemui.statusbar.domain.interactor.RemoteInputInteractor import com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractor import com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractor Loading Loading @@ -59,7 +58,6 @@ constructor( activeNotificationsInteractor: ActiveNotificationsInteractor, activeNotificationsInteractor: ActiveNotificationsInteractor, notificationStackInteractor: NotificationStackInteractor, notificationStackInteractor: NotificationStackInteractor, private val headsUpNotificationInteractor: HeadsUpNotificationInteractor, private val headsUpNotificationInteractor: HeadsUpNotificationInteractor, keyguardInteractor: KeyguardInteractor, remoteInputInteractor: RemoteInputInteractor, remoteInputInteractor: RemoteInputInteractor, seenNotificationsInteractor: SeenNotificationsInteractor, seenNotificationsInteractor: SeenNotificationsInteractor, shadeInteractor: ShadeInteractor, shadeInteractor: ShadeInteractor, Loading Loading @@ -277,10 +275,11 @@ constructor( if (NotificationsHeadsUpRefactor.isUnexpectedlyInLegacyMode()) { if (NotificationsHeadsUpRefactor.isUnexpectedlyInLegacyMode()) { flowOf(false) flowOf(false) } else { } else { combine(keyguardInteractor.isKeyguardShowing, shadeInteractor.isShadeFullyExpanded) { combine( (isKeyguardShowing, isShadeFullyExpanded) -> notificationStackInteractor.isShowingOnLockscreen, // TODO(b/325936094) use isShadeFullyCollapsed instead shadeInteractor.isShadeFullyCollapsed !isKeyguardShowing && !isShadeFullyExpanded ) { (isKeyguardShowing, isShadeFullyCollapsed) -> !isKeyguardShowing && isShadeFullyCollapsed } } .dumpWhileCollecting("headsUpAnimationsEnabled") .dumpWhileCollecting("headsUpAnimationsEnabled") } } Loading packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModelKosmos.kt +0 −2 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel package com.android.systemui.statusbar.notification.stack.ui.viewmodel import com.android.systemui.dump.dumpManager import com.android.systemui.dump.dumpManager import com.android.systemui.keyguard.domain.interactor.keyguardInteractor import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.Kosmos.Fixture import com.android.systemui.kosmos.Kosmos.Fixture import com.android.systemui.kosmos.testDispatcher import com.android.systemui.kosmos.testDispatcher Loading @@ -42,7 +41,6 @@ val Kosmos.notificationListViewModel by Fixture { activeNotificationsInteractor, activeNotificationsInteractor, notificationStackInteractor, notificationStackInteractor, headsUpNotificationInteractor, headsUpNotificationInteractor, keyguardInteractor, remoteInputInteractor, remoteInputInteractor, seenNotificationsInteractor, seenNotificationsInteractor, shadeInteractor, shadeInteractor, Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModelTest.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -607,7 +607,7 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) shadeTestUtil.setQsExpansion(0.0f) shadeTestUtil.setQsExpansion(0.0f) fakeKeyguardRepository.setKeyguardShowing(false) fakeKeyguardRepository.setStatusBarState(StatusBarState.SHADE) runCurrent() runCurrent() assertThat(animationsEnabled).isTrue() assertThat(animationsEnabled).isTrue() Loading @@ -620,7 +620,7 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled) shadeTestUtil.setQsExpansion(0.0f) shadeTestUtil.setQsExpansion(0.0f) fakeKeyguardRepository.setKeyguardShowing(true) fakeKeyguardRepository.setStatusBarState(StatusBarState.KEYGUARD) runCurrent() runCurrent() assertThat(animationsEnabled).isFalse() assertThat(animationsEnabled).isFalse() Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModel.kt +6 −7 Original line number Original line Diff line number Diff line Loading @@ -18,7 +18,6 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dump.DumpManager import com.android.systemui.dump.DumpManager import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.shade.domain.interactor.ShadeInteractor import com.android.systemui.statusbar.domain.interactor.RemoteInputInteractor import com.android.systemui.statusbar.domain.interactor.RemoteInputInteractor import com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractor import com.android.systemui.statusbar.notification.domain.interactor.ActiveNotificationsInteractor Loading Loading @@ -59,7 +58,6 @@ constructor( activeNotificationsInteractor: ActiveNotificationsInteractor, activeNotificationsInteractor: ActiveNotificationsInteractor, notificationStackInteractor: NotificationStackInteractor, notificationStackInteractor: NotificationStackInteractor, private val headsUpNotificationInteractor: HeadsUpNotificationInteractor, private val headsUpNotificationInteractor: HeadsUpNotificationInteractor, keyguardInteractor: KeyguardInteractor, remoteInputInteractor: RemoteInputInteractor, remoteInputInteractor: RemoteInputInteractor, seenNotificationsInteractor: SeenNotificationsInteractor, seenNotificationsInteractor: SeenNotificationsInteractor, shadeInteractor: ShadeInteractor, shadeInteractor: ShadeInteractor, Loading Loading @@ -277,10 +275,11 @@ constructor( if (NotificationsHeadsUpRefactor.isUnexpectedlyInLegacyMode()) { if (NotificationsHeadsUpRefactor.isUnexpectedlyInLegacyMode()) { flowOf(false) flowOf(false) } else { } else { combine(keyguardInteractor.isKeyguardShowing, shadeInteractor.isShadeFullyExpanded) { combine( (isKeyguardShowing, isShadeFullyExpanded) -> notificationStackInteractor.isShowingOnLockscreen, // TODO(b/325936094) use isShadeFullyCollapsed instead shadeInteractor.isShadeFullyCollapsed !isKeyguardShowing && !isShadeFullyExpanded ) { (isKeyguardShowing, isShadeFullyCollapsed) -> !isKeyguardShowing && isShadeFullyCollapsed } } .dumpWhileCollecting("headsUpAnimationsEnabled") .dumpWhileCollecting("headsUpAnimationsEnabled") } } Loading
packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationListViewModelKosmos.kt +0 −2 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package com.android.systemui.statusbar.notification.stack.ui.viewmodel package com.android.systemui.statusbar.notification.stack.ui.viewmodel import com.android.systemui.dump.dumpManager import com.android.systemui.dump.dumpManager import com.android.systemui.keyguard.domain.interactor.keyguardInteractor import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.Kosmos.Fixture import com.android.systemui.kosmos.Kosmos.Fixture import com.android.systemui.kosmos.testDispatcher import com.android.systemui.kosmos.testDispatcher Loading @@ -42,7 +41,6 @@ val Kosmos.notificationListViewModel by Fixture { activeNotificationsInteractor, activeNotificationsInteractor, notificationStackInteractor, notificationStackInteractor, headsUpNotificationInteractor, headsUpNotificationInteractor, keyguardInteractor, remoteInputInteractor, remoteInputInteractor, seenNotificationsInteractor, seenNotificationsInteractor, shadeInteractor, shadeInteractor, Loading