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>null24var Kosmos.fakeMinimumTilesRepository by Kosmos.Fixture { MinimumTilesFixedRepository(0) } 25 val Kosmos.minimumTilesRepository: MinimumTilesRepository by <lambda>null26 Kosmos.Fixture { fakeMinimumTilesRepository } 27 <lambda>null28var 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>null34var Kosmos.tileSpecRepository: TileSpecRepository by Kosmos.Fixture { fakeTileSpecRepository } 35 <lambda>null36val Kosmos.fakeAutoAddRepository by Kosmos.Fixture { FakeAutoAddRepository() } <lambda>null37var Kosmos.autoAddRepository: AutoAddRepository by Kosmos.Fixture { fakeAutoAddRepository } 38 <lambda>null39val 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>null48val Kosmos.fakeCustomTileAddedRepository by Kosmos.Fixture { FakeCustomTileAddedRepository() } 49 var Kosmos.customTileAddedRepository: CustomTileAddedRepository by <lambda>null50 Kosmos.Fixture { fakeCustomTileAddedRepository } 51 <lambda>null52val Kosmos.fakeRetailModeRepository by Kosmos.Fixture { FakeRetailModeRepository() } <lambda>null53var Kosmos.retailModeRepository: RetailModeRepository by Kosmos.Fixture { fakeRetailModeRepository } 54