Searched refs:WorkModeTileModel (Results 1 – 8 of 8) sorted by relevance
27 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel63 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>()
28 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel55 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>()
22 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>()
24 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel35 ) : 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()
20 sealed interface WorkModeTileModel { interface22 data class HasActiveProfile(val isEnabled: Boolean) : WorkModeTileModel23 data object NoActiveProfile : WorkModeTileModel
26 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel39 ) : 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()
31 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel83 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()
59 import com.android.systemui.qs.tiles.impl.work.domain.model.WorkModeTileModel281 factory: QSTileViewModelFactory.Static<WorkModeTileModel>, in bindDndTile()