Home
last modified time | relevance | path

Searched refs:ShadeMode (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/shared/model/
DShadeMode.kt20 sealed interface ShadeMode { interface
27 data object Single : ShadeMode
33 data object Split : ShadeMode
40 data object Dual : ShadeMode
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardClockInteractorTest.kt40 import com.android.systemui.shade.shared.model.ShadeMode
106 kosmos.shadeRepository.setShadeMode(ShadeMode.Single) in clockSize_SceneContainerFlagOn_shadeModeSingle_hasNotifs_SMALL()
116 kosmos.shadeRepository.setShadeMode(ShadeMode.Single) in clockSize_SceneContainerFlagOn_shadeModeSingle_hasMedia_SMALL()
128 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockSize_SceneContainerFlagOn_shadeModeSplit_isMediaVisible_SMALL()
139 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockSize_SceneContainerFlagOn_shadeModeSplit_noMedia_LARGE()
150 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockSize_SceneContainerFlagOn_shadeModeSplit_isDozing_LARGE()
161 kosmos.shadeRepository.setShadeMode(ShadeMode.Single) in clockShouldBeCentered_sceneContainerFlagOn_notSplitMode_true()
170 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockShouldBeCentered_sceneContainerFlagOn_splitMode_noActiveNotifications_true()
180 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockShouldBeCentered_sceneContainerFlagOn_splitMode_isActiveDreamLockscreenHosted_true()
191 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in clockShouldBeCentered_sceneContainerFlagOn_splitMode_hasPulsingNotifications_false()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/resolver/
DNotifShadeSceneFamilyResolver.kt25 import com.android.systemui.shade.shared.model.ShadeMode
56 private fun notifShadeScene(shadeMode: ShadeMode) = in includesScene()
58 is ShadeMode.Single -> Scenes.Shade in includesScene()
59 is ShadeMode.Dual -> Scenes.NotificationsShade in includesScene()
60 is ShadeMode.Split -> Scenes.Shade in includesScene()
DQuickSettingsSceneFamilyResolver.kt25 import com.android.systemui.shade.shared.model.ShadeMode
56 private fun quickSettingsScene(shadeMode: ShadeMode) = in includesScene()
58 is ShadeMode.Single -> Scenes.QuickSettings in includesScene()
59 is ShadeMode.Dual -> Scenes.QuickSettingsShade in includesScene()
60 is ShadeMode.Split -> Scenes.Shade in includesScene()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/viewmodel/
DGoneSceneViewModel.kt29 import com.android.systemui.shade.shared.model.ShadeMode
57 shadeMode: ShadeMode, in destinationScenes()
61 shadeMode is ShadeMode.Single || in destinationScenes()
63 shadeMode is ShadeMode.Dual in destinationScenes()
79 ToSplitShade.takeIf { shadeMode is ShadeMode.Split } in destinationScenes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DShadeRepository.kt20 import com.android.systemui.shade.shared.model.ShadeMode
105 val shadeMode: StateFlow<ShadeMode>
113 fun setShadeMode(mode: ShadeMode) in setShadeMode()
223 val _shadeMode = MutableStateFlow(if (DualShade.isEnabled) ShadeMode.Dual else ShadeMode.Single) in setShadeMode()
224 override val shadeMode: StateFlow<ShadeMode> = _shadeMode.asStateFlow() in setShadeMode()
226 override fun setShadeMode(shadeMode: ShadeMode) { in setShadeMode()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/data/repository/
DFakeShadeRepository.kt21 import com.android.systemui.shade.shared.model.ShadeMode
64 private val _shadeMode = MutableStateFlow<ShadeMode>(ShadeMode.Single)
65 override val shadeMode: StateFlow<ShadeMode> = _shadeMode.asStateFlow()
140 override fun setShadeMode(shadeMode: ShadeMode) { in setShadeMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/viewmodel/
DKeyguardClockViewModelTest.kt41 import com.android.systemui.shade.shared.model.ShadeMode
91 shadeRepository.setShadeMode(ShadeMode.Split) in currentClockLayout_splitShadeOn_clockCentered_largeClock()
106 shadeRepository.setShadeMode(ShadeMode.Split) in currentClockLayout_splitShadeOn_clockNotCentered_largeClock_splitShadeLargeClock()
121 shadeRepository.setShadeMode(ShadeMode.Split) in currentClockLayout_splitShadeOn_clockNotCentered_smallClock_splitShadeSmallClock()
136 shadeRepository.setShadeMode(ShadeMode.Single) in currentClockLayout_singleShade_smallClock_smallClock()
149 shadeRepository.setShadeMode(ShadeMode.Single) in currentClockLayout_singleShade_largeClock_largeClock()
237 shadeRepository.setShadeMode(ShadeMode.Split) in testSmallClockTop_splitShade_composeLockscreenOn()
252 shadeRepository.setShadeMode(ShadeMode.Split) in testSmallClockTop_splitShade_composeLockscreenOff()
265 shadeRepository.setShadeMode(ShadeMode.Single) in testSmallClockTop_nonSplitShade_composeLockscreenOn()
278 shadeRepository.setShadeMode(ShadeMode.Single) in testSmallClockTop_nonSplitShade_composeLockscreenOff()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/
DLockscreenSceneViewModel.kt34 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
92 shadeMode: ShadeMode, in <lambda>()
97 transitionKey = ToSplitShade.takeIf { shadeMode is ShadeMode.Split }, in <lambda>()
106 if (shadeMode is ShadeMode.Single) { in <lambda>()
116 transitionKey = ToSplitShade.takeIf { shadeMode is ShadeMode.Split } in <lambda>()
DKeyguardClockViewModel.kt33 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
129 val shouldUseSplitShade = shadeMode == ShadeMode.Split in <lambda>()
171 return if (shadeInteractor.shadeMode.value == ShadeMode.Split) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DShadeInteractorEmptyImpl.kt20 import com.android.systemui.shade.shared.model.ShadeMode
48 override val shadeMode: StateFlow<ShadeMode> = MutableStateFlow(ShadeMode.Single)
DShadeBackActionInteractorImpl.kt23 import com.android.systemui.shade.shared.model.ShadeMode
39 if (fullyCollapse || shadeInteractor.shadeMode.value is ShadeMode.Dual) { in animateCollapseQs()
DShadeInteractor.kt19 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
113 val shadeMode: StateFlow<ShadeMode>
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/startable/
DShadeStartable.kt33 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
86 shadeRepository.setShadeMode(ShadeMode.Dual) in <lambda>()
99 if (isSplitShade) ShadeMode.Split else ShadeMode.Single in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/startable/
DShadeStartableTest.kt43 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
94 assertThat(shadeMode).isEqualTo(ShadeMode.Single) in <lambda>()
98 assertThat(shadeMode).isEqualTo(ShadeMode.Split) in <lambda>()
102 assertThat(shadeMode).isEqualTo(ShadeMode.Single) in <lambda>()
113 assertThat(shadeMode).isEqualTo(ShadeMode.Dual) in <lambda>()
117 assertThat(shadeMode).isEqualTo(ShadeMode.Dual) in <lambda>()
121 assertThat(shadeMode).isEqualTo(ShadeMode.Dual) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ui/viewmodel/
DShadeSceneViewModel.kt39 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
108 val shadeMode: StateFlow<ShadeMode> = shadeInteractor.shadeMode in <lambda>()
139 shadeMode: ShadeMode, in <lambda>()
148 ToSplitShade.takeIf { shadeMode is ShadeMode.Split } in <lambda>()
152 if (shadeMode is ShadeMode.Single) { in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/domain/interactor/
DNotificationStackAppearanceInteractorTest.kt25 import com.android.systemui.shade.shared.model.ShadeMode
69 kosmos.shadeRepository.setShadeMode(ShadeMode.Single) in stackRounding()
73 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in stackRounding()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/ui/viewmodel/
DGoneSceneViewModelTest.kt31 import com.android.systemui.shade.shared.model.ShadeMode
66 shadeRepository.setShadeMode(ShadeMode.Split) in downTransitionKey_splitShadeEnabled_isGoneToSplitShade()
77 shadeRepository.setShadeMode(ShadeMode.Single) in downTransitionKey_splitShadeDisabled_isNull()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ui/viewmodel/
DShadeSceneViewModelTest.kt54 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
178 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
189 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
289 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
290 assertThat(shadeMode).isEqualTo(ShadeMode.Split) in <lambda>()
292 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
293 assertThat(shadeMode).isEqualTo(ShadeMode.Single) in <lambda>()
295 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
296 assertThat(shadeMode).isEqualTo(ShadeMode.Split) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DLockscreenContentViewModelTest.kt35 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
72 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
122 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
157 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
168 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/domain/interactor/
DNotificationStackAppearanceInteractor.kt22 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
62 isTopRounded = !(shadeMode == ShadeMode.Split && isExpandingFromHeadsUp), in <lambda>()
63 isBottomRounded = shadeMode != ShadeMode.Single, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardBlueprintInteractorTest.kt39 import com.android.systemui.shade.shared.model.ShadeMode
87 kosmos.shadeRepository.setShadeMode(ShadeMode.Single) in testAppliesDefaultBlueprint()
101 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in testAppliesSplitShadeBlueprint()
115 kosmos.shadeRepository.setShadeMode(ShadeMode.Split) in testDoesNotApplySplitShadeBlueprint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardClockInteractor.kt34 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
88 shadeMode == ShadeMode.Single && (hasNotifs || hasMedia) -> ClockSize.SMALL in <lambda>()
89 shadeMode == ShadeMode.Single -> ClockSize.LARGE in <lambda>()
120 shadeMode != ShadeMode.Split -> true in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/view/layout/sections/
DClockSectionTest.kt42 import com.android.systemui.shade.shared.model.ShadeMode in <lambda>()
130 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
150 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
175 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
200 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
224 shadeRepository.setShadeMode(ShadeMode.Split) in <lambda>()
248 shadeRepository.setShadeMode(ShadeMode.Single) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/
DShadeInteractorSceneContainerImplTest.kt32 import com.android.systemui.shade.shared.model.ShadeMode
579 shadeRepository.setShadeMode(ShadeMode.Split) in shadeMode()
580 assertThat(shadeMode).isEqualTo(ShadeMode.Split) in shadeMode()
582 shadeRepository.setShadeMode(ShadeMode.Single) in shadeMode()
583 assertThat(shadeMode).isEqualTo(ShadeMode.Single) in shadeMode()
585 shadeRepository.setShadeMode(ShadeMode.Split) in shadeMode()
586 assertThat(shadeMode).isEqualTo(ShadeMode.Split) in shadeMode()

12