/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/shared/model/ |
D | ShadeMode.kt | 20 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/ |
D | KeyguardClockInteractorTest.kt | 40 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/ |
D | NotifShadeSceneFamilyResolver.kt | 25 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()
|
D | QuickSettingsSceneFamilyResolver.kt | 25 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/ |
D | GoneSceneViewModel.kt | 29 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/ |
D | ShadeRepository.kt | 20 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/ |
D | FakeShadeRepository.kt | 21 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/ |
D | KeyguardClockViewModelTest.kt | 41 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/ |
D | LockscreenSceneViewModel.kt | 34 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>()
|
D | KeyguardClockViewModel.kt | 33 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/ |
D | ShadeInteractorEmptyImpl.kt | 20 import com.android.systemui.shade.shared.model.ShadeMode 48 override val shadeMode: StateFlow<ShadeMode> = MutableStateFlow(ShadeMode.Single)
|
D | ShadeBackActionInteractorImpl.kt | 23 import com.android.systemui.shade.shared.model.ShadeMode 39 if (fullyCollapse || shadeInteractor.shadeMode.value is ShadeMode.Dual) { in animateCollapseQs()
|
D | ShadeInteractor.kt | 19 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/ |
D | ShadeStartable.kt | 33 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/ |
D | ShadeStartableTest.kt | 43 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/ |
D | ShadeSceneViewModel.kt | 39 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/ |
D | NotificationStackAppearanceInteractorTest.kt | 25 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/ |
D | GoneSceneViewModelTest.kt | 31 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/ |
D | ShadeSceneViewModelTest.kt | 54 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/ |
D | LockscreenContentViewModelTest.kt | 35 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/ |
D | NotificationStackAppearanceInteractor.kt | 22 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/ |
D | KeyguardBlueprintInteractorTest.kt | 39 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/ |
D | KeyguardClockInteractor.kt | 34 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/ |
D | ClockSectionTest.kt | 42 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/ |
D | ShadeInteractorSceneContainerImplTest.kt | 32 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()
|