Loading packages/SystemUI/aconfig/systemui.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -188,6 +188,14 @@ flag { bug: "305049544" bug: "305049544" } } flag { name: "migrate_clocks_to_blueprint" namespace: "systemui" description: "Move clock related views from KeyguardStatusView to KeyguardRootView, " "and use modern architecture for lockscreen clocks" bug: "301502635" } flag { flag { name: "fast_unlock_transition" name: "fast_unlock_transition" namespace: "systemui" namespace: "systemui" Loading packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -198,7 +198,6 @@ class DefaultClockController( } } override fun recomputePadding(targetRegion: Rect?) { override fun recomputePadding(targetRegion: Rect?) { // TODO(b/310989341): remove after changing migrate_clocks_to_blueprint to aconfig if (migratedClocks) { if (migratedClocks) { return return } } Loading packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +9 −9 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import static com.android.keyguard.KeyguardClockSwitch.LARGE; import static com.android.keyguard.KeyguardClockSwitch.LARGE; import static com.android.keyguard.KeyguardClockSwitch.SMALL; import static com.android.keyguard.KeyguardClockSwitch.SMALL; import static com.android.systemui.Flags.migrateClocksToBlueprint; import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED; import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED; import static com.android.systemui.util.kotlin.JavaAdapterKt.collectFlow; import static com.android.systemui.util.kotlin.JavaAdapterKt.collectFlow; Loading @@ -43,7 +44,6 @@ import com.android.systemui.dagger.qualifiers.Background; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dump.DumpManager; import com.android.systemui.dump.DumpManager; import com.android.systemui.flags.FeatureFlagsClassic; import com.android.systemui.flags.FeatureFlagsClassic; import com.android.systemui.flags.Flags; import com.android.systemui.keyguard.KeyguardUnlockAnimationController; import com.android.systemui.keyguard.KeyguardUnlockAnimationController; import com.android.systemui.keyguard.domain.interactor.KeyguardClockInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardClockInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor; Loading Loading @@ -232,7 +232,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mClockChangedListener = new ClockRegistry.ClockChangeListener() { mClockChangedListener = new ClockRegistry.ClockChangeListener() { @Override @Override public void onCurrentClockChanged() { public void onCurrentClockChanged() { if (!featureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (!migrateClocksToBlueprint()) { setClock(mClockRegistry.createCurrentClock()); setClock(mClockRegistry.createCurrentClock()); } } } } Loading Loading @@ -367,7 +367,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS addDateWeatherView(); addDateWeatherView(); } } } } if (!mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (!migrateClocksToBlueprint()) { setDateWeatherVisibility(); setDateWeatherVisibility(); setWeatherVisibility(); setWeatherVisibility(); } } Loading Loading @@ -418,7 +418,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addDateWeatherView() { private void addDateWeatherView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } mDateWeatherView = (ViewGroup) mSmartspaceController.buildAndConnectDateView(mView); mDateWeatherView = (ViewGroup) mSmartspaceController.buildAndConnectDateView(mView); Loading @@ -434,7 +434,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addWeatherView() { private void addWeatherView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( Loading @@ -447,7 +447,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addSmartspaceView() { private void addSmartspaceView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } Loading Loading @@ -650,7 +650,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void setClock(ClockController clock) { private void setClock(ClockController clock) { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } if (clock != null && mLogBuffer != null) { if (clock != null && mLogBuffer != null) { Loading @@ -664,7 +664,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS @Nullable @Nullable public ClockController getClock() { public ClockController getClock() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return mKeyguardClockInteractor.getClock(); return mKeyguardClockInteractor.getClock(); } else { } else { return mClockEventController.getClock(); return mClockEventController.getClock(); Loading @@ -676,7 +676,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void updateDoubleLineClock() { private void updateDoubleLineClock() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } mCanShowDoubleLineClock = mSecureSettings.getIntForUser( mCanShowDoubleLineClock = mSecureSettings.getIntForUser( Loading packages/SystemUI/src/com/android/keyguard/dagger/ClockRegistryModule.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.keyguard.dagger; package com.android.keyguard.dagger; import static com.android.systemui.Flags.migrateClocksToBlueprint; import android.content.Context; import android.content.Context; import android.content.res.Resources; import android.content.res.Resources; import android.view.LayoutInflater; import android.view.LayoutInflater; Loading Loading @@ -68,7 +70,7 @@ public abstract class ClockRegistryModule { layoutInflater, layoutInflater, resources, resources, featureFlags.isEnabled(Flags.STEP_CLOCK_ANIMATION), featureFlags.isEnabled(Flags.STEP_CLOCK_ANIMATION), featureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)), migrateClocksToBlueprint()), context.getString(R.string.lockscreen_clock_id_fallback), context.getString(R.string.lockscreen_clock_id_fallback), logBuffer, logBuffer, /* keepAllLoaded = */ false, /* keepAllLoaded = */ false, Loading packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −5 Original line number Original line Diff line number Diff line Loading @@ -230,11 +230,6 @@ object Flags { @JvmField val MIGRATE_KEYGUARD_STATUS_BAR_VIEW = @JvmField val MIGRATE_KEYGUARD_STATUS_BAR_VIEW = unreleasedFlag("migrate_keyguard_status_bar_view") unreleasedFlag("migrate_keyguard_status_bar_view") /** Migrate clocks from keyguard status view to keyguard root view*/ // TODO(b/301502635): Tracking Bug. @JvmField val MIGRATE_CLOCKS_TO_BLUEPRINT = unreleasedFlag("migrate_clocks_to_blueprint") /** Enables preview loading animation in the wallpaper picker. */ /** Enables preview loading animation in the wallpaper picker. */ // TODO(b/274443705): Tracking Bug // TODO(b/274443705): Tracking Bug @JvmField @JvmField Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -188,6 +188,14 @@ flag { bug: "305049544" bug: "305049544" } } flag { name: "migrate_clocks_to_blueprint" namespace: "systemui" description: "Move clock related views from KeyguardStatusView to KeyguardRootView, " "and use modern architecture for lockscreen clocks" bug: "301502635" } flag { flag { name: "fast_unlock_transition" name: "fast_unlock_transition" namespace: "systemui" namespace: "systemui" Loading
packages/SystemUI/customization/src/com/android/systemui/shared/clocks/DefaultClockController.kt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -198,7 +198,6 @@ class DefaultClockController( } } override fun recomputePadding(targetRegion: Rect?) { override fun recomputePadding(targetRegion: Rect?) { // TODO(b/310989341): remove after changing migrate_clocks_to_blueprint to aconfig if (migratedClocks) { if (migratedClocks) { return return } } Loading
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +9 −9 Original line number Original line Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; import static com.android.keyguard.KeyguardClockSwitch.LARGE; import static com.android.keyguard.KeyguardClockSwitch.LARGE; import static com.android.keyguard.KeyguardClockSwitch.SMALL; import static com.android.keyguard.KeyguardClockSwitch.SMALL; import static com.android.systemui.Flags.migrateClocksToBlueprint; import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED; import static com.android.systemui.flags.Flags.LOCKSCREEN_WALLPAPER_DREAM_ENABLED; import static com.android.systemui.util.kotlin.JavaAdapterKt.collectFlow; import static com.android.systemui.util.kotlin.JavaAdapterKt.collectFlow; Loading @@ -43,7 +44,6 @@ import com.android.systemui.dagger.qualifiers.Background; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dump.DumpManager; import com.android.systemui.dump.DumpManager; import com.android.systemui.flags.FeatureFlagsClassic; import com.android.systemui.flags.FeatureFlagsClassic; import com.android.systemui.flags.Flags; import com.android.systemui.keyguard.KeyguardUnlockAnimationController; import com.android.systemui.keyguard.KeyguardUnlockAnimationController; import com.android.systemui.keyguard.domain.interactor.KeyguardClockInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardClockInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor; import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor; Loading Loading @@ -232,7 +232,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS mClockChangedListener = new ClockRegistry.ClockChangeListener() { mClockChangedListener = new ClockRegistry.ClockChangeListener() { @Override @Override public void onCurrentClockChanged() { public void onCurrentClockChanged() { if (!featureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (!migrateClocksToBlueprint()) { setClock(mClockRegistry.createCurrentClock()); setClock(mClockRegistry.createCurrentClock()); } } } } Loading Loading @@ -367,7 +367,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS addDateWeatherView(); addDateWeatherView(); } } } } if (!mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (!migrateClocksToBlueprint()) { setDateWeatherVisibility(); setDateWeatherVisibility(); setWeatherVisibility(); setWeatherVisibility(); } } Loading Loading @@ -418,7 +418,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addDateWeatherView() { private void addDateWeatherView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } mDateWeatherView = (ViewGroup) mSmartspaceController.buildAndConnectDateView(mView); mDateWeatherView = (ViewGroup) mSmartspaceController.buildAndConnectDateView(mView); Loading @@ -434,7 +434,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addWeatherView() { private void addWeatherView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( Loading @@ -447,7 +447,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void addSmartspaceView() { private void addSmartspaceView() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } Loading Loading @@ -650,7 +650,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void setClock(ClockController clock) { private void setClock(ClockController clock) { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } if (clock != null && mLogBuffer != null) { if (clock != null && mLogBuffer != null) { Loading @@ -664,7 +664,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS @Nullable @Nullable public ClockController getClock() { public ClockController getClock() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return mKeyguardClockInteractor.getClock(); return mKeyguardClockInteractor.getClock(); } else { } else { return mClockEventController.getClock(); return mClockEventController.getClock(); Loading @@ -676,7 +676,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS } } private void updateDoubleLineClock() { private void updateDoubleLineClock() { if (mFeatureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)) { if (migrateClocksToBlueprint()) { return; return; } } mCanShowDoubleLineClock = mSecureSettings.getIntForUser( mCanShowDoubleLineClock = mSecureSettings.getIntForUser( Loading
packages/SystemUI/src/com/android/keyguard/dagger/ClockRegistryModule.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.keyguard.dagger; package com.android.keyguard.dagger; import static com.android.systemui.Flags.migrateClocksToBlueprint; import android.content.Context; import android.content.Context; import android.content.res.Resources; import android.content.res.Resources; import android.view.LayoutInflater; import android.view.LayoutInflater; Loading Loading @@ -68,7 +70,7 @@ public abstract class ClockRegistryModule { layoutInflater, layoutInflater, resources, resources, featureFlags.isEnabled(Flags.STEP_CLOCK_ANIMATION), featureFlags.isEnabled(Flags.STEP_CLOCK_ANIMATION), featureFlags.isEnabled(Flags.MIGRATE_CLOCKS_TO_BLUEPRINT)), migrateClocksToBlueprint()), context.getString(R.string.lockscreen_clock_id_fallback), context.getString(R.string.lockscreen_clock_id_fallback), logBuffer, logBuffer, /* keepAllLoaded = */ false, /* keepAllLoaded = */ false, Loading
packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −5 Original line number Original line Diff line number Diff line Loading @@ -230,11 +230,6 @@ object Flags { @JvmField val MIGRATE_KEYGUARD_STATUS_BAR_VIEW = @JvmField val MIGRATE_KEYGUARD_STATUS_BAR_VIEW = unreleasedFlag("migrate_keyguard_status_bar_view") unreleasedFlag("migrate_keyguard_status_bar_view") /** Migrate clocks from keyguard status view to keyguard root view*/ // TODO(b/301502635): Tracking Bug. @JvmField val MIGRATE_CLOCKS_TO_BLUEPRINT = unreleasedFlag("migrate_clocks_to_blueprint") /** Enables preview loading animation in the wallpaper picker. */ /** Enables preview loading animation in the wallpaper picker. */ // TODO(b/274443705): Tracking Bug // TODO(b/274443705): Tracking Bug @JvmField @JvmField Loading