/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/ |
D | QSPipelineRepositoryKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 24 var Kosmos.fakeMinimumTilesRepository by Kosmos.Fixture { MinimumTilesFixedRepository(0) } in <lambda>() variable 25 val Kosmos.minimumTilesRepository: MinimumTilesRepository by constant 26 Kosmos.Fixture { fakeMinimumTilesRepository } in <lambda>() 28 var Kosmos.fakeDefaultTilesRepository by Kosmos.Fixture { FakeDefaultTilesRepository() } in <lambda>() variable 29 val Kosmos.defaultTilesRepository: DefaultTilesRepository by constant 30 Kosmos.Fixture { fakeDefaultTilesRepository } in <lambda>() 32 val Kosmos.fakeTileSpecRepository by constant 33 Kosmos.Fixture { FakeTileSpecRepository(defaultTilesRepository) } in <lambda>() 34 var Kosmos.tileSpecRepository: TileSpecRepository by Kosmos.Fixture { fakeTileSpecRepository } in <lambda>() variable [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/flags/ |
D | FeatureFlagsClassicKosmos.kt | 20 import com.android.systemui.kosmos.Kosmos 27 var Kosmos.featureFlagsClassic: FeatureFlagsClassic by Kosmos.Fixture { fakeFeatureFlagsClassic } in <lambda>() variable 33 val Kosmos.fakeFeatureFlagsClassic by constant 34 Kosmos.Fixture { in <lambda>() 54 val Kosmos.featureFlagsClassicRelease by constant 55 Kosmos.Fixture { in <lambda>() 65 val Kosmos.systemPropertiesHelper by Kosmos.Fixture { SystemPropertiesHelper() } in <lambda>() constant 66 val Kosmos.fakeSystemPropertiesHelper by Kosmos.Fixture { FakeSystemPropertiesHelper() } in <lambda>() constant 67 var Kosmos.serverFlagReader: ServerFlagReader by Kosmos.Fixture { serverFlagReaderFake } in <lambda>() variable 68 val Kosmos.serverFlagReaderFake by Kosmos.Fixture { ServerFlagReaderFake() } in <lambda>() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/ |
D | CustomTileKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 42 var Kosmos.customTileSpec: TileSpec.CustomTileSpec by Kosmos.Fixture() variable 44 var Kosmos.customTileQsTileConfig: QSTileConfig by variable 45 Kosmos.Fixture { QSTileConfigTestBuilder.build { tileSpec = this@Fixture.customTileSpec } } in <lambda>() 46 val Kosmos.qsTileLogger: QSTileLogger by Kosmos.Fixture { mock {} } in <lambda>() constant 48 val Kosmos.customTileStatePersister: FakeCustomTileStatePersister by constant 49 Kosmos.Fixture { FakeCustomTileStatePersister() } in <lambda>() 51 val Kosmos.customTileInteractor: CustomTileInteractor by constant 52 Kosmos.Fixture { in <lambda>() 62 val Kosmos.customTileRepository: FakeCustomTileRepository by constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/external/ |
D | TilesExternalKosmos.kt | 20 import com.android.systemui.kosmos.Kosmos 22 var Kosmos.componentName: ComponentName by Kosmos.Fixture() variable 24 val Kosmos.iQSTileService: FakeIQSTileService by Kosmos.Fixture { FakeIQSTileService() } in <lambda>() constant 25 val Kosmos.tileServiceManagerFacade: FakeTileServiceManagerFacade by constant 26 Kosmos.Fixture { FakeTileServiceManagerFacade(iQSTileService) } in <lambda>() 28 val Kosmos.tileServiceManager: TileServiceManager by constant 29 Kosmos.Fixture { tileServiceManagerFacade.tileServiceManager } in <lambda>() 31 val Kosmos.tileServicesFacade: FakeTileServicesFacade by constant 32 Kosmos.Fixture { (FakeTileServicesFacade(tileServiceManager)) } in <lambda>()
|
D | CustomTileStatePersisterKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 21 var Kosmos.customTileStatePersister: CustomTileStatePersister by variable 22 Kosmos.Fixture { fakeCustomTileStatePersister } in <lambda>() 23 val Kosmos.fakeCustomTileStatePersister by Kosmos.Fixture { FakeCustomTileStatePersister() } in <lambda>() constant
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/mediaprojection/taskswitcher/ |
D | TaskSwitcherKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 29 val Kosmos.fakeActivityTaskManager by Kosmos.Fixture { FakeActivityTaskManager() } in <lambda>() constant 31 val Kosmos.fakeMediaProjectionManager by Kosmos.Fixture { FakeMediaProjectionManager() } in <lambda>() constant 33 val Kosmos.activityTaskManagerTasksRepository by constant 34 Kosmos.Fixture { in <lambda>() 42 val Kosmos.taskSwitcherInteractor by constant 43 Kosmos.Fixture { in <lambda>() 47 val Kosmos.taskSwitcherViewModel by constant 48 Kosmos.Fixture { TaskSwitcherNotificationViewModel(taskSwitcherInteractor, testDispatcher) } in <lambda>() 51 fun taskSwitcherKosmos() = Kosmos().apply { testDispatcher = UnconfinedTestDispatcher() } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyboard/shortcut/ |
D | KeyboardShortcutHelperKosmos.kt | 27 import com.android.systemui.kosmos.Kosmos 34 val Kosmos.shortcutHelperRepository by constant 35 Kosmos.Fixture { ShortcutHelperRepository(fakeCommandQueue, broadcastDispatcher) } in <lambda>() 37 val Kosmos.shortcutHelperTestHelper by constant 38 Kosmos.Fixture { in <lambda>() 47 val Kosmos.shortcutHelperInteractor by constant 48 Kosmos.Fixture { in <lambda>() 52 val Kosmos.shortcutHelperViewModel by constant 53 Kosmos.Fixture { ShortcutHelperViewModel(testDispatcher, shortcutHelperInteractor) } in <lambda>() 55 val Kosmos.fakeShortcutHelperStartActivity by Kosmos.Fixture { FakeShortcutHelperStartActivity() } in <lambda>() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/ |
D | MediaOutputKosmos.kt | 21 import com.android.systemui.kosmos.Kosmos 35 val Kosmos.localMediaRepository by Kosmos.Fixture { FakeLocalMediaRepository() } in <lambda>() constant 36 val Kosmos.localMediaRepositoryFactory by constant 37 Kosmos.Fixture { FakeLocalMediaRepositoryFactory { localMediaRepository } } in <lambda>() 39 val Kosmos.mediaOutputActionsInteractor by constant 40 Kosmos.Fixture { MediaOutputActionsInteractor(mediaOutputDialogManager) } in <lambda>() 41 val Kosmos.mediaControllerRepository by Kosmos.Fixture { FakeMediaControllerRepository() } in <lambda>() constant 42 val Kosmos.mediaOutputInteractor by constant 43 Kosmos.Fixture { in <lambda>() 59 val Kosmos.mediaDeviceSessionInteractor by constant [all …]
|
D | MediaControllerKosmos.kt | 26 import com.android.systemui.kosmos.Kosmos 33 var Kosmos.localPlaybackInfo by variable 34 Kosmos.Fixture { in <lambda>() 44 var Kosmos.localPlaybackStateBuilder by Kosmos.Fixture { PlaybackState.Builder() } in <lambda>() variable 45 var Kosmos.localMediaController: MediaController by variable 46 Kosmos.Fixture { in <lambda>() 63 var Kosmos.remotePlaybackInfo by variable 64 Kosmos.Fixture { in <lambda>() 74 var Kosmos.remotePlaybackStateBuilder by Kosmos.Fixture { PlaybackState.Builder() } in <lambda>() variable 75 var Kosmos.remoteMediaController: MediaController by variable [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/ |
D | DeviceItemActionInteractorKosmos.kt | 21 import com.android.systemui.kosmos.Kosmos 26 val Kosmos.bluetoothTileDialogLogger: BluetoothTileDialogLogger by Kosmos.Fixture { mock {} } in <lambda>() constant 28 val Kosmos.localBluetoothManager: LocalBluetoothManager by Kosmos.Fixture { mock {} } in <lambda>() constant 30 val Kosmos.dialogTransitionAnimator: DialogTransitionAnimator by Kosmos.Fixture { mock {} } in <lambda>() constant 32 val Kosmos.deviceItemActionInteractor: DeviceItemActionInteractor by constant 33 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/ui/layout/ |
D | ComponentsLayoutManagerKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 23 var Kosmos.volumePanelBottomBarComponentKey: VolumePanelComponentKey by variable 24 Kosmos.Fixture { VolumePanelComponents.BOTTOM_BAR } in <lambda>() 25 var Kosmos.volumePanelHeaderComponentKeys: Collection<VolumePanelComponentKey> by variable 26 Kosmos.Fixture { listOf(VolumePanelComponents.MEDIA_OUTPUT) } in <lambda>() 27 var Kosmos.volumePanelFooterComponentKeys: Collection<VolumePanelComponentKey> by variable 28 Kosmos.Fixture { in <lambda>() 36 var Kosmos.componentsLayoutManager: ComponentsLayoutManager by variable 37 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/communal/widgets/ |
D | WidgetConfiguratorKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 22 val Kosmos.widgetConfiguratorSuccess: WidgetConfigurator by constant 23 Kosmos.Fixture { FakeWidgetConfigurator(true) } in <lambda>() 26 val Kosmos.widgetConfiguratorFail: WidgetConfigurator by constant 27 Kosmos.Fixture { FakeWidgetConfigurator(false) } in <lambda>() 30 val Kosmos.fakeWidgetConfigurator by Kosmos.Fixture { FakeWidgetConfigurator() } in <lambda>() constant
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/domain/ |
D | ComponentAvailabilityCriteriaKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 21 val Kosmos.unavailableCriteria: ComponentAvailabilityCriteria by constant 22 Kosmos.Fixture { TestComponentAvailabilityCriteria(false) } in <lambda>() 23 val Kosmos.availableCriteria: ComponentAvailabilityCriteria by constant 24 Kosmos.Fixture { AlwaysAvailableCriteria() } in <lambda>() 25 var Kosmos.defaultCriteria: ComponentAvailabilityCriteria by Kosmos.Fixture { availableCriteria } in <lambda>() variable
|
/frameworks/base/packages/SystemUI/tests/utils/kosmos/src/com/android/systemui/kosmos/ |
D | Kosmos.kt | 49 interface Kosmos { interface 54 fun <T> get(name: String, creator: (Kosmos.() -> T)?): T in get() 67 class Fixture<T>(private val creator: (Kosmos.() -> T)? = null) { in get() 68 operator fun getValue(thisRef: Kosmos, property: KProperty<*>): T = in get() 71 operator fun setValue(thisRef: Kosmos, property: KProperty<*>, value: T) { in get() 78 fun Kosmos(): Kosmos = KosmosRegistry() in Kosmos() method 80 private class KosmosRegistry : Kosmos { in Kosmos() 84 override fun <T> get(name: String, creator: (Kosmos.() -> T)?): T { in Kosmos()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/ |
D | KeyguardTransitionRepositoryKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 22 var Kosmos.keyguardTransitionRepository: KeyguardTransitionRepository by variable 23 Kosmos.Fixture { fakeKeyguardTransitionRepository } in <lambda>() 24 var Kosmos.fakeKeyguardTransitionRepository by Kosmos.Fixture { FakeKeyguardTransitionRepository() } in <lambda>() variable 25 var Kosmos.realKeyguardTransitionRepository: KeyguardTransitionRepository by variable 26 Kosmos.Fixture { KeyguardTransitionRepositoryImpl(testDispatcher) } in <lambda>()
|
D | KeyguardBlueprintRepositoryKosmos.kt | 30 import com.android.systemui.kosmos.Kosmos 35 val Kosmos.keyguardClockSection: ClockSection by constant 36 Kosmos.Fixture { in <lambda>() 47 val Kosmos.keyguardSmartspaceSection: SmartspaceSection by constant 48 Kosmos.Fixture { mock<SmartspaceSection>() } in <lambda>() 50 val Kosmos.defaultKeyguardBlueprint by constant 51 Kosmos.Fixture { in <lambda>() 72 val Kosmos.splitShadeBlueprint by constant 73 Kosmos.Fixture { in <lambda>() 94 val Kosmos.keyguardBlueprintRepository by constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/domain/interactor/ |
D | ShadeInteractorKosmos.kt | 22 import com.android.systemui.kosmos.Kosmos 35 var Kosmos.baseShadeInteractor: BaseShadeInteractor by variable 36 Kosmos.Fixture { in <lambda>() 42 val Kosmos.shadeInteractorSceneContainerImpl by constant 43 Kosmos.Fixture { in <lambda>() 51 val Kosmos.shadeInteractorLegacyImpl by constant 52 Kosmos.Fixture { in <lambda>() 60 var Kosmos.shadeInteractor: ShadeInteractor by Kosmos.Fixture { shadeInteractorImpl } in <lambda>() variable 61 val Kosmos.shadeInteractorImpl by constant 62 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/kosmos/ |
D | GeneralKosmos.kt | 4 import com.android.systemui.kosmos.Kosmos.Fixture 9 var Kosmos.testDispatcher by Fixture { StandardTestDispatcher() } in <lambda>() variable 10 var Kosmos.testScope by Fixture { TestScope(testDispatcher) } in <lambda>() variable 11 var Kosmos.applicationCoroutineScope by Fixture { testScope.backgroundScope } in <lambda>() variable 12 var Kosmos.testCase: SysuiTestCase by Fixture() variable 13 var Kosmos.backgroundCoroutineContext: CoroutineContext by Fixture { in <lambda>() variable 16 var Kosmos.mainCoroutineContext: CoroutineContext by Fixture { testScope.coroutineContext } in <lambda>() variable
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/scene/domain/resolver/ |
D | SceneResolverKosmos.kt | 23 import com.android.systemui.kosmos.Kosmos 29 val Kosmos.sceneFamilyResolvers: Map<SceneKey, SceneResolver> constant 37 val Kosmos.homeSceneFamilyResolver by constant 38 Kosmos.Fixture { in <lambda>() 45 val Kosmos.notifShadeSceneFamilyResolver by constant 46 Kosmos.Fixture { in <lambda>() 53 val Kosmos.quickSettingsSceneFamilyResolver by constant 54 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/qr/ |
D | QRCodeScannerTileKosmos.kt | 21 import com.android.systemui.kosmos.Kosmos 40 val Kosmos.qsQRCodeScannerTileConfig by constant 41 Kosmos.Fixture { QRCodeScannerModule.provideQRCodeScannerTileConfig(qsEventLogger) } in <lambda>() 43 val Kosmos.qrCodeScannerTileDataInteractor by constant 44 Kosmos.Fixture { in <lambda>() 52 val Kosmos.qrCodeScannerTileUserActionInteractor by constant 53 Kosmos.Fixture { QRCodeScannerTileUserActionInteractor(qsTileIntentUserInputHandler) } in <lambda>() 55 val Kosmos.qrCodeScannerTileMapper by constant 56 Kosmos.Fixture { QRCodeScannerTileMapper(mainResources, mainResources.newTheme()) } in <lambda>() 58 val Kosmos.qsQRCodeScannerViewModel by constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/ui/composable/ |
D | ComponentsFactoryKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 30 var Kosmos.componentByKey: Map<VolumePanelComponentKey, Provider<VolumePanelUiComponent>> by variable 31 Kosmos.Fixture { emptyMap() } in <lambda>() 32 var Kosmos.prodComponentByKey: Map<VolumePanelComponentKey, Provider<VolumePanelUiComponent>> by variable 33 Kosmos.Fixture { in <lambda>() 42 var Kosmos.enabledComponents: Collection<VolumePanelComponentKey> by variable 43 Kosmos.Fixture { componentByKey.keys } in <lambda>() 45 val Kosmos.componentsFactory: ComponentsFactory by constant 46 Kosmos.Fixture { ComponentsFactory(componentByKey) } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/component/anc/ |
D | VolumePanelAncKosmos.kt | 20 import com.android.systemui.kosmos.Kosmos 27 var Kosmos.sliceViewManager: SliceViewManager by Kosmos.Fixture { mock {} } in <lambda>() variable 28 val Kosmos.ancSliceRepository by Kosmos.Fixture { FakeAncSliceRepository() } in <lambda>() constant 29 val Kosmos.ancSliceInteractor by constant 30 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/panel/ui/viewmodel/ |
D | VolumePanelViewModelKosmos.kt | 21 import com.android.systemui.kosmos.Kosmos 28 var Kosmos.volumePanelStartables: Set<VolumePanelStartable> by Kosmos.Fixture { emptySet() } in <lambda>() variable 30 var Kosmos.volumePanelViewModel: VolumePanelViewModel by variable 31 Kosmos.Fixture { volumePanelViewModelFactory.create(testScope.backgroundScope) } in <lambda>() 33 val Kosmos.volumePanelViewModelFactory: VolumePanelViewModel.Factory by constant 34 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/domain/interactor/ |
D | GridLayoutTypeInteractorKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 26 val Kosmos.gridLayoutTypeInteractor by constant 27 Kosmos.Fixture { GridLayoutTypeInteractor(gridLayoutTypeRepository) } in <lambda>() 29 val Kosmos.gridLayoutMap: Map<GridLayoutType, GridLayout> by constant 30 Kosmos.Fixture { in <lambda>() 37 var Kosmos.gridConsistencyInteractorsMap: Map<GridLayoutType, GridTypeConsistencyInteractor> by variable 38 Kosmos.Fixture { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/ |
D | FingerprintInteractiveToAuthProviderKosmos.kt | 19 import com.android.systemui.kosmos.Kosmos 21 val Kosmos.fingerprintInteractiveToAuthProvider by constant 22 Kosmos.Fixture { fakeFingerprintInteractiveToAuthProvider } in <lambda>() 24 val Kosmos.fakeFingerprintInteractiveToAuthProvider by constant 25 Kosmos.Fixture { FakeFingerprintInteractiveToAuthProvider() } in <lambda>()
|