Loading packages/SystemUI/multivalentTests/src/com/android/systemui/communal/CommunalSceneStartableTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.communal import android.os.UserHandle import android.platform.test.annotations.DisableFlags import android.platform.test.annotations.EnableFlags import android.provider.Settings Loading Loading @@ -77,7 +78,11 @@ class CommunalSceneStartableTest : SysuiTestCase() { @Before fun setUp() { with(kosmos) { fakeSettings.putInt(Settings.System.SCREEN_OFF_TIMEOUT, SCREEN_TIMEOUT) fakeSettings.putIntForUser( Settings.System.SCREEN_OFF_TIMEOUT, SCREEN_TIMEOUT, UserHandle.USER_CURRENT, ) kosmos.fakeFeatureFlagsClassic.set(COMMUNAL_SERVICE_ENABLED, true) underTest = Loading packages/SystemUI/src/com/android/systemui/communal/CommunalSceneStartable.kt +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.communal import android.os.UserHandle import android.provider.Settings import com.android.compose.animation.scene.SceneKey import com.android.compose.animation.scene.TransitionKey Loading Loading @@ -147,9 +148,10 @@ constructor( .emitOnStart() .onEach { screenTimeout = systemSettings.getInt( systemSettings.getIntForUser( Settings.System.SCREEN_OFF_TIMEOUT, DEFAULT_SCREEN_TIMEOUT, UserHandle.USER_CURRENT, ) } .launchIn(bgScope) Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/communal/CommunalSceneStartableTest.kt +6 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.communal import android.os.UserHandle import android.platform.test.annotations.DisableFlags import android.platform.test.annotations.EnableFlags import android.provider.Settings Loading Loading @@ -77,7 +78,11 @@ class CommunalSceneStartableTest : SysuiTestCase() { @Before fun setUp() { with(kosmos) { fakeSettings.putInt(Settings.System.SCREEN_OFF_TIMEOUT, SCREEN_TIMEOUT) fakeSettings.putIntForUser( Settings.System.SCREEN_OFF_TIMEOUT, SCREEN_TIMEOUT, UserHandle.USER_CURRENT, ) kosmos.fakeFeatureFlagsClassic.set(COMMUNAL_SERVICE_ENABLED, true) underTest = Loading
packages/SystemUI/src/com/android/systemui/communal/CommunalSceneStartable.kt +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.systemui.communal import android.os.UserHandle import android.provider.Settings import com.android.compose.animation.scene.SceneKey import com.android.compose.animation.scene.TransitionKey Loading Loading @@ -147,9 +148,10 @@ constructor( .emitOnStart() .onEach { screenTimeout = systemSettings.getInt( systemSettings.getIntForUser( Settings.System.SCREEN_OFF_TIMEOUT, DEFAULT_SCREEN_TIMEOUT, UserHandle.USER_CURRENT, ) } .launchIn(bgScope) Loading