1 package com.android.systemui.qs.pipeline.data.repository 2 3 import android.content.res.Resources 4 import com.android.systemui.dagger.SysUISingleton 5 import com.android.systemui.dagger.qualifiers.Main 6 import com.android.systemui.qs.QSHost 7 import com.android.systemui.qs.pipeline.shared.TileSpec 8 import javax.inject.Inject 9 10 interface DefaultTilesRepository { 11 val defaultTiles: List<TileSpec> 12 } 13 14 @SysUISingleton 15 class DefaultTilesQSHostRepository 16 @Inject 17 constructor( 18 @Main private val resources: Resources, 19 ) : DefaultTilesRepository { 20 override val defaultTiles: List<TileSpec> 21 get() = <lambda>null22 QSHost.getDefaultSpecs(resources).map(TileSpec::create).filter { 23 it != TileSpec.Invalid 24 } 25 } 26