Loading packages/SystemUI/aconfig/systemui.aconfig +0 −8 Original line number Diff line number Diff line Loading @@ -264,14 +264,6 @@ flag { bug: "337259436" } flag { name: "keyguard_bottom_area_refactor" namespace: "systemui" description: "Bottom area of keyguard refactor move into KeyguardRootView. Includes " "lock icon and others." bug: "290652751" } flag { name: "device_entry_udfps_refactor" namespace: "systemui" Loading packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/blueprint/DefaultBlueprint.kt +1 −0 Original line number Diff line number Diff line Loading @@ -159,6 +159,7 @@ constructor( with(lockSection) { LockIcon() } // Aligned to bottom and constrained to below the lock icon. // TODO("b/383588832") change this away from "keyguard_bottom_area" Column(modifier = Modifier.fillMaxWidth().sysuiResTag("keyguard_bottom_area")) { if (isUdfpsVisible && ambientIndicationSectionOptional.isPresent) { with(ambientIndicationSectionOptional.get()) { Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt +0 −21 Original line number Diff line number Diff line Loading @@ -122,27 +122,6 @@ class KeyguardRepositoryImplTest : SysuiTestCase() { assertThat(underTest.animateBottomAreaDozingTransitions.value).isTrue() } @Test fun bottomAreaAlpha() = testScope.runTest { assertThat(underTest.bottomAreaAlpha.value).isEqualTo(1f) underTest.setBottomAreaAlpha(0.1f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.1f) underTest.setBottomAreaAlpha(0.2f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.2f) underTest.setBottomAreaAlpha(0.3f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.3f) underTest.setBottomAreaAlpha(0.5f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.5f) underTest.setBottomAreaAlpha(1.0f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(1f) } @Test fun panelAlpha() = testScope.runTest { Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultIndicationAreaSectionTest.kt +0 −9 Original line number Diff line number Diff line Loading @@ -56,20 +56,11 @@ class DefaultIndicationAreaSectionTest : SysuiTestCase() { @Test fun addViewsConditionally() { mSetFlagsRule.enableFlags(AConfigFlags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) val constraintLayout = ConstraintLayout(context, null) underTest.addViews(constraintLayout) assertThat(constraintLayout.childCount).isGreaterThan(0) } @Test fun addViewsConditionally_migrateFlagOff() { mSetFlagsRule.disableFlags(AConfigFlags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) val constraintLayout = ConstraintLayout(context, null) underTest.addViews(constraintLayout) assertThat(constraintLayout.childCount).isEqualTo(0) } @Test fun applyConstraints() { val cs = ConstraintSet() Loading packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardIndicationAreaViewModelTest.kt +0 −47 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ import android.platform.test.annotations.DisableFlags import android.platform.test.flag.junit.FlagsParameterization import androidx.test.filters.SmallTest import com.android.compose.animation.scene.ObservableTransitionState import com.android.systemui.Flags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR import com.android.systemui.Flags.FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT import com.android.systemui.SysuiTestCase import com.android.systemui.common.ui.domain.interactor.configurationInteractor Loading @@ -31,7 +30,6 @@ import com.android.systemui.coroutines.collectLastValue import com.android.systemui.doze.util.BurnInHelperWrapper import com.android.systemui.keyguard.data.repository.fakeKeyguardRepository import com.android.systemui.keyguard.domain.interactor.BurnInInteractor import com.android.systemui.keyguard.domain.interactor.keyguardBottomAreaInteractor import com.android.systemui.keyguard.domain.interactor.keyguardInteractor import com.android.systemui.keyguard.domain.interactor.keyguardTransitionInteractor import com.android.systemui.keyguard.shared.model.BurnInModel Loading Loading @@ -61,8 +59,6 @@ import platform.test.runner.parameterized.Parameters class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiTestCase() { private val kosmos = testKosmos() private val testScope = kosmos.testScope private val bottomAreaInteractor = kosmos.keyguardBottomAreaInteractor private lateinit var underTest: KeyguardIndicationAreaViewModel private val keyguardRepository = kosmos.fakeKeyguardRepository private val communalSceneRepository = kosmos.fakeCommunalSceneRepository Loading @@ -87,12 +83,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT @Before fun setUp() { val bottomAreaViewModel = mock<KeyguardBottomAreaViewModel> { on { startButton } doReturn startButtonFlow on { endButton } doReturn endButtonFlow on { alpha } doReturn alphaFlow } val burnInInteractor = mock<BurnInInteractor> { on { burnIn(anyInt(), anyInt()) } doReturn flowOf(BurnInModel()) Loading @@ -109,8 +99,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT underTest = KeyguardIndicationAreaViewModel( keyguardInteractor = kosmos.keyguardInteractor, bottomAreaInteractor = bottomAreaInteractor, keyguardBottomAreaViewModel = bottomAreaViewModel, burnInHelperWrapper = burnInHelperWrapper, burnInInteractor = burnInInteractor, shortcutsCombinedViewModel = shortcutsCombinedViewModel, Loading @@ -123,23 +111,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT } @Test fun alpha() = testScope.runTest { val alpha by collectLastValue(underTest.alpha) assertThat(alpha).isEqualTo(1f) alphaFlow.value = 0.1f assertThat(alpha).isEqualTo(0.1f) alphaFlow.value = 0.5f assertThat(alpha).isEqualTo(0.5f) alphaFlow.value = 0.2f assertThat(alpha).isEqualTo(0.2f) alphaFlow.value = 0f assertThat(alpha).isEqualTo(0f) } @Test @DisableFlags(FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) fun isIndicationAreaPadded() = testScope.runTest { keyguardRepository.setKeyguardShowing(true) Loading @@ -156,23 +127,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT assertThat(isIndicationAreaPadded).isFalse() } @Test @DisableFlags(FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) fun indicationAreaTranslationX() = testScope.runTest { val translationX by collectLastValue(underTest.indicationAreaTranslationX) assertThat(translationX).isEqualTo(0f) bottomAreaInteractor.setClockPosition(100, 100) assertThat(translationX).isEqualTo(100f) bottomAreaInteractor.setClockPosition(200, 100) assertThat(translationX).isEqualTo(200f) bottomAreaInteractor.setClockPosition(200, 200) assertThat(translationX).isEqualTo(200f) bottomAreaInteractor.setClockPosition(300, 100) assertThat(translationX).isEqualTo(300f) } @Test @DisableFlags(FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT) fun indicationAreaTranslationY() = Loading Loading @@ -236,7 +190,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT @Parameters(name = "{0}") fun getParams(): List<FlagsParameterization> { return FlagsParameterization.allCombinationsOf( FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR, FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, ) } Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +0 −8 Original line number Diff line number Diff line Loading @@ -264,14 +264,6 @@ flag { bug: "337259436" } flag { name: "keyguard_bottom_area_refactor" namespace: "systemui" description: "Bottom area of keyguard refactor move into KeyguardRootView. Includes " "lock icon and others." bug: "290652751" } flag { name: "device_entry_udfps_refactor" namespace: "systemui" Loading
packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/blueprint/DefaultBlueprint.kt +1 −0 Original line number Diff line number Diff line Loading @@ -159,6 +159,7 @@ constructor( with(lockSection) { LockIcon() } // Aligned to bottom and constrained to below the lock icon. // TODO("b/383588832") change this away from "keyguard_bottom_area" Column(modifier = Modifier.fillMaxWidth().sysuiResTag("keyguard_bottom_area")) { if (isUdfpsVisible && ambientIndicationSectionOptional.isPresent) { with(ambientIndicationSectionOptional.get()) { Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/KeyguardRepositoryImplTest.kt +0 −21 Original line number Diff line number Diff line Loading @@ -122,27 +122,6 @@ class KeyguardRepositoryImplTest : SysuiTestCase() { assertThat(underTest.animateBottomAreaDozingTransitions.value).isTrue() } @Test fun bottomAreaAlpha() = testScope.runTest { assertThat(underTest.bottomAreaAlpha.value).isEqualTo(1f) underTest.setBottomAreaAlpha(0.1f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.1f) underTest.setBottomAreaAlpha(0.2f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.2f) underTest.setBottomAreaAlpha(0.3f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.3f) underTest.setBottomAreaAlpha(0.5f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(0.5f) underTest.setBottomAreaAlpha(1.0f) assertThat(underTest.bottomAreaAlpha.value).isEqualTo(1f) } @Test fun panelAlpha() = testScope.runTest { Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultIndicationAreaSectionTest.kt +0 −9 Original line number Diff line number Diff line Loading @@ -56,20 +56,11 @@ class DefaultIndicationAreaSectionTest : SysuiTestCase() { @Test fun addViewsConditionally() { mSetFlagsRule.enableFlags(AConfigFlags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) val constraintLayout = ConstraintLayout(context, null) underTest.addViews(constraintLayout) assertThat(constraintLayout.childCount).isGreaterThan(0) } @Test fun addViewsConditionally_migrateFlagOff() { mSetFlagsRule.disableFlags(AConfigFlags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) val constraintLayout = ConstraintLayout(context, null) underTest.addViews(constraintLayout) assertThat(constraintLayout.childCount).isEqualTo(0) } @Test fun applyConstraints() { val cs = ConstraintSet() Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardIndicationAreaViewModelTest.kt +0 −47 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ import android.platform.test.annotations.DisableFlags import android.platform.test.flag.junit.FlagsParameterization import androidx.test.filters.SmallTest import com.android.compose.animation.scene.ObservableTransitionState import com.android.systemui.Flags.FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR import com.android.systemui.Flags.FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT import com.android.systemui.SysuiTestCase import com.android.systemui.common.ui.domain.interactor.configurationInteractor Loading @@ -31,7 +30,6 @@ import com.android.systemui.coroutines.collectLastValue import com.android.systemui.doze.util.BurnInHelperWrapper import com.android.systemui.keyguard.data.repository.fakeKeyguardRepository import com.android.systemui.keyguard.domain.interactor.BurnInInteractor import com.android.systemui.keyguard.domain.interactor.keyguardBottomAreaInteractor import com.android.systemui.keyguard.domain.interactor.keyguardInteractor import com.android.systemui.keyguard.domain.interactor.keyguardTransitionInteractor import com.android.systemui.keyguard.shared.model.BurnInModel Loading Loading @@ -61,8 +59,6 @@ import platform.test.runner.parameterized.Parameters class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiTestCase() { private val kosmos = testKosmos() private val testScope = kosmos.testScope private val bottomAreaInteractor = kosmos.keyguardBottomAreaInteractor private lateinit var underTest: KeyguardIndicationAreaViewModel private val keyguardRepository = kosmos.fakeKeyguardRepository private val communalSceneRepository = kosmos.fakeCommunalSceneRepository Loading @@ -87,12 +83,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT @Before fun setUp() { val bottomAreaViewModel = mock<KeyguardBottomAreaViewModel> { on { startButton } doReturn startButtonFlow on { endButton } doReturn endButtonFlow on { alpha } doReturn alphaFlow } val burnInInteractor = mock<BurnInInteractor> { on { burnIn(anyInt(), anyInt()) } doReturn flowOf(BurnInModel()) Loading @@ -109,8 +99,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT underTest = KeyguardIndicationAreaViewModel( keyguardInteractor = kosmos.keyguardInteractor, bottomAreaInteractor = bottomAreaInteractor, keyguardBottomAreaViewModel = bottomAreaViewModel, burnInHelperWrapper = burnInHelperWrapper, burnInInteractor = burnInInteractor, shortcutsCombinedViewModel = shortcutsCombinedViewModel, Loading @@ -123,23 +111,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT } @Test fun alpha() = testScope.runTest { val alpha by collectLastValue(underTest.alpha) assertThat(alpha).isEqualTo(1f) alphaFlow.value = 0.1f assertThat(alpha).isEqualTo(0.1f) alphaFlow.value = 0.5f assertThat(alpha).isEqualTo(0.5f) alphaFlow.value = 0.2f assertThat(alpha).isEqualTo(0.2f) alphaFlow.value = 0f assertThat(alpha).isEqualTo(0f) } @Test @DisableFlags(FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) fun isIndicationAreaPadded() = testScope.runTest { keyguardRepository.setKeyguardShowing(true) Loading @@ -156,23 +127,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT assertThat(isIndicationAreaPadded).isFalse() } @Test @DisableFlags(FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR) fun indicationAreaTranslationX() = testScope.runTest { val translationX by collectLastValue(underTest.indicationAreaTranslationX) assertThat(translationX).isEqualTo(0f) bottomAreaInteractor.setClockPosition(100, 100) assertThat(translationX).isEqualTo(100f) bottomAreaInteractor.setClockPosition(200, 100) assertThat(translationX).isEqualTo(200f) bottomAreaInteractor.setClockPosition(200, 200) assertThat(translationX).isEqualTo(200f) bottomAreaInteractor.setClockPosition(300, 100) assertThat(translationX).isEqualTo(300f) } @Test @DisableFlags(FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT) fun indicationAreaTranslationY() = Loading Loading @@ -236,7 +190,6 @@ class KeyguardIndicationAreaViewModelTest(flags: FlagsParameterization) : SysuiT @Parameters(name = "{0}") fun getParams(): List<FlagsParameterization> { return FlagsParameterization.allCombinationsOf( FLAG_KEYGUARD_BOTTOM_AREA_REFACTOR, FLAG_MIGRATE_CLOCKS_TO_BLUEPRINT, ) } Loading