1 /*
2  * Copyright (C) 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.systemui.qs.pipeline.data.repository
18 
19 import com.android.systemui.kosmos.Kosmos
20 import com.android.systemui.retail.data.repository.FakeRetailModeRepository
21 import com.android.systemui.retail.data.repository.RetailModeRepository
22 
23 /** This fake uses 0 as the minimum number of tiles. That means that no tiles is a valid state. */
<lambda>null24 var Kosmos.fakeMinimumTilesRepository by Kosmos.Fixture { MinimumTilesFixedRepository(0) }
25 val Kosmos.minimumTilesRepository: MinimumTilesRepository by
<lambda>null26     Kosmos.Fixture { fakeMinimumTilesRepository }
27 
<lambda>null28 var Kosmos.fakeDefaultTilesRepository by Kosmos.Fixture { FakeDefaultTilesRepository() }
29 val Kosmos.defaultTilesRepository: DefaultTilesRepository by
<lambda>null30     Kosmos.Fixture { fakeDefaultTilesRepository }
31 
32 val Kosmos.fakeTileSpecRepository by
<lambda>null33     Kosmos.Fixture { FakeTileSpecRepository(defaultTilesRepository) }
<lambda>null34 var Kosmos.tileSpecRepository: TileSpecRepository by Kosmos.Fixture { fakeTileSpecRepository }
35 
<lambda>null36 val Kosmos.fakeAutoAddRepository by Kosmos.Fixture { FakeAutoAddRepository() }
<lambda>null37 var Kosmos.autoAddRepository: AutoAddRepository by Kosmos.Fixture { fakeAutoAddRepository }
38 
<lambda>null39 val Kosmos.fakeRestoreRepository by Kosmos.Fixture { FakeQSSettingsRestoredRepository() }
40 var Kosmos.restoreRepository: QSSettingsRestoredRepository by
<lambda>null41     Kosmos.Fixture { fakeRestoreRepository }
42 
43 val Kosmos.fakeInstalledTilesRepository by
<lambda>null44     Kosmos.Fixture { FakeInstalledTilesComponentRepository() }
45 var Kosmos.installedTilesRepository: InstalledTilesComponentRepository by
<lambda>null46     Kosmos.Fixture { fakeInstalledTilesRepository }
47 
<lambda>null48 val Kosmos.fakeCustomTileAddedRepository by Kosmos.Fixture { FakeCustomTileAddedRepository() }
49 var Kosmos.customTileAddedRepository: CustomTileAddedRepository by
<lambda>null50     Kosmos.Fixture { fakeCustomTileAddedRepository }
51 
<lambda>null52 val Kosmos.fakeRetailModeRepository by Kosmos.Fixture { FakeRetailModeRepository() }
<lambda>null53 var Kosmos.retailModeRepository: RetailModeRepository by Kosmos.Fixture { fakeRetailModeRepository }
54