Loading packages/SystemUI/aconfig/systemui.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -105,3 +105,10 @@ flag { "keyguard_root_view." bug: "278054201" } flag { name: "qs_new_pipeline" namespace: "systemui" description: "Use the new pipeline for Quick Settings. Should have no behavior changes." bug: "241772429" } packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −7 Original line number Diff line number Diff line Loading @@ -345,13 +345,6 @@ object Flags { "qs_user_detail_shortcut" ) @JvmField val QS_PIPELINE_NEW_HOST = unreleasedFlag("qs_pipeline_new_host", teamfood = true) // TODO(b/278068252): Tracking Bug @JvmField val QS_PIPELINE_AUTO_ADD = unreleasedFlag("qs_pipeline_auto_add", teamfood = true) // TODO(b/296357483): Tracking Bug @JvmField val QS_PIPELINE_NEW_TILES = unreleasedFlag("qs_pipeline_new_tiles") Loading packages/SystemUI/src/com/android/systemui/qs/QSHostAdapter.kt +4 −4 Original line number Diff line number Diff line Loading @@ -35,10 +35,10 @@ import kotlinx.coroutines.launch /** * Adapter to determine what real class to use for classes that depend on [QSHost]. * * When [QSPipelineFlagsRepository.pipelineHostEnabled] is false, all calls will be routed to * * When [QSPipelineFlagsRepository.pipelineEnabled] is false, all calls will be routed to * [QSTileHost]. * * When [QSPipelineFlagsRepository.pipelineHostEnabled] is true, calls regarding the current set * of tiles will be routed to [CurrentTilesInteractor]. Other calls (like [createTileView]) will * * When [QSPipelineFlagsRepository.pipelineEnabled] is true, calls regarding the current set of * tiles will be routed to [CurrentTilesInteractor]. Other calls (like [createTileView]) will * still be routed to [QSTileHost]. * * This routing also includes dumps. Loading @@ -60,7 +60,7 @@ constructor( private const val TAG = "QSTileHost" } private val useNewHost = flags.pipelineHostEnabled private val useNewHost = flags.pipelineEnabled @GuardedBy("callbacksMap") private val callbacksMap = mutableMapOf<QSHost.Callback, Job>() Loading packages/SystemUI/src/com/android/systemui/qs/QSTileHost.java +6 −5 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import androidx.annotation.Nullable; import com.android.internal.annotations.VisibleForTesting; import com.android.systemui.Dumpable; import com.android.systemui.ProtoDumpable; import com.android.systemui.res.R; import com.android.systemui.dagger.SysUISingleton; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dump.nano.SystemUIProtoDump; Loading @@ -49,6 +48,7 @@ import com.android.systemui.qs.pipeline.data.repository.CustomTileAddedRepositor import com.android.systemui.qs.pipeline.domain.interactor.PanelInteractor; import com.android.systemui.qs.pipeline.shared.QSPipelineFlagsRepository; import com.android.systemui.qs.tiles.di.NewQSTileFactory; import com.android.systemui.res.R; import com.android.systemui.settings.UserFileManager; import com.android.systemui.settings.UserTracker; import com.android.systemui.shade.ShadeController; Loading @@ -57,8 +57,6 @@ import com.android.systemui.tuner.TunerService; import com.android.systemui.tuner.TunerService.Tunable; import com.android.systemui.util.settings.SecureSettings; import dagger.Lazy; import org.jetbrains.annotations.NotNull; import java.io.PrintWriter; Loading @@ -75,6 +73,8 @@ import java.util.stream.Collectors; import javax.inject.Inject; import javax.inject.Provider; import dagger.Lazy; /** Platform implementation of the quick settings tile host * * This class keeps track of the set of current tiles and is the in memory source of truth Loading Loading @@ -167,7 +167,7 @@ public class QSTileHost implements QSHost, Tunable, PluginListener<QSFactory>, P // finishes before creating any tiles. tunerService.addTunable(this, TILES_SETTING); // AutoTileManager can modify mTiles so make sure mTiles has already been initialized. if (!mFeatureFlags.getPipelineAutoAddEnabled()) { if (!mFeatureFlags.getPipelineEnabled()) { mAutoTiles = autoTiles.get(); } }); Loading Loading @@ -288,9 +288,10 @@ public class QSTileHost implements QSHost, Tunable, PluginListener<QSFactory>, P } } // Do not process tiles if the flag is enabled. if (mFeatureFlags.getPipelineHostEnabled()) { if (mFeatureFlags.getPipelineEnabled()) { return; } QSPipelineFlagsRepository.Utils.assertInLegacyMode(); if (newValue == null && UserManager.isDeviceInDemoMode(mContext)) { newValue = mContext.getResources().getString(R.string.quick_settings_tiles_retail_mode); } Loading packages/SystemUI/src/com/android/systemui/qs/dagger/QSHostModule.kt +2 −2 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ interface QSHostModule { qsHost: QSTileHost, panelInteractorImpl: PanelInteractorImpl ): PanelInteractor { return if (featureFlags.pipelineHostEnabled) { return if (featureFlags.pipelineEnabled) { panelInteractorImpl } else { qsHost Loading @@ -62,7 +62,7 @@ interface QSHostModule { qsHost: QSTileHost, customTileAddedRepository: CustomTileAddedSharedPrefsRepository ): CustomTileAddedRepository { return if (featureFlags.pipelineHostEnabled) { return if (featureFlags.pipelineEnabled) { customTileAddedRepository } else { qsHost Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +7 −0 Original line number Diff line number Diff line Loading @@ -105,3 +105,10 @@ flag { "keyguard_root_view." bug: "278054201" } flag { name: "qs_new_pipeline" namespace: "systemui" description: "Use the new pipeline for Quick Settings. Should have no behavior changes." bug: "241772429" }
packages/SystemUI/src/com/android/systemui/flags/Flags.kt +0 −7 Original line number Diff line number Diff line Loading @@ -345,13 +345,6 @@ object Flags { "qs_user_detail_shortcut" ) @JvmField val QS_PIPELINE_NEW_HOST = unreleasedFlag("qs_pipeline_new_host", teamfood = true) // TODO(b/278068252): Tracking Bug @JvmField val QS_PIPELINE_AUTO_ADD = unreleasedFlag("qs_pipeline_auto_add", teamfood = true) // TODO(b/296357483): Tracking Bug @JvmField val QS_PIPELINE_NEW_TILES = unreleasedFlag("qs_pipeline_new_tiles") Loading
packages/SystemUI/src/com/android/systemui/qs/QSHostAdapter.kt +4 −4 Original line number Diff line number Diff line Loading @@ -35,10 +35,10 @@ import kotlinx.coroutines.launch /** * Adapter to determine what real class to use for classes that depend on [QSHost]. * * When [QSPipelineFlagsRepository.pipelineHostEnabled] is false, all calls will be routed to * * When [QSPipelineFlagsRepository.pipelineEnabled] is false, all calls will be routed to * [QSTileHost]. * * When [QSPipelineFlagsRepository.pipelineHostEnabled] is true, calls regarding the current set * of tiles will be routed to [CurrentTilesInteractor]. Other calls (like [createTileView]) will * * When [QSPipelineFlagsRepository.pipelineEnabled] is true, calls regarding the current set of * tiles will be routed to [CurrentTilesInteractor]. Other calls (like [createTileView]) will * still be routed to [QSTileHost]. * * This routing also includes dumps. Loading @@ -60,7 +60,7 @@ constructor( private const val TAG = "QSTileHost" } private val useNewHost = flags.pipelineHostEnabled private val useNewHost = flags.pipelineEnabled @GuardedBy("callbacksMap") private val callbacksMap = mutableMapOf<QSHost.Callback, Job>() Loading
packages/SystemUI/src/com/android/systemui/qs/QSTileHost.java +6 −5 Original line number Diff line number Diff line Loading @@ -31,7 +31,6 @@ import androidx.annotation.Nullable; import com.android.internal.annotations.VisibleForTesting; import com.android.systemui.Dumpable; import com.android.systemui.ProtoDumpable; import com.android.systemui.res.R; import com.android.systemui.dagger.SysUISingleton; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dump.nano.SystemUIProtoDump; Loading @@ -49,6 +48,7 @@ import com.android.systemui.qs.pipeline.data.repository.CustomTileAddedRepositor import com.android.systemui.qs.pipeline.domain.interactor.PanelInteractor; import com.android.systemui.qs.pipeline.shared.QSPipelineFlagsRepository; import com.android.systemui.qs.tiles.di.NewQSTileFactory; import com.android.systemui.res.R; import com.android.systemui.settings.UserFileManager; import com.android.systemui.settings.UserTracker; import com.android.systemui.shade.ShadeController; Loading @@ -57,8 +57,6 @@ import com.android.systemui.tuner.TunerService; import com.android.systemui.tuner.TunerService.Tunable; import com.android.systemui.util.settings.SecureSettings; import dagger.Lazy; import org.jetbrains.annotations.NotNull; import java.io.PrintWriter; Loading @@ -75,6 +73,8 @@ import java.util.stream.Collectors; import javax.inject.Inject; import javax.inject.Provider; import dagger.Lazy; /** Platform implementation of the quick settings tile host * * This class keeps track of the set of current tiles and is the in memory source of truth Loading Loading @@ -167,7 +167,7 @@ public class QSTileHost implements QSHost, Tunable, PluginListener<QSFactory>, P // finishes before creating any tiles. tunerService.addTunable(this, TILES_SETTING); // AutoTileManager can modify mTiles so make sure mTiles has already been initialized. if (!mFeatureFlags.getPipelineAutoAddEnabled()) { if (!mFeatureFlags.getPipelineEnabled()) { mAutoTiles = autoTiles.get(); } }); Loading Loading @@ -288,9 +288,10 @@ public class QSTileHost implements QSHost, Tunable, PluginListener<QSFactory>, P } } // Do not process tiles if the flag is enabled. if (mFeatureFlags.getPipelineHostEnabled()) { if (mFeatureFlags.getPipelineEnabled()) { return; } QSPipelineFlagsRepository.Utils.assertInLegacyMode(); if (newValue == null && UserManager.isDeviceInDemoMode(mContext)) { newValue = mContext.getResources().getString(R.string.quick_settings_tiles_retail_mode); } Loading
packages/SystemUI/src/com/android/systemui/qs/dagger/QSHostModule.kt +2 −2 Original line number Diff line number Diff line Loading @@ -48,7 +48,7 @@ interface QSHostModule { qsHost: QSTileHost, panelInteractorImpl: PanelInteractorImpl ): PanelInteractor { return if (featureFlags.pipelineHostEnabled) { return if (featureFlags.pipelineEnabled) { panelInteractorImpl } else { qsHost Loading @@ -62,7 +62,7 @@ interface QSHostModule { qsHost: QSTileHost, customTileAddedRepository: CustomTileAddedSharedPrefsRepository ): CustomTileAddedRepository { return if (featureFlags.pipelineHostEnabled) { return if (featureFlags.pipelineEnabled) { customTileAddedRepository } else { qsHost Loading