Loading packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -347,6 +347,10 @@ constructor( override fun onUiModeChanged() { updateColors() } override fun onLocaleListChanged() { clock.onLocaleListChanged() } } private val nextAlarmCallback = Loading packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt +7 −0 Original line number Diff line number Diff line Loading @@ -324,6 +324,13 @@ class ShadeHeaderControllerTest : SysuiTestCase() { verify(date).setTextAppearance(R.style.TextAppearance_QS_Status) } @Test fun updateLocale_clockUpdates() { configurationController.notifyLocaleChanged() verify(clock).onLocaleListChanged() } @Test fun animateOutOnStartCustomizing() { val animator = mock(ViewPropertyAnimator::class.java, Answers.RETURNS_SELF) Loading packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/FakeConfigurationController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ class FakeConfigurationController @Inject constructor() : listeners.forEach { it.onDensityOrFontScaleChanged() } } fun notifyLocaleChanged() { listeners.forEach { it.onLocaleListChanged() } } fun notifyConfigurationChanged() { onConfigurationChanged(newConfiguration = Configuration()) } Loading Loading
packages/SystemUI/src/com/android/systemui/shade/ShadeHeaderController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -347,6 +347,10 @@ constructor( override fun onUiModeChanged() { updateColors() } override fun onLocaleListChanged() { clock.onLocaleListChanged() } } private val nextAlarmCallback = Loading
packages/SystemUI/tests/src/com/android/systemui/shade/ShadeHeaderControllerTest.kt +7 −0 Original line number Diff line number Diff line Loading @@ -324,6 +324,13 @@ class ShadeHeaderControllerTest : SysuiTestCase() { verify(date).setTextAppearance(R.style.TextAppearance_QS_Status) } @Test fun updateLocale_clockUpdates() { configurationController.notifyLocaleChanged() verify(clock).onLocaleListChanged() } @Test fun animateOutOnStartCustomizing() { val animator = mock(ViewPropertyAnimator::class.java, Answers.RETURNS_SELF) Loading
packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/FakeConfigurationController.kt +4 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,10 @@ class FakeConfigurationController @Inject constructor() : listeners.forEach { it.onDensityOrFontScaleChanged() } } fun notifyLocaleChanged() { listeners.forEach { it.onLocaleListChanged() } } fun notifyConfigurationChanged() { onConfigurationChanged(newConfiguration = Configuration()) } Loading