/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/ui/ |
D | BatterySaverTileMapperTest.kt | 64 QSTileState.ActivationState.INACTIVE, in map_standard_notPluggedInNotPowerSaving() 80 QSTileState.ActivationState.ACTIVE, in map_standard_notPluggedInPowerSaving() 96 QSTileState.ActivationState.UNAVAILABLE, in map_standard_pluggedInPowerSaving() 112 QSTileState.ActivationState.UNAVAILABLE, in map_standard_pluggedInNotPowerSaving() 128 QSTileState.ActivationState.INACTIVE, in map_extremeSaverDisabledNotPluggedInNotPowerSaving() 144 QSTileState.ActivationState.ACTIVE, in map_extremeSaverDisabledNotPluggedInPowerSaving() 160 QSTileState.ActivationState.UNAVAILABLE, in map_extremeSaverDisabledPluggedInPowerSaving() 176 QSTileState.ActivationState.UNAVAILABLE, in map_extremeSaverDisabledPluggedInNotPowerSaving() 192 QSTileState.ActivationState.INACTIVE, in map_extremeSaverEnabledNotPluggedInNotPowerSaving() 208 QSTileState.ActivationState.ACTIVE, in map_extremeSaverEnabledNotPluggedInPowerSaving() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/quickaffordance/ |
D | ActivationState.kt | 21 sealed class ActivationState { class 23 object NotSupported : ActivationState() 25 object Active : ActivationState() 27 object Inactive : ActivationState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/night/ui/ |
D | NightDisplayTileMapperTest.kt | 75 QSTileState.ActivationState.INACTIVE, in disabledModel_whenAutoModeOff() 90 QSTileState.ActivationState.INACTIVE, in disabledModel_whenAutoModeOff_whenForceEnable() 104 QSTileState.ActivationState.ACTIVE, in enabledModel_whenAutoModeOff() 118 QSTileState.ActivationState.ACTIVE, in enabledModel_forceAutoMode_whenAutoModeOff() 130 val expectedState = createNightDisplayTileState(QSTileState.ActivationState.ACTIVE, null) in enabledModel_autoModeTwilight_locationOff() 142 QSTileState.ActivationState.ACTIVE, in enabledModel_autoModeTwilight_locationOn() 156 QSTileState.ActivationState.INACTIVE, in disabledModel_autoModeTwilight_locationOn() 168 val expectedState = createNightDisplayTileState(QSTileState.ActivationState.INACTIVE, null) in disabledModel_autoModeTwilight_locationOff() 181 QSTileState.ActivationState.INACTIVE, in disabledModel_autoModeCustom_24Hour() 199 QSTileState.ActivationState.INACTIVE, in disabledModel_autoModeCustom_12Hour() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileMapperTest.kt | 59 activationState: QSTileState.ActivationState = QSTileState.ActivationState.INACTIVE, in createUiNightModeTileState() 62 if (activationState == QSTileState.ActivationState.UNAVAILABLE) in createUiNightModeTileState() 99 activationState = QSTileState.ActivationState.UNAVAILABLE, in mapsEnabledDataToUnavailableStateWhenOnPowerSave() 119 activationState = QSTileState.ActivationState.UNAVAILABLE, in mapsDisabledDataToUnavailableStateWhenOnPowerSave() 136 activationState = QSTileState.ActivationState.INACTIVE, in mapsDisabledDataToInactiveState() 157 activationState = QSTileState.ActivationState.ACTIVE, in mapsEnabledDataToActiveState() 176 activationState = QSTileState.ActivationState.ACTIVE, in mapsEnabledDataToOnIconState() 195 activationState = QSTileState.ActivationState.INACTIVE, in mapsDisabledDataToOffIconState() 214 activationState = QSTileState.ActivationState.ACTIVE, in supportsClickAndLongClickActionsWhenNotInPowerSaveInNightMode() 238 activationState = QSTileState.ActivationState.UNAVAILABLE, in supportsOnlyLongClickActionWhenUnavailableInPowerSaveInNightMode() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/impl/work/ui/ |
D | WorkModeTileMapperTest.kt | 85 val expectedState = createWorkModeTileState(QSTileState.ActivationState.INACTIVE) in mapsDisabledDataToInactiveState() 96 val expectedState = createWorkModeTileState(QSTileState.ActivationState.ACTIVE) in mapsEnabledDataToActiveState() 104 val expectedState = createWorkModeTileState(QSTileState.ActivationState.UNAVAILABLE) in mapsNoActiveProfileDataToUnavailableState() 109 activationState: QSTileState.ActivationState, in createWorkModeTileState() 119 if (activationState == QSTileState.ActivationState.INACTIVE) { in createWorkModeTileState() 121 } else if (activationState == QSTileState.ActivationState.UNAVAILABLE) { in createWorkModeTileState() 128 if (activationState == QSTileState.ActivationState.UNAVAILABLE) { in createWorkModeTileState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileMapper.kt | 104 activationState = QSTileState.ActivationState.UNAVAILABLE in map() 109 if (isNightMode) QSTileState.ActivationState.ACTIVE in map() 110 else QSTileState.ActivationState.INACTIVE in map() 114 if (activationState == QSTileState.ActivationState.INACTIVE) in map() 121 if (activationState == QSTileState.ActivationState.ACTIVE) in map() 129 if (activationState == QSTileState.ActivationState.UNAVAILABLE) in map()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/ |
D | QSTileState.kt | 41 val activationState: ActivationState, 71 enum class ActivationState(val legacyState: Int) { in build() class in com.android.systemui.qs.tiles.viewmodel.QSTileState 85 fun valueOf(legacyState: Int): ActivationState = in build() 119 var activationState: ActivationState = ActivationState.INACTIVE
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/saver/domain/ |
D | DataSaverTileMapperTest.kt | 61 QSTileState.ActivationState.ACTIVE, in activeStateMatchesEnabledModel() 75 QSTileState.ActivationState.INACTIVE, in inactiveStateMatchesDisabledModel() 82 activationState: QSTileState.ActivationState, in createDataSaverTileState() 87 if (activationState == QSTileState.ActivationState.ACTIVE) in createDataSaverTileState() 89 else if (activationState == QSTileState.ActivationState.INACTIVE) in createDataSaverTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/reducebrightness/ui/ |
D | ReduceBrightColorsTileMapperTest.kt | 66 QSTileState.ActivationState.INACTIVE, in disabledModel() 77 val expectedState = createReduceBrightColorsTileState(QSTileState.ActivationState.ACTIVE) in enabledModel() 82 activationState: QSTileState.ActivationState, in createReduceBrightColorsTileState() 87 if (activationState == QSTileState.ActivationState.ACTIVE) in createReduceBrightColorsTileState() 97 if (activationState == QSTileState.ActivationState.ACTIVE) Tile.STATE_ACTIVE in createReduceBrightColorsTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/alarm/domain/ |
D | AlarmTileMapperTest.kt | 71 QSTileState.ActivationState.INACTIVE, in notAlarmSet() 92 createAlarmTileState(QSTileState.ActivationState.ACTIVE, expectedSecondaryLabel) in nextAlarmSet24HourFormat() 111 createAlarmTileState(QSTileState.ActivationState.ACTIVE, expectedSecondaryLabel) in nextAlarmSet12HourFormat() 131 createAlarmTileState(QSTileState.ActivationState.ACTIVE, expectedSecondaryLabel) in nextAlarmSetMoreThanAWeekLater_mapsSecondaryLabelToDisplayDateOnly() 151 createAlarmTileState(QSTileState.ActivationState.ACTIVE, expectedSecondaryLabel) in nextAlarmSetOneMinuteLessThanAWeekLater_mapsSecondaryLabelToDisplayTime() 171 createAlarmTileState(QSTileState.ActivationState.ACTIVE, expectedSecondaryLabel) in nextAlarmSetExactlyAWeekLater_mapsSecondaryLabelToDisplayDateOnly() 176 activationState: QSTileState.ActivationState, in createAlarmTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/ |
D | CustomTileMapperTest.kt | 74 activationState = QSTileState.ActivationState.UNAVAILABLE, in stateHasPendingBinding() 93 activationState = QSTileState.ActivationState.ACTIVE, in stateActive() 111 activationState = QSTileState.ActivationState.INACTIVE, in stateInactive() 129 activationState = QSTileState.ActivationState.UNAVAILABLE, in stateUnavailable() 167 activationState = QSTileState.ActivationState.INACTIVE, in defaultIconFallback() 190 activationState = QSTileState.ActivationState.INACTIVE, in failedToLoadIconTileIsInactive() 239 activationState: QSTileState.ActivationState = QSTileState.ActivationState.ACTIVE, in createTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/screenrecord/ui/ |
D | ScreenRecordTileMapperTest.kt | 67 QSTileState.ActivationState.ACTIVE, in activeStateMatchesRecordingDataModel() 83 QSTileState.ActivationState.ACTIVE, in activeStateMatchesStartingDataModel() 98 QSTileState.ActivationState.INACTIVE, in inactiveStateMatchesDisabledDataModel() 106 activationState: QSTileState.ActivationState, in createScreenRecordTileState() 122 if (activationState == QSTileState.ActivationState.INACTIVE) in createScreenRecordTileState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/rotation/ui/mapper/ |
D | RotationLockTileMapper.kt | 45 activationState = QSTileState.ActivationState.INACTIVE in map() 49 activationState = QSTileState.ActivationState.ACTIVE in map() 75 private fun getSecondaryLabelWithPosture(activationState: QSTileState.ActivationState): String { in getSecondaryLabelWithPosture() 79 if (activationState == QSTileState.ActivationState.ACTIVE) ON_INDEX else OFF_INDEX] in getSecondaryLabelWithPosture()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/model/ |
D | KeyguardQuickAffordanceModel.kt | 21 import com.android.systemui.keyguard.shared.quickaffordance.ActivationState 38 val activationState: ActivationState,
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/ui/ |
D | SensorPrivacyToggleTileMapperTest.kt | 55 QSTileState.ActivationState.ACTIVE, in mapCamera_notBlocked() 73 QSTileState.ActivationState.INACTIVE, in mapCamera_blocked() 91 QSTileState.ActivationState.ACTIVE, in mapMic_notBlocked() 109 QSTileState.ActivationState.INACTIVE, in mapMic_blocked() 138 activationState: QSTileState.ActivationState, in createSensorPrivacyToggleTileState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/ui/ |
D | BatterySaverTileMapper.kt | 49 activationState = QSTileState.ActivationState.UNAVAILABLE in map() 53 activationState = QSTileState.ActivationState.ACTIVE in map() 68 activationState = QSTileState.ActivationState.INACTIVE in map()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/ |
D | KeyguardQuickAffordanceConfig.kt | 27 import com.android.systemui.keyguard.shared.quickaffordance.ActivationState 133 val activationState: ActivationState = ActivationState.NotSupported,
|
D | MuteQuickAffordanceConfig.kt | 33 import com.android.systemui.keyguard.shared.quickaffordance.ActivationState in <lambda>() 87 ActivationState.NotSupported to R.string.volume_ringer_hint_mute in <lambda>() 89 ActivationState.Active to R.string.volume_ringer_hint_mute in <lambda>() 90 else -> ActivationState.Inactive to R.string.volume_ringer_hint_unmute in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/flashlight/domain/ |
D | FlashlightMapper.kt | 59 activationState = QSTileState.ActivationState.UNAVAILABLE in map() 66 activationState = QSTileState.ActivationState.ACTIVE in map() 69 activationState = QSTileState.ActivationState.INACTIVE in map()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/work/ui/ |
D | WorkModeTileMapper.kt | 52 activationState = QSTileState.ActivationState.ACTIVE in map() 55 activationState = QSTileState.ActivationState.INACTIVE in map() 63 activationState = QSTileState.ActivationState.UNAVAILABLE in map()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/screenrecord/domain/ui/ |
D | ScreenRecordTileMapper.kt | 44 activationState = QSTileState.ActivationState.ACTIVE in map() 56 activationState = QSTileState.ActivationState.ACTIVE in map() 69 activationState = QSTileState.ActivationState.INACTIVE in map()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/colorcorrection/domain/ |
D | ColorCorrectionTileMapperTest.kt | 59 createColorCorrectionTileState(QSTileState.ActivationState.INACTIVE, subtitleArray[1]) in disabledModel() 70 createColorCorrectionTileState(QSTileState.ActivationState.ACTIVE, subtitleArray[2]) in enabledModel() 75 activationState: QSTileState.ActivationState, in createColorCorrectionTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardQuickAffordanceInteractorTest.kt | 46 import com.android.systemui.keyguard.shared.quickaffordance.ActivationState 216 activationState = ActivationState.Active, in quickAffordance_bottomStartAffordanceIsVisible() 233 assertThat(visibleModel.activationState).isEqualTo(ActivationState.Active) in quickAffordance_bottomStartAffordanceIsVisible() 259 assertThat(visibleModel.activationState).isEqualTo(ActivationState.NotSupported) in quickAffordance_bottomEndAffordanceIsVisible() 382 activationState = ActivationState.Active, in quickAffordanceAlwaysVisible_notVisible_restrictedByPolicyManager() 405 activationState = ActivationState.Active, in quickAffordanceAlwaysVisible_evenWhenLockScreenNotShowingAndDozing() 423 assertThat(visibleModel.activationState).isEqualTo(ActivationState.Active) in quickAffordanceAlwaysVisible_evenWhenLockScreenNotShowingAndDozing() 469 activationState = ActivationState.NotSupported, in select() 503 activationState = ActivationState.NotSupported, in select() 534 activationState = ActivationState.NotSupported, in select() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/onehanded/ui/ |
D | OneHandedModeTileMapperTest.kt | 70 QSTileState.ActivationState.INACTIVE, in disabledModel() 85 QSTileState.ActivationState.ACTIVE, in enabledModel() 93 activationState: QSTileState.ActivationState, in createOneHandedModeTileState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/inversion/domain/ |
D | ColorInversionTileMapperTest.kt | 64 QSTileState.ActivationState.INACTIVE, in disabledModel() 79 QSTileState.ActivationState.ACTIVE, in enabledModel() 87 activationState: QSTileState.ActivationState, in createColorInversionTileState()
|