Loading packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ShadeControllerSceneImplTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ class ShadeControllerSceneImplTest : SysuiTestCase() { private fun TestScope.setDeviceEntered(isEntered: Boolean) { if (isEntered) { // Unlock the device marking the device has entered. kosmos.fakeDeviceEntryFingerprintAuthRepository.setAuthenticationStatus( SuccessFingerprintAuthenticationStatus(0, true) ) Loading packages/SystemUI/src/com/android/systemui/bouncer/ui/binder/BouncerViewBinder.kt +3 −2 Original line number Diff line number Diff line Loading @@ -12,14 +12,15 @@ import com.android.systemui.bouncer.ui.BouncerDialogFactory import com.android.systemui.bouncer.ui.viewmodel.BouncerViewModel import com.android.systemui.bouncer.ui.viewmodel.KeyguardBouncerViewModel import com.android.systemui.dagger.SysUISingleton import com.android.systemui.flags.Flags.COMPOSE_BOUNCER_ENABLED import com.android.systemui.keyguard.ui.viewmodel.PrimaryBouncerToGoneTransitionViewModel import com.android.systemui.log.BouncerLogger import com.android.systemui.user.domain.interactor.SelectedUserInteractor import dagger.Lazy import javax.inject.Inject import kotlinx.coroutines.ExperimentalCoroutinesApi /** Helper data class that allows to lazy load all the dependencies of the legacy bouncer. */ @OptIn(ExperimentalCoroutinesApi::class) @SysUISingleton data class LegacyBouncerDependencies @Inject Loading Loading @@ -59,7 +60,7 @@ constructor( private val composeBouncerDependencies: Lazy<ComposeBouncerDependencies>, ) { fun bind(view: ViewGroup) { if (COMPOSE_BOUNCER_ENABLED && composeBouncerFlags.isOnlyComposeBouncerEnabled()) { if (composeBouncerFlags.isOnlyComposeBouncerEnabled()) { val deps = composeBouncerDependencies.get() ComposeBouncerViewBinder.bind( view, Loading packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −7 Original line number Diff line number Diff line Loading @@ -410,13 +410,6 @@ object Flags { val CLIPBOARD_SHARED_TRANSITIONS = unreleasedFlag("clipboard_shared_transitions", teamfood = true) /** * Whether the compose bouncer is enabled. This ensures ProGuard can * remove unused code from our APK at compile time. */ // TODO(b/280877228): Tracking Bug @JvmField val COMPOSE_BOUNCER_ENABLED = false // 1900 @JvmField val NOTE_TASKS = releasedFlag("keycode_flag") Loading packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt +7 −1 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import com.android.systemui.dagger.SysUISingleton import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Main import com.android.systemui.deviceentry.domain.interactor.DeviceEntryInteractor import com.android.systemui.deviceentry.domain.interactor.DeviceUnlockedInteractor import com.android.systemui.log.LogBuffer import com.android.systemui.log.dagger.ShadeTouchLog import com.android.systemui.scene.domain.interactor.SceneInteractor Loading Loading @@ -61,6 +62,7 @@ constructor( private val shadeInteractor: ShadeInteractor, private val sceneInteractor: SceneInteractor, private val deviceEntryInteractor: DeviceEntryInteractor, private val deviceUnlockedInteractor: DeviceUnlockedInteractor, private val notificationStackScrollLayout: NotificationStackScrollLayout, @ShadeTouchLog private val touchLog: LogBuffer, private val vibratorHelper: VibratorHelper, Loading Loading @@ -148,7 +150,11 @@ constructor( } private fun getCollapseDestinationScene(): SceneKey { return if (deviceEntryInteractor.isDeviceEntered.value) { // Always check whether device is unlocked before transitioning to gone scene. return if ( deviceUnlockedInteractor.deviceUnlockStatus.value.isUnlocked && deviceEntryInteractor.isDeviceEntered.value ) { Scenes.Gone } else { Scenes.Lockscreen Loading packages/SystemUI/tests/utils/src/com/android/systemui/shade/ShadeControllerKosmos.kt +2 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ package com.android.systemui.shade import com.android.systemui.assist.AssistManager import com.android.systemui.concurrency.fakeExecutor import com.android.systemui.deviceentry.domain.interactor.deviceEntryInteractor import com.android.systemui.deviceentry.domain.interactor.deviceUnlockedInteractor import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.applicationCoroutineScope import com.android.systemui.kosmos.testDispatcher Loading Loading @@ -58,6 +59,7 @@ val Kosmos.shadeControllerSceneImpl by statusBarKeyguardViewManager = mock<StatusBarKeyguardViewManager>(), notificationShadeWindowController = mock<NotificationShadeWindowController>(), assistManagerLazy = { mock<AssistManager>() }, deviceUnlockedInteractor = deviceUnlockedInteractor, ) } Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ShadeControllerSceneImplTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -189,6 +189,7 @@ class ShadeControllerSceneImplTest : SysuiTestCase() { private fun TestScope.setDeviceEntered(isEntered: Boolean) { if (isEntered) { // Unlock the device marking the device has entered. kosmos.fakeDeviceEntryFingerprintAuthRepository.setAuthenticationStatus( SuccessFingerprintAuthenticationStatus(0, true) ) Loading
packages/SystemUI/src/com/android/systemui/bouncer/ui/binder/BouncerViewBinder.kt +3 −2 Original line number Diff line number Diff line Loading @@ -12,14 +12,15 @@ import com.android.systemui.bouncer.ui.BouncerDialogFactory import com.android.systemui.bouncer.ui.viewmodel.BouncerViewModel import com.android.systemui.bouncer.ui.viewmodel.KeyguardBouncerViewModel import com.android.systemui.dagger.SysUISingleton import com.android.systemui.flags.Flags.COMPOSE_BOUNCER_ENABLED import com.android.systemui.keyguard.ui.viewmodel.PrimaryBouncerToGoneTransitionViewModel import com.android.systemui.log.BouncerLogger import com.android.systemui.user.domain.interactor.SelectedUserInteractor import dagger.Lazy import javax.inject.Inject import kotlinx.coroutines.ExperimentalCoroutinesApi /** Helper data class that allows to lazy load all the dependencies of the legacy bouncer. */ @OptIn(ExperimentalCoroutinesApi::class) @SysUISingleton data class LegacyBouncerDependencies @Inject Loading Loading @@ -59,7 +60,7 @@ constructor( private val composeBouncerDependencies: Lazy<ComposeBouncerDependencies>, ) { fun bind(view: ViewGroup) { if (COMPOSE_BOUNCER_ENABLED && composeBouncerFlags.isOnlyComposeBouncerEnabled()) { if (composeBouncerFlags.isOnlyComposeBouncerEnabled()) { val deps = composeBouncerDependencies.get() ComposeBouncerViewBinder.bind( view, Loading
packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −7 Original line number Diff line number Diff line Loading @@ -410,13 +410,6 @@ object Flags { val CLIPBOARD_SHARED_TRANSITIONS = unreleasedFlag("clipboard_shared_transitions", teamfood = true) /** * Whether the compose bouncer is enabled. This ensures ProGuard can * remove unused code from our APK at compile time. */ // TODO(b/280877228): Tracking Bug @JvmField val COMPOSE_BOUNCER_ENABLED = false // 1900 @JvmField val NOTE_TASKS = releasedFlag("keycode_flag") Loading
packages/SystemUI/src/com/android/systemui/shade/ShadeControllerSceneImpl.kt +7 −1 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import com.android.systemui.dagger.SysUISingleton import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.dagger.qualifiers.Main import com.android.systemui.deviceentry.domain.interactor.DeviceEntryInteractor import com.android.systemui.deviceentry.domain.interactor.DeviceUnlockedInteractor import com.android.systemui.log.LogBuffer import com.android.systemui.log.dagger.ShadeTouchLog import com.android.systemui.scene.domain.interactor.SceneInteractor Loading Loading @@ -61,6 +62,7 @@ constructor( private val shadeInteractor: ShadeInteractor, private val sceneInteractor: SceneInteractor, private val deviceEntryInteractor: DeviceEntryInteractor, private val deviceUnlockedInteractor: DeviceUnlockedInteractor, private val notificationStackScrollLayout: NotificationStackScrollLayout, @ShadeTouchLog private val touchLog: LogBuffer, private val vibratorHelper: VibratorHelper, Loading Loading @@ -148,7 +150,11 @@ constructor( } private fun getCollapseDestinationScene(): SceneKey { return if (deviceEntryInteractor.isDeviceEntered.value) { // Always check whether device is unlocked before transitioning to gone scene. return if ( deviceUnlockedInteractor.deviceUnlockStatus.value.isUnlocked && deviceEntryInteractor.isDeviceEntered.value ) { Scenes.Gone } else { Scenes.Lockscreen Loading
packages/SystemUI/tests/utils/src/com/android/systemui/shade/ShadeControllerKosmos.kt +2 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ package com.android.systemui.shade import com.android.systemui.assist.AssistManager import com.android.systemui.concurrency.fakeExecutor import com.android.systemui.deviceentry.domain.interactor.deviceEntryInteractor import com.android.systemui.deviceentry.domain.interactor.deviceUnlockedInteractor import com.android.systemui.kosmos.Kosmos import com.android.systemui.kosmos.applicationCoroutineScope import com.android.systemui.kosmos.testDispatcher Loading Loading @@ -58,6 +59,7 @@ val Kosmos.shadeControllerSceneImpl by statusBarKeyguardViewManager = mock<StatusBarKeyguardViewManager>(), notificationShadeWindowController = mock<NotificationShadeWindowController>(), assistManagerLazy = { mock<AssistManager>() }, deviceUnlockedInteractor = deviceUnlockedInteractor, ) } Loading