Home
last modified time | relevance | path

Searched refs:WorkModeTileModel (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/work/domain/interactor/
DWorkModeTileDataInteractorTest.kt27 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
63 assertThat(data).isInstanceOf(WorkModeTileModel.HasActiveProfile::class.java) in <lambda>()
64 assertThat((data as WorkModeTileModel.HasActiveProfile).isEnabled).isFalse() in <lambda>()
67 assertThat(data).isInstanceOf(WorkModeTileModel.HasActiveProfile::class.java) in <lambda>()
68 assertThat((data as WorkModeTileModel.HasActiveProfile).isEnabled).isTrue() in <lambda>()
71 assertThat(data).isInstanceOf(WorkModeTileModel.HasActiveProfile::class.java) in <lambda>()
72 assertThat((data as WorkModeTileModel.HasActiveProfile).isEnabled).isFalse() in <lambda>()
81 assertThat(data).isInstanceOf(WorkModeTileModel.NoActiveProfile::class.java) in <lambda>()
84 assertThat(data).isInstanceOf(WorkModeTileModel.HasActiveProfile::class.java) in <lambda>()
87 assertThat(data).isInstanceOf(WorkModeTileModel.NoActiveProfile::class.java) in <lambda>()
DWorkModeTileUserActionInteractorTest.kt28 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
55 QSTileInputTestKtx.click(WorkModeTileModel.HasActiveProfile(wasEnabled)) in <lambda>()
67 QSTileInputTestKtx.click(WorkModeTileModel.HasActiveProfile(wasEnabled)) in <lambda>()
78 underTest.handleInput(QSTileInputTestKtx.click(WorkModeTileModel.NoActiveProfile)) in <lambda>()
88 QSTileInputTestKtx.longClick(WorkModeTileModel.HasActiveProfile(enabled)) in <lambda>()
101 QSTileInputTestKtx.longClick(WorkModeTileModel.HasActiveProfile(enabled)) in <lambda>()
111 underTest.handleInput(QSTileInputTestKtx.longClick(WorkModeTileModel.NoActiveProfile)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/work/domain/interactor/
DWorkModeTileDataInteractor.kt22 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel in <lambda>()
34 ) : QSTileDataInteractor<WorkModeTileModel> { in <lambda>()
38 ): Flow<WorkModeTileModel> = in <lambda>()
41 WorkModeTileModel.HasActiveProfile(profileController.isWorkModeEnabled) in <lambda>()
43 WorkModeTileModel.NoActiveProfile in <lambda>()
DWorkModeTileUserActionInteractor.kt24 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
35 ) : QSTileUserActionInteractor<WorkModeTileModel> {
36 override suspend fun handleInput(input: QSTileInput<WorkModeTileModel>) = in handleInput()
40 if (data is WorkModeTileModel.HasActiveProfile) { in handleInput()
45 if (data is WorkModeTileModel.HasActiveProfile) { in handleInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/work/domain/model/
DWorkModeTileModel.kt20 sealed interface WorkModeTileModel { interface
22 data class HasActiveProfile(val isEnabled: Boolean) : WorkModeTileModel
23 data object NoActiveProfile : WorkModeTileModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/work/ui/
DWorkModeTileMapper.kt26 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
39 ) : QSTileDataToStateMapper<WorkModeTileModel> {
40 override fun map(config: QSTileConfig, data: WorkModeTileModel): QSTileState = in map()
50 is WorkModeTileModel.HasActiveProfile -> { in map()
62 is WorkModeTileModel.NoActiveProfile -> { in map()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/impl/work/ui/
DWorkModeTileMapperTest.kt31 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
83 mapper.map(qsTileConfig, WorkModeTileModel.HasActiveProfile(isEnabled)) in mapsDisabledDataToInactiveState()
94 mapper.map(qsTileConfig, WorkModeTileModel.HasActiveProfile(isEnabled)) in mapsEnabledDataToActiveState()
102 val actualState: QSTileState = mapper.map(qsTileConfig, WorkModeTileModel.NoActiveProfile) in mapsNoActiveProfileDataToUnavailableState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPolicyModule.kt59 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel
281 factory: QSTileViewModelFactory.Static<WorkModeTileModel>, in bindDndTile()